From a8a8bef38076609daa324a8fe6ebc5462e095b32 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 11 Sep 2023 18:58:04 +0000 Subject: [PATCH 1/2] feat: Added support for retriggering notifications in AlertPolicy feat: Added support for forecast options in AlertPolicy feat: Added support for promQL condition type in AlertPolicy PiperOrigin-RevId: 564411592 Source-Link: https://github.com/googleapis/googleapis/commit/babab51d7d23ed1b95a2d9daff59012220f56e08 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b282e012db0f0036bff22300d3fc101d258baca7 Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJiMjgyZTAxMmRiMGYwMDM2YmZmMjIzMDBkM2ZjMTAxZDI1OGJhY2E3In0= --- .../monitoring/v3/MetricServiceGrpc.java | 1402 - .../v3/NotificationChannelServiceGrpc.java | 1674 -- .../v3/ServiceMonitoringServiceGrpc.java | 1469 -- .../monitoring/v3/UptimeCheckServiceGrpc.java | 1054 - .../com/google/monitoring/v3/AlertProto.java | 349 - .../monitoring/v3/AlertServiceProto.java | 202 - .../com/google/monitoring/v3/CommonProto.java | 137 - ...eateUptimeCheckConfigRequestOrBuilder.java | 103 - .../v3/DeleteAlertPolicyRequestOrBuilder.java | 62 - ...eleteMetricDescriptorRequestOrBuilder.java | 64 - ...ServiceLevelObjectiveRequestOrBuilder.java | 58 - .../v3/DeleteServiceRequestOrBuilder.java | 58 - ...leteUptimeCheckConfigRequestOrBuilder.java | 58 - .../monitoring/v3/DroppedLabelsProto.java | 81 - .../v3/GetAlertPolicyRequestOrBuilder.java | 58 - .../v3/GetGroupRequestOrBuilder.java | 58 - ...redResourceDescriptorRequestOrBuilder.java | 64 - ...tionChannelDescriptorRequestOrBuilder.java | 58 - ...etNotificationChannelRequestOrBuilder.java | 58 - .../v3/GetServiceRequestOrBuilder.java | 58 - .../v3/GetSnoozeRequestOrBuilder.java | 58 - .../GetUptimeCheckConfigRequestOrBuilder.java | 58 - .../com/google/monitoring/v3/GroupProto.java | 81 - .../monitoring/v3/GroupServiceProto.java | 245 - .../com/google/monitoring/v3/MetricProto.java | 226 - .../monitoring/v3/MetricServiceProto.java | 444 - .../monitoring/v3/MutationRecordProto.java | 73 - .../monitoring/v3/NotificationProto.java | 178 - .../v3/NotificationServiceProto.java | 351 - .../monitoring/v3/QueryServiceProto.java | 79 - .../google/monitoring/v3/RangeOrBuilder.java | 51 - ...annelVerificationCodeRequestOrBuilder.java | 54 - .../monitoring/v3/ServiceMonitoringProto.java | 443 - .../v3/ServiceMonitoringServiceProto.java | 323 - .../com/google/monitoring/v3/SnoozeProto.java | 103 - .../monitoring/v3/SnoozeServiceProto.java | 177 - .../monitoring/v3/SpanContextProto.java | 66 - .../com/google/monitoring/v3/UptimeProto.java | 364 - .../monitoring/v3/UptimeServiceProto.java | 240 - .../v3/AlertPolicyServiceClient.java | 62 +- .../v3/AlertPolicyServiceSettings.java | 1 + .../monitoring/v3/GroupServiceClient.java | 10 +- .../monitoring/v3/GroupServiceSettings.java | 1 + .../monitoring/v3/MetricServiceClient.java | 18 +- .../monitoring/v3/MetricServiceSettings.java | 1 + .../v3/NotificationChannelServiceClient.java | 87 +- .../NotificationChannelServiceSettings.java | 1 + .../monitoring/v3/QueryServiceClient.java | 0 .../monitoring/v3/QueryServiceSettings.java | 1 + .../v3/ServiceMonitoringServiceClient.java | 12 +- .../v3/ServiceMonitoringServiceSettings.java | 1 + .../monitoring/v3/SnoozeServiceClient.java | 0 .../monitoring/v3/SnoozeServiceSettings.java | 1 + .../v3/UptimeCheckServiceClient.java | 10 +- .../v3/UptimeCheckServiceSettings.java | 1 + .../cloud/monitoring/v3/gapic_metadata.json | 0 .../cloud/monitoring/v3/package-info.java | 0 .../v3/stub/AlertPolicyServiceStub.java | 0 .../stub/AlertPolicyServiceStubSettings.java | 0 .../monitoring/v3/stub/GroupServiceStub.java | 0 .../v3/stub/GroupServiceStubSettings.java | 0 ...GrpcAlertPolicyServiceCallableFactory.java | 0 .../v3/stub/GrpcAlertPolicyServiceStub.java | 1 + .../stub/GrpcGroupServiceCallableFactory.java | 0 .../v3/stub/GrpcGroupServiceStub.java | 1 + .../GrpcMetricServiceCallableFactory.java | 0 .../v3/stub/GrpcMetricServiceStub.java | 1 + ...ficationChannelServiceCallableFactory.java | 0 .../GrpcNotificationChannelServiceStub.java | 1 + .../stub/GrpcQueryServiceCallableFactory.java | 0 .../v3/stub/GrpcQueryServiceStub.java | 1 + ...rviceMonitoringServiceCallableFactory.java | 0 .../GrpcServiceMonitoringServiceStub.java | 1 + .../GrpcSnoozeServiceCallableFactory.java | 0 .../v3/stub/GrpcSnoozeServiceStub.java | 1 + ...GrpcUptimeCheckServiceCallableFactory.java | 0 .../v3/stub/GrpcUptimeCheckServiceStub.java | 1 + .../monitoring/v3/stub/MetricServiceStub.java | 0 .../v3/stub/MetricServiceStubSettings.java | 0 .../stub/NotificationChannelServiceStub.java | 0 ...otificationChannelServiceStubSettings.java | 0 .../monitoring/v3/stub/QueryServiceStub.java | 0 .../v3/stub/QueryServiceStubSettings.java | 0 .../v3/stub/ServiceMonitoringServiceStub.java | 0 .../ServiceMonitoringServiceStubSettings.java | 0 .../monitoring/v3/stub/SnoozeServiceStub.java | 0 .../v3/stub/SnoozeServiceStubSettings.java | 0 .../v3/stub/UptimeCheckServiceStub.java | 0 .../stub/UptimeCheckServiceStubSettings.java | 0 .../reflect-config.json | 54 + .../v3/AlertPolicyServiceClientTest.java | 0 .../monitoring/v3/GroupServiceClientTest.java | 0 .../v3/MetricServiceClientTest.java | 0 .../monitoring/v3/MockAlertPolicyService.java | 0 .../v3/MockAlertPolicyServiceImpl.java | 0 .../cloud/monitoring/v3/MockGroupService.java | 0 .../monitoring/v3/MockGroupServiceImpl.java | 0 .../monitoring/v3/MockMetricService.java | 0 .../monitoring/v3/MockMetricServiceImpl.java | 0 .../v3/MockNotificationChannelService.java | 0 .../MockNotificationChannelServiceImpl.java | 0 .../cloud/monitoring/v3/MockQueryService.java | 0 .../monitoring/v3/MockQueryServiceImpl.java | 0 .../v3/MockServiceMonitoringService.java | 0 .../v3/MockServiceMonitoringServiceImpl.java | 0 .../monitoring/v3/MockSnoozeService.java | 0 .../monitoring/v3/MockSnoozeServiceImpl.java | 0 .../monitoring/v3/MockUptimeCheckService.java | 0 .../v3/MockUptimeCheckServiceImpl.java | 0 .../NotificationChannelServiceClientTest.java | 0 .../monitoring/v3/QueryServiceClientTest.java | 0 .../ServiceMonitoringServiceClientTest.java | 0 .../v3/SnoozeServiceClientTest.java | 0 .../v3/UptimeCheckServiceClientTest.java | 0 .../monitoring/v3/AlertPolicyServiceGrpc.java | 612 +- .../monitoring/v3/GroupServiceGrpc.java | 634 +- .../monitoring/v3/MetricServiceGrpc.java | 1085 + .../v3/NotificationChannelServiceGrpc.java | 1279 + .../monitoring/v3/QueryServiceGrpc.java | 218 +- .../v3/ServiceMonitoringServiceGrpc.java | 1115 + .../monitoring/v3/SnoozeServiceGrpc.java | 465 +- .../monitoring/v3/UptimeCheckServiceGrpc.java | 819 + .../com/google/monitoring/v3/Aggregation.java | 862 +- .../monitoring/v3/AggregationOrBuilder.java | 56 +- .../com/google/monitoring/v3/AlertPolicy.java | 21754 +++++++++------- .../google/monitoring/v3/AlertPolicyName.java | 0 .../monitoring/v3/AlertPolicyOrBuilder.java | 228 +- .../com/google/monitoring/v3/AlertProto.java | 352 + .../monitoring/v3/AlertServiceProto.java | 182 + .../com/google/monitoring/v3/BasicSli.java | 1355 +- .../monitoring/v3/BasicSliOrBuilder.java | 88 +- .../com/google/monitoring/v3/CommonProto.java | 120 + .../google/monitoring/v3/ComparisonType.java | 110 +- .../v3/CreateAlertPolicyRequest.java | 600 +- .../v3/CreateAlertPolicyRequestOrBuilder.java | 83 +- .../monitoring/v3/CreateGroupRequest.java | 457 +- .../v3/CreateGroupRequestOrBuilder.java | 46 +- .../v3/CreateMetricDescriptorRequest.java | 497 +- ...reateMetricDescriptorRequestOrBuilder.java | 55 +- .../v3/CreateNotificationChannelRequest.java | 535 +- ...teNotificationChannelRequestOrBuilder.java | 65 +- .../CreateServiceLevelObjectiveRequest.java | 585 +- ...ServiceLevelObjectiveRequestOrBuilder.java | 64 +- .../monitoring/v3/CreateServiceRequest.java | 531 +- .../v3/CreateServiceRequestOrBuilder.java | 61 +- .../monitoring/v3/CreateSnoozeRequest.java | 450 +- .../v3/CreateSnoozeRequestOrBuilder.java | 43 +- .../monitoring/v3/CreateTimeSeriesError.java | 512 +- .../v3/CreateTimeSeriesErrorOrBuilder.java | 68 +- .../v3/CreateTimeSeriesRequest.java | 599 +- .../v3/CreateTimeSeriesRequestOrBuilder.java | 73 +- .../v3/CreateTimeSeriesSummary.java | 814 +- .../v3/CreateTimeSeriesSummaryOrBuilder.java | 42 +- .../v3/CreateUptimeCheckConfigRequest.java | 500 +- ...eateUptimeCheckConfigRequestOrBuilder.java | 64 + .../v3/DeleteAlertPolicyRequest.java | 347 +- .../v3/DeleteAlertPolicyRequestOrBuilder.java | 37 + .../monitoring/v3/DeleteGroupRequest.java | 374 +- .../v3/DeleteGroupRequestOrBuilder.java | 38 +- .../v3/DeleteMetricDescriptorRequest.java | 350 +- ...eleteMetricDescriptorRequestOrBuilder.java | 39 + .../v3/DeleteNotificationChannelRequest.java | 387 +- ...teNotificationChannelRequestOrBuilder.java | 38 +- .../DeleteServiceLevelObjectiveRequest.java | 353 +- ...ServiceLevelObjectiveRequestOrBuilder.java | 33 + .../monitoring/v3/DeleteServiceRequest.java | 340 +- .../v3/DeleteServiceRequestOrBuilder.java | 33 + .../v3/DeleteUptimeCheckConfigRequest.java | 353 +- ...leteUptimeCheckConfigRequestOrBuilder.java | 33 + .../google/monitoring/v3/DistributionCut.java | 392 +- .../v3/DistributionCutOrBuilder.java | 35 +- .../google/monitoring/v3/DroppedLabels.java | 482 +- .../monitoring/v3/DroppedLabelsOrBuilder.java | 48 +- .../monitoring/v3/DroppedLabelsProto.java | 67 + .../com/google/monitoring/v3/FolderName.java | 0 .../monitoring/v3/GetAlertPolicyRequest.java | 340 +- .../v3/GetAlertPolicyRequestOrBuilder.java | 33 + .../google/monitoring/v3/GetGroupRequest.java | 337 +- .../v3/GetGroupRequestOrBuilder.java | 33 + .../v3/GetMetricDescriptorRequest.java | 347 +- .../GetMetricDescriptorRequestOrBuilder.java | 35 +- ...GetMonitoredResourceDescriptorRequest.java | 374 +- ...redResourceDescriptorRequestOrBuilder.java | 39 + ...tNotificationChannelDescriptorRequest.java | 377 +- ...tionChannelDescriptorRequestOrBuilder.java | 33 + .../v3/GetNotificationChannelRequest.java | 350 +- ...etNotificationChannelRequestOrBuilder.java | 33 + ...icationChannelVerificationCodeRequest.java | 526 +- ...annelVerificationCodeRequestOrBuilder.java | 55 +- ...cationChannelVerificationCodeResponse.java | 466 +- ...nnelVerificationCodeResponseOrBuilder.java | 35 +- .../v3/GetServiceLevelObjectiveRequest.java | 411 +- ...ServiceLevelObjectiveRequestOrBuilder.java | 41 +- .../monitoring/v3/GetServiceRequest.java | 340 +- .../v3/GetServiceRequestOrBuilder.java | 33 + .../monitoring/v3/GetSnoozeRequest.java | 340 +- .../v3/GetSnoozeRequestOrBuilder.java | 33 + .../v3/GetUptimeCheckConfigRequest.java | 347 +- .../GetUptimeCheckConfigRequestOrBuilder.java | 33 + .../java/com/google/monitoring/v3/Group.java | 549 +- .../com/google/monitoring/v3/GroupName.java | 0 .../google/monitoring/v3/GroupOrBuilder.java | 57 +- .../com/google/monitoring/v3/GroupProto.java | 66 + .../monitoring/v3/GroupResourceType.java | 80 +- .../monitoring/v3/GroupServiceProto.java | 217 + .../google/monitoring/v3/InternalChecker.java | 712 +- .../v3/InternalCheckerOrBuilder.java | 70 +- .../com/google/monitoring/v3/LabelValue.java | 476 +- .../monitoring/v3/LabelValueOrBuilder.java | 42 +- .../v3/ListAlertPoliciesRequest.java | 631 +- .../v3/ListAlertPoliciesRequestOrBuilder.java | 75 +- .../v3/ListAlertPoliciesResponse.java | 511 +- .../ListAlertPoliciesResponseOrBuilder.java | 48 +- .../v3/ListGroupMembersRequest.java | 619 +- .../v3/ListGroupMembersRequestOrBuilder.java | 64 +- .../v3/ListGroupMembersResponse.java | 517 +- .../v3/ListGroupMembersResponseOrBuilder.java | 49 +- .../monitoring/v3/ListGroupsRequest.java | 761 +- .../v3/ListGroupsRequestOrBuilder.java | 83 +- .../monitoring/v3/ListGroupsResponse.java | 474 +- .../v3/ListGroupsResponseOrBuilder.java | 46 +- .../v3/ListMetricDescriptorsRequest.java | 527 +- ...ListMetricDescriptorsRequestOrBuilder.java | 56 +- .../v3/ListMetricDescriptorsResponse.java | 481 +- ...istMetricDescriptorsResponseOrBuilder.java | 45 +- ...stMonitoredResourceDescriptorsRequest.java | 554 +- ...edResourceDescriptorsRequestOrBuilder.java | 56 +- ...tMonitoredResourceDescriptorsResponse.java | 497 +- ...dResourceDescriptorsResponseOrBuilder.java | 45 +- ...NotificationChannelDescriptorsRequest.java | 492 +- ...ionChannelDescriptorsRequestOrBuilder.java | 47 +- ...otificationChannelDescriptorsResponse.java | 608 +- ...onChannelDescriptorsResponseOrBuilder.java | 56 +- .../v3/ListNotificationChannelsRequest.java | 637 +- ...tNotificationChannelsRequestOrBuilder.java | 75 +- .../v3/ListNotificationChannelsResponse.java | 504 +- ...NotificationChannelsResponseOrBuilder.java | 48 +- .../v3/ListServiceLevelObjectivesRequest.java | 588 +- ...erviceLevelObjectivesRequestOrBuilder.java | 62 +- .../ListServiceLevelObjectivesResponse.java | 534 +- ...rviceLevelObjectivesResponseOrBuilder.java | 42 +- .../monitoring/v3/ListServicesRequest.java | 517 +- .../v3/ListServicesRequestOrBuilder.java | 56 +- .../monitoring/v3/ListServicesResponse.java | 468 +- .../v3/ListServicesResponseOrBuilder.java | 46 +- .../monitoring/v3/ListSnoozesRequest.java | 517 +- .../v3/ListSnoozesRequestOrBuilder.java | 56 +- .../monitoring/v3/ListSnoozesResponse.java | 474 +- .../v3/ListSnoozesResponseOrBuilder.java | 46 +- .../monitoring/v3/ListTimeSeriesRequest.java | 1072 +- .../v3/ListTimeSeriesRequestOrBuilder.java | 115 +- .../monitoring/v3/ListTimeSeriesResponse.java | 700 +- .../v3/ListTimeSeriesResponseOrBuilder.java | 73 +- .../v3/ListUptimeCheckConfigsRequest.java | 527 +- ...istUptimeCheckConfigsRequestOrBuilder.java | 56 +- .../v3/ListUptimeCheckConfigsResponse.java | 498 +- ...stUptimeCheckConfigsResponseOrBuilder.java | 48 +- .../v3/ListUptimeCheckIpsRequest.java | 350 +- .../ListUptimeCheckIpsRequestOrBuilder.java | 30 +- .../v3/ListUptimeCheckIpsResponse.java | 475 +- .../ListUptimeCheckIpsResponseOrBuilder.java | 45 +- .../monitoring/v3/MetricDescriptorName.java | 0 .../com/google/monitoring/v3/MetricProto.java | 200 + .../monitoring/v3/MetricServiceProto.java | 403 + .../v3/MonitoredResourceDescriptorName.java | 0 .../google/monitoring/v3/MutationRecord.java | 398 +- .../v3/MutationRecordOrBuilder.java | 35 +- .../monitoring/v3/MutationRecordProto.java | 58 + .../monitoring/v3/NotificationChannel.java | 1560 +- .../v3/NotificationChannelDescriptor.java | 969 +- .../v3/NotificationChannelDescriptorName.java | 0 ...otificationChannelDescriptorOrBuilder.java | 125 +- .../v3/NotificationChannelName.java | 0 .../v3/NotificationChannelOrBuilder.java | 188 +- .../monitoring/v3/NotificationProto.java | 145 + .../v3/NotificationServiceProto.java | 324 + .../monitoring/v3/OrganizationName.java | 0 .../java/com/google/monitoring/v3/Point.java | 410 +- .../google/monitoring/v3/PointOrBuilder.java | 34 +- .../com/google/monitoring/v3/ProjectName.java | 0 .../com/google/monitoring/v3/QueryError.java | 394 +- .../google/monitoring/v3/QueryErrorList.java | 466 +- .../v3/QueryErrorListOrBuilder.java | 46 +- .../monitoring/v3/QueryErrorOrBuilder.java | 35 +- .../monitoring/v3/QueryServiceProto.java | 66 + .../monitoring/v3/QueryTimeSeriesRequest.java | 492 +- .../v3/QueryTimeSeriesRequestOrBuilder.java | 48 +- .../v3/QueryTimeSeriesResponse.java | 736 +- .../v3/QueryTimeSeriesResponseOrBuilder.java | 72 +- .../java/com/google/monitoring/v3/Range.java | 302 +- .../google/monitoring/v3/RangeOrBuilder.java | 29 + .../google/monitoring/v3/RequestBasedSli.java | 463 +- .../v3/RequestBasedSliOrBuilder.java | 34 +- ...icationChannelVerificationCodeRequest.java | 405 +- ...annelVerificationCodeRequestOrBuilder.java | 29 + .../com/google/monitoring/v3/Service.java | 4005 ++- .../monitoring/v3/ServiceLevelIndicator.java | 567 +- .../v3/ServiceLevelIndicatorOrBuilder.java | 42 +- .../monitoring/v3/ServiceLevelObjective.java | 1040 +- .../v3/ServiceLevelObjectiveName.java | 0 .../v3/ServiceLevelObjectiveOrBuilder.java | 94 +- .../monitoring/v3/ServiceMonitoringProto.java | 387 + .../v3/ServiceMonitoringServiceProto.java | 297 + .../com/google/monitoring/v3/ServiceName.java | 0 .../monitoring/v3/ServiceOrBuilder.java | 125 +- .../com/google/monitoring/v3/ServiceTier.java | 83 +- .../java/com/google/monitoring/v3/Snooze.java | 1044 +- .../com/google/monitoring/v3/SnoozeName.java | 0 .../google/monitoring/v3/SnoozeOrBuilder.java | 76 +- .../com/google/monitoring/v3/SnoozeProto.java | 87 + .../monitoring/v3/SnoozeServiceProto.java | 158 + .../com/google/monitoring/v3/SpanContext.java | 305 +- .../monitoring/v3/SpanContextOrBuilder.java | 27 +- .../monitoring/v3/SpanContextProto.java | 53 + .../com/google/monitoring/v3/TextLocator.java | 963 +- .../monitoring/v3/TextLocatorOrBuilder.java | 60 +- .../google/monitoring/v3/TimeInterval.java | 405 +- .../monitoring/v3/TimeIntervalOrBuilder.java | 34 +- .../com/google/monitoring/v3/TimeSeries.java | 843 +- .../google/monitoring/v3/TimeSeriesData.java | 1048 +- .../v3/TimeSeriesDataOrBuilder.java | 54 +- .../monitoring/v3/TimeSeriesDescriptor.java | 1218 +- .../v3/TimeSeriesDescriptorOrBuilder.java | 74 +- .../google/monitoring/v3/TimeSeriesName.java | 0 .../monitoring/v3/TimeSeriesOrBuilder.java | 82 +- .../google/monitoring/v3/TimeSeriesRatio.java | 453 +- .../v3/TimeSeriesRatioOrBuilder.java | 45 +- .../com/google/monitoring/v3/TypedValue.java | 636 +- .../monitoring/v3/TypedValueOrBuilder.java | 56 +- .../v3/UpdateAlertPolicyRequest.java | 485 +- .../v3/UpdateAlertPolicyRequestOrBuilder.java | 46 +- .../monitoring/v3/UpdateGroupRequest.java | 360 +- .../v3/UpdateGroupRequestOrBuilder.java | 29 +- .../v3/UpdateNotificationChannelRequest.java | 492 +- ...teNotificationChannelRequestOrBuilder.java | 46 +- .../UpdateServiceLevelObjectiveRequest.java | 505 +- ...ServiceLevelObjectiveRequestOrBuilder.java | 46 +- .../monitoring/v3/UpdateServiceRequest.java | 451 +- .../v3/UpdateServiceRequestOrBuilder.java | 43 +- .../monitoring/v3/UpdateSnoozeRequest.java | 478 +- .../v3/UpdateSnoozeRequestOrBuilder.java | 43 +- .../v3/UpdateUptimeCheckConfigRequest.java | 492 +- ...dateUptimeCheckConfigRequestOrBuilder.java | 46 +- .../monitoring/v3/UptimeCheckConfig.java | 7600 ++---- .../monitoring/v3/UptimeCheckConfigName.java | 0 .../v3/UptimeCheckConfigOrBuilder.java | 224 +- .../google/monitoring/v3/UptimeCheckIp.java | 427 +- .../monitoring/v3/UptimeCheckIpOrBuilder.java | 42 +- .../monitoring/v3/UptimeCheckRegion.java | 115 +- .../com/google/monitoring/v3/UptimeProto.java | 302 + .../monitoring/v3/UptimeServiceProto.java | 218 + .../v3/VerifyNotificationChannelRequest.java | 425 +- ...fyNotificationChannelRequestOrBuilder.java | 44 +- .../google/monitoring/v3/WindowsBasedSli.java | 1823 +- .../v3/WindowsBasedSliOrBuilder.java | 77 +- .../proto/google/monitoring/v3/alert.proto | 182 +- .../google/monitoring/v3/alert_service.proto | 36 +- .../proto/google/monitoring/v3/common.proto | 0 .../google/monitoring/v3/dropped_labels.proto | 0 .../proto/google/monitoring/v3/group.proto | 0 .../google/monitoring/v3/group_service.proto | 0 .../proto/google/monitoring/v3/metric.proto | 0 .../google/monitoring/v3/metric_service.proto | 0 .../monitoring/v3/mutation_record.proto | 0 .../google/monitoring/v3/notification.proto | 10 +- .../monitoring/v3/notification_service.proto | 74 +- .../google/monitoring/v3/query_service.proto | 0 .../proto/google/monitoring/v3/service.proto | 0 .../monitoring/v3/service_service.proto | 0 .../proto/google/monitoring/v3/snooze.proto | 4 +- .../google/monitoring/v3/snooze_service.proto | 2 +- .../google/monitoring/v3/span_context.proto | 0 .../proto/google/monitoring/v3/uptime.proto | 0 .../google/monitoring/v3/uptime_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateAlertPolicy.java | 0 .../SyncCreateAlertPolicy.java | 0 ...reateAlertPolicyFoldernameAlertpolicy.java | 0 ...lertPolicyOrganizationnameAlertpolicy.java | 0 ...eateAlertPolicyProjectnameAlertpolicy.java | 0 ...yncCreateAlertPolicyStringAlertpolicy.java | 0 .../AsyncDeleteAlertPolicy.java | 0 .../SyncDeleteAlertPolicy.java | 0 .../SyncDeleteAlertPolicyAlertpolicyname.java | 0 .../SyncDeleteAlertPolicyString.java | 0 .../getalertpolicy/AsyncGetAlertPolicy.java | 0 .../getalertpolicy/SyncGetAlertPolicy.java | 0 .../SyncGetAlertPolicyAlertpolicyname.java | 0 .../SyncGetAlertPolicyString.java | 0 .../AsyncListAlertPolicies.java | 0 .../AsyncListAlertPoliciesPaged.java | 0 .../SyncListAlertPolicies.java | 0 .../SyncListAlertPoliciesFoldername.java | 0 ...SyncListAlertPoliciesOrganizationname.java | 0 .../SyncListAlertPoliciesProjectname.java | 0 .../SyncListAlertPoliciesString.java | 0 .../AsyncUpdateAlertPolicy.java | 0 .../SyncUpdateAlertPolicy.java | 0 ...UpdateAlertPolicyFieldmaskAlertpolicy.java | 0 .../getalertpolicy/SyncGetAlertPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../creategroup/AsyncCreateGroup.java | 0 .../creategroup/SyncCreateGroup.java | 0 .../SyncCreateGroupFoldernameGroup.java | 0 .../SyncCreateGroupOrganizationnameGroup.java | 0 .../SyncCreateGroupProjectnameGroup.java | 0 .../SyncCreateGroupStringGroup.java | 0 .../deletegroup/AsyncDeleteGroup.java | 0 .../deletegroup/SyncDeleteGroup.java | 0 .../deletegroup/SyncDeleteGroupGroupname.java | 0 .../deletegroup/SyncDeleteGroupString.java | 0 .../groupservice/getgroup/AsyncGetGroup.java | 0 .../groupservice/getgroup/SyncGetGroup.java | 0 .../getgroup/SyncGetGroupGroupname.java | 0 .../getgroup/SyncGetGroupString.java | 0 .../AsyncListGroupMembers.java | 0 .../AsyncListGroupMembersPaged.java | 0 .../SyncListGroupMembers.java | 0 .../SyncListGroupMembersGroupname.java | 0 .../SyncListGroupMembersString.java | 0 .../listgroups/AsyncListGroups.java | 0 .../listgroups/AsyncListGroupsPaged.java | 0 .../listgroups/SyncListGroups.java | 0 .../listgroups/SyncListGroupsFoldername.java | 0 .../SyncListGroupsOrganizationname.java | 0 .../listgroups/SyncListGroupsProjectname.java | 0 .../listgroups/SyncListGroupsString.java | 0 .../updategroup/AsyncUpdateGroup.java | 0 .../updategroup/SyncUpdateGroup.java | 0 .../updategroup/SyncUpdateGroupGroup.java | 0 .../getgroup/SyncGetGroup.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateMetricDescriptor.java | 0 .../SyncCreateMetricDescriptor.java | 0 ...cDescriptorFoldernameMetricdescriptor.java | 0 ...iptorOrganizationnameMetricdescriptor.java | 0 ...DescriptorProjectnameMetricdescriptor.java | 0 ...etricDescriptorStringMetricdescriptor.java | 0 .../AsyncCreateServiceTimeSeries.java | 0 .../SyncCreateServiceTimeSeries.java | 0 ...ceTimeSeriesProjectnameListtimeseries.java | 0 ...ServiceTimeSeriesStringListtimeseries.java | 0 .../AsyncCreateTimeSeries.java | 0 .../SyncCreateTimeSeries.java | 0 ...teTimeSeriesProjectnameListtimeseries.java | 0 ...cCreateTimeSeriesStringListtimeseries.java | 0 .../AsyncDeleteMetricDescriptor.java | 0 .../SyncDeleteMetricDescriptor.java | 0 ...eMetricDescriptorMetricdescriptorname.java | 0 .../SyncDeleteMetricDescriptorString.java | 0 .../AsyncGetMetricDescriptor.java | 0 .../SyncGetMetricDescriptor.java | 0 ...tMetricDescriptorMetricdescriptorname.java | 0 .../SyncGetMetricDescriptorString.java | 0 .../AsyncGetMonitoredResourceDescriptor.java | 0 .../SyncGetMonitoredResourceDescriptor.java | 0 ...riptorMonitoredresourcedescriptorname.java | 0 ...cGetMonitoredResourceDescriptorString.java | 0 .../AsyncListMetricDescriptors.java | 0 .../AsyncListMetricDescriptorsPaged.java | 0 .../SyncListMetricDescriptors.java | 0 .../SyncListMetricDescriptorsFoldername.java | 0 ...ListMetricDescriptorsOrganizationname.java | 0 .../SyncListMetricDescriptorsProjectname.java | 0 .../SyncListMetricDescriptorsString.java | 0 ...AsyncListMonitoredResourceDescriptors.java | 0 ...ListMonitoredResourceDescriptorsPaged.java | 0 .../SyncListMonitoredResourceDescriptors.java | 0 ...onitoredResourceDescriptorsFoldername.java | 0 ...edResourceDescriptorsOrganizationname.java | 0 ...nitoredResourceDescriptorsProjectname.java | 0 ...istMonitoredResourceDescriptorsString.java | 0 .../listtimeseries/AsyncListTimeSeries.java | 0 .../AsyncListTimeSeriesPaged.java | 0 .../listtimeseries/SyncListTimeSeries.java | 0 ...alListtimeseriesrequesttimeseriesview.java | 0 ...alListtimeseriesrequesttimeseriesview.java | 0 ...alListtimeseriesrequesttimeseriesview.java | 0 ...alListtimeseriesrequesttimeseriesview.java | 0 .../SyncGetMonitoredResourceDescriptor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateNotificationChannel.java | 0 .../SyncCreateNotificationChannel.java | 0 ...nChannelFoldernameNotificationchannel.java | 0 ...elOrganizationnameNotificationchannel.java | 0 ...ChannelProjectnameNotificationchannel.java | 0 ...ationChannelStringNotificationchannel.java | 0 .../AsyncDeleteNotificationChannel.java | 0 .../SyncDeleteNotificationChannel.java | 0 ...ChannelNotificationchannelnameBoolean.java | 0 ...eleteNotificationChannelStringBoolean.java | 0 .../AsyncGetNotificationChannel.java | 0 .../SyncGetNotificationChannel.java | 0 ...icationChannelNotificationchannelname.java | 0 .../SyncGetNotificationChannelString.java | 0 ...AsyncGetNotificationChannelDescriptor.java | 0 .../SyncGetNotificationChannelDescriptor.java | 0 ...ptorNotificationchanneldescriptorname.java | 0 ...etNotificationChannelDescriptorString.java | 0 ...etNotificationChannelVerificationCode.java | 0 ...etNotificationChannelVerificationCode.java | 0 ...rificationCodeNotificationchannelname.java | 0 ...ficationChannelVerificationCodeString.java | 0 ...yncListNotificationChannelDescriptors.java | 0 ...stNotificationChannelDescriptorsPaged.java | 0 ...yncListNotificationChannelDescriptors.java | 0 ...ificationChannelDescriptorsFoldername.java | 0 ...ionChannelDescriptorsOrganizationname.java | 0 ...ficationChannelDescriptorsProjectname.java | 0 ...tNotificationChannelDescriptorsString.java | 0 .../AsyncListNotificationChannels.java | 0 .../AsyncListNotificationChannelsPaged.java | 0 .../SyncListNotificationChannels.java | 0 ...yncListNotificationChannelsFoldername.java | 0 ...tNotificationChannelsOrganizationname.java | 0 ...ncListNotificationChannelsProjectname.java | 0 .../SyncListNotificationChannelsString.java | 0 ...ndNotificationChannelVerificationCode.java | 0 ...ndNotificationChannelVerificationCode.java | 0 ...rificationCodeNotificationchannelname.java | 0 ...ficationChannelVerificationCodeString.java | 0 .../AsyncUpdateNotificationChannel.java | 0 .../SyncUpdateNotificationChannel.java | 0 ...onChannelFieldmaskNotificationchannel.java | 0 .../AsyncVerifyNotificationChannel.java | 0 .../SyncVerifyNotificationChannel.java | 0 ...nChannelNotificationchannelnameString.java | 0 ...VerifyNotificationChannelStringString.java | 0 .../SyncGetNotificationChannelDescriptor.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../querytimeseries/AsyncQueryTimeSeries.java | 0 .../AsyncQueryTimeSeriesPaged.java | 0 .../querytimeseries/SyncQueryTimeSeries.java | 0 .../querytimeseries/SyncQueryTimeSeries.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createservice/AsyncCreateService.java | 0 .../createservice/SyncCreateService.java | 0 .../SyncCreateServiceFoldernameService.java | 0 ...cCreateServiceOrganizationnameService.java | 0 .../SyncCreateServiceProjectnameService.java | 0 .../SyncCreateServiceStringService.java | 0 .../AsyncCreateServiceLevelObjective.java | 0 .../SyncCreateServiceLevelObjective.java | 0 ...ctiveServicenameServicelevelobjective.java | 0 ...lObjectiveStringServicelevelobjective.java | 0 .../deleteservice/AsyncDeleteService.java | 0 .../deleteservice/SyncDeleteService.java | 0 .../SyncDeleteServiceServicename.java | 0 .../SyncDeleteServiceString.java | 0 .../AsyncDeleteServiceLevelObjective.java | 0 .../SyncDeleteServiceLevelObjective.java | 0 ...velObjectiveServicelevelobjectivename.java | 0 ...SyncDeleteServiceLevelObjectiveString.java | 0 .../getservice/AsyncGetService.java | 0 .../getservice/SyncGetService.java | 0 .../getservice/SyncGetServiceServicename.java | 0 .../getservice/SyncGetServiceString.java | 0 .../AsyncGetServiceLevelObjective.java | 0 .../SyncGetServiceLevelObjective.java | 0 ...velObjectiveServicelevelobjectivename.java | 0 .../SyncGetServiceLevelObjectiveString.java | 0 .../AsyncListServiceLevelObjectives.java | 0 .../AsyncListServiceLevelObjectivesPaged.java | 0 .../SyncListServiceLevelObjectives.java | 0 ...ListServiceLevelObjectivesServicename.java | 0 .../SyncListServiceLevelObjectivesString.java | 0 .../listservices/AsyncListServices.java | 0 .../listservices/AsyncListServicesPaged.java | 0 .../listservices/SyncListServices.java | 0 .../SyncListServicesFoldername.java | 0 .../SyncListServicesOrganizationname.java | 0 .../SyncListServicesProjectname.java | 0 .../listservices/SyncListServicesString.java | 0 .../updateservice/AsyncUpdateService.java | 0 .../updateservice/SyncUpdateService.java | 0 .../SyncUpdateServiceService.java | 0 .../AsyncUpdateServiceLevelObjective.java | 0 .../SyncUpdateServiceLevelObjective.java | 0 ...ceLevelObjectiveServicelevelobjective.java | 0 .../createservice/SyncCreateService.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createsnooze/AsyncCreateSnooze.java | 0 .../createsnooze/SyncCreateSnooze.java | 0 .../SyncCreateSnoozeProjectnameSnooze.java | 0 .../SyncCreateSnoozeStringSnooze.java | 0 .../getsnooze/AsyncGetSnooze.java | 0 .../getsnooze/SyncGetSnooze.java | 0 .../getsnooze/SyncGetSnoozeSnoozename.java | 0 .../getsnooze/SyncGetSnoozeString.java | 0 .../listsnoozes/AsyncListSnoozes.java | 0 .../listsnoozes/AsyncListSnoozesPaged.java | 0 .../listsnoozes/SyncListSnoozes.java | 0 .../SyncListSnoozesProjectname.java | 0 .../listsnoozes/SyncListSnoozesString.java | 0 .../updatesnooze/AsyncUpdateSnooze.java | 0 .../updatesnooze/SyncUpdateSnooze.java | 0 .../SyncUpdateSnoozeSnoozeFieldmask.java | 0 .../createsnooze/SyncCreateSnooze.java | 0 .../getalertpolicy/SyncGetAlertPolicy.java | 0 .../getgroup/SyncGetGroup.java | 0 .../SyncGetMonitoredResourceDescriptor.java | 0 .../SyncGetNotificationChannelDescriptor.java | 0 .../querytimeseries/SyncQueryTimeSeries.java | 0 .../createservice/SyncCreateService.java | 0 .../createsnooze/SyncCreateSnooze.java | 0 .../SyncGetUptimeCheckConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateUptimeCheckConfig.java | 0 .../SyncCreateUptimeCheckConfig.java | 0 ...heckConfigFoldernameUptimecheckconfig.java | 0 ...nfigOrganizationnameUptimecheckconfig.java | 0 ...eckConfigProjectnameUptimecheckconfig.java | 0 ...imeCheckConfigStringUptimecheckconfig.java | 0 .../AsyncDeleteUptimeCheckConfig.java | 0 .../SyncDeleteUptimeCheckConfig.java | 0 .../SyncDeleteUptimeCheckConfigString.java | 0 ...ptimeCheckConfigUptimecheckconfigname.java | 0 .../AsyncGetUptimeCheckConfig.java | 0 .../SyncGetUptimeCheckConfig.java | 0 .../SyncGetUptimeCheckConfigString.java | 0 ...ptimeCheckConfigUptimecheckconfigname.java | 0 .../AsyncListUptimeCheckConfigs.java | 0 .../AsyncListUptimeCheckConfigsPaged.java | 0 .../SyncListUptimeCheckConfigs.java | 0 .../SyncListUptimeCheckConfigsFoldername.java | 0 ...istUptimeCheckConfigsOrganizationname.java | 0 ...SyncListUptimeCheckConfigsProjectname.java | 0 .../SyncListUptimeCheckConfigsString.java | 0 .../AsyncListUptimeCheckIps.java | 0 .../AsyncListUptimeCheckIpsPaged.java | 0 .../SyncListUptimeCheckIps.java | 0 .../AsyncUpdateUptimeCheckConfig.java | 0 .../SyncUpdateUptimeCheckConfig.java | 0 ...ateUptimeCheckConfigUptimecheckconfig.java | 0 .../SyncGetUptimeCheckConfig.java | 0 643 files changed, 48679 insertions(+), 65441 deletions(-) delete mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java delete mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java delete mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java delete mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java delete mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java (94%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java (95%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json (98%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java (53%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java (52%) create mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java create mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java (57%) create mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java (53%) create mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java (86%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java (92%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java (59%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java (87%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java (59%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java (50%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java (62%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java (52%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java (60%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java (50%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java (59%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java (61%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java (63%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java (55%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java (66%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java (61%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java (63%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java (50%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java (64%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java (53%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java (64%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java (64%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java (62%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java (61%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java (54%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java (63%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java (62%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java (50%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java (61%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java (60%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java (62%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java (66%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java (63%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java (62%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java (63%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java (70%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java (81%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java (66%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java (78%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java (66%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java (100%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java (62%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java (79%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java (82%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java (65%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java (78%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java (55%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java (75%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java (73%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java (84%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java (86%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java (85%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java (80%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java (80%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java (57%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java (90%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java (83%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java (65%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java (64%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java (60%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java (69%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java (68%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java (76%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java (83%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java (77%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java (85%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java (72%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java (74%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java (75%) create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java create mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java (67%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java (63%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java (71%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java (78%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto (70%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto (87%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto (96%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto (87%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto (97%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto (99%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java (100%) rename {java-monitoring => owl-bot-staging/java-monitoring/v3}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%) diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java deleted file mode 100644 index 87ee959651d3..000000000000 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java +++ /dev/null @@ -1,1402 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages metric descriptors, monitored resource descriptors, and
- * time series data.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/metric_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MetricServiceGrpc { - - private MetricServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.MetricService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", - requestType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod; - if ((getListMonitoredResourceDescriptorsMethod = - MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListMonitoredResourceDescriptorsMethod = - MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) - == null) { - MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod = - getListMonitoredResourceDescriptorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier( - "ListMonitoredResourceDescriptors")) - .build(); - } - } - } - return getListMonitoredResourceDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, - com.google.api.MonitoredResourceDescriptor> - getGetMonitoredResourceDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMonitoredResourceDescriptor", - requestType = com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, - responseType = com.google.api.MonitoredResourceDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, - com.google.api.MonitoredResourceDescriptor> - getGetMonitoredResourceDescriptorMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, - com.google.api.MonitoredResourceDescriptor> - getGetMonitoredResourceDescriptorMethod; - if ((getGetMonitoredResourceDescriptorMethod = - MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getGetMonitoredResourceDescriptorMethod = - MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) - == null) { - MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod = - getGetMonitoredResourceDescriptorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetMonitoredResourceDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MonitoredResourceDescriptor.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier( - "GetMonitoredResourceDescriptor")) - .build(); - } - } - } - return getGetMonitoredResourceDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMetricDescriptorsRequest, - com.google.monitoring.v3.ListMetricDescriptorsResponse> - getListMetricDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMetricDescriptors", - requestType = com.google.monitoring.v3.ListMetricDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListMetricDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMetricDescriptorsRequest, - com.google.monitoring.v3.ListMetricDescriptorsResponse> - getListMetricDescriptorsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListMetricDescriptorsRequest, - com.google.monitoring.v3.ListMetricDescriptorsResponse> - getListMetricDescriptorsMethod; - if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) - == null) { - MetricServiceGrpc.getListMetricDescriptorsMethod = - getListMetricDescriptorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListMetricDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMetricDescriptorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMetricDescriptorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("ListMetricDescriptors")) - .build(); - } - } - } - return getListMetricDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> - getGetMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetricDescriptor", - requestType = com.google.monitoring.v3.GetMetricDescriptorRequest.class, - responseType = com.google.api.MetricDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> - getGetMetricDescriptorMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> - getGetMetricDescriptorMethod; - if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) - == null) { - MetricServiceGrpc.getGetMetricDescriptorMethod = - getGetMetricDescriptorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetMetricDescriptorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MetricDescriptor.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("GetMetricDescriptor")) - .build(); - } - } - } - return getGetMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> - getCreateMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMetricDescriptor", - requestType = com.google.monitoring.v3.CreateMetricDescriptorRequest.class, - responseType = com.google.api.MetricDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> - getCreateMetricDescriptorMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> - getCreateMetricDescriptorMethod; - if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) - == null) { - MetricServiceGrpc.getCreateMetricDescriptorMethod = - getCreateMetricDescriptorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateMetricDescriptorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MetricDescriptor.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("CreateMetricDescriptor")) - .build(); - } - } - } - return getCreateMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> - getDeleteMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMetricDescriptor", - requestType = com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> - getDeleteMetricDescriptorMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> - getDeleteMetricDescriptorMethod; - if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) - == null) { - MetricServiceGrpc.getDeleteMetricDescriptorMethod = - getDeleteMetricDescriptorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteMetricDescriptorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("DeleteMetricDescriptor")) - .build(); - } - } - } - return getDeleteMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListTimeSeriesRequest, - com.google.monitoring.v3.ListTimeSeriesResponse> - getListTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTimeSeries", - requestType = com.google.monitoring.v3.ListTimeSeriesRequest.class, - responseType = com.google.monitoring.v3.ListTimeSeriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListTimeSeriesRequest, - com.google.monitoring.v3.ListTimeSeriesResponse> - getListTimeSeriesMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListTimeSeriesRequest, - com.google.monitoring.v3.ListTimeSeriesResponse> - getListTimeSeriesMethod; - if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { - MetricServiceGrpc.getListTimeSeriesMethod = - getListTimeSeriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("ListTimeSeries")) - .build(); - } - } - } - return getListTimeSeriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTimeSeries", - requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateTimeSeriesMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateTimeSeriesMethod; - if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { - MetricServiceGrpc.getCreateTimeSeriesMethod = - getCreateTimeSeriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateTimeSeriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("CreateTimeSeries")) - .build(); - } - } - } - return getCreateTimeSeriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateServiceTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceTimeSeries", - requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateServiceTimeSeriesMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> - getCreateServiceTimeSeriesMethod; - if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) - == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) - == null) { - MetricServiceGrpc.getCreateServiceTimeSeriesMethod = - getCreateServiceTimeSeriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateServiceTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateTimeSeriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new MetricServiceMethodDescriptorSupplier("CreateServiceTimeSeries")) - .build(); - } - } - } - return getCreateServiceTimeSeriesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static MetricServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceStub(channel, callOptions); - } - }; - return MetricServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MetricServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceBlockingStub(channel, callOptions); - } - }; - return MetricServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static MetricServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceFutureStub(channel, callOptions); - } - }; - return MetricServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMonitoredResourceDescriptorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - default void getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMonitoredResourceDescriptorMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listMetricDescriptors( - com.google.monitoring.v3.ListMetricDescriptorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMetricDescriptorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - default void getMetricDescriptor( - com.google.monitoring.v3.GetMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMetricDescriptorMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - default void createMetricDescriptor( - com.google.monitoring.v3.CreateMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMetricDescriptorMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - default void deleteMetricDescriptor( - com.google.monitoring.v3.DeleteMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMetricDescriptorMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listTimeSeries( - com.google.monitoring.v3.ListTimeSeriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTimeSeriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - default void createTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTimeSeriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - default void createServiceTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServiceTimeSeriesMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service MetricService. - * - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public abstract static class MetricServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return MetricServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service MetricService. - * - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private MetricServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public void getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listMetricDescriptors( - com.google.monitoring.v3.ListMetricDescriptorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public void getMetricDescriptor( - com.google.monitoring.v3.GetMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public void createMetricDescriptor( - com.google.monitoring.v3.CreateMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public void deleteMetricDescriptor( - com.google.monitoring.v3.DeleteMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listTimeSeries( - com.google.monitoring.v3.ListTimeSeriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public void createTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public void createServiceTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service MetricService. - * - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MetricServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMonitoredResourceDescriptorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors( - com.google.monitoring.v3.ListMetricDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMetricDescriptorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.api.MetricDescriptor getMetricDescriptor( - com.google.monitoring.v3.GetMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public com.google.api.MetricDescriptor createMetricDescriptor( - com.google.monitoring.v3.CreateMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public com.google.protobuf.Empty deleteMetricDescriptor( - com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries( - com.google.monitoring.v3.ListTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTimeSeriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public com.google.protobuf.Empty createTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public com.google.protobuf.Empty createServiceTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricService. - * - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private MetricServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.api.MonitoredResourceDescriptor> - getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListMetricDescriptorsResponse> - listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListTimeSeriesResponse> - listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 0; - private static final int METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR = 1; - private static final int METHODID_LIST_METRIC_DESCRIPTORS = 2; - private static final int METHODID_GET_METRIC_DESCRIPTOR = 3; - private static final int METHODID_CREATE_METRIC_DESCRIPTOR = 4; - private static final int METHODID_DELETE_METRIC_DESCRIPTOR = 5; - private static final int METHODID_LIST_TIME_SERIES = 6; - private static final int METHODID_CREATE_TIME_SERIES = 7; - private static final int METHODID_CREATE_SERVICE_TIME_SERIES = 8; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: - serviceImpl.listMonitoredResourceDescriptors( - (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>) - responseObserver); - break; - case METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR: - serviceImpl.getMonitoredResourceDescriptor( - (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_METRIC_DESCRIPTORS: - serviceImpl.listMetricDescriptors( - (com.google.monitoring.v3.ListMetricDescriptorsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_METRIC_DESCRIPTOR: - serviceImpl.getMetricDescriptor( - (com.google.monitoring.v3.GetMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_METRIC_DESCRIPTOR: - serviceImpl.createMetricDescriptor( - (com.google.monitoring.v3.CreateMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_METRIC_DESCRIPTOR: - serviceImpl.deleteMetricDescriptor( - (com.google.monitoring.v3.DeleteMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TIME_SERIES: - serviceImpl.listTimeSeries( - (com.google.monitoring.v3.ListTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_TIME_SERIES: - serviceImpl.createTimeSeries( - (com.google.monitoring.v3.CreateTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_TIME_SERIES: - serviceImpl.createServiceTimeSeries( - (com.google.monitoring.v3.CreateTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>( - service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) - .addMethod( - getGetMonitoredResourceDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, - com.google.api.MonitoredResourceDescriptor>( - service, METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR))) - .addMethod( - getListMetricDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListMetricDescriptorsRequest, - com.google.monitoring.v3.ListMetricDescriptorsResponse>( - service, METHODID_LIST_METRIC_DESCRIPTORS))) - .addMethod( - getGetMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetMetricDescriptorRequest, - com.google.api.MetricDescriptor>(service, METHODID_GET_METRIC_DESCRIPTOR))) - .addMethod( - getCreateMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateMetricDescriptorRequest, - com.google.api.MetricDescriptor>(service, METHODID_CREATE_METRIC_DESCRIPTOR))) - .addMethod( - getDeleteMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteMetricDescriptorRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_METRIC_DESCRIPTOR))) - .addMethod( - getListTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListTimeSeriesRequest, - com.google.monitoring.v3.ListTimeSeriesResponse>( - service, METHODID_LIST_TIME_SERIES))) - .addMethod( - getCreateTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty>( - service, METHODID_CREATE_TIME_SERIES))) - .addMethod( - getCreateServiceTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty>( - service, METHODID_CREATE_SERVICE_TIME_SERIES))) - .build(); - } - - private abstract static class MetricServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MetricServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MetricService"); - } - } - - private static final class MetricServiceFileDescriptorSupplier - extends MetricServiceBaseDescriptorSupplier { - MetricServiceFileDescriptorSupplier() {} - } - - private static final class MetricServiceMethodDescriptorSupplier - extends MetricServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MetricServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MetricServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MetricServiceFileDescriptorSupplier()) - .addMethod(getListMonitoredResourceDescriptorsMethod()) - .addMethod(getGetMonitoredResourceDescriptorMethod()) - .addMethod(getListMetricDescriptorsMethod()) - .addMethod(getGetMetricDescriptorMethod()) - .addMethod(getCreateMetricDescriptorMethod()) - .addMethod(getDeleteMetricDescriptorMethod()) - .addMethod(getListTimeSeriesMethod()) - .addMethod(getCreateTimeSeriesMethod()) - .addMethod(getCreateServiceTimeSeriesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java deleted file mode 100644 index 23ca2e0edfd7..000000000000 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java +++ /dev/null @@ -1,1674 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Notification Channel API provides access to configuration that
- * controls how messages related to incidents are sent.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/notification_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NotificationChannelServiceGrpc { - - private NotificationChannelServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.NotificationChannelService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - getListNotificationChannelDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannelDescriptors", - requestType = com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - getListNotificationChannelDescriptorsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - getListNotificationChannelDescriptorsMethod; - if ((getListNotificationChannelDescriptorsMethod = - NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getListNotificationChannelDescriptorsMethod = - NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) - == null) { - NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod = - getListNotificationChannelDescriptorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListNotificationChannelDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "ListNotificationChannelDescriptors")) - .build(); - } - } - } - return getListNotificationChannelDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, - com.google.monitoring.v3.NotificationChannelDescriptor> - getGetNotificationChannelDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelDescriptor", - requestType = com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, - responseType = com.google.monitoring.v3.NotificationChannelDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, - com.google.monitoring.v3.NotificationChannelDescriptor> - getGetNotificationChannelDescriptorMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, - com.google.monitoring.v3.NotificationChannelDescriptor> - getGetNotificationChannelDescriptorMethod; - if ((getGetNotificationChannelDescriptorMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelDescriptorMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) - == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod = - getGetNotificationChannelDescriptorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetNotificationChannelDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannelDescriptor - .getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "GetNotificationChannelDescriptor")) - .build(); - } - } - } - return getGetNotificationChannelDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelsRequest, - com.google.monitoring.v3.ListNotificationChannelsResponse> - getListNotificationChannelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannels", - requestType = com.google.monitoring.v3.ListNotificationChannelsRequest.class, - responseType = com.google.monitoring.v3.ListNotificationChannelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelsRequest, - com.google.monitoring.v3.ListNotificationChannelsResponse> - getListNotificationChannelsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListNotificationChannelsRequest, - com.google.monitoring.v3.ListNotificationChannelsResponse> - getListNotificationChannelsMethod; - if ((getListNotificationChannelsMethod = - NotificationChannelServiceGrpc.getListNotificationChannelsMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getListNotificationChannelsMethod = - NotificationChannelServiceGrpc.getListNotificationChannelsMethod) - == null) { - NotificationChannelServiceGrpc.getListNotificationChannelsMethod = - getListNotificationChannelsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListNotificationChannels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "ListNotificationChannels")) - .build(); - } - } - } - return getListNotificationChannelsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getGetNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannel", - requestType = com.google.monitoring.v3.GetNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getGetNotificationChannelMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getGetNotificationChannelMethod; - if ((getGetNotificationChannelMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelMethod) - == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelMethod = - getGetNotificationChannelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "GetNotificationChannel")) - .build(); - } - } - } - return getGetNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getCreateNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationChannel", - requestType = com.google.monitoring.v3.CreateNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getCreateNotificationChannelMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getCreateNotificationChannelMethod; - if ((getCreateNotificationChannelMethod = - NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getCreateNotificationChannelMethod = - NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) - == null) { - NotificationChannelServiceGrpc.getCreateNotificationChannelMethod = - getCreateNotificationChannelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateNotificationChannelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "CreateNotificationChannel")) - .build(); - } - } - } - return getCreateNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getUpdateNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationChannel", - requestType = com.google.monitoring.v3.UpdateNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getUpdateNotificationChannelMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getUpdateNotificationChannelMethod; - if ((getUpdateNotificationChannelMethod = - NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getUpdateNotificationChannelMethod = - NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) - == null) { - NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod = - getUpdateNotificationChannelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateNotificationChannelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "UpdateNotificationChannel")) - .build(); - } - } - } - return getUpdateNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> - getDeleteNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationChannel", - requestType = com.google.monitoring.v3.DeleteNotificationChannelRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> - getDeleteNotificationChannelMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> - getDeleteNotificationChannelMethod; - if ((getDeleteNotificationChannelMethod = - NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getDeleteNotificationChannelMethod = - NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) - == null) { - NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod = - getDeleteNotificationChannelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteNotificationChannelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "DeleteNotificationChannel")) - .build(); - } - } - } - return getDeleteNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, - com.google.protobuf.Empty> - getSendNotificationChannelVerificationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendNotificationChannelVerificationCode", - requestType = com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, - com.google.protobuf.Empty> - getSendNotificationChannelVerificationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, - com.google.protobuf.Empty> - getSendNotificationChannelVerificationCodeMethod; - if ((getSendNotificationChannelVerificationCodeMethod = - NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getSendNotificationChannelVerificationCodeMethod = - NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) - == null) { - NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod = - getSendNotificationChannelVerificationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "SendNotificationChannelVerificationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3 - .SendNotificationChannelVerificationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "SendNotificationChannelVerificationCode")) - .build(); - } - } - } - return getSendNotificationChannelVerificationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - getGetNotificationChannelVerificationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelVerificationCode", - requestType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, - responseType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - getGetNotificationChannelVerificationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - getGetNotificationChannelVerificationCodeMethod; - if ((getGetNotificationChannelVerificationCodeMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelVerificationCodeMethod = - NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) - == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod = - getGetNotificationChannelVerificationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetNotificationChannelVerificationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3 - .GetNotificationChannelVerificationCodeResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "GetNotificationChannelVerificationCode")) - .build(); - } - } - } - return getGetNotificationChannelVerificationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.VerifyNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getVerifyNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyNotificationChannel", - requestType = com.google.monitoring.v3.VerifyNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.VerifyNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getVerifyNotificationChannelMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.VerifyNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel> - getVerifyNotificationChannelMethod; - if ((getVerifyNotificationChannelMethod = - NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) - == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getVerifyNotificationChannelMethod = - NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) - == null) { - NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod = - getVerifyNotificationChannelMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "VerifyNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.VerifyNotificationChannelRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor( - new NotificationChannelServiceMethodDescriptorSupplier( - "VerifyNotificationChannel")) - .build(); - } - } - } - return getVerifyNotificationChannelMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static NotificationChannelServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceStub(channel, callOptions); - } - }; - return NotificationChannelServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NotificationChannelServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceBlockingStub(channel, callOptions); - } - }; - return NotificationChannelServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static NotificationChannelServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceFutureStub(channel, callOptions); - } - }; - return NotificationChannelServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - default void listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationChannelDescriptorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - default void getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationChannelDescriptorMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the notification channels that have been created for the project.
-     * 
- */ - default void listNotificationChannels( - com.google.monitoring.v3.ListNotificationChannelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationChannelsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - default void getNotificationChannel( - com.google.monitoring.v3.GetNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationChannelMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * 
- */ - default void createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNotificationChannelMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * 
- */ - default void updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNotificationChannelMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a notification channel.
-     * 
- */ - default void deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNotificationChannelMethod(), responseObserver); - } - - /** - * - * - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - default void sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSendNotificationChannelVerificationCodeMethod(), responseObserver); - } - - /** - * - * - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - default void getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationChannelVerificationCodeMethod(), responseObserver); - } - - /** - * - * - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - default void verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getVerifyNotificationChannelMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service NotificationChannelService. - * - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public abstract static class NotificationChannelServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return NotificationChannelServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service NotificationChannelService. - * - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private NotificationChannelServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public void listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public void getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the notification channels that have been created for the project.
-     * 
- */ - public void listNotificationChannels( - com.google.monitoring.v3.ListNotificationChannelsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public void getNotificationChannel( - com.google.monitoring.v3.GetNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * 
- */ - public void createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * 
- */ - public void updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a notification channel.
-     * 
- */ - public void deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public void sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public void getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public void verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service NotificationChannelService. - * - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private NotificationChannelServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationChannelDescriptorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationChannelDescriptorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the notification channels that have been created for the project.
-     * 
- */ - public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificationChannels( - com.google.monitoring.v3.ListNotificationChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationChannelsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel getNotificationChannel( - com.google.monitoring.v3.GetNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationChannelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationChannelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationChannelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a notification channel.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationChannelMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public com.google.protobuf.Empty sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getSendNotificationChannelVerificationCodeMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse - getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getGetNotificationChannelVerificationCodeMethod(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyNotificationChannelMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * NotificationChannelService. - * - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private NotificationChannelServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> - listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.NotificationChannelDescriptor> - getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists the notification channels that have been created for the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListNotificationChannelsResponse> - listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.NotificationChannel> - getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.NotificationChannel> - createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.NotificationChannel> - updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a notification channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel() - .newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> - getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.NotificationChannel> - verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS = 0; - private static final int METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR = 1; - private static final int METHODID_LIST_NOTIFICATION_CHANNELS = 2; - private static final int METHODID_GET_NOTIFICATION_CHANNEL = 3; - private static final int METHODID_CREATE_NOTIFICATION_CHANNEL = 4; - private static final int METHODID_UPDATE_NOTIFICATION_CHANNEL = 5; - private static final int METHODID_DELETE_NOTIFICATION_CHANNEL = 6; - private static final int METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 7; - private static final int METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 8; - private static final int METHODID_VERIFY_NOTIFICATION_CHANNEL = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS: - serviceImpl.listNotificationChannelDescriptors( - (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>) - responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR: - serviceImpl.getNotificationChannelDescriptor( - (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CHANNELS: - serviceImpl.listNotificationChannels( - (com.google.monitoring.v3.ListNotificationChannelsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListNotificationChannelsResponse>) - responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL: - serviceImpl.getNotificationChannel( - (com.google.monitoring.v3.GetNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CHANNEL: - serviceImpl.createNotificationChannel( - (com.google.monitoring.v3.CreateNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CHANNEL: - serviceImpl.updateNotificationChannel( - (com.google.monitoring.v3.UpdateNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CHANNEL: - serviceImpl.deleteNotificationChannel( - (com.google.monitoring.v3.DeleteNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE: - serviceImpl.sendNotificationChannelVerificationCode( - (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE: - serviceImpl.getNotificationChannelVerificationCode( - (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>) - responseObserver); - break; - case METHODID_VERIFY_NOTIFICATION_CHANNEL: - serviceImpl.verifyNotificationChannel( - (com.google.monitoring.v3.VerifyNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNotificationChannelDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>( - service, METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS))) - .addMethod( - getGetNotificationChannelDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, - com.google.monitoring.v3.NotificationChannelDescriptor>( - service, METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR))) - .addMethod( - getListNotificationChannelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListNotificationChannelsRequest, - com.google.monitoring.v3.ListNotificationChannelsResponse>( - service, METHODID_LIST_NOTIFICATION_CHANNELS))) - .addMethod( - getGetNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_GET_NOTIFICATION_CHANNEL))) - .addMethod( - getCreateNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_CREATE_NOTIFICATION_CHANNEL))) - .addMethod( - getUpdateNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_UPDATE_NOTIFICATION_CHANNEL))) - .addMethod( - getDeleteNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteNotificationChannelRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_NOTIFICATION_CHANNEL))) - .addMethod( - getSendNotificationChannelVerificationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, - com.google.protobuf.Empty>( - service, METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) - .addMethod( - getGetNotificationChannelVerificationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>( - service, METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) - .addMethod( - getVerifyNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.VerifyNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_VERIFY_NOTIFICATION_CHANNEL))) - .build(); - } - - private abstract static class NotificationChannelServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NotificationChannelServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NotificationChannelService"); - } - } - - private static final class NotificationChannelServiceFileDescriptorSupplier - extends NotificationChannelServiceBaseDescriptorSupplier { - NotificationChannelServiceFileDescriptorSupplier() {} - } - - private static final class NotificationChannelServiceMethodDescriptorSupplier - extends NotificationChannelServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NotificationChannelServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NotificationChannelServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NotificationChannelServiceFileDescriptorSupplier()) - .addMethod(getListNotificationChannelDescriptorsMethod()) - .addMethod(getGetNotificationChannelDescriptorMethod()) - .addMethod(getListNotificationChannelsMethod()) - .addMethod(getGetNotificationChannelMethod()) - .addMethod(getCreateNotificationChannelMethod()) - .addMethod(getUpdateNotificationChannelMethod()) - .addMethod(getDeleteNotificationChannelMethod()) - .addMethod(getSendNotificationChannelVerificationCodeMethod()) - .addMethod(getGetNotificationChannelVerificationCodeMethod()) - .addMethod(getVerifyNotificationChannelMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java deleted file mode 100644 index 6c9b6a0a8dc0..000000000000 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java +++ /dev/null @@ -1,1469 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
- * managing and querying aspects of a workspace's services. These include the
- * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
- * of categorized Health Metrics.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/service_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServiceMonitoringServiceGrpc { - - private ServiceMonitoringServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.ServiceMonitoringService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> - getCreateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateService", - requestType = com.google.monitoring.v3.CreateServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> - getCreateServiceMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> - getCreateServiceMethod; - if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) - == null) { - ServiceMonitoringServiceGrpc.getCreateServiceMethod = - getCreateServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier("CreateService")) - .build(); - } - } - } - return getCreateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> - getGetServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetService", - requestType = com.google.monitoring.v3.GetServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> - getGetServiceMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> - getGetServiceMethod; - if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { - ServiceMonitoringServiceGrpc.getGetServiceMethod = - getGetServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier("GetService")) - .build(); - } - } - } - return getGetServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServicesRequest, - com.google.monitoring.v3.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.monitoring.v3.ListServicesRequest.class, - responseType = com.google.monitoring.v3.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServicesRequest, - com.google.monitoring.v3.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServicesRequest, - com.google.monitoring.v3.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { - ServiceMonitoringServiceGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServicesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier("ListServices")) - .build(); - } - } - } - return getListServicesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> - getUpdateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateService", - requestType = com.google.monitoring.v3.UpdateServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> - getUpdateServiceMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> - getUpdateServiceMethod; - if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) - == null) { - ServiceMonitoringServiceGrpc.getUpdateServiceMethod = - getUpdateServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateService")) - .build(); - } - } - } - return getUpdateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> - getDeleteServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteService", - requestType = com.google.monitoring.v3.DeleteServiceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> - getDeleteServiceMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> - getDeleteServiceMethod; - if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) - == null) { - ServiceMonitoringServiceGrpc.getDeleteServiceMethod = - getDeleteServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteServiceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteService")) - .build(); - } - } - } - return getDeleteServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getCreateServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceLevelObjective", - requestType = com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getCreateServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getCreateServiceLevelObjectiveMethod; - if ((getCreateServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) - == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getCreateServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) - == null) { - ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod = - getCreateServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier( - "CreateServiceLevelObjective")) - .build(); - } - } - } - return getCreateServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getGetServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServiceLevelObjective", - requestType = com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getGetServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getGetServiceLevelObjectiveMethod; - if ((getGetServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) - == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getGetServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) - == null) { - ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod = - getGetServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier( - "GetServiceLevelObjective")) - .build(); - } - } - } - return getGetServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServiceLevelObjectivesRequest, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse> - getListServiceLevelObjectivesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServiceLevelObjectives", - requestType = com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, - responseType = com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServiceLevelObjectivesRequest, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse> - getListServiceLevelObjectivesMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListServiceLevelObjectivesRequest, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse> - getListServiceLevelObjectivesMethod; - if ((getListServiceLevelObjectivesMethod = - ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) - == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getListServiceLevelObjectivesMethod = - ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) - == null) { - ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod = - getListServiceLevelObjectivesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListServiceLevelObjectives")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier( - "ListServiceLevelObjectives")) - .build(); - } - } - } - return getListServiceLevelObjectivesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getUpdateServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateServiceLevelObjective", - requestType = com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getUpdateServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective> - getUpdateServiceLevelObjectiveMethod; - if ((getUpdateServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) - == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getUpdateServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) - == null) { - ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod = - getUpdateServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier( - "UpdateServiceLevelObjective")) - .build(); - } - } - } - return getUpdateServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> - getDeleteServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServiceLevelObjective", - requestType = com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> - getDeleteServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> - getDeleteServiceLevelObjectiveMethod; - if ((getDeleteServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) - == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getDeleteServiceLevelObjectiveMethod = - ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) - == null) { - ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod = - getDeleteServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ServiceMonitoringServiceMethodDescriptorSupplier( - "DeleteServiceLevelObjective")) - .build(); - } - } - } - return getDeleteServiceLevelObjectiveMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ServiceMonitoringServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceMonitoringServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceBlockingStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ServiceMonitoringServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceFutureStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Create a `Service`.
-     * 
- */ - default void createService( - com.google.monitoring.v3.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Get the named `Service`.
-     * 
- */ - default void getService( - com.google.monitoring.v3.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * List `Service`s for this workspace.
-     * 
- */ - default void listServices( - com.google.monitoring.v3.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServicesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update this `Service`.
-     * 
- */ - default void updateService( - com.google.monitoring.v3.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Soft delete this `Service`.
-     * 
- */ - default void deleteService( - com.google.monitoring.v3.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - default void createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServiceLevelObjectiveMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - default void getServiceLevelObjective( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServiceLevelObjectiveMethod(), responseObserver); - } - - /** - * - * - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - default void listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServiceLevelObjectivesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - default void updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServiceLevelObjectiveMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - default void deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServiceLevelObjectiveMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ServiceMonitoringService. - * - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public abstract static class ServiceMonitoringServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ServiceMonitoringServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ServiceMonitoringService. - * - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ServiceMonitoringServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a `Service`.
-     * 
- */ - public void createService( - com.google.monitoring.v3.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get the named `Service`.
-     * 
- */ - public void getService( - com.google.monitoring.v3.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List `Service`s for this workspace.
-     * 
- */ - public void listServices( - com.google.monitoring.v3.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update this `Service`.
-     * 
- */ - public void updateService( - com.google.monitoring.v3.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Soft delete this `Service`.
-     * 
- */ - public void deleteService( - com.google.monitoring.v3.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public void createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public void getServiceLevelObjective( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public void listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public void updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public void deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ServiceMonitoringService. - * - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ServiceMonitoringServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service createService( - com.google.monitoring.v3.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get the named `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service getService( - com.google.monitoring.v3.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List `Service`s for this workspace.
-     * 
- */ - public com.google.monitoring.v3.ListServicesResponse listServices( - com.google.monitoring.v3.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update this `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service updateService( - com.google.monitoring.v3.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Soft delete this `Service`.
-     * 
- */ - public com.google.protobuf.Empty deleteService( - com.google.monitoring.v3.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServiceLevelObjectivesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.protobuf.Empty deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceLevelObjectiveMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * ServiceMonitoringService. - * - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ServiceMonitoringServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createService(com.google.monitoring.v3.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get the named `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getService(com.google.monitoring.v3.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List `Service`s for this workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListServicesResponse> - listServices(com.google.monitoring.v3.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update this `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateService(com.google.monitoring.v3.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Soft delete this `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteService(com.google.monitoring.v3.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ServiceLevelObjective> - createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ServiceLevelObjective> - getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListServiceLevelObjectivesResponse> - listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ServiceLevelObjective> - updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SERVICE = 0; - private static final int METHODID_GET_SERVICE = 1; - private static final int METHODID_LIST_SERVICES = 2; - private static final int METHODID_UPDATE_SERVICE = 3; - private static final int METHODID_DELETE_SERVICE = 4; - private static final int METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE = 5; - private static final int METHODID_GET_SERVICE_LEVEL_OBJECTIVE = 6; - private static final int METHODID_LIST_SERVICE_LEVEL_OBJECTIVES = 7; - private static final int METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE = 8; - private static final int METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SERVICE: - serviceImpl.createService( - (com.google.monitoring.v3.CreateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE: - serviceImpl.getService( - (com.google.monitoring.v3.GetServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICES: - serviceImpl.listServices( - (com.google.monitoring.v3.ListServicesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SERVICE: - serviceImpl.updateService( - (com.google.monitoring.v3.UpdateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE: - serviceImpl.deleteService( - (com.google.monitoring.v3.DeleteServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.createServiceLevelObjective( - (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.getServiceLevelObjective( - (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SERVICE_LEVEL_OBJECTIVES: - serviceImpl.listServiceLevelObjectives( - (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.monitoring.v3.ListServiceLevelObjectivesResponse>) - responseObserver); - break; - case METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.updateServiceLevelObjective( - (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.deleteServiceLevelObjective( - (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateServiceRequest, - com.google.monitoring.v3.Service>(service, METHODID_CREATE_SERVICE))) - .addMethod( - getGetServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service>( - service, METHODID_GET_SERVICE))) - .addMethod( - getListServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListServicesRequest, - com.google.monitoring.v3.ListServicesResponse>( - service, METHODID_LIST_SERVICES))) - .addMethod( - getUpdateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateServiceRequest, - com.google.monitoring.v3.Service>(service, METHODID_UPDATE_SERVICE))) - .addMethod( - getDeleteServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_SERVICE))) - .addMethod( - getCreateServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getGetServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_GET_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getListServiceLevelObjectivesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListServiceLevelObjectivesRequest, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse>( - service, METHODID_LIST_SERVICE_LEVEL_OBJECTIVES))) - .addMethod( - getUpdateServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getDeleteServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE))) - .build(); - } - - private abstract static class ServiceMonitoringServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceMonitoringServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ServiceMonitoringService"); - } - } - - private static final class ServiceMonitoringServiceFileDescriptorSupplier - extends ServiceMonitoringServiceBaseDescriptorSupplier { - ServiceMonitoringServiceFileDescriptorSupplier() {} - } - - private static final class ServiceMonitoringServiceMethodDescriptorSupplier - extends ServiceMonitoringServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServiceMonitoringServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceMonitoringServiceFileDescriptorSupplier()) - .addMethod(getCreateServiceMethod()) - .addMethod(getGetServiceMethod()) - .addMethod(getListServicesMethod()) - .addMethod(getUpdateServiceMethod()) - .addMethod(getDeleteServiceMethod()) - .addMethod(getCreateServiceLevelObjectiveMethod()) - .addMethod(getGetServiceLevelObjectiveMethod()) - .addMethod(getListServiceLevelObjectivesMethod()) - .addMethod(getUpdateServiceLevelObjectiveMethod()) - .addMethod(getDeleteServiceLevelObjectiveMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java deleted file mode 100644 index 54bff6bb7cce..000000000000 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java +++ /dev/null @@ -1,1054 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The UptimeCheckService API is used to manage (list, create, delete, edit)
- * Uptime check configurations in the Cloud Monitoring product. An Uptime
- * check is a piece of configuration that determines which resources and
- * services to monitor for availability. These configurations can also be
- * configured interactively by navigating to the [Cloud console]
- * (https://console.cloud.google.com), selecting the appropriate project,
- * clicking on "Monitoring" on the left-hand side to navigate to Cloud
- * Monitoring, and then clicking on "Uptime".
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/uptime_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UptimeCheckServiceGrpc { - - private UptimeCheckServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.UptimeCheckService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckConfigsRequest, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse> - getListUptimeCheckConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckConfigs", - requestType = com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, - responseType = com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckConfigsRequest, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse> - getListUptimeCheckConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckConfigsRequest, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse> - getListUptimeCheckConfigsMethod; - if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getListUptimeCheckConfigsMethod = - UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) - == null) { - UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod = - getListUptimeCheckConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUptimeCheckConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckConfigs")) - .build(); - } - } - } - return getListUptimeCheckConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getGetUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUptimeCheckConfig", - requestType = com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getGetUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.GetUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getGetUptimeCheckConfigMethod; - if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) - == null) { - UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod = - getGetUptimeCheckConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetUptimeCheckConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("GetUptimeCheckConfig")) - .build(); - } - } - } - return getGetUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getCreateUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateUptimeCheckConfig", - requestType = com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getCreateUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.CreateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getCreateUptimeCheckConfigMethod; - if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getCreateUptimeCheckConfigMethod = - UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) - == null) { - UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod = - getCreateUptimeCheckConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("CreateUptimeCheckConfig")) - .build(); - } - } - } - return getCreateUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getUpdateUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateUptimeCheckConfig", - requestType = com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getUpdateUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig> - getUpdateUptimeCheckConfigMethod; - if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getUpdateUptimeCheckConfigMethod = - UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) - == null) { - UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod = - getUpdateUptimeCheckConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("UpdateUptimeCheckConfig")) - .build(); - } - } - } - return getUpdateUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> - getDeleteUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteUptimeCheckConfig", - requestType = com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> - getDeleteUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> - getDeleteUptimeCheckConfigMethod; - if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getDeleteUptimeCheckConfigMethod = - UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) - == null) { - UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod = - getDeleteUptimeCheckConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("DeleteUptimeCheckConfig")) - .build(); - } - } - } - return getDeleteUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckIpsRequest, - com.google.monitoring.v3.ListUptimeCheckIpsResponse> - getListUptimeCheckIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckIps", - requestType = com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, - responseType = com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckIpsRequest, - com.google.monitoring.v3.ListUptimeCheckIpsResponse> - getListUptimeCheckIpsMethod() { - io.grpc.MethodDescriptor< - com.google.monitoring.v3.ListUptimeCheckIpsRequest, - com.google.monitoring.v3.ListUptimeCheckIpsResponse> - getListUptimeCheckIpsMethod; - if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) - == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) - == null) { - UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod = - getListUptimeCheckIpsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckIpsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckIpsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckIps")) - .build(); - } - } - } - return getListUptimeCheckIpsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static UptimeCheckServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceStub(channel, callOptions); - } - }; - return UptimeCheckServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UptimeCheckServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceBlockingStub(channel, callOptions); - } - }; - return UptimeCheckServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static UptimeCheckServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceFutureStub(channel, callOptions); - } - }; - return UptimeCheckServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - default void listUptimeCheckConfigs( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUptimeCheckConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - default void getUptimeCheckConfig( - com.google.monitoring.v3.GetUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetUptimeCheckConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - default void createUptimeCheckConfig( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateUptimeCheckConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - default void updateUptimeCheckConfig( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateUptimeCheckConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - default void deleteUptimeCheckConfig( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUptimeCheckConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - default void listUptimeCheckIps( - com.google.monitoring.v3.ListUptimeCheckIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUptimeCheckIpsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service UptimeCheckService. - * - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public abstract static class UptimeCheckServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return UptimeCheckServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service UptimeCheckService. - * - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private UptimeCheckServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public void listUptimeCheckConfigs( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public void getUptimeCheckConfig( - com.google.monitoring.v3.GetUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public void createUptimeCheckConfig( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public void updateUptimeCheckConfig( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public void deleteUptimeCheckConfig( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public void listUptimeCheckIps( - com.google.monitoring.v3.ListUptimeCheckIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service UptimeCheckService. - * - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private UptimeCheckServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckConfigs( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUptimeCheckConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig( - com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public com.google.protobuf.Empty deleteUptimeCheckConfig( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps( - com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUptimeCheckIpsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service UptimeCheckService. - * - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private UptimeCheckServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListUptimeCheckConfigsResponse> - listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.UptimeCheckConfig> - getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.UptimeCheckConfig> - createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.UptimeCheckConfig> - updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListUptimeCheckIpsResponse> - listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_UPTIME_CHECK_CONFIGS = 0; - private static final int METHODID_GET_UPTIME_CHECK_CONFIG = 1; - private static final int METHODID_CREATE_UPTIME_CHECK_CONFIG = 2; - private static final int METHODID_UPDATE_UPTIME_CHECK_CONFIG = 3; - private static final int METHODID_DELETE_UPTIME_CHECK_CONFIG = 4; - private static final int METHODID_LIST_UPTIME_CHECK_IPS = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_UPTIME_CHECK_CONFIGS: - serviceImpl.listUptimeCheckConfigs( - (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_UPTIME_CHECK_CONFIG: - serviceImpl.getUptimeCheckConfig( - (com.google.monitoring.v3.GetUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_UPTIME_CHECK_CONFIG: - serviceImpl.createUptimeCheckConfig( - (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_UPTIME_CHECK_CONFIG: - serviceImpl.updateUptimeCheckConfig( - (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_UPTIME_CHECK_CONFIG: - serviceImpl.deleteUptimeCheckConfig( - (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_UPTIME_CHECK_IPS: - serviceImpl.listUptimeCheckIps( - (com.google.monitoring.v3.ListUptimeCheckIpsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListUptimeCheckConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListUptimeCheckConfigsRequest, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse>( - service, METHODID_LIST_UPTIME_CHECK_CONFIGS))) - .addMethod( - getGetUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_GET_UPTIME_CHECK_CONFIG))) - .addMethod( - getCreateUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_CREATE_UPTIME_CHECK_CONFIG))) - .addMethod( - getUpdateUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_UPDATE_UPTIME_CHECK_CONFIG))) - .addMethod( - getDeleteUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_UPTIME_CHECK_CONFIG))) - .addMethod( - getListUptimeCheckIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListUptimeCheckIpsRequest, - com.google.monitoring.v3.ListUptimeCheckIpsResponse>( - service, METHODID_LIST_UPTIME_CHECK_IPS))) - .build(); - } - - private abstract static class UptimeCheckServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UptimeCheckServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("UptimeCheckService"); - } - } - - private static final class UptimeCheckServiceFileDescriptorSupplier - extends UptimeCheckServiceBaseDescriptorSupplier { - UptimeCheckServiceFileDescriptorSupplier() {} - } - - private static final class UptimeCheckServiceMethodDescriptorSupplier - extends UptimeCheckServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - UptimeCheckServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (UptimeCheckServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UptimeCheckServiceFileDescriptorSupplier()) - .addMethod(getListUptimeCheckConfigsMethod()) - .addMethod(getGetUptimeCheckConfigMethod()) - .addMethod(getCreateUptimeCheckConfigMethod()) - .addMethod(getUpdateUptimeCheckConfigMethod()) - .addMethod(getDeleteUptimeCheckConfigMethod()) - .addMethod(getListUptimeCheckIpsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java deleted file mode 100644 index 57c6826a14f7..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert.proto - -package com.google.monitoring.v3; - -public final class AlertProto { - private AlertProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n google/monitoring/v3/alert.proto\022\024goog" - + "le.monitoring.v3\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032!go" - + "ogle/monitoring/v3/common.proto\032*google/" - + "monitoring/v3/mutation_record.proto\032\036goo" - + "gle/protobuf/duration.proto\032\036google/prot" - + "obuf/wrappers.proto\032\027google/rpc/status.p" - + "roto\"\336\032\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" - + "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" - + "/.google.monitoring.v3.AlertPolicy.Docum" - + "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" - + "onitoring.v3.AlertPolicy.UserLabelsEntry" - + "\022?\n\nconditions\030\014 \003(\0132+.google.monitoring" - + ".v3.AlertPolicy.Condition\022I\n\010combiner\030\006 " - + "\001(\01627.google.monitoring.v3.AlertPolicy.C" - + "onditionCombinerType\022+\n\007enabled\030\021 \001(\0132\032." - + "google.protobuf.BoolValue\022$\n\010validity\030\022 " - + "\001(\0132\022.google.rpc.Status\022\035\n\025notification_" - + "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132" - + "$.google.monitoring.v3.MutationRecord\022=\n" - + "\017mutation_record\030\013 \001(\0132$.google.monitori" - + "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025" - + " \001(\0132/.google.monitoring.v3.AlertPolicy." - + "AlertStrategy\0323\n\rDocumentation\022\017\n\007conten" - + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\032\321\020\n\tCondition" - + "\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 \001(\t\022Z\n\023" - + "condition_threshold\030\001 \001(\0132;.google.monit" - + "oring.v3.AlertPolicy.Condition.MetricThr" - + "esholdH\000\022U\n\020condition_absent\030\002 \001(\01329.goo" - + "gle.monitoring.v3.AlertPolicy.Condition." - + "MetricAbsenceH\000\022U\n\025condition_matched_log" - + "\030\024 \001(\01324.google.monitoring.v3.AlertPolic" - + "y.Condition.LogMatchH\000\022{\n#condition_moni" - + "toring_query_language\030\023 \001(\0132L.google.mon" - + "itoring.v3.AlertPolicy.Condition.Monitor" - + "ingQueryLanguageConditionH\000\0325\n\007Trigger\022\017" - + "\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004ty" - + "pe\032\353\003\n\017MetricThreshold\022\024\n\006filter\030\002 \001(\tB\004" - + "\342A\001\002\0227\n\014aggregations\030\010 \003(\0132!.google.moni" - + "toring.v3.Aggregation\022\032\n\022denominator_fil" - + "ter\030\t \001(\t\022C\n\030denominator_aggregations\030\n " - + "\003(\0132!.google.monitoring.v3.Aggregation\0228" - + "\n\ncomparison\030\004 \001(\0162$.google.monitoring.v" - + "3.ComparisonType\022\027\n\017threshold_value\030\005 \001(" - + "\001\022+\n\010duration\030\006 \001(\0132\031.google.protobuf.Du" - + "ration\022D\n\007trigger\030\007 \001(\01323.google.monitor" - + "ing.v3.AlertPolicy.Condition.Trigger\022b\n\027" - + "evaluation_missing_data\030\013 \001(\0162A.google.m" - + "onitoring.v3.AlertPolicy.Condition.Evalu" - + "ationMissingData\032\321\001\n\rMetricAbsence\022\024\n\006fi" - + "lter\030\001 \001(\tB\004\342A\001\002\0227\n\014aggregations\030\005 \003(\0132!" - + ".google.monitoring.v3.Aggregation\022+\n\010dur" - + "ation\030\002 \001(\0132\031.google.protobuf.Duration\022D" - + "\n\007trigger\030\003 \001(\01323.google.monitoring.v3.A" - + "lertPolicy.Condition.Trigger\032\275\001\n\010LogMatc" - + "h\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022c\n\020label_extract" - + "ors\030\002 \003(\0132I.google.monitoring.v3.AlertPo" - + "licy.Condition.LogMatch.LabelExtractorsE" - + "ntry\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\210\002\n MonitoringQuery" - + "LanguageCondition\022\r\n\005query\030\001 \001(\t\022+\n\010dura" - + "tion\030\002 \001(\0132\031.google.protobuf.Duration\022D\n" - + "\007trigger\030\003 \001(\01323.google.monitoring.v3.Al" - + "ertPolicy.Condition.Trigger\022b\n\027evaluatio" - + "n_missing_data\030\004 \001(\0162A.google.monitoring" - + ".v3.AlertPolicy.Condition.EvaluationMiss" - + "ingData\"\255\001\n\025EvaluationMissingData\022\'\n#EVA" - + "LUATION_MISSING_DATA_UNSPECIFIED\020\000\022$\n EV" - + "ALUATION_MISSING_DATA_INACTIVE\020\001\022\"\n\036EVAL" - + "UATION_MISSING_DATA_ACTIVE\020\002\022!\n\035EVALUATI" - + "ON_MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002\n.monitori" - + "ng.googleapis.com/AlertPolicyCondition\022F" - + "projects/{project}/alertPolicies/{alert_" - + "policy}/conditions/{condition}\022Porganiza" - + "tions/{organization}/alertPolicies/{aler" - + "t_policy}/conditions/{condition}\022Dfolder" - + "s/{folder}/alertPolicies/{alert_policy}/" - + "conditions/{condition}\022\001*B\013\n\tcondition\032\352" - + "\001\n\rAlertStrategy\022f\n\027notification_rate_li" - + "mit\030\001 \001(\0132E.google.monitoring.v3.AlertPo" - + "licy.AlertStrategy.NotificationRateLimit" - + "\022-\n\nauto_close\030\003 \001(\0132\031.google.protobuf.D" - + "uration\032B\n\025NotificationRateLimit\022)\n\006peri" - + "od\030\001 \001(\0132\031.google.protobuf.Duration\0321\n\017U" - + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"a\n\025ConditionCombinerType\022\027\n\023COMBI" - + "NE_UNSPECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND" - + "_WITH_MATCHING_RESOURCE\020\003:\311\001\352A\305\001\n%monito" - + "ring.googleapis.com/AlertPolicy\022/project" - + "s/{project}/alertPolicies/{alert_policy}" - + "\0229organizations/{organization}/alertPoli" - + "cies/{alert_policy}\022-folders/{folder}/al" - + "ertPolicies/{alert_policy}\022\001*B\305\001\n\030com.go" - + "ogle.monitoring.v3B\nAlertProtoP\001ZAcloud." - + "google.com/go/monitoring/apiv3/v2/monito" - + "ringpb;monitoringpb\252\002\032Google.Cloud.Monit" - + "oring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035" - + "Google::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.MutationRecordProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_AlertPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Documentation", - "UserLabels", - "Conditions", - "Combiner", - "Enabled", - "Validity", - "NotificationChannels", - "CreationRecord", - "MutationRecord", - "AlertStrategy", - }); - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor, - new java.lang.String[] { - "Content", "MimeType", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "ConditionThreshold", - "ConditionAbsent", - "ConditionMatchedLog", - "ConditionMonitoringQueryLanguage", - "Condition", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor, - new java.lang.String[] { - "Count", "Percent", "Type", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor - .getNestedTypes() - .get(1); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor, - new java.lang.String[] { - "Filter", - "Aggregations", - "DenominatorFilter", - "DenominatorAggregations", - "Comparison", - "ThresholdValue", - "Duration", - "Trigger", - "EvaluationMissingData", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor - .getNestedTypes() - .get(2); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor, - new java.lang.String[] { - "Filter", "Aggregations", "Duration", "Trigger", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor - .getNestedTypes() - .get(3); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor, - new java.lang.String[] { - "Filter", "LabelExtractors", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor - .getNestedTypes() - .get(4); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor, - new java.lang.String[] { - "Query", "Duration", "Trigger", "EvaluationMissingData", - }); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor, - new java.lang.String[] { - "NotificationRateLimit", "AutoClose", - }); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor, - new java.lang.String[] { - "Period", - }); - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.MutationRecordProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java deleted file mode 100644 index 4d8f495c497f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public final class AlertServiceProto { - private AlertServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n(google/monitoring/v3/alert_service.pro" - + "to\022\024google.monitoring.v3\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032 google/monitoring/v" - + "3/alert.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\"\227\001\n" - + "\030CreateAlertPolicyRequest\022<\n\004name\030\003 \001(\tB" - + ".\342A\001\002\372A\'\022%monitoring.googleapis.com/Aler" - + "tPolicy\022=\n\014alert_policy\030\002 \001(\0132!.google.m" - + "onitoring.v3.AlertPolicyB\004\342A\001\002\"U\n\025GetAle" - + "rtPolicyRequest\022<\n\004name\030\003 \001(\tB.\342A\001\002\372A\'\n%" - + "monitoring.googleapis.com/AlertPolicy\"\241\001" - + "\n\030ListAlertPoliciesRequest\022<\n\004name\030\004 \001(\t" - + "B.\342A\001\002\372A\'\022%monitoring.googleapis.com/Ale" - + "rtPolicy\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001" - + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"\203\001\n\031ListAlertPoliciesResponse\0229\n\016alert" - + "_policies\030\003 \003(\0132!.google.monitoring.v3.A" - + "lertPolicy\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" - + "otal_size\030\004 \001(\005\"\212\001\n\030UpdateAlertPolicyReq" - + "uest\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\022=\n\014alert_policy\030\003 \001(\0132!.go" - + "ogle.monitoring.v3.AlertPolicyB\004\342A\001\002\"X\n\030" - + "DeleteAlertPolicyRequest\022<\n\004name\030\003 \001(\tB." - + "\342A\001\002\372A\'\n%monitoring.googleapis.com/Alert" - + "Policy2\236\010\n\022AlertPolicyService\022\250\001\n\021ListAl" - + "ertPolicies\022..google.monitoring.v3.ListA" - + "lertPoliciesRequest\032/.google.monitoring." - + "v3.ListAlertPoliciesResponse\"2\332A\004name\202\323\344" - + "\223\002%\022#/v3/{name=projects/*}/alertPolicies" - + "\022\226\001\n\016GetAlertPolicy\022+.google.monitoring." - + "v3.GetAlertPolicyRequest\032!.google.monito" - + "ring.v3.AlertPolicy\"4\332A\004name\202\323\344\223\002\'\022%/v3/" - + "{name=projects/*/alertPolicies/*}\022\265\001\n\021Cr" - + "eateAlertPolicy\022..google.monitoring.v3.C" - + "reateAlertPolicyRequest\032!.google.monitor" - + "ing.v3.AlertPolicy\"M\332A\021name,alert_policy" - + "\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolic" - + "ies:\014alert_policy\022\221\001\n\021DeleteAlertPolicy\022" - + "..google.monitoring.v3.DeleteAlertPolicy" - + "Request\032\026.google.protobuf.Empty\"4\332A\004name" - + "\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolici" - + "es/*}\022\313\001\n\021UpdateAlertPolicy\022..google.mon" - + "itoring.v3.UpdateAlertPolicyRequest\032!.go" - + "ogle.monitoring.v3.AlertPolicy\"c\332A\030updat" - + "e_mask,alert_policy\202\323\344\223\002B22/v3/{alert_po" - + "licy.name=projects/*/alertPolicies/*}:\014a" - + "lert_policy\032\251\001\312A\031monitoring.googleapis.c" - + "om\322A\211\001https://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/monitoring,https://www.googleapis.c" - + "om/auth/monitoring.readB\314\001\n\030com.google.m" - + "onitoring.v3B\021AlertServiceProtoP\001ZAcloud" - + ".google.com/go/monitoring/apiv3/v2/monit" - + "oringpb;monitoringpb\252\002\032Google.Cloud.Moni" - + "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002" - + "\035Google::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.AlertProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor, - new java.lang.String[] { - "Name", "AlertPolicy", - }); - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "OrderBy", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor, - new java.lang.String[] { - "AlertPolicies", "NextPageToken", "TotalSize", - }); - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "AlertPolicy", - }); - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.AlertProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java deleted file mode 100644 index c4f4a3bbde3f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/common.proto - -package com.google.monitoring.v3; - -public final class CommonProto { - private CommonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TypedValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeInterval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Aggregation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/common.proto\022\024goo" - + "gle.monitoring.v3\032\035google/api/distributi" - + "on.proto\032\036google/protobuf/duration.proto" - + "\032\037google/protobuf/timestamp.proto\"\252\001\n\nTy" - + "pedValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_" - + "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n" - + "\014string_value\030\004 \001(\tH\000\0226\n\022distribution_va" - + "lue\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n" - + "\005value\"l\n\014TimeInterval\022,\n\010end_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022.\n\nstart_ti" - + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\"\255\007\n" - + "\013Aggregation\0223\n\020alignment_period\030\001 \001(\0132\031" - + ".google.protobuf.Duration\022E\n\022per_series_" - + "aligner\030\002 \001(\0162).google.monitoring.v3.Agg" - + "regation.Aligner\022G\n\024cross_series_reducer" - + "\030\004 \001(\0162).google.monitoring.v3.Aggregatio" - + "n.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007A" - + "ligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001\022" - + "\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022\024" - + "\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\tA" - + "LIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COUN" - + "T\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n\020" - + "ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE\020" - + "\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PERC" - + "ENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n\023" - + "ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTIL" - + "E_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Red" - + "ucer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022\016" - + "\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUCE" - + "_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COUN" - + "T\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_COU" - + "NT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n\024" - + "REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCENT" - + "ILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024RE" - + "DUCE_PERCENTILE_05\020\014*\236\001\n\016ComparisonType\022" - + "\032\n\026COMPARISON_UNSPECIFIED\020\000\022\021\n\rCOMPARISO" - + "N_GT\020\001\022\021\n\rCOMPARISON_GE\020\002\022\021\n\rCOMPARISON_" - + "LT\020\003\022\021\n\rCOMPARISON_LE\020\004\022\021\n\rCOMPARISON_EQ" - + "\020\005\022\021\n\rCOMPARISON_NE\020\006*a\n\013ServiceTier\022\034\n\030" - + "SERVICE_TIER_UNSPECIFIED\020\000\022\026\n\022SERVICE_TI" - + "ER_BASIC\020\001\022\030\n\024SERVICE_TIER_PREMIUM\020\002\032\002\030\001" - + "B\306\001\n\030com.google.monitoring.v3B\013CommonPro" - + "toP\001ZAcloud.google.com/go/monitoring/api" - + "v3/v2/monitoringpb;monitoringpb\252\002\032Google" - + ".Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Moni" - + "toring\\V3\352\002\035Google::Cloud::Monitoring::V" - + "3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.DistributionProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_TypedValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TypedValue_descriptor, - new java.lang.String[] { - "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", - }); - internal_static_google_monitoring_v3_TimeInterval_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeInterval_descriptor, - new java.lang.String[] { - "EndTime", "StartTime", - }); - internal_static_google_monitoring_v3_Aggregation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Aggregation_descriptor, - new java.lang.String[] { - "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", - }); - com.google.api.DistributionProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index b476d684a25f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface CreateUptimeCheckConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The
-   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
-   * to create the Uptime check. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The
-   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
-   * to create the Uptime check. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the uptimeCheckConfig field is set. - */ - boolean hasUptimeCheckConfig(); - /** - * - * - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The uptimeCheckConfig. - */ - com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); - /** - * - * - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java deleted file mode 100644 index 87afc875b428..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public interface DeleteAlertPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteAlertPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The alerting policy to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   *
-   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The alerting policy to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   *
-   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java deleted file mode 100644 index 898ea9de63d1..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public interface DeleteMetricDescriptorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteMetricDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The metric descriptor on which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
-   *
-   * An example of `[METRIC_ID]` is:
-   * `"custom.googleapis.com/my_test_metric"`.
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The metric descriptor on which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
-   *
-   * An example of `[METRIC_ID]` is:
-   * `"custom.googleapis.com/my_test_metric"`.
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java deleted file mode 100644 index 5908cb8f6d1f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface DeleteServiceLevelObjectiveRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java deleted file mode 100644 index 30b7f804f354..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface DeleteServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the `Service` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the `Service` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index aff26e2737db..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface DeleteUptimeCheckConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Uptime check configuration to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The Uptime check configuration to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java deleted file mode 100644 index 20a02262347d..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/dropped_labels.proto - -package com.google.monitoring.v3; - -public final class DroppedLabelsProto { - private DroppedLabelsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DroppedLabels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/dropped_labels.pr" - + "oto\022\024google.monitoring.v3\"|\n\rDroppedLabe" - + "ls\022=\n\005label\030\001 \003(\0132..google.monitoring.v3" - + ".DroppedLabels.LabelEntry\032,\n\nLabelEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\315\001\n\030com." - + "google.monitoring.v3B\022DroppedLabelsProto" - + "P\001ZAcloud.google.com/go/monitoring/apiv3" - + "/v2/monitoringpb;monitoringpb\252\002\032Google.C" - + "loud.Monitoring.V3\312\002\032Google\\Cloud\\Monito" - + "ring\\V3\352\002\035Google::Cloud::Monitoring::V3b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_monitoring_v3_DroppedLabels_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DroppedLabels_descriptor, - new java.lang.String[] { - "Label", - }); - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor = - internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java deleted file mode 100644 index f51e30b4b215..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public interface GetAlertPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetAlertPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The alerting policy to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The alerting policy to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java deleted file mode 100644 index 159e2af6d802..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group_service.proto - -package com.google.monitoring.v3; - -public interface GetGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The group to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The group to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java deleted file mode 100644 index e4784eaf3607..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public interface GetMonitoredResourceDescriptorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The monitored resource descriptor to get.  The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
-   *
-   * The `[RESOURCE_TYPE]` is a predefined type, such as
-   * `cloudsql_database`.
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The monitored resource descriptor to get.  The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
-   *
-   * The `[RESOURCE_TYPE]` is a predefined type, such as
-   * `cloudsql_database`.
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java deleted file mode 100644 index be7a391d27b1..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface GetNotificationChannelDescriptorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The channel type for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The channel type for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java deleted file mode 100644 index 0acb8d030053..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface GetNotificationChannelRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The channel for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The channel for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
-   * 
- * - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java deleted file mode 100644 index 539a4adb03d2..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface GetServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the `Service`. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the `Service`. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java deleted file mode 100644 index 910d956817fc..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze_service.proto - -package com.google.monitoring.v3; - -public interface GetSnoozeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetSnoozeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the `Snooze` to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The ID of the `Snooze` to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index fed181cbf5d4..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface GetUptimeCheckConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Uptime check configuration to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The Uptime check configuration to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java deleted file mode 100644 index cb42c9f971e1..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group.proto - -package com.google.monitoring.v3; - -public final class GroupProto { - private GroupProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Group_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Group_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n google/monitoring/v3/group.proto\022\024goog" - + "le.monitoring.v3\032\031google/api/resource.pr" - + "oto\"\200\002\n\005Group\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" - + "ame\030\002 \001(\t\022\023\n\013parent_name\030\003 \001(\t\022\016\n\006filter" - + "\030\005 \001(\t\022\022\n\nis_cluster\030\006 \001(\010:\231\001\352A\225\001\n\037monit" - + "oring.googleapis.com/Group\022!projects/{pr" - + "oject}/groups/{group}\022+organizations/{or" - + "ganization}/groups/{group}\022\037folders/{fol" - + "der}/groups/{group}\022\001*B\305\001\n\030com.google.mo" - + "nitoring.v3B\nGroupProtoP\001ZAcloud.google." - + "com/go/monitoring/apiv3/v2/monitoringpb;" - + "monitoringpb\252\002\032Google.Cloud.Monitoring.V" - + "3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google:" - + ":Cloud::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Group_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Group_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Group_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "ParentName", "Filter", "IsCluster", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java deleted file mode 100644 index 7c686b22f9ed..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group_service.proto - -package com.google.monitoring.v3; - -public final class GroupServiceProto { - private GroupServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n(google/monitoring/v3/group_service.pro" - + "to\022\024google.monitoring.v3\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032#google" - + "/api/monitored_resource.proto\032\031google/ap" - + "i/resource.proto\032!google/monitoring/v3/c" - + "ommon.proto\032 google/monitoring/v3/group." - + "proto\032\033google/protobuf/empty.proto\"\311\002\n\021L" - + "istGroupsRequest\0226\n\004name\030\007 \001(\tB(\342A\001\002\372A!\022" - + "\037monitoring.googleapis.com/Group\022A\n\021chil" - + "dren_of_group\030\002 \001(\tB$\372A!\n\037monitoring.goo" - + "gleapis.com/GroupH\000\022B\n\022ancestors_of_grou" - + "p\030\003 \001(\tB$\372A!\n\037monitoring.googleapis.com/" - + "GroupH\000\022D\n\024descendants_of_group\030\004 \001(\tB$\372" - + "A!\n\037monitoring.googleapis.com/GroupH\000\022\021\n" - + "\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\tB\010\n\006" - + "filter\"Y\n\022ListGroupsResponse\022*\n\005group\030\001 " - + "\003(\0132\033.google.monitoring.v3.Group\022\027\n\017next" - + "_page_token\030\002 \001(\t\"I\n\017GetGroupRequest\0226\n\004" - + "name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.googleap" - + "is.com/Group\"\225\001\n\022CreateGroupRequest\0226\n\004n" - + "ame\030\004 \001(\tB(\342A\001\002\372A!\022\037monitoring.googleapi" - + "s.com/Group\0220\n\005group\030\002 \001(\0132\033.google.moni" - + "toring.v3.GroupB\004\342A\001\002\022\025\n\rvalidate_only\030\003" - + " \001(\010\"]\n\022UpdateGroupRequest\0220\n\005group\030\002 \001(" - + "\0132\033.google.monitoring.v3.GroupB\004\342A\001\002\022\025\n\r" - + "validate_only\030\003 \001(\010\"_\n\022DeleteGroupReques" - + "t\0226\n\004name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.goo" - + "gleapis.com/Group\022\021\n\trecursive\030\004 \001(\010\"\276\001\n" - + "\027ListGroupMembersRequest\0226\n\004name\030\007 \001(\tB(" - + "\342A\001\002\372A!\n\037monitoring.googleapis.com/Group" - + "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" - + "\016\n\006filter\030\005 \001(\t\0224\n\010interval\030\006 \001(\0132\".goog" - + "le.monitoring.v3.TimeInterval\"w\n\030ListGro" - + "upMembersResponse\022.\n\007members\030\001 \003(\0132\035.goo" - + "gle.api.MonitoredResource\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\230\010\n\014Group" - + "Service\022\214\001\n\nListGroups\022\'.google.monitori" - + "ng.v3.ListGroupsRequest\032(.google.monitor" - + "ing.v3.ListGroupsResponse\"+\332A\004name\202\323\344\223\002\036" - + "\022\034/v3/{name=projects/*}/groups\022}\n\010GetGro" - + "up\022%.google.monitoring.v3.GetGroupReques" - + "t\032\033.google.monitoring.v3.Group\"-\332A\004name\202" - + "\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\022\216\001" - + "\n\013CreateGroup\022(.google.monitoring.v3.Cre" - + "ateGroupRequest\032\033.google.monitoring.v3.G" - + "roup\"8\332A\nname,group\202\323\344\223\002%\"\034/v3/{name=pro" - + "jects/*}/groups:\005group\022\221\001\n\013UpdateGroup\022(" - + ".google.monitoring.v3.UpdateGroupRequest" - + "\032\033.google.monitoring.v3.Group\";\332A\005group\202" - + "\323\344\223\002-\032$/v3/{group.name=projects/*/groups" - + "/*}:\005group\022~\n\013DeleteGroup\022(.google.monit" - + "oring.v3.DeleteGroupRequest\032\026.google.pro" - + "tobuf.Empty\"-\332A\004name\202\323\344\223\002 *\036/v3/{name=pr" - + "ojects/*/groups/*}\022\250\001\n\020ListGroupMembers\022" - + "-.google.monitoring.v3.ListGroupMembersR" - + "equest\032..google.monitoring.v3.ListGroupM" - + "embersResponse\"5\332A\004name\202\323\344\223\002(\022&/v3/{name" - + "=projects/*/groups/*}/members\032\251\001\312A\031monit" - + "oring.googleapis.com\322A\211\001https://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/monitoring,https:" - + "//www.googleapis.com/auth/monitoring.rea" - + "dB\314\001\n\030com.google.monitoring.v3B\021GroupSer" - + "viceProtoP\001ZAcloud.google.com/go/monitor" - + "ing/apiv3/v2/monitoringpb;monitoringpb\252\002" - + "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" - + "ud\\Monitoring\\V3\352\002\035Google::Cloud::Monito" - + "ring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.GroupProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor, - new java.lang.String[] { - "Name", - "ChildrenOfGroup", - "AncestorsOfGroup", - "DescendantsOfGroup", - "PageSize", - "PageToken", - "Filter", - }); - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor, - new java.lang.String[] { - "Group", "NextPageToken", - }); - internal_static_google_monitoring_v3_GetGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetGroupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor, - new java.lang.String[] { - "Name", "Group", "ValidateOnly", - }); - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor, - new java.lang.String[] { - "Group", "ValidateOnly", - }); - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor, - new java.lang.String[] { - "Name", "Recursive", - }); - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", "Filter", "Interval", - }); - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor, - new java.lang.String[] { - "Members", "NextPageToken", "TotalSize", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.GroupProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java deleted file mode 100644 index 75133278ae8f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric.proto - -package com.google.monitoring.v3; - -public final class MetricProto { - private MetricProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Point_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Point_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeries_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_LabelValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TextLocator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TextLocator_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/metric.proto\022\024goo" - + "gle.monitoring.v3\032\026google/api/label.prot" - + "o\032\027google/api/metric.proto\032#google/api/m" - + "onitored_resource.proto\032!google/monitori" - + "ng/v3/common.proto\"n\n\005Point\0224\n\010interval\030" - + "\001 \001(\0132\".google.monitoring.v3.TimeInterva" - + "l\022/\n\005value\030\002 \001(\0132 .google.monitoring.v3." - + "TypedValue\"\317\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(" - + "\0132\022.google.api.Metric\022/\n\010resource\030\002 \001(\0132" - + "\035.google.api.MonitoredResource\0227\n\010metada" - + "ta\030\007 \001(\0132%.google.api.MonitoredResourceM" - + "etadata\022<\n\013metric_kind\030\003 \001(\0162\'.google.ap" - + "i.MetricDescriptor.MetricKind\022:\n\nvalue_t" - + "ype\030\004 \001(\0162&.google.api.MetricDescriptor." - + "ValueType\022+\n\006points\030\005 \003(\0132\033.google.monit" - + "oring.v3.Point\022\014\n\004unit\030\010 \001(\t\"\316\002\n\024TimeSer" - + "iesDescriptor\0226\n\021label_descriptors\030\001 \003(\013" - + "2\033.google.api.LabelDescriptor\022U\n\021point_d" - + "escriptors\030\005 \003(\0132:.google.monitoring.v3." - + "TimeSeriesDescriptor.ValueDescriptor\032\246\001\n" - + "\017ValueDescriptor\022\013\n\003key\030\001 \001(\t\022:\n\nvalue_t" - + "ype\030\002 \001(\0162&.google.api.MetricDescriptor." - + "ValueType\022<\n\013metric_kind\030\003 \001(\0162\'.google." - + "api.MetricDescriptor.MetricKind\022\014\n\004unit\030" - + "\004 \001(\t\"\206\002\n\016TimeSeriesData\0226\n\014label_values" - + "\030\001 \003(\0132 .google.monitoring.v3.LabelValue" - + "\022B\n\npoint_data\030\002 \003(\0132..google.monitoring" - + ".v3.TimeSeriesData.PointData\032x\n\tPointDat" - + "a\0220\n\006values\030\001 \003(\0132 .google.monitoring.v3" - + ".TypedValue\0229\n\rtime_interval\030\002 \001(\0132\".goo" - + "gle.monitoring.v3.TimeInterval\"Z\n\nLabelV" - + "alue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_valu" - + "e\030\002 \001(\003H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005val" - + "ue\"Q\n\nQueryError\0222\n\007locator\030\001 \001(\0132!.goog" - + "le.monitoring.v3.TextLocator\022\017\n\007message\030" - + "\002 \001(\t\"\240\002\n\013TextLocator\022\016\n\006source\030\001 \001(\t\022B\n" - + "\016start_position\030\002 \001(\0132*.google.monitorin" - + "g.v3.TextLocator.Position\022@\n\014end_positio" - + "n\030\003 \001(\0132*.google.monitoring.v3.TextLocat" - + "or.Position\0229\n\016nested_locator\030\004 \001(\0132!.go" - + "ogle.monitoring.v3.TextLocator\022\026\n\016nestin" - + "g_reason\030\005 \001(\t\032(\n\010Position\022\014\n\004line\030\001 \001(\005" - + "\022\016\n\006column\030\002 \001(\005B\306\001\n\030com.google.monitori" - + "ng.v3B\013MetricProtoP\001ZAcloud.google.com/g" - + "o/monitoring/apiv3/v2/monitoringpb;monit" - + "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" - + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" - + "d::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.LabelProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Point_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Point_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Point_descriptor, - new java.lang.String[] { - "Interval", "Value", - }); - internal_static_google_monitoring_v3_TimeSeries_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeries_descriptor, - new java.lang.String[] { - "Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points", "Unit", - }); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor, - new java.lang.String[] { - "LabelDescriptors", "PointDescriptors", - }); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor = - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor, - new java.lang.String[] { - "Key", "ValueType", "MetricKind", "Unit", - }); - internal_static_google_monitoring_v3_TimeSeriesData_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesData_descriptor, - new java.lang.String[] { - "LabelValues", "PointData", - }); - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor = - internal_static_google_monitoring_v3_TimeSeriesData_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor, - new java.lang.String[] { - "Values", "TimeInterval", - }); - internal_static_google_monitoring_v3_LabelValue_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_LabelValue_descriptor, - new java.lang.String[] { - "BoolValue", "Int64Value", "StringValue", "Value", - }); - internal_static_google_monitoring_v3_QueryError_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_QueryError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryError_descriptor, - new java.lang.String[] { - "Locator", "Message", - }); - internal_static_google_monitoring_v3_TextLocator_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TextLocator_descriptor, - new java.lang.String[] { - "Source", "StartPosition", "EndPosition", "NestedLocator", "NestingReason", - }); - internal_static_google_monitoring_v3_TextLocator_Position_descriptor = - internal_static_google_monitoring_v3_TextLocator_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TextLocator_Position_descriptor, - new java.lang.String[] { - "Line", "Column", - }); - com.google.api.LabelProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java deleted file mode 100644 index f432b44a70e2..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java +++ /dev/null @@ -1,444 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public final class MetricServiceProto { - private MetricServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryErrorList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/metric_service.pr" - + "oto\022\024google.monitoring.v3\032\034google/api/an" - + "notations.proto\032\027google/api/client.proto" - + "\032\037google/api/field_behavior.proto\032\027googl" - + "e/api/metric.proto\032#google/api/monitored" - + "_resource.proto\032\031google/api/resource.pro" - + "to\032!google/monitoring/v3/common.proto\032!g" - + "oogle/monitoring/v3/metric.proto\032\033google" - + "/protobuf/empty.proto\032\027google/rpc/status" - + ".proto\"\256\001\n\'ListMonitoredResourceDescript" - + "orsRequest\022L\n\004name\030\005 \001(\tB>\342A\001\002\372A7\0225monit" - + "oring.googleapis.com/MonitoredResourceDe" - + "scriptor\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " - + "\001(\005\022\022\n\npage_token\030\004 \001(\t\"\212\001\n(ListMonitore" - + "dResourceDescriptorsResponse\022E\n\024resource" - + "_descriptors\030\001 \003(\0132\'.google.api.Monitore" - + "dResourceDescriptor\022\027\n\017next_page_token\030\002" - + " \001(\t\"u\n%GetMonitoredResourceDescriptorRe" - + "quest\022L\n\004name\030\003 \001(\tB>\342A\001\002\372A7\n5monitoring" - + ".googleapis.com/MonitoredResourceDescrip" - + "tor\"\230\001\n\034ListMetricDescriptorsRequest\022A\n\004" - + "name\030\005 \001(\tB3\342A\001\002\372A,\022*monitoring.googleap" - + "is.com/MetricDescriptor\022\016\n\006filter\030\002 \001(\t\022" - + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r" - + "\n\035ListMetricDescriptorsResponse\0228\n\022metri" - + "c_descriptors\030\001 \003(\0132\034.google.api.MetricD" - + "escriptor\022\027\n\017next_page_token\030\002 \001(\t\"_\n\032Ge" - + "tMetricDescriptorRequest\022A\n\004name\030\003 \001(\tB3" - + "\342A\001\002\372A,\n*monitoring.googleapis.com/Metri" - + "cDescriptor\"\241\001\n\035CreateMetricDescriptorRe" - + "quest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\022*monitoring" - + ".googleapis.com/MetricDescriptor\022=\n\021metr" - + "ic_descriptor\030\002 \001(\0132\034.google.api.MetricD" - + "escriptorB\004\342A\001\002\"b\n\035DeleteMetricDescripto" - + "rRequest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\n*monitor" - + "ing.googleapis.com/MetricDescriptor\"\322\003\n\025" - + "ListTimeSeriesRequest\022;\n\004name\030\n \001(\tB-\342A\001" - + "\002\372A&\022$monitoring.googleapis.com/TimeSeri" - + "es\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022:\n\010interval\030\004 \001" - + "(\0132\".google.monitoring.v3.TimeIntervalB\004" - + "\342A\001\002\0226\n\013aggregation\030\005 \001(\0132!.google.monit" - + "oring.v3.Aggregation\022@\n\025secondary_aggreg" - + "ation\030\013 \001(\0132!.google.monitoring.v3.Aggre" - + "gation\022\020\n\010order_by\030\006 \001(\t\022N\n\004view\030\007 \001(\0162:" - + ".google.monitoring.v3.ListTimeSeriesRequ" - + "est.TimeSeriesViewB\004\342A\001\002\022\021\n\tpage_size\030\010 " - + "\001(\005\022\022\n\npage_token\030\t \001(\t\"\'\n\016TimeSeriesVie" - + "w\022\010\n\004FULL\020\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTimeSer" - + "iesResponse\0225\n\013time_series\030\001 \003(\0132 .googl" - + "e.monitoring.v3.TimeSeries\022\027\n\017next_page_" - + "token\030\002 \001(\t\022,\n\020execution_errors\030\003 \003(\0132\022." - + "google.rpc.Status\022\014\n\004unit\030\005 \001(\t\"\232\001\n\027Crea" - + "teTimeSeriesRequest\022B\n\004name\030\003 \001(\tB4\342A\001\002\372" - + "A-\n+cloudresourcemanager.googleapis.com/" - + "Project\022;\n\013time_series\030\002 \003(\0132 .google.mo" - + "nitoring.v3.TimeSeriesB\004\342A\001\002\"z\n\025CreateTi" - + "meSeriesError\0229\n\013time_series\030\001 \001(\0132 .goo" - + "gle.monitoring.v3.TimeSeriesB\002\030\001\022&\n\006stat" - + "us\030\002 \001(\0132\022.google.rpc.StatusB\002\030\001\"\330\001\n\027Cre" - + "ateTimeSeriesSummary\022\031\n\021total_point_coun" - + "t\030\001 \001(\005\022\033\n\023success_point_count\030\002 \001(\005\022C\n\006" - + "errors\030\003 \003(\01323.google.monitoring.v3.Crea" - + "teTimeSeriesSummary.Error\032@\n\005Error\022\"\n\006st" - + "atus\030\001 \001(\0132\022.google.rpc.Status\022\023\n\013point_" - + "count\030\002 \001(\005\"h\n\026QueryTimeSeriesRequest\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005query\030\007 \001(\tB\004\342A\001\002\022\021" - + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\"\352\001" - + "\n\027QueryTimeSeriesResponse\022J\n\026time_series" - + "_descriptor\030\010 \001(\0132*.google.monitoring.v3" - + ".TimeSeriesDescriptor\022>\n\020time_series_dat" - + "a\030\t \003(\0132$.google.monitoring.v3.TimeSerie" - + "sData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016partia" - + "l_errors\030\013 \003(\0132\022.google.rpc.Status\"Y\n\016Qu" - + "eryErrorList\0220\n\006errors\030\001 \003(\0132 .google.mo" - + "nitoring.v3.QueryError\022\025\n\rerror_summary\030" - + "\002 \001(\t2\274\017\n\rMetricService\022\344\001\n ListMonitore" - + "dResourceDescriptors\022=.google.monitoring" - + ".v3.ListMonitoredResourceDescriptorsRequ" - + "est\032>.google.monitoring.v3.ListMonitored" - + "ResourceDescriptorsResponse\"A\332A\004name\202\323\344\223" - + "\0024\0222/v3/{name=projects/*}/monitoredResou" - + "rceDescriptors\022\314\001\n\036GetMonitoredResourceD" - + "escriptor\022;.google.monitoring.v3.GetMoni" - + "toredResourceDescriptorRequest\032\'.google." - + "api.MonitoredResourceDescriptor\"D\332A\004name" - + "\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredRe" - + "sourceDescriptors/**}\022\270\001\n\025ListMetricDesc" - + "riptors\0222.google.monitoring.v3.ListMetri" - + "cDescriptorsRequest\0323.google.monitoring." - + "v3.ListMetricDescriptorsResponse\"6\332A\004nam" - + "e\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDes" - + "criptors\022\240\001\n\023GetMetricDescriptor\0220.googl" - + "e.monitoring.v3.GetMetricDescriptorReque" - + "st\032\034.google.api.MetricDescriptor\"9\332A\004nam" - + "e\202\323\344\223\002,\022*/v3/{name=projects/*/metricDesc" - + "riptors/**}\022\310\001\n\026CreateMetricDescriptor\0223" - + ".google.monitoring.v3.CreateMetricDescri" - + "ptorRequest\032\034.google.api.MetricDescripto" - + "r\"[\332A\026name,metric_descriptor\202\323\344\223\002<\"\'/v3/" - + "{name=projects/*}/metricDescriptors:\021met" - + "ric_descriptor\022\240\001\n\026DeleteMetricDescripto" - + "r\0223.google.monitoring.v3.DeleteMetricDes" - + "criptorRequest\032\026.google.protobuf.Empty\"9" - + "\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/metr" - + "icDescriptors/**}\022\376\001\n\016ListTimeSeries\022+.g" - + "oogle.monitoring.v3.ListTimeSeriesReques" - + "t\032,.google.monitoring.v3.ListTimeSeriesR" - + "esponse\"\220\001\332A\031name,filter,interval,view\202\323" - + "\344\223\002n\022 /v3/{name=projects/*}/timeSeriesZ\'" - + "\022%/v3/{name=organizations/*}/timeSeriesZ" - + "!\022\037/v3/{name=folders/*}/timeSeries\022\231\001\n\020C" - + "reateTimeSeries\022-.google.monitoring.v3.C" - + "reateTimeSeriesRequest\032\026.google.protobuf" - + ".Empty\">\332A\020name,time_series\202\323\344\223\002%\" /v3/{" - + "name=projects/*}/timeSeries:\001*\022\256\001\n\027Creat" - + "eServiceTimeSeries\022-.google.monitoring.v" - + "3.CreateTimeSeriesRequest\032\026.google.proto" - + "buf.Empty\"L\332A\020name,time_series\202\323\344\223\0023\"./v" - + "3/{name=projects/*}/timeSeries:createSer" - + "vice:\001*\032\332\001\312A\031monitoring.googleapis.com\322A" - + "\272\001https://www.googleapis.com/auth/cloud-" - + "platform,https://www.googleapis.com/auth" - + "/monitoring,https://www.googleapis.com/a" - + "uth/monitoring.read,https://www.googleap" - + "is.com/auth/monitoring.writeB\211\010\n\030com.goo" - + "gle.monitoring.v3B\022MetricServiceProtoP\001Z" - + "Acloud.google.com/go/monitoring/apiv3/v2" - + "/monitoringpb;monitoringpb\252\002\032Google.Clou" - + "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" - + "g\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001" - + "\n*monitoring.googleapis.com/MetricDescri" - + "ptor\022;projects/{project}/metricDescripto" - + "rs/{metric_descriptor=**}\022Eorganizations" - + "/{organization}/metricDescriptors/{metri" - + "c_descriptor=**}\0229folders/{folder}/metri" - + "cDescriptors/{metric_descriptor=**}\022\001* \001" - + "\352A\267\002\n5monitoring.googleapis.com/Monitore" - + "dResourceDescriptor\022Oprojects/{project}/" - + "monitoredResourceDescriptors/{monitored_" - + "resource_descriptor}\022Yorganizations/{org" - + "anization}/monitoredResourceDescriptors/" - + "{monitored_resource_descriptor}\022Mfolders" - + "/{folder}/monitoredResourceDescriptors/{" - + "monitored_resource_descriptor}\022\001* \001\352AQ\n#" - + "monitoring.googleapis.com/Workspace\022\022pro" - + "jects/{project}\022\026workspaces/{workspace}\352" - + "A\265\001\n$monitoring.googleapis.com/TimeSerie" - + "s\022+projects/{project}/timeSeries/{time_s" - + "eries}\0225organizations/{organization}/tim" - + "eSeries/{time_series}\022)folders/{folder}/" - + "timeSeries/{time_series}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.MetricProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor, - new java.lang.String[] { - "ResourceDescriptors", "NextPageToken", - }); - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor, - new java.lang.String[] { - "MetricDescriptors", "NextPageToken", - }); - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor, - new java.lang.String[] { - "Name", "MetricDescriptor", - }); - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor, - new java.lang.String[] { - "Name", - "Filter", - "Interval", - "Aggregation", - "SecondaryAggregation", - "OrderBy", - "View", - "PageSize", - "PageToken", - }); - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor, - new java.lang.String[] { - "TimeSeries", "NextPageToken", "ExecutionErrors", "Unit", - }); - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor, - new java.lang.String[] { - "Name", "TimeSeries", - }); - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor, - new java.lang.String[] { - "TimeSeries", "Status", - }); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor, - new java.lang.String[] { - "TotalPointCount", "SuccessPointCount", "Errors", - }); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor = - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor, - new java.lang.String[] { - "Status", "PointCount", - }); - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor, - new java.lang.String[] { - "Name", "Query", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor, - new java.lang.String[] { - "TimeSeriesDescriptor", "TimeSeriesData", "NextPageToken", "PartialErrors", - }); - internal_static_google_monitoring_v3_QueryErrorList_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryErrorList_descriptor, - new java.lang.String[] { - "Errors", "ErrorSummary", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.MetricProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java deleted file mode 100644 index b3b7981e2c5e..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/mutation_record.proto - -package com.google.monitoring.v3; - -public final class MutationRecordProto { - private MutationRecordProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_MutationRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/v3/mutation_record.p" - + "roto\022\024google.monitoring.v3\032\037google/proto" - + "buf/timestamp.proto\"U\n\016MutationRecord\022/\n" - + "\013mutate_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022\022\n\nmutated_by\030\002 \001(\tB\316\001\n\030com.googl" - + "e.monitoring.v3B\023MutationRecordProtoP\001ZA" - + "cloud.google.com/go/monitoring/apiv3/v2/" - + "monitoringpb;monitoringpb\252\002\032Google.Cloud" - + ".Monitoring.V3\312\002\032Google\\Cloud\\Monitoring" - + "\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_MutationRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_MutationRecord_descriptor, - new java.lang.String[] { - "MutateTime", "MutatedBy", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java deleted file mode 100644 index 046cf6017e31..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification.proto - -package com.google.monitoring.v3; - -public final class NotificationProto { - private NotificationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/monitoring/v3/notification.prot" - + "o\022\024google.monitoring.v3\032\026google/api/labe" - + "l.proto\032\035google/api/launch_stage.proto\032\031" - + "google/api/resource.proto\032!google/monito" - + "ring/v3/common.proto\032*google/monitoring/" - + "v3/mutation_record.proto\032\036google/protobu" - + "f/wrappers.proto\"\245\004\n\035NotificationChannel" - + "Descriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type\030\001 \001(\t\022\024" - + "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" - + "\t\022+\n\006labels\030\004 \003(\0132\033.google.api.LabelDesc" - + "riptor\022>\n\017supported_tiers\030\005 \003(\0162!.google" - + ".monitoring.v3.ServiceTierB\002\030\001\022-\n\014launch" - + "_stage\030\007 \001(\0162\027.google.api.LaunchStage:\240\002" - + "\352A\234\002\n7monitoring.googleapis.com/Notifica" - + "tionChannelDescriptor\022Fprojects/{project" - + "}/notificationChannelDescriptors/{channe" - + "l_descriptor}\022Porganizations/{organizati" - + "on}/notificationChannelDescriptors/{chan" - + "nel_descriptor}\022Dfolders/{folder}/notifi" - + "cationChannelDescriptors/{channel_descri" - + "ptor}\022\001*\"\266\007\n\023NotificationChannel\022\014\n\004type" - + "\030\001 \001(\t\022\014\n\004name\030\006 \001(\t\022\024\n\014display_name\030\003 \001" - + "(\t\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\0132" - + "5.google.monitoring.v3.NotificationChann" - + "el.LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.go" - + "ogle.monitoring.v3.NotificationChannel.U" - + "serLabelsEntry\022Y\n\023verification_status\030\t " - + "\001(\0162<.google.monitoring.v3.NotificationC" - + "hannel.VerificationStatus\022+\n\007enabled\030\013 \001" - + "(\0132\032.google.protobuf.BoolValue\022=\n\017creati" - + "on_record\030\014 \001(\0132$.google.monitoring.v3.M" - + "utationRecord\022>\n\020mutation_records\030\r \003(\0132" - + "$.google.monitoring.v3.MutationRecord\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n" - + "\037VERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUN" - + "VERIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitor" - + "ing.googleapis.com/NotificationChannel\022>" - + "projects/{project}/notificationChannels/" - + "{notification_channel}\022Horganizations/{o" - + "rganization}/notificationChannels/{notif" - + "ication_channel}\022 - * Range minimum. - * - * - * double min = 1; - * - * @return The min. - */ - double getMin(); - - /** - * - * - *
-   * Range maximum.
-   * 
- * - * double max = 2; - * - * @return The max. - */ - double getMax(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java deleted file mode 100644 index c68a965c6085..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface SendNotificationChannelVerificationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The notification channel to which to send a verification code.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The notification channel to which to send a verification code.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java deleted file mode 100644 index 3f05723a5950..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service.proto - -package com.google.monitoring.v3; - -public final class ServiceMonitoringProto { - private ServiceMonitoringProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_Custom_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_AppEngine_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_Telemetry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Range_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Range_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_RequestBasedSli_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DistributionCut_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\"google/monitoring/v3/service.proto\022\024go" - + "ogle.monitoring.v3\032\031google/api/resource." - + "proto\032\036google/protobuf/duration.proto\032!g" - + "oogle/type/calendar_period.proto\"\311\t\n\007Ser" - + "vice\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t" - + "\0226\n\006custom\030\006 \001(\0132$.google.monitoring.v3." - + "Service.CustomH\000\022=\n\napp_engine\030\007 \001(\0132\'.g" - + "oogle.monitoring.v3.Service.AppEngineH\000\022" - + "G\n\017cloud_endpoints\030\010 \001(\0132,.google.monito" - + "ring.v3.Service.CloudEndpointsH\000\022C\n\rclus" - + "ter_istio\030\t \001(\0132*.google.monitoring.v3.S" - + "ervice.ClusterIstioH\000\022=\n\nmesh_istio\030\n \001(" - + "\0132\'.google.monitoring.v3.Service.MeshIst" - + "ioH\000\022V\n\027istio_canonical_service\030\013 \001(\01323." - + "google.monitoring.v3.Service.IstioCanoni" - + "calServiceH\000\022:\n\ttelemetry\030\r \001(\0132\'.google" - + ".monitoring.v3.Service.Telemetry\022B\n\013user" - + "_labels\030\016 \003(\0132-.google.monitoring.v3.Ser" - + "vice.UserLabelsEntry\032\010\n\006Custom\032\036\n\tAppEng" - + "ine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndpoints" - + "\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterIstio\022\020\n\010loc" - + "ation\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031\n\021ser" - + "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" - + "(\t\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021ser" - + "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" - + "(\t\032i\n\025IstioCanonicalService\022\020\n\010mesh_uid\030" - + "\001 \001(\t\022#\n\033canonical_service_namespace\030\003 \001" - + "(\t\022\031\n\021canonical_service\030\004 \001(\t\032\"\n\tTelemet" - + "ry\022\025\n\rresource_name\030\001 \001(\t\0321\n\017UserLabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\247\001\352" - + "A\243\001\n!monitoring.googleapis.com/Service\022%" - + "projects/{project}/services/{service}\022/o" - + "rganizations/{organization}/services/{se" - + "rvice}\022#folders/{folder}/services/{servi" - + "ce}\022\001*B\014\n\nidentifier\"\226\006\n\025ServiceLevelObj" - + "ective\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001" - + "(\t\022L\n\027service_level_indicator\030\003 \001(\0132+.go" - + "ogle.monitoring.v3.ServiceLevelIndicator" - + "\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_period\030\005 \001(\0132\031" - + ".google.protobuf.DurationH\000\0226\n\017calendar_" - + "period\030\006 \001(\0162\033.google.type.CalendarPerio" - + "dH\000\022P\n\013user_labels\030\014 \003(\0132;.google.monito" - + "ring.v3.ServiceLevelObjective.UserLabels" - + "Entry\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"4\n\004View\022\024\n\020VIEW_UNSPECI" - + "FIED\020\000\022\010\n\004FULL\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/m" - + "onitoring.googleapis.com/ServiceLevelObj" - + "ective\022Vprojects/{project}/services/{ser" - + "vice}/serviceLevelObjectives/{service_le" - + "vel_objective}\022`organizations/{organizat" - + "ion}/services/{service}/serviceLevelObje" - + "ctives/{service_level_objective}\022Tfolder" - + "s/{folder}/services/{service}/serviceLev" - + "elObjectives/{service_level_objective}\022\001" - + "* \001B\010\n\006period\"\324\001\n\025ServiceLevelIndicator\022" - + "3\n\tbasic_sli\030\004 \001(\0132\036.google.monitoring.v" - + "3.BasicSliH\000\022>\n\rrequest_based\030\001 \001(\0132%.go" - + "ogle.monitoring.v3.RequestBasedSliH\000\022>\n\r" - + "windows_based\030\002 \001(\0132%.google.monitoring." - + "v3.WindowsBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSl" - + "i\022\016\n\006method\030\007 \003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007v" - + "ersion\030\t \003(\t\022K\n\014availability\030\002 \001(\01323.goo" - + "gle.monitoring.v3.BasicSli.AvailabilityC" - + "riteriaH\000\022A\n\007latency\030\003 \001(\0132..google.moni" - + "toring.v3.BasicSli.LatencyCriteriaH\000\032\026\n\024" - + "AvailabilityCriteria\032?\n\017LatencyCriteria\022" - + ",\n\tthreshold\030\003 \001(\0132\031.google.protobuf.Dur" - + "ationB\016\n\014sli_criteria\"!\n\005Range\022\013\n\003min\030\001 " - + "\001(\001\022\013\n\003max\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020" - + "good_total_ratio\030\001 \001(\0132%.google.monitori" - + "ng.v3.TimeSeriesRatioH\000\022A\n\020distribution_" - + "cut\030\003 \001(\0132%.google.monitoring.v3.Distrib" - + "utionCutH\000B\010\n\006method\"h\n\017TimeSeriesRatio\022" - + "\033\n\023good_service_filter\030\004 \001(\t\022\032\n\022bad_serv" - + "ice_filter\030\005 \001(\t\022\034\n\024total_service_filter" - + "\030\006 \001(\t\"Z\n\017DistributionCut\022\033\n\023distributio" - + "n_filter\030\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.m" - + "onitoring.v3.Range\"\203\005\n\017WindowsBasedSli\022 " - + "\n\026good_bad_metric_filter\030\005 \001(\tH\000\022`\n\032good" - + "_total_ratio_threshold\030\002 \001(\0132:.google.mo" - + "nitoring.v3.WindowsBasedSli.PerformanceT" - + "hresholdH\000\022Q\n\024metric_mean_in_range\030\006 \001(\013" - + "21.google.monitoring.v3.WindowsBasedSli." - + "MetricRangeH\000\022P\n\023metric_sum_in_range\030\007 \001" - + "(\01321.google.monitoring.v3.WindowsBasedSl" - + "i.MetricRangeH\000\0220\n\rwindow_period\030\004 \001(\0132\031" - + ".google.protobuf.Duration\032\260\001\n\024Performanc" - + "eThreshold\022<\n\013performance\030\001 \001(\0132%.google" - + ".monitoring.v3.RequestBasedSliH\000\022?\n\025basi" - + "c_sli_performance\030\003 \001(\0132\036.google.monitor" - + "ing.v3.BasicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004" - + "type\032N\n\013MetricRange\022\023\n\013time_series\030\001 \001(\t" - + "\022*\n\005range\030\004 \001(\0132\033.google.monitoring.v3.R" - + "angeB\022\n\020window_criterionB\321\001\n\030com.google." - + "monitoring.v3B\026ServiceMonitoringProtoP\001Z" - + "Acloud.google.com/go/monitoring/apiv3/v2" - + "/monitoringpb;monitoringpb\252\002\032Google.Clou" - + "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" - + "g\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.type.CalendarPeriodProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Service_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Service_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Custom", - "AppEngine", - "CloudEndpoints", - "ClusterIstio", - "MeshIstio", - "IstioCanonicalService", - "Telemetry", - "UserLabels", - "Identifier", - }); - internal_static_google_monitoring_v3_Service_Custom_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_Custom_descriptor, - new java.lang.String[] {}); - internal_static_google_monitoring_v3_Service_AppEngine_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_AppEngine_descriptor, - new java.lang.String[] { - "ModuleId", - }); - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor, - new java.lang.String[] { - "Service", - }); - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor, - new java.lang.String[] { - "Location", "ClusterName", "ServiceNamespace", "ServiceName", - }); - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor, - new java.lang.String[] { - "MeshUid", "ServiceNamespace", "ServiceName", - }); - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(5); - internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor, - new java.lang.String[] { - "MeshUid", "CanonicalServiceNamespace", "CanonicalService", - }); - internal_static_google_monitoring_v3_Service_Telemetry_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(6); - internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_Telemetry_descriptor, - new java.lang.String[] { - "ResourceName", - }); - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(7); - internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "ServiceLevelIndicator", - "Goal", - "RollingPeriod", - "CalendarPeriod", - "UserLabels", - "Period", - }); - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor, - new java.lang.String[] { - "BasicSli", "RequestBased", "WindowsBased", "Type", - }); - internal_static_google_monitoring_v3_BasicSli_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_descriptor, - new java.lang.String[] { - "Method", "Location", "Version", "Availability", "Latency", "SliCriteria", - }); - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor = - internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor, - new java.lang.String[] {}); - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor = - internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor, - new java.lang.String[] { - "Threshold", - }); - internal_static_google_monitoring_v3_Range_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_Range_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Range_descriptor, - new java.lang.String[] { - "Min", "Max", - }); - internal_static_google_monitoring_v3_RequestBasedSli_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_RequestBasedSli_descriptor, - new java.lang.String[] { - "GoodTotalRatio", "DistributionCut", "Method", - }); - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor, - new java.lang.String[] { - "GoodServiceFilter", "BadServiceFilter", "TotalServiceFilter", - }); - internal_static_google_monitoring_v3_DistributionCut_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DistributionCut_descriptor, - new java.lang.String[] { - "DistributionFilter", "Range", - }); - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor, - new java.lang.String[] { - "GoodBadMetricFilter", - "GoodTotalRatioThreshold", - "MetricMeanInRange", - "MetricSumInRange", - "WindowPeriod", - "WindowCriterion", - }); - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor = - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor, - new java.lang.String[] { - "Performance", "BasicSliPerformance", "Threshold", "Type", - }); - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor = - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor, - new java.lang.String[] { - "TimeSeries", "Range", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.type.CalendarPeriodProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java deleted file mode 100644 index 4e36e6b1e833..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public final class ServiceMonitoringServiceProto { - private ServiceMonitoringServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/v3/service_service.p" - + "roto\022\024google.monitoring.v3\032\034google/api/a" - + "nnotations.proto\032\027google/api/client.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032\"google/monitoring" - + "/v3/service.proto\032\033google/protobuf/empty" - + ".proto\032 google/protobuf/field_mask.proto" - + "\"\234\001\n\024CreateServiceRequest\022:\n\006parent\030\001 \001(" - + "\tB*\342A\001\002\372A#\022!monitoring.googleapis.com/Se" - + "rvice\022\022\n\nservice_id\030\003 \001(\t\0224\n\007service\030\002 \001" - + "(\0132\035.google.monitoring.v3.ServiceB\004\342A\001\002\"" - + "M\n\021GetServiceRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" - + "\372A#\n!monitoring.googleapis.com/Service\"\210" - + "\001\n\023ListServicesRequest\022:\n\006parent\030\001 \001(\tB*" - + "\342A\001\002\372A#\022!monitoring.googleapis.com/Servi" - + "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" - + "\npage_token\030\004 \001(\t\"`\n\024ListServicesRespons" - + "e\022/\n\010services\030\001 \003(\0132\035.google.monitoring." - + "v3.Service\022\027\n\017next_page_token\030\002 \001(\t\"}\n\024U" - + "pdateServiceRequest\0224\n\007service\030\001 \001(\0132\035.g" - + "oogle.monitoring.v3.ServiceB\004\342A\001\002\022/\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"P\n\024DeleteServiceRequest\0228\n\004name\030\001 \001(\t" - + "B*\342A\001\002\372A#\n!monitoring.googleapis.com/Ser" - + "vice\"\330\001\n\"CreateServiceLevelObjectiveRequ" - + "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring" - + ".googleapis.com/Service\022\"\n\032service_level" - + "_objective_id\030\003 \001(\t\022R\n\027service_level_obj" - + "ective\030\002 \001(\0132+.google.monitoring.v3.Serv" - + "iceLevelObjectiveB\004\342A\001\002\"\251\001\n\037GetServiceLe" - + "velObjectiveRequest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372" - + "A1\n/monitoring.googleapis.com/ServiceLev" - + "elObjective\022>\n\004view\030\002 \001(\01620.google.monit" - + "oring.v3.ServiceLevelObjective.View\"\326\001\n!" - + "ListServiceLevelObjectivesRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring.googleapi" - + "s.com/Service\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022>\n\004view\030\005 \001" - + "(\01620.google.monitoring.v3.ServiceLevelOb" - + "jective.View\"\214\001\n\"ListServiceLevelObjecti" - + "vesResponse\022M\n\030service_level_objectives\030" - + "\001 \003(\0132+.google.monitoring.v3.ServiceLeve" - + "lObjective\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\"" - + "UpdateServiceLevelObjectiveRequest\022R\n\027se" - + "rvice_level_objective\030\001 \001(\0132+.google.mon" - + "itoring.v3.ServiceLevelObjectiveB\004\342A\001\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\"l\n\"DeleteServiceLevelObjectiveRe" - + "quest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/monitoring" - + ".googleapis.com/ServiceLevelObjective2\352\017" - + "\n\030ServiceMonitoringService\022\227\001\n\rCreateSer" - + "vice\022*.google.monitoring.v3.CreateServic" - + "eRequest\032\035.google.monitoring.v3.Service\"" - + ";\332A\016parent,service\202\323\344\223\002$\"\031/v3/{parent=*/" - + "*}/services:\007service\022~\n\nGetService\022\'.goo" - + "gle.monitoring.v3.GetServiceRequest\032\035.go" - + "ogle.monitoring.v3.Service\"(\332A\004name\202\323\344\223\002" - + "\033\022\031/v3/{name=*/*/services/*}\022\221\001\n\014ListSer" - + "vices\022).google.monitoring.v3.ListService" - + "sRequest\032*.google.monitoring.v3.ListServ" - + "icesResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v3/{pare" - + "nt=*/*}/services\022\230\001\n\rUpdateService\022*.goo" - + "gle.monitoring.v3.UpdateServiceRequest\032\035" - + ".google.monitoring.v3.Service\"<\332A\007servic" - + "e\202\323\344\223\002,2!/v3/{service.name=*/*/services/" - + "*}:\007service\022}\n\rDeleteService\022*.google.mo" - + "nitoring.v3.DeleteServiceRequest\032\026.googl" - + "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v3/{na" - + "me=*/*/services/*}\022\372\001\n\033CreateServiceLeve" - + "lObjective\0228.google.monitoring.v3.Create" - + "ServiceLevelObjectiveRequest\032+.google.mo" - + "nitoring.v3.ServiceLevelObjective\"t\332A\036pa" - + "rent,service_level_objective\202\323\344\223\002M\"2/v3/" - + "{parent=*/*/services/*}/serviceLevelObje" - + "ctives:\027service_level_objective\022\301\001\n\030GetS" - + "erviceLevelObjective\0225.google.monitoring" - + ".v3.GetServiceLevelObjectiveRequest\032+.go" - + "ogle.monitoring.v3.ServiceLevelObjective" - + "\"A\332A\004name\202\323\344\223\0024\0222/v3/{name=*/*/services/" - + "*/serviceLevelObjectives/*}\022\324\001\n\032ListServ" - + "iceLevelObjectives\0227.google.monitoring.v" - + "3.ListServiceLevelObjectivesRequest\0328.go" - + "ogle.monitoring.v3.ListServiceLevelObjec" - + "tivesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v3/{par" - + "ent=*/*/services/*}/serviceLevelObjectiv" - + "es\022\214\002\n\033UpdateServiceLevelObjective\0228.goo" - + "gle.monitoring.v3.UpdateServiceLevelObje" - + "ctiveRequest\032+.google.monitoring.v3.Serv" - + "iceLevelObjective\"\205\001\332A\027service_level_obj" - + "ective\202\323\344\223\002e2J/v3/{service_level_objecti" - + "ve.name=*/*/services/*/serviceLevelObjec" - + "tives/*}:\027service_level_objective\022\262\001\n\033De" - + "leteServiceLevelObjective\0228.google.monit" - + "oring.v3.DeleteServiceLevelObjectiveRequ" - + "est\032\026.google.protobuf.Empty\"A\332A\004name\202\323\344\223" - + "\0024*2/v3/{name=*/*/services/*/serviceLeve" - + "lObjectives/*}\032\251\001\312A\031monitoring.googleapi" - + "s.com\322A\211\001https://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/monitoring,https://www.googleapi" - + "s.com/auth/monitoring.readB\330\001\n\030com.googl" - + "e.monitoring.v3B\035ServiceMonitoringServic" - + "eProtoP\001ZAcloud.google.com/go/monitoring" - + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" - + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" - + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" - + "g::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor, - new java.lang.String[] { - "Parent", "ServiceId", "Service", - }); - internal_static_google_monitoring_v3_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetServiceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServicesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServicesResponse_descriptor, - new java.lang.String[] { - "Services", "NextPageToken", - }); - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor, - new java.lang.String[] { - "Service", "UpdateMask", - }); - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { - "Parent", "ServiceLevelObjectiveId", "ServiceLevelObjective", - }); - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { - "Name", "View", - }); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "View", - }); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor, - new java.lang.String[] { - "ServiceLevelObjectives", "NextPageToken", - }); - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { - "ServiceLevelObjective", "UpdateMask", - }); - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java deleted file mode 100644 index ce024ab23d7a..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze.proto - -package com.google.monitoring.v3; - -public final class SnoozeProto { - private SnoozeProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Snooze_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Snooze_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/snooze.proto\022\024goo" - + "gle.monitoring.v3\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032!g" - + "oogle/monitoring/v3/common.proto\"\311\002\n\006Sno" - + "oze\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022=\n\010criteria\030\003 \001(" - + "\0132%.google.monitoring.v3.Snooze.Criteria" - + "B\004\342A\001\002\022:\n\010interval\030\004 \001(\0132\".google.monito" - + "ring.v3.TimeIntervalB\004\342A\001\002\022\032\n\014display_na" - + "me\030\005 \001(\tB\004\342A\001\002\032H\n\010Criteria\022<\n\010policies\030\001" - + " \003(\tB*\372A\'\n%monitoring.googleapis.com/Ale" - + "rtPolicy:J\352AG\n monitoring.googleapis.com" - + "/Snooze\022#projects/{project}/snoozes/{sno" - + "oze}B\306\001\n\030com.google.monitoring.v3B\013Snooz" - + "eProtoP\001ZAcloud.google.com/go/monitoring" - + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" - + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" - + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" - + "g::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Snooze_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Snooze_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Snooze_descriptor, - new java.lang.String[] { - "Name", "Criteria", "Interval", "DisplayName", - }); - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor = - internal_static_google_monitoring_v3_Snooze_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor, - new java.lang.String[] { - "Policies", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java deleted file mode 100644 index bc29703bbd4f..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze_service.proto - -package com.google.monitoring.v3; - -public final class SnoozeServiceProto { - private SnoozeServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/snooze_service.pr" - + "oto\022\024google.monitoring.v3\032\034google/api/an" - + "notations.proto\032\027google/api/client.proto" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\032!google/monitoring/" - + "v3/snooze.proto\032 google/protobuf/field_m" - + "ask.proto\"\204\001\n\023CreateSnoozeRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\342A\001\002\372A\"\022 monitoring.googleapi" - + "s.com/Snooze\0222\n\006snooze\030\002 \001(\0132\034.google.mo" - + "nitoring.v3.SnoozeB\004\342A\001\002\"\230\001\n\022ListSnoozes" - + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 monito" - + "ring.googleapis.com/Snooze\022\024\n\006filter\030\002 \001" - + "(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npag" - + "e_token\030\005 \001(\tB\004\342A\001\001\"]\n\023ListSnoozesRespon" - + "se\022-\n\007snoozes\030\001 \003(\0132\034.google.monitoring." - + "v3.Snooze\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020Ge" - + "tSnoozeRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n m" - + "onitoring.googleapis.com/Snooze\"\200\001\n\023Upda" - + "teSnoozeRequest\0222\n\006snooze\030\001 \001(\0132\034.google" - + ".monitoring.v3.SnoozeB\004\342A\001\002\0225\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" - + "\001\0022\230\006\n\rSnoozeService\022\230\001\n\014CreateSnooze\022)." - + "google.monitoring.v3.CreateSnoozeRequest" - + "\032\034.google.monitoring.v3.Snooze\"?\332A\rparen" - + "t,snooze\202\323\344\223\002)\"\037/v3/{parent=projects/*}/" - + "snoozes:\006snooze\022\224\001\n\013ListSnoozes\022(.google" - + ".monitoring.v3.ListSnoozesRequest\032).goog" - + "le.monitoring.v3.ListSnoozesResponse\"0\332A" - + "\006parent\202\323\344\223\002!\022\037/v3/{parent=projects/*}/s" - + "noozes\022\201\001\n\tGetSnooze\022&.google.monitoring" - + ".v3.GetSnoozeRequest\032\034.google.monitoring" - + ".v3.Snooze\".\332A\004name\202\323\344\223\002!\022\037/v3/{name=pro" - + "jects/*/snoozes/*}\022\244\001\n\014UpdateSnooze\022).go" - + "ogle.monitoring.v3.UpdateSnoozeRequest\032\034" - + ".google.monitoring.v3.Snooze\"K\332A\022snooze," - + "update_mask\202\323\344\223\00202&/v3/{snooze.name=proj" - + "ects/*/snoozes/*}:\006snooze\032\251\001\312A\031monitorin" - + "g.googleapis.com\322A\211\001https://www.googleap" - + "is.com/auth/cloud-platform,https://www.g" - + "oogleapis.com/auth/monitoring,https://ww" - + "w.googleapis.com/auth/monitoring.readB\315\001" - + "\n\030com.google.monitoring.v3B\022SnoozeServic" - + "eProtoP\001ZAcloud.google.com/go/monitoring" - + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" - + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" - + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" - + "g::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.SnoozeProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor, - new java.lang.String[] { - "Parent", "Snooze", - }); - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor, - new java.lang.String[] { - "Snoozes", "NextPageToken", - }); - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor, - new java.lang.String[] { - "Snooze", "UpdateMask", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.SnoozeProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java deleted file mode 100644 index f640e90f4b08..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/span_context.proto - -package com.google.monitoring.v3; - -public final class SpanContextProto { - private SpanContextProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_SpanContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/monitoring/v3/span_context.prot" - + "o\022\024google.monitoring.v3\" \n\013SpanContext\022\021" - + "\n\tspan_name\030\001 \001(\tB\313\001\n\030com.google.monitor" - + "ing.v3B\020SpanContextProtoP\001ZAcloud.google" - + ".com/go/monitoring/apiv3/v2/monitoringpb" - + ";monitoringpb\252\002\032Google.Cloud.Monitoring." - + "V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google" - + "::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_monitoring_v3_SpanContext_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_SpanContext_descriptor, - new java.lang.String[] { - "SpanName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java deleted file mode 100644 index 3a3311b67631..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime.proto - -package com.google.monitoring.v3; - -public final class UptimeProto { - private UptimeProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_InternalChecker_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/uptime.proto\022\024goo" - + "gle.monitoring.v3\032\037google/api/field_beha" - + "vior.proto\032#google/api/monitored_resourc" - + "e.proto\032\031google/api/resource.proto\032\036goog" - + "le/protobuf/duration.proto\"\346\001\n\017InternalC" - + "hecker\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" - + "(\t\022\017\n\007network\030\003 \001(\t\022\020\n\010gcp_zone\030\004 \001(\t\022\027\n" - + "\017peer_project_id\030\006 \001(\t\022:\n\005state\030\007 \001(\0162+." - + "google.monitoring.v3.InternalChecker.Sta" - + "te\"3\n\005State\022\017\n\013UNSPECIFIED\020\000\022\014\n\010CREATING" - + "\020\001\022\013\n\007RUNNING\020\002:\002\030\001\"\202\033\n\021UptimeCheckConfi" - + "g\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022;\n" - + "\022monitored_resource\030\003 \001(\0132\035.google.api.M" - + "onitoredResourceH\000\022O\n\016resource_group\030\004 \001" - + "(\01325.google.monitoring.v3.UptimeCheckCon" - + "fig.ResourceGroupH\000\022G\n\nhttp_check\030\005 \001(\0132" - + "1.google.monitoring.v3.UptimeCheckConfig" - + ".HttpCheckH\001\022E\n\ttcp_check\030\006 \001(\01320.google" - + ".monitoring.v3.UptimeCheckConfig.TcpChec" - + "kH\001\022)\n\006period\030\007 \001(\0132\031.google.protobuf.Du" - + "ration\022*\n\007timeout\030\010 \001(\0132\031.google.protobu" - + "f.Duration\022P\n\020content_matchers\030\t \003(\01326.g" - + "oogle.monitoring.v3.UptimeCheckConfig.Co" - + "ntentMatcher\022I\n\014checker_type\030\021 \001(\01623.goo" - + "gle.monitoring.v3.UptimeCheckConfig.Chec" - + "kerType\022A\n\020selected_regions\030\n \003(\0162\'.goog" - + "le.monitoring.v3.UptimeCheckRegion\022\027\n\013is" - + "_internal\030\017 \001(\010B\002\030\001\022D\n\021internal_checkers" - + "\030\016 \003(\0132%.google.monitoring.v3.InternalCh" - + "eckerB\002\030\001\022L\n\013user_labels\030\024 \003(\01327.google." - + "monitoring.v3.UptimeCheckConfig.UserLabe" - + "lsEntry\032a\n\rResourceGroup\022\020\n\010group_id\030\001 \001" - + "(\t\022>\n\rresource_type\030\002 \001(\0162\'.google.monit" - + "oring.v3.GroupResourceType\032!\n\nPingConfig" - + "\022\023\n\013pings_count\030\001 \001(\005\032\356\t\n\tHttpCheck\022W\n\016r" - + "equest_method\030\010 \001(\0162?.google.monitoring." - + "v3.UptimeCheckConfig.HttpCheck.RequestMe" - + "thod\022\017\n\007use_ssl\030\001 \001(\010\022\014\n\004path\030\002 \001(\t\022\014\n\004p" - + "ort\030\003 \001(\005\022X\n\tauth_info\030\004 \001(\0132E.google.mo" - + "nitoring.v3.UptimeCheckConfig.HttpCheck." - + "BasicAuthentication\022\024\n\014mask_headers\030\005 \001(" - + "\010\022O\n\007headers\030\006 \003(\0132>.google.monitoring.v" - + "3.UptimeCheckConfig.HttpCheck.HeadersEnt" - + "ry\022S\n\014content_type\030\t \001(\0162=.google.monito" - + "ring.v3.UptimeCheckConfig.HttpCheck.Cont" - + "entType\022\033\n\023custom_content_type\030\r \001(\t\022\024\n\014" - + "validate_ssl\030\007 \001(\010\022\014\n\004body\030\n \001(\014\022l\n\036acce" - + "pted_response_status_codes\030\013 \003(\0132D.googl" - + "e.monitoring.v3.UptimeCheckConfig.HttpCh" - + "eck.ResponseStatusCode\022G\n\013ping_config\030\014 " - + "\001(\01322.google.monitoring.v3.UptimeCheckCo" - + "nfig.PingConfig\0329\n\023BasicAuthentication\022\020" - + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\032\334\002\n\022R" - + "esponseStatusCode\022\026\n\014status_value\030\001 \001(\005H" - + "\000\022h\n\014status_class\030\002 \001(\0162P.google.monitor" - + "ing.v3.UptimeCheckConfig.HttpCheck.Respo" - + "nseStatusCode.StatusClassH\000\"\264\001\n\013StatusCl" - + "ass\022\034\n\030STATUS_CLASS_UNSPECIFIED\020\000\022\024\n\020STA" - + "TUS_CLASS_1XX\020d\022\025\n\020STATUS_CLASS_2XX\020\310\001\022\025" - + "\n\020STATUS_CLASS_3XX\020\254\002\022\025\n\020STATUS_CLASS_4X" - + "X\020\220\003\022\025\n\020STATUS_CLASS_5XX\020\364\003\022\025\n\020STATUS_CL" - + "ASS_ANY\020\350\007B\r\n\013status_code\032.\n\014HeadersEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rReq" - + "uestMethod\022\026\n\022METHOD_UNSPECIFIED\020\000\022\007\n\003GE" - + "T\020\001\022\010\n\004POST\020\002\"G\n\013ContentType\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\017\n\013URL_ENCODED\020\001\022\021\n\rUSER_PROV" - + "IDED\020\002\032a\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\022G\n\013ping" - + "_config\030\002 \001(\01322.google.monitoring.v3.Upt" - + "imeCheckConfig.PingConfig\032\312\005\n\016ContentMat" - + "cher\022\017\n\007content\030\001 \001(\t\022\\\n\007matcher\030\002 \001(\0162K" - + ".google.monitoring.v3.UptimeCheckConfig." - + "ContentMatcher.ContentMatcherOption\022c\n\021j" - + "son_path_matcher\030\003 \001(\0132F.google.monitori" - + "ng.v3.UptimeCheckConfig.ContentMatcher.J" - + "sonPathMatcherH\000\032\375\001\n\017JsonPathMatcher\022\021\n\t" - + "json_path\030\001 \001(\t\022r\n\014json_matcher\030\002 \001(\0162\\." - + "google.monitoring.v3.UptimeCheckConfig.C" - + "ontentMatcher.JsonPathMatcher.JsonPathMa" - + "tcherOption\"c\n\025JsonPathMatcherOption\022(\n$" - + "JSON_PATH_MATCHER_OPTION_UNSPECIFIED\020\000\022\017" - + "\n\013EXACT_MATCH\020\001\022\017\n\013REGEX_MATCH\020\002\"\310\001\n\024Con" - + "tentMatcherOption\022&\n\"CONTENT_MATCHER_OPT" - + "ION_UNSPECIFIED\020\000\022\023\n\017CONTAINS_STRING\020\001\022\027" - + "\n\023NOT_CONTAINS_STRING\020\002\022\021\n\rMATCHES_REGEX" - + "\020\003\022\025\n\021NOT_MATCHES_REGEX\020\004\022\025\n\021MATCHES_JSO" - + "N_PATH\020\005\022\031\n\025NOT_MATCHES_JSON_PATH\020\006B\031\n\027a" - + "dditional_matcher_info\0321\n\017UserLabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\013Che" - + "ckerType\022\034\n\030CHECKER_TYPE_UNSPECIFIED\020\000\022\026" - + "\n\022STATIC_IP_CHECKERS\020\001\022\020\n\014VPC_CHECKERS\020\003" - + ":\363\001\352A\357\001\n+monitoring.googleapis.com/Uptim" - + "eCheckConfig\022;projects/{project}/uptimeC" - + "heckConfigs/{uptime_check_config}\022Eorgan" - + "izations/{organization}/uptimeCheckConfi" - + "gs/{uptime_check_config}\0229folders/{folde" - + "r}/uptimeCheckConfigs/{uptime_check_conf" - + "ig}\022\001*B\n\n\010resourceB\024\n\022check_request_type" - + "\"n\n\rUptimeCheckIp\0227\n\006region\030\001 \001(\0162\'.goog" - + "le.monitoring.v3.UptimeCheckRegion\022\020\n\010lo" - + "cation\030\002 \001(\t\022\022\n\nip_address\030\003 \001(\t*\225\001\n\021Upt" - + "imeCheckRegion\022\026\n\022REGION_UNSPECIFIED\020\000\022\007" - + "\n\003USA\020\001\022\n\n\006EUROPE\020\002\022\021\n\rSOUTH_AMERICA\020\003\022\020" - + "\n\014ASIA_PACIFIC\020\004\022\016\n\nUSA_OREGON\020\005\022\014\n\010USA_" - + "IOWA\020\006\022\020\n\014USA_VIRGINIA\020\007*[\n\021GroupResourc" - + "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\014\n\010" - + "INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_BALANCER\020\002B\306\001" - + "\n\030com.google.monitoring.v3B\013UptimeProtoP" - + "\001ZAcloud.google.com/go/monitoring/apiv3/" - + "v2/monitoringpb;monitoringpb\252\002\032Google.Cl" - + "oud.Monitoring.V3\312\002\032Google\\Cloud\\Monitor" - + "ing\\V3\352\002\035Google::Cloud::Monitoring::V3b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_InternalChecker_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_InternalChecker_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Network", "GcpZone", "PeerProjectId", "State", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MonitoredResource", - "ResourceGroup", - "HttpCheck", - "TcpCheck", - "Period", - "Timeout", - "ContentMatchers", - "CheckerType", - "SelectedRegions", - "IsInternal", - "InternalCheckers", - "UserLabels", - "Resource", - "CheckRequestType", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor, - new java.lang.String[] { - "GroupId", "ResourceType", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor, - new java.lang.String[] { - "PingsCount", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor, - new java.lang.String[] { - "RequestMethod", - "UseSsl", - "Path", - "Port", - "AuthInfo", - "MaskHeaders", - "Headers", - "ContentType", - "CustomContentType", - "ValidateSsl", - "Body", - "AcceptedResponseStatusCodes", - "PingConfig", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor - .getNestedTypes() - .get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor, - new java.lang.String[] { - "StatusValue", "StatusClass", "StatusCode", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor - .getNestedTypes() - .get(2); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor, - new java.lang.String[] { - "Port", "PingConfig", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor, - new java.lang.String[] { - "Content", "Matcher", "JsonPathMatcher", "AdditionalMatcherInfo", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor - .getNestedTypes() - .get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor, - new java.lang.String[] { - "JsonPath", "JsonMatcher", - }); - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(5); - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor, - new java.lang.String[] { - "Region", "Location", "IpAddress", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java deleted file mode 100644 index df32fc4f6eb7..000000000000 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public final class UptimeServiceProto { - private UptimeServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/uptime_service.pr" - + "oto\022\024google.monitoring.v3\032\034google/api/an" - + "notations.proto\032\027google/api/client.proto" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\032!google/monitoring/" - + "v3/uptime.proto\032\033google/protobuf/empty.p" - + "roto\032 google/protobuf/field_mask.proto\"\234" - + "\001\n\035ListUptimeCheckConfigsRequest\022D\n\006pare" - + "nt\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring.googleapis" - + ".com/UptimeCheckConfig\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\224\001" - + "\n\036ListUptimeCheckConfigsResponse\022E\n\024upti" - + "me_check_configs\030\001 \003(\0132\'.google.monitori" - + "ng.v3.UptimeCheckConfig\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"a\n\033GetUptim" - + "eCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372" - + "A-\n+monitoring.googleapis.com/UptimeChec" - + "kConfig\"\262\001\n\036CreateUptimeCheckConfigReque" - + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring." - + "googleapis.com/UptimeCheckConfig\022J\n\023upti" - + "me_check_config\030\002 \001(\0132\'.google.monitorin" - + "g.v3.UptimeCheckConfigB\004\342A\001\002\"\235\001\n\036UpdateU" - + "ptimeCheckConfigRequest\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\022J\n\023upti" - + "me_check_config\030\003 \001(\0132\'.google.monitorin" - + "g.v3.UptimeCheckConfigB\004\342A\001\002\"d\n\036DeleteUp" - + "timeCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A" - + "\001\002\372A-\n+monitoring.googleapis.com/UptimeC" - + "heckConfig\"B\n\031ListUptimeCheckIpsRequest\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t" - + "\n\032ListUptimeCheckIpsResponse\022=\n\020uptime_c" - + "heck_ips\030\001 \003(\0132#.google.monitoring.v3.Up" - + "timeCheckIp\022\027\n\017next_page_token\030\002 \001(\t2\275\n\n" - + "\022UptimeCheckService\022\300\001\n\026ListUptimeCheckC" - + "onfigs\0223.google.monitoring.v3.ListUptime" - + "CheckConfigsRequest\0324.google.monitoring." - + "v3.ListUptimeCheckConfigsResponse\";\332A\006pa" - + "rent\202\323\344\223\002,\022*/v3/{parent=projects/*}/upti" - + "meCheckConfigs\022\255\001\n\024GetUptimeCheckConfig\022" - + "1.google.monitoring.v3.GetUptimeCheckCon" - + "figRequest\032\'.google.monitoring.v3.Uptime" - + "CheckConfig\"9\332A\004name\202\323\344\223\002,\022*/v3/{name=pr" - + "ojects/*/uptimeCheckConfigs/*}\022\336\001\n\027Creat" - + "eUptimeCheckConfig\0224.google.monitoring.v" - + "3.CreateUptimeCheckConfigRequest\032\'.googl" - + "e.monitoring.v3.UptimeCheckConfig\"d\332A\032pa" - + "rent,uptime_check_config\202\323\344\223\002A\"*/v3/{par" - + "ent=projects/*}/uptimeCheckConfigs:\023upti" - + "me_check_config\022\353\001\n\027UpdateUptimeCheckCon" - + "fig\0224.google.monitoring.v3.UpdateUptimeC" - + "heckConfigRequest\032\'.google.monitoring.v3" - + ".UptimeCheckConfig\"q\332A\023uptime_check_conf" - + "ig\202\323\344\223\002U2>/v3/{uptime_check_config.name=" - + "projects/*/uptimeCheckConfigs/*}:\023uptime" - + "_check_config\022\242\001\n\027DeleteUptimeCheckConfi" - + "g\0224.google.monitoring.v3.DeleteUptimeChe" - + "ckConfigRequest\032\026.google.protobuf.Empty\"" - + "9\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/upt" - + "imeCheckConfigs/*}\022\223\001\n\022ListUptimeCheckIp" - + "s\022/.google.monitoring.v3.ListUptimeCheck" - + "IpsRequest\0320.google.monitoring.v3.ListUp" - + "timeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3/uptime" - + "CheckIps\032\251\001\312A\031monitoring.googleapis.com\322" - + "A\211\001https://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/monitoring,https://www.googleapis.com/" - + "auth/monitoring.readB\315\001\n\030com.google.moni" - + "toring.v3B\022UptimeServiceProtoP\001ZAcloud.g" - + "oogle.com/go/monitoring/apiv3/v2/monitor" - + "ingpb;monitoringpb\252\002\032Google.Cloud.Monito" - + "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035G" - + "oogle::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.UptimeProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor, - new java.lang.String[] { - "UptimeCheckConfigs", "NextPageToken", "TotalSize", - }); - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "UptimeCheckConfig", - }); - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "UptimeCheckConfig", - }); - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor, - new java.lang.String[] { - "PageSize", "PageToken", - }); - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor, - new java.lang.String[] { - "UptimeCheckIps", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.UptimeProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java similarity index 94% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index 7bf5d904123f..5fcb620b4f16 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -24,7 +24,6 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStub; import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -32,6 +31,7 @@ import com.google.monitoring.v3.AlertPolicyName; import com.google.monitoring.v3.CreateAlertPolicyRequest; import com.google.monitoring.v3.DeleteAlertPolicyRequest; +import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetAlertPolicyRequest; import com.google.monitoring.v3.ListAlertPoliciesRequest; import com.google.monitoring.v3.ListAlertPoliciesResponse; @@ -192,7 +192,7 @@ public AlertPolicyServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) { * // doThingsWith(element); * } @@ -208,7 +208,7 @@ public AlertPolicyServiceStub getStub() { * instead. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) { + public final ListAlertPoliciesPagedResponse listAlertPolicies(FolderName name) { ListAlertPoliciesRequest request = ListAlertPoliciesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -556,6 +556,10 @@ public final UnaryCallable getAlertPolicyCal /** * Creates a new alerting policy. * + *

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -565,7 +569,7 @@ public final UnaryCallable getAlertPolicyCal
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
-   *   ResourceName name = ResourceName.of("[FOLDER]");
+   *   FolderName name = FolderName.of("[FOLDER]");
    *   AlertPolicy alertPolicy = AlertPolicy.newBuilder().build();
    *   AlertPolicy response = alertPolicyServiceClient.createAlertPolicy(name, alertPolicy);
    * }
@@ -585,7 +589,7 @@ public final UnaryCallable getAlertPolicyCal
    *     `[ALERT_POLICY_ID]` value.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertPolicy) {
+  public final AlertPolicy createAlertPolicy(FolderName name, AlertPolicy alertPolicy) {
     CreateAlertPolicyRequest request =
         CreateAlertPolicyRequest.newBuilder()
             .setName(name == null ? null : name.toString())
@@ -598,6 +602,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
   /**
    * Creates a new alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -640,6 +648,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
   /**
    * Creates a new alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -682,6 +694,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
   /**
    * Creates a new alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -721,6 +737,10 @@ public final AlertPolicy createAlertPolicy(String name, AlertPolicy alertPolicy)
   /**
    * Creates a new alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -750,6 +770,10 @@ public final AlertPolicy createAlertPolicy(CreateAlertPolicyRequest request) {
   /**
    * Creates a new alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -779,6 +803,10 @@ public final UnaryCallable createAlertPol
   /**
    * Deletes an alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -811,6 +839,10 @@ public final void deleteAlertPolicy(AlertPolicyName name) {
   /**
    * Deletes an alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -840,6 +872,10 @@ public final void deleteAlertPolicy(String name) {
   /**
    * Deletes an alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -870,6 +906,10 @@ public final void deleteAlertPolicy(DeleteAlertPolicyRequest request) {
   /**
    * Deletes an alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -902,6 +942,10 @@ public final UnaryCallable deleteAlertPolicyCal
    * only certain fields in the current alerting policy by specifying the fields to be updated via
    * `updateMask`. Returns the updated alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -952,6 +996,10 @@ public final AlertPolicy updateAlertPolicy(FieldMask updateMask, AlertPolicy ale
    * only certain fields in the current alerting policy by specifying the fields to be updated via
    * `updateMask`. Returns the updated alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
@@ -983,6 +1031,10 @@ public final AlertPolicy updateAlertPolicy(UpdateAlertPolicyRequest request) {
    * only certain fields in the current alerting policy by specifying the fields to be updated via
    * `updateMask`. Returns the updated alerting policy.
    *
+   * 

Design your application to single-thread API calls that modify the state of alerting + * policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and + * UpdateAlertPolicy. + * *

Sample code: * *

{@code
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
similarity index 99%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
index c1957f0da950..bda0b9fb0934 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
+++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
@@ -27,6 +27,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStubSettings;
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
similarity index 99%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
index 2769450070f5..2238ae5ba38b 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
+++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
@@ -25,12 +25,12 @@
 import com.google.api.gax.paging.AbstractPagedListResponse;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
-import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.monitoring.v3.stub.GroupServiceStub;
 import com.google.cloud.monitoring.v3.stub.GroupServiceStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.monitoring.v3.CreateGroupRequest;
 import com.google.monitoring.v3.DeleteGroupRequest;
+import com.google.monitoring.v3.FolderName;
 import com.google.monitoring.v3.GetGroupRequest;
 import com.google.monitoring.v3.Group;
 import com.google.monitoring.v3.GroupName;
@@ -192,7 +192,7 @@ public GroupServiceStub getStub() {
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
-   *   ResourceName name = ResourceName.of("[FOLDER]");
+   *   FolderName name = FolderName.of("[FOLDER]");
    *   for (Group element : groupServiceClient.listGroups(name).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -204,7 +204,7 @@ public GroupServiceStub getStub() {
    *     

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(ResourceName name) { + public final ListGroupsPagedResponse listGroups(FolderName name) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroups(request); @@ -526,7 +526,7 @@ public final UnaryCallable getGroupCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * Group group = Group.newBuilder().build(); * Group response = groupServiceClient.createGroup(name, group); * } @@ -539,7 +539,7 @@ public final UnaryCallable getGroupCallable() { * the system assigns the name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group createGroup(ResourceName name, Group group) { + public final Group createGroup(FolderName name, Group group) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java index 6455b5d9271a..5f03f0d8430a 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.GroupServiceStubSettings; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index 3425c5b83728..04412a80f5fe 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -26,13 +26,13 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.MetricServiceStub; import com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateMetricDescriptorRequest; import com.google.monitoring.v3.CreateTimeSeriesRequest; import com.google.monitoring.v3.DeleteMetricDescriptorRequest; +import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetMetricDescriptorRequest; import com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest; import com.google.monitoring.v3.ListMetricDescriptorsRequest; @@ -196,7 +196,7 @@ public MetricServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * for (MonitoredResourceDescriptor element : * metricServiceClient.listMonitoredResourceDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -210,7 +210,7 @@ public MetricServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - ResourceName name) { + FolderName name) { ListMonitoredResourceDescriptorsRequest request = ListMonitoredResourceDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -585,7 +585,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * for (MetricDescriptor element : * metricServiceClient.listMetricDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -598,7 +598,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceName name) { + public final ListMetricDescriptorsPagedResponse listMetricDescriptors(FolderName name) { ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -959,7 +959,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); * MetricDescriptor response = * metricServiceClient.createMetricDescriptor(name, metricDescriptor); @@ -973,7 +973,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetricDescriptor createMetricDescriptor( - ResourceName name, MetricDescriptor metricDescriptor) { + FolderName name, MetricDescriptor metricDescriptor) { CreateMetricDescriptorRequest request = CreateMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1302,7 +1302,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * String filter = "filter-1274492040"; * TimeInterval interval = TimeInterval.newBuilder().build(); * ListTimeSeriesRequest.TimeSeriesView view = ListTimeSeriesRequest.TimeSeriesView.forNumber(0); @@ -1328,7 +1328,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTimeSeriesPagedResponse listTimeSeries( - ResourceName name, + FolderName name, String filter, TimeInterval interval, ListTimeSeriesRequest.TimeSeriesView view) { diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java index 5cf5f35bb47e..28152ec46d2a 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java similarity index 95% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index 4336d8e78a2a..9f7a54d23598 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -24,12 +24,12 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStub; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateNotificationChannelRequest; import com.google.monitoring.v3.DeleteNotificationChannelRequest; +import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetNotificationChannelDescriptorRequest; import com.google.monitoring.v3.GetNotificationChannelRequest; import com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest; @@ -204,7 +204,7 @@ public NotificationChannelServiceStub getStub() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * for (NotificationChannelDescriptor element : * notificationChannelServiceClient.listNotificationChannelDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -223,7 +223,7 @@ public NotificationChannelServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelDescriptorsPagedResponse listNotificationChannelDescriptors( - ResourceName name) { + FolderName name) { ListNotificationChannelDescriptorsRequest request = ListNotificationChannelDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -620,7 +620,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -632,7 +633,7 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { - * ResourceName name = ResourceName.of("[FOLDER]"); + * FolderName name = FolderName.of("[FOLDER]"); * for (NotificationChannel element : * notificationChannelServiceClient.listNotificationChannels(name).iterateAll()) { * // doThingsWith(element); @@ -649,7 +650,7 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationChannelsPagedResponse listNotificationChannels(ResourceName name) { + public final ListNotificationChannelsPagedResponse listNotificationChannels(FolderName name) { ListNotificationChannelsRequest request = ListNotificationChannelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -659,7 +660,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Reso // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -699,7 +701,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -738,7 +741,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Proj // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -775,7 +779,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Stri // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -812,7 +817,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -850,7 +856,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the notification channels that have been created for the project. + * Lists the notification channels that have been created for the project. To list the types of + * notification channels that are supported, use the `ListNotificationChannelDescriptors` method. * *

Sample code: * @@ -1039,6 +1046,10 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * Creates a new notification channel, representing a single notification endpoint such as an * email address, SMS number, or PagerDuty service. * + *

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1049,7 +1060,7 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotificationChannelServiceClient notificationChannelServiceClient =
    *     NotificationChannelServiceClient.create()) {
-   *   ResourceName name = ResourceName.of("[FOLDER]");
+   *   FolderName name = FolderName.of("[FOLDER]");
    *   NotificationChannel notificationChannel = NotificationChannel.newBuilder().build();
    *   NotificationChannel response =
    *       notificationChannelServiceClient.createNotificationChannel(name, notificationChannel);
@@ -1067,7 +1078,7 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final NotificationChannel createNotificationChannel(
-      ResourceName name, NotificationChannel notificationChannel) {
+      FolderName name, NotificationChannel notificationChannel) {
     CreateNotificationChannelRequest request =
         CreateNotificationChannelRequest.newBuilder()
             .setName(name == null ? null : name.toString())
@@ -1081,6 +1092,10 @@ public final NotificationChannel createNotificationChannel(
    * Creates a new notification channel, representing a single notification endpoint such as an
    * email address, SMS number, or PagerDuty service.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1123,6 +1138,10 @@ public final NotificationChannel createNotificationChannel(
    * Creates a new notification channel, representing a single notification endpoint such as an
    * email address, SMS number, or PagerDuty service.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1165,6 +1184,10 @@ public final NotificationChannel createNotificationChannel(
    * Creates a new notification channel, representing a single notification endpoint such as an
    * email address, SMS number, or PagerDuty service.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1207,6 +1230,10 @@ public final NotificationChannel createNotificationChannel(
    * Creates a new notification channel, representing a single notification endpoint such as an
    * email address, SMS number, or PagerDuty service.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1240,6 +1267,10 @@ public final NotificationChannel createNotificationChannel(
    * Creates a new notification channel, representing a single notification endpoint such as an
    * email address, SMS number, or PagerDuty service.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1271,6 +1302,10 @@ public final NotificationChannel createNotificationChannel(
   /**
    * Updates a notification channel. Fields not specified in the field mask remain unchanged.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1309,6 +1344,10 @@ public final NotificationChannel updateNotificationChannel(
   /**
    * Updates a notification channel. Fields not specified in the field mask remain unchanged.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1341,6 +1380,10 @@ public final NotificationChannel updateNotificationChannel(
   /**
    * Updates a notification channel. Fields not specified in the field mask remain unchanged.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1372,6 +1415,10 @@ public final NotificationChannel updateNotificationChannel(
   /**
    * Deletes a notification channel.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1411,6 +1458,10 @@ public final void deleteNotificationChannel(NotificationChannelName name, boolea
   /**
    * Deletes a notification channel.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1448,6 +1499,10 @@ public final void deleteNotificationChannel(String name, boolean force) {
   /**
    * Deletes a notification channel.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
@@ -1481,6 +1536,10 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req
   /**
    * Deletes a notification channel.
    *
+   * 

Design your application to single-thread API calls that modify the state of notification + * channels in a single project. This includes calls to CreateNotificationChannel, + * DeleteNotificationChannel and UpdateNotificationChannel. + * *

Sample code: * *

{@code
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java
similarity index 99%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java
index 6837f70c0269..57eb0f6190b5 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java
+++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java
@@ -28,6 +28,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStubSettings;
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java
similarity index 100%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java
similarity index 99%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java
index 844d3eb8bcc7..81c9e87a299b 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java
+++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java
@@ -27,6 +27,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.monitoring.v3.stub.QueryServiceStubSettings;
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
similarity index 99%
rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
index 169dd523834b..e3cdcd33c9c7 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
+++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
@@ -24,7 +24,6 @@
 import com.google.api.gax.paging.AbstractPagedListResponse;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
-import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStub;
 import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -32,6 +31,7 @@
 import com.google.monitoring.v3.CreateServiceRequest;
 import com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest;
 import com.google.monitoring.v3.DeleteServiceRequest;
+import com.google.monitoring.v3.FolderName;
 import com.google.monitoring.v3.GetServiceLevelObjectiveRequest;
 import com.google.monitoring.v3.GetServiceRequest;
 import com.google.monitoring.v3.ListServiceLevelObjectivesRequest;
@@ -69,7 +69,7 @@
  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient =
  *     ServiceMonitoringServiceClient.create()) {
- *   ResourceName parent = ResourceName.of("[FOLDER]");
+ *   FolderName parent = FolderName.of("[FOLDER]");
  *   Service service = Service.newBuilder().build();
  *   Service response = serviceMonitoringServiceClient.createService(parent, service);
  * }
@@ -200,7 +200,7 @@ public ServiceMonitoringServiceStub getStub() {
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient =
    *     ServiceMonitoringServiceClient.create()) {
-   *   ResourceName parent = ResourceName.of("[FOLDER]");
+   *   FolderName parent = FolderName.of("[FOLDER]");
    *   Service service = Service.newBuilder().build();
    *   Service response = serviceMonitoringServiceClient.createService(parent, service);
    * }
@@ -213,7 +213,7 @@ public ServiceMonitoringServiceStub getStub() {
    * @param service Required. The `Service` to create.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final Service createService(ResourceName parent, Service service) {
+  public final Service createService(FolderName parent, Service service) {
     CreateServiceRequest request =
         CreateServiceRequest.newBuilder()
             .setParent(parent == null ? null : parent.toString())
@@ -518,7 +518,7 @@ public final UnaryCallable getServiceCallable() {
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient =
    *     ServiceMonitoringServiceClient.create()) {
-   *   ResourceName parent = ResourceName.of("[FOLDER]");
+   *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (Service element : serviceMonitoringServiceClient.listServices(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -531,7 +531,7 @@ public final UnaryCallable getServiceCallable() {
    *     

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(ResourceName parent) { + public final ListServicesPagedResponse listServices(FolderName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java index 842706a9aa2b..122973fb991c 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStubSettings; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java index 7e29f65b55dd..cd5771c6f145 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.SnoozeServiceStubSettings; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index 6f4ebe26c2fd..def911747a19 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -24,12 +24,12 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStub; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateUptimeCheckConfigRequest; import com.google.monitoring.v3.DeleteUptimeCheckConfigRequest; +import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetUptimeCheckConfigRequest; import com.google.monitoring.v3.ListUptimeCheckConfigsRequest; import com.google.monitoring.v3.ListUptimeCheckConfigsResponse; @@ -196,7 +196,7 @@ public UptimeCheckServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { - * ResourceName parent = ResourceName.of("[FOLDER]"); + * FolderName parent = FolderName.of("[FOLDER]"); * for (UptimeCheckConfig element : * uptimeCheckServiceClient.listUptimeCheckConfigs(parent).iterateAll()) { * // doThingsWith(element); @@ -209,7 +209,7 @@ public UptimeCheckServiceStub getStub() { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ResourceName parent) { + public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(FolderName parent) { ListUptimeCheckConfigsRequest request = ListUptimeCheckConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -571,7 +571,7 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { - * ResourceName parent = ResourceName.of("[FOLDER]"); + * FolderName parent = FolderName.of("[FOLDER]"); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); * UptimeCheckConfig response = * uptimeCheckServiceClient.createUptimeCheckConfig(parent, uptimeCheckConfig); @@ -585,7 +585,7 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig createUptimeCheckConfig( - ResourceName parent, UptimeCheckConfig uptimeCheckConfig) { + FolderName parent, UptimeCheckConfig uptimeCheckConfig) { CreateUptimeCheckConfigRequest request = CreateUptimeCheckConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java index d373bb522b96..af8f9f3f5486 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStubSettings; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java index 42b6c89432b1..208f4b2475b0 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java index f6c0cb5e272a..7cec0ec6f248 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java index 4135b87af642..c3959a1e091e 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java index e301eb2e5ee3..c5a4e785f68c 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java index 2729b5d81979..78dea51de0ff 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java index 731a2c824007..8c805a305c1f 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java index 00306d6aa845..a43c22210293 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java @@ -35,6 +35,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java similarity index 99% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java index c6a09cdbb770..db36ceb96f7e 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java diff --git a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json similarity index 98% rename from java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json index df6d4920e888..5021e69939b8 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json +++ b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json @@ -719,6 +719,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.v3.AlertPolicy$AlertStrategy$NotificationChannelStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.v3.AlertPolicy$AlertStrategy$NotificationChannelStrategy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.AlertPolicy$AlertStrategy$NotificationRateLimit", "queryAllDeclaredConstructors": true, @@ -827,6 +845,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Condition$MetricThreshold$ForecastOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Condition$MetricThreshold$ForecastOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.AlertPolicy$Condition$MonitoringQueryLanguageCondition", "queryAllDeclaredConstructors": true, @@ -845,6 +881,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Condition$PrometheusQueryLanguageCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Condition$PrometheusQueryLanguageCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.AlertPolicy$Condition$Trigger", "queryAllDeclaredConstructors": true, diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java diff --git a/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java b/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java similarity index 100% rename from java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java rename to owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java similarity index 53% rename from java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java rename to owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java index 8fb614f43aa6..4d7e2a86011b 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * The AlertPolicyService API is used to manage (list, create, delete,
  * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -43,272 +26,206 @@ private AlertPolicyServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.AlertPolicyService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListAlertPoliciesRequest,
-          com.google.monitoring.v3.ListAlertPoliciesResponse>
-      getListAlertPoliciesMethod;
+  private static volatile io.grpc.MethodDescriptor getListAlertPoliciesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListAlertPolicies",
       requestType = com.google.monitoring.v3.ListAlertPoliciesRequest.class,
       responseType = com.google.monitoring.v3.ListAlertPoliciesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListAlertPoliciesRequest,
-          com.google.monitoring.v3.ListAlertPoliciesResponse>
-      getListAlertPoliciesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.ListAlertPoliciesRequest,
-            com.google.monitoring.v3.ListAlertPoliciesResponse>
-        getListAlertPoliciesMethod;
+  public static io.grpc.MethodDescriptor getListAlertPoliciesMethod() {
+    io.grpc.MethodDescriptor getListAlertPoliciesMethod;
     if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod)
-            == null) {
-          AlertPolicyServiceGrpc.getListAlertPoliciesMethod =
-              getListAlertPoliciesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAlertPolicies"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListAlertPoliciesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListAlertPoliciesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new AlertPolicyServiceMethodDescriptorSupplier("ListAlertPolicies"))
-                      .build();
+        if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod) == null) {
+          AlertPolicyServiceGrpc.getListAlertPoliciesMethod = getListAlertPoliciesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAlertPolicies"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("ListAlertPolicies"))
+              .build();
         }
       }
     }
     return getListAlertPoliciesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getGetAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetAlertPolicy",
       requestType = com.google.monitoring.v3.GetAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getGetAlertPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-        getGetAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor getGetAlertPolicyMethod() {
+    io.grpc.MethodDescriptor getGetAlertPolicyMethod;
     if ((getGetAlertPolicyMethod = AlertPolicyServiceGrpc.getGetAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
         if ((getGetAlertPolicyMethod = AlertPolicyServiceGrpc.getGetAlertPolicyMethod) == null) {
-          AlertPolicyServiceGrpc.getGetAlertPolicyMethod =
-              getGetAlertPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAlertPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.GetAlertPolicyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
-                      .build();
+          AlertPolicyServiceGrpc.getGetAlertPolicyMethod = getGetAlertPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAlertPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.GetAlertPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
+              .build();
         }
       }
     }
     return getGetAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getCreateAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateAlertPolicy",
       requestType = com.google.monitoring.v3.CreateAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getCreateAlertPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-        getCreateAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor getCreateAlertPolicyMethod() {
+    io.grpc.MethodDescriptor getCreateAlertPolicyMethod;
     if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod)
-            == null) {
-          AlertPolicyServiceGrpc.getCreateAlertPolicyMethod =
-              getCreateAlertPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAlertPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.CreateAlertPolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
-                      .build();
+        if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod) == null) {
+          AlertPolicyServiceGrpc.getCreateAlertPolicyMethod = getCreateAlertPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAlertPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
+              .build();
         }
       }
     }
     return getCreateAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
-      getDeleteAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteAlertPolicy",
       requestType = com.google.monitoring.v3.DeleteAlertPolicyRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
-      getDeleteAlertPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
-        getDeleteAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor getDeleteAlertPolicyMethod() {
+    io.grpc.MethodDescriptor getDeleteAlertPolicyMethod;
     if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod)
-            == null) {
-          AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod =
-              getDeleteAlertPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAlertPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.DeleteAlertPolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new AlertPolicyServiceMethodDescriptorSupplier("DeleteAlertPolicy"))
-                      .build();
+        if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod) == null) {
+          AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod = getDeleteAlertPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAlertPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("DeleteAlertPolicy"))
+              .build();
         }
       }
     }
     return getDeleteAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getUpdateAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateAlertPolicy",
       requestType = com.google.monitoring.v3.UpdateAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-      getUpdateAlertPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
-        getUpdateAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor getUpdateAlertPolicyMethod() {
+    io.grpc.MethodDescriptor getUpdateAlertPolicyMethod;
     if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod)
-            == null) {
-          AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod =
-              getUpdateAlertPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAlertPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.UpdateAlertPolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))
-                      .build();
+        if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod) == null) {
+          AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod = getUpdateAlertPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAlertPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))
+              .build();
         }
       }
     }
     return getUpdateAlertPolicyMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static AlertPolicyServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public AlertPolicyServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new AlertPolicyServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public AlertPolicyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new AlertPolicyServiceStub(channel, callOptions);
+        }
+      };
     return AlertPolicyServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static AlertPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static AlertPolicyServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public AlertPolicyServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new AlertPolicyServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public AlertPolicyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new AlertPolicyServiceBlockingStub(channel, callOptions);
+        }
+      };
     return AlertPolicyServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static AlertPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static AlertPolicyServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public AlertPolicyServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new AlertPolicyServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public AlertPolicyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new AlertPolicyServiceFutureStub(channel, callOptions);
+        }
+      };
     return AlertPolicyServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -324,83 +241,70 @@ public AlertPolicyServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - default void listAlertPolicies( - com.google.monitoring.v3.ListAlertPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAlertPoliciesMethod(), responseObserver); + default void listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAlertPoliciesMethod(), responseObserver); } /** - * - * *
      * Gets a single alerting policy.
      * 
*/ - default void getAlertPolicy( - com.google.monitoring.v3.GetAlertPolicyRequest request, + default void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAlertPolicyMethod(), responseObserver); } /** - * - * *
      * Creates a new alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void createAlertPolicy( - com.google.monitoring.v3.CreateAlertPolicyRequest request, + default void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAlertPolicyMethod(), responseObserver); } /** - * - * *
      * Deletes an alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void deleteAlertPolicy( - com.google.monitoring.v3.DeleteAlertPolicyRequest request, + default void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAlertPolicyMethod(), responseObserver); } /** - * - * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
      * specifying the fields to be updated via `updateMask`. Returns the
      * updated alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void updateAlertPolicy( - com.google.monitoring.v3.UpdateAlertPolicyRequest request, + default void updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAlertPolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service AlertPolicyService. - * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -413,18 +317,16 @@ default void updateAlertPolicy(
    * [Cloud console](https://console.cloud.google.com/).
    * 
*/ - public abstract static class AlertPolicyServiceImplBase + public static abstract class AlertPolicyServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return AlertPolicyServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AlertPolicyService. - * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -439,7 +341,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class AlertPolicyServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private AlertPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private AlertPolicyServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -450,93 +353,75 @@ protected AlertPolicyServiceStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public void listAlertPolicies( - com.google.monitoring.v3.ListAlertPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a single alerting policy.
      * 
*/ - public void getAlertPolicy( - com.google.monitoring.v3.GetAlertPolicyRequest request, + public void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void createAlertPolicy( - com.google.monitoring.v3.CreateAlertPolicyRequest request, + public void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void deleteAlertPolicy( - com.google.monitoring.v3.DeleteAlertPolicyRequest request, + public void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
      * specifying the fields to be updated via `updateMask`. Returns the
      * updated alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void updateAlertPolicy( - com.google.monitoring.v3.UpdateAlertPolicyRequest request, + public void updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AlertPolicyService. - * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -563,69 +448,63 @@ protected AlertPolicyServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies( - com.google.monitoring.v3.ListAlertPoliciesRequest request) { + public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAlertPoliciesMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a single alerting policy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy getAlertPolicy( - com.google.monitoring.v3.GetAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAlertPolicyMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy createAlertPolicy( - com.google.monitoring.v3.CreateAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAlertPolicyMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.protobuf.Empty deleteAlertPolicy( - com.google.monitoring.v3.DeleteAlertPolicyRequest request) { + public com.google.protobuf.Empty deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAlertPolicyMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
      * specifying the fields to be updated via `updateMask`. Returns the
      * updated alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy updateAlertPolicy( - com.google.monitoring.v3.UpdateAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAlertPolicyMethod(), getCallOptions(), request); } @@ -633,7 +512,6 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AlertPolicyService. - * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -648,7 +526,8 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(
    */
   public static final class AlertPolicyServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private AlertPolicyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private AlertPolicyServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -659,70 +538,68 @@ protected AlertPolicyServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListAlertPoliciesResponse> - listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listAlertPolicies( + com.google.monitoring.v3.ListAlertPoliciesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a single alerting policy.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getAlertPolicy( + com.google.monitoring.v3.GetAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture createAlertPolicy( + com.google.monitoring.v3.CreateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteAlertPolicy( + com.google.monitoring.v3.DeleteAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
      * specifying the fields to be updated via `updateMask`. Returns the
      * updated alerting policy.
+     * Design your application to single-thread API calls that modify the state of
+     * alerting policies in a single project. This includes calls to
+     * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateAlertPolicy( + com.google.monitoring.v3.UpdateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), request); } @@ -734,11 +611,11 @@ protected AlertPolicyServiceFutureStub build( private static final int METHODID_DELETE_ALERT_POLICY = 3; private static final int METHODID_UPDATE_ALERT_POLICY = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -752,29 +629,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_ALERT_POLICIES: - serviceImpl.listAlertPolicies( - (com.google.monitoring.v3.ListAlertPoliciesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listAlertPolicies((com.google.monitoring.v3.ListAlertPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ALERT_POLICY: - serviceImpl.getAlertPolicy( - (com.google.monitoring.v3.GetAlertPolicyRequest) request, + serviceImpl.getAlertPolicy((com.google.monitoring.v3.GetAlertPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ALERT_POLICY: - serviceImpl.createAlertPolicy( - (com.google.monitoring.v3.CreateAlertPolicyRequest) request, + serviceImpl.createAlertPolicy((com.google.monitoring.v3.CreateAlertPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_ALERT_POLICY: - serviceImpl.deleteAlertPolicy( - (com.google.monitoring.v3.DeleteAlertPolicyRequest) request, + serviceImpl.deleteAlertPolicy((com.google.monitoring.v3.DeleteAlertPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_ALERT_POLICY: - serviceImpl.updateAlertPolicy( - (com.google.monitoring.v3.UpdateAlertPolicyRequest) request, + serviceImpl.updateAlertPolicy((com.google.monitoring.v3.UpdateAlertPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -796,42 +667,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListAlertPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListAlertPoliciesRequest, - com.google.monitoring.v3.ListAlertPoliciesResponse>( - service, METHODID_LIST_ALERT_POLICIES))) + getListAlertPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListAlertPoliciesRequest, + com.google.monitoring.v3.ListAlertPoliciesResponse>( + service, METHODID_LIST_ALERT_POLICIES))) .addMethod( - getGetAlertPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetAlertPolicyRequest, - com.google.monitoring.v3.AlertPolicy>(service, METHODID_GET_ALERT_POLICY))) + getGetAlertPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetAlertPolicyRequest, + com.google.monitoring.v3.AlertPolicy>( + service, METHODID_GET_ALERT_POLICY))) .addMethod( - getCreateAlertPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateAlertPolicyRequest, - com.google.monitoring.v3.AlertPolicy>(service, METHODID_CREATE_ALERT_POLICY))) + getCreateAlertPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateAlertPolicyRequest, + com.google.monitoring.v3.AlertPolicy>( + service, METHODID_CREATE_ALERT_POLICY))) .addMethod( - getDeleteAlertPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_ALERT_POLICY))) + getDeleteAlertPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteAlertPolicyRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_ALERT_POLICY))) .addMethod( - getUpdateAlertPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateAlertPolicyRequest, - com.google.monitoring.v3.AlertPolicy>(service, METHODID_UPDATE_ALERT_POLICY))) + getUpdateAlertPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateAlertPolicyRequest, + com.google.monitoring.v3.AlertPolicy>( + service, METHODID_UPDATE_ALERT_POLICY))) .build(); } - private abstract static class AlertPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class AlertPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AlertPolicyServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -873,16 +747,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AlertPolicyServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AlertPolicyServiceFileDescriptorSupplier()) - .addMethod(getListAlertPoliciesMethod()) - .addMethod(getGetAlertPolicyMethod()) - .addMethod(getCreateAlertPolicyMethod()) - .addMethod(getDeleteAlertPolicyMethod()) - .addMethod(getUpdateAlertPolicyMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AlertPolicyServiceFileDescriptorSupplier()) + .addMethod(getListAlertPoliciesMethod()) + .addMethod(getGetAlertPolicyMethod()) + .addMethod(getCreateAlertPolicyMethod()) + .addMethod(getDeleteAlertPolicyMethod()) + .addMethod(getUpdateAlertPolicyMethod()) + .build(); } } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java similarity index 52% rename from java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java rename to owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java index c39421b2cb22..b55105b14e65 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The Group API lets you inspect and manage your
  * [groups](#google.monitoring.v3.Group).
@@ -45,297 +28,237 @@ private GroupServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.GroupService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
-      getListGroupsMethod;
+  private static volatile io.grpc.MethodDescriptor getListGroupsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListGroups",
       requestType = com.google.monitoring.v3.ListGroupsRequest.class,
       responseType = com.google.monitoring.v3.ListGroupsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
-      getListGroupsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
-        getListGroupsMethod;
+  public static io.grpc.MethodDescriptor getListGroupsMethod() {
+    io.grpc.MethodDescriptor getListGroupsMethod;
     if ((getListGroupsMethod = GroupServiceGrpc.getListGroupsMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getListGroupsMethod = GroupServiceGrpc.getListGroupsMethod) == null) {
-          GroupServiceGrpc.getListGroupsMethod =
-              getListGroupsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroups"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroups"))
-                      .build();
+          GroupServiceGrpc.getListGroupsMethod = getListGroupsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroups"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroups"))
+              .build();
         }
       }
     }
     return getListGroupsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
-      getGetGroupMethod;
+  private static volatile io.grpc.MethodDescriptor getGetGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetGroup",
       requestType = com.google.monitoring.v3.GetGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
-      getGetGroupMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
-        getGetGroupMethod;
+  public static io.grpc.MethodDescriptor getGetGroupMethod() {
+    io.grpc.MethodDescriptor getGetGroupMethod;
     if ((getGetGroupMethod = GroupServiceGrpc.getGetGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getGetGroupMethod = GroupServiceGrpc.getGetGroupMethod) == null) {
-          GroupServiceGrpc.getGetGroupMethod =
-              getGetGroupMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGroup"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.GetGroupRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Group.getDefaultInstance()))
-                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("GetGroup"))
-                      .build();
+          GroupServiceGrpc.getGetGroupMethod = getGetGroupMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGroup"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.GetGroupRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Group.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("GetGroup"))
+              .build();
         }
       }
     }
     return getGetGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
-      getCreateGroupMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateGroup",
       requestType = com.google.monitoring.v3.CreateGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
-      getCreateGroupMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
-        getCreateGroupMethod;
+  public static io.grpc.MethodDescriptor getCreateGroupMethod() {
+    io.grpc.MethodDescriptor getCreateGroupMethod;
     if ((getCreateGroupMethod = GroupServiceGrpc.getCreateGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getCreateGroupMethod = GroupServiceGrpc.getCreateGroupMethod) == null) {
-          GroupServiceGrpc.getCreateGroupMethod =
-              getCreateGroupMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGroup"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.CreateGroupRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Group.getDefaultInstance()))
-                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("CreateGroup"))
-                      .build();
+          GroupServiceGrpc.getCreateGroupMethod = getCreateGroupMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGroup"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.CreateGroupRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Group.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("CreateGroup"))
+              .build();
         }
       }
     }
     return getCreateGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
-      getUpdateGroupMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateGroup",
       requestType = com.google.monitoring.v3.UpdateGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
-      getUpdateGroupMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
-        getUpdateGroupMethod;
+  public static io.grpc.MethodDescriptor getUpdateGroupMethod() {
+    io.grpc.MethodDescriptor getUpdateGroupMethod;
     if ((getUpdateGroupMethod = GroupServiceGrpc.getUpdateGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getUpdateGroupMethod = GroupServiceGrpc.getUpdateGroupMethod) == null) {
-          GroupServiceGrpc.getUpdateGroupMethod =
-              getUpdateGroupMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGroup"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Group.getDefaultInstance()))
-                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("UpdateGroup"))
-                      .build();
+          GroupServiceGrpc.getUpdateGroupMethod = getUpdateGroupMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGroup"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Group.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("UpdateGroup"))
+              .build();
         }
       }
     }
     return getUpdateGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>
-      getDeleteGroupMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteGroup",
       requestType = com.google.monitoring.v3.DeleteGroupRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>
-      getDeleteGroupMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteGroupMethod;
+  public static io.grpc.MethodDescriptor getDeleteGroupMethod() {
+    io.grpc.MethodDescriptor getDeleteGroupMethod;
     if ((getDeleteGroupMethod = GroupServiceGrpc.getDeleteGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getDeleteGroupMethod = GroupServiceGrpc.getDeleteGroupMethod) == null) {
-          GroupServiceGrpc.getDeleteGroupMethod =
-              getDeleteGroupMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGroup"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.DeleteGroupRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("DeleteGroup"))
-                      .build();
+          GroupServiceGrpc.getDeleteGroupMethod = getDeleteGroupMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGroup"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.DeleteGroupRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("DeleteGroup"))
+              .build();
         }
       }
     }
     return getDeleteGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListGroupMembersRequest,
-          com.google.monitoring.v3.ListGroupMembersResponse>
-      getListGroupMembersMethod;
+  private static volatile io.grpc.MethodDescriptor getListGroupMembersMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListGroupMembers",
       requestType = com.google.monitoring.v3.ListGroupMembersRequest.class,
       responseType = com.google.monitoring.v3.ListGroupMembersResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListGroupMembersRequest,
-          com.google.monitoring.v3.ListGroupMembersResponse>
-      getListGroupMembersMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.ListGroupMembersRequest,
-            com.google.monitoring.v3.ListGroupMembersResponse>
-        getListGroupMembersMethod;
+  public static io.grpc.MethodDescriptor getListGroupMembersMethod() {
+    io.grpc.MethodDescriptor getListGroupMembersMethod;
     if ((getListGroupMembersMethod = GroupServiceGrpc.getListGroupMembersMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getListGroupMembersMethod = GroupServiceGrpc.getListGroupMembersMethod) == null) {
-          GroupServiceGrpc.getListGroupMembersMethod =
-              getListGroupMembersMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroupMembers"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListGroupMembersRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListGroupMembersResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new GroupServiceMethodDescriptorSupplier("ListGroupMembers"))
-                      .build();
+          GroupServiceGrpc.getListGroupMembersMethod = getListGroupMembersMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroupMembers"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroupMembers"))
+              .build();
         }
       }
     }
     return getListGroupMembersMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static GroupServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public GroupServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new GroupServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public GroupServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new GroupServiceStub(channel, callOptions);
+        }
+      };
     return GroupServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static GroupServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static GroupServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public GroupServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new GroupServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public GroupServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new GroupServiceBlockingStub(channel, callOptions);
+        }
+      };
     return GroupServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static GroupServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static GroupServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public GroupServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new GroupServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public GroupServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new GroupServiceFutureStub(channel, callOptions);
+        }
+      };
     return GroupServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -353,93 +276,69 @@ public GroupServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists the existing groups.
      * 
*/ - default void listGroups( - com.google.monitoring.v3.ListGroupsRequest request, + default void listGroups(com.google.monitoring.v3.ListGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGroupsMethod(), responseObserver); } /** - * - * *
      * Gets a single group.
      * 
*/ - default void getGroup( - com.google.monitoring.v3.GetGroupRequest request, + default void getGroup(com.google.monitoring.v3.GetGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGroupMethod(), responseObserver); } /** - * - * *
      * Creates a new group.
      * 
*/ - default void createGroup( - com.google.monitoring.v3.CreateGroupRequest request, + default void createGroup(com.google.monitoring.v3.CreateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGroupMethod(), responseObserver); } /** - * - * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - default void updateGroup( - com.google.monitoring.v3.UpdateGroupRequest request, + default void updateGroup(com.google.monitoring.v3.UpdateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGroupMethod(), responseObserver); } /** - * - * *
      * Deletes an existing group.
      * 
*/ - default void deleteGroup( - com.google.monitoring.v3.DeleteGroupRequest request, + default void deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGroupMethod(), responseObserver); } /** - * - * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - default void listGroupMembers( - com.google.monitoring.v3.ListGroupMembersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGroupMembersMethod(), responseObserver); + default void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGroupMembersMethod(), responseObserver); } } /** * Base class for the server implementation of the service GroupService. - * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -454,18 +353,16 @@ default void listGroupMembers(
    * from the infrastructure.
    * 
*/ - public abstract static class GroupServiceImplBase + public static abstract class GroupServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return GroupServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service GroupService. - * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -482,113 +379,87 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class GroupServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private GroupServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected GroupServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected GroupServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new GroupServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing groups.
      * 
*/ - public void listGroups( - com.google.monitoring.v3.ListGroupsRequest request, + public void listGroups(com.google.monitoring.v3.ListGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a single group.
      * 
*/ - public void getGroup( - com.google.monitoring.v3.GetGroupRequest request, + public void getGroup(com.google.monitoring.v3.GetGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetGroupMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new group.
      * 
*/ - public void createGroup( - com.google.monitoring.v3.CreateGroupRequest request, + public void createGroup(com.google.monitoring.v3.CreateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGroupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateGroupMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public void updateGroup( - com.google.monitoring.v3.UpdateGroupRequest request, + public void updateGroup(com.google.monitoring.v3.UpdateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an existing group.
      * 
*/ - public void deleteGroup( - com.google.monitoring.v3.DeleteGroupRequest request, + public void deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public void listGroupMembers( - com.google.monitoring.v3.ListGroupMembersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service GroupService. - * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -605,7 +476,8 @@ public void listGroupMembers(
    */
   public static final class GroupServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private GroupServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -616,80 +488,62 @@ protected GroupServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing groups.
      * 
*/ - public com.google.monitoring.v3.ListGroupsResponse listGroups( - com.google.monitoring.v3.ListGroupsRequest request) { + public com.google.monitoring.v3.ListGroupsResponse listGroups(com.google.monitoring.v3.ListGroupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets a single group.
      * 
*/ - public com.google.monitoring.v3.Group getGroup( - com.google.monitoring.v3.GetGroupRequest request) { + public com.google.monitoring.v3.Group getGroup(com.google.monitoring.v3.GetGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new group.
      * 
*/ - public com.google.monitoring.v3.Group createGroup( - com.google.monitoring.v3.CreateGroupRequest request) { + public com.google.monitoring.v3.Group createGroup(com.google.monitoring.v3.CreateGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateGroupMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public com.google.monitoring.v3.Group updateGroup( - com.google.monitoring.v3.UpdateGroupRequest request) { + public com.google.monitoring.v3.Group updateGroup(com.google.monitoring.v3.UpdateGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an existing group.
      * 
*/ - public com.google.protobuf.Empty deleteGroup( - com.google.monitoring.v3.DeleteGroupRequest request) { + public com.google.protobuf.Empty deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteGroupMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers( - com.google.monitoring.v3.ListGroupMembersRequest request) { + public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGroupMembersMethod(), getCallOptions(), request); } @@ -697,7 +551,6 @@ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service GroupService. - * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -714,7 +567,8 @@ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(
    */
   public static final class GroupServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private GroupServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -725,82 +579,68 @@ protected GroupServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists the existing groups.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListGroupsResponse> - listGroups(com.google.monitoring.v3.ListGroupsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listGroups( + com.google.monitoring.v3.ListGroupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a single group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getGroup(com.google.monitoring.v3.GetGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture getGroup( + com.google.monitoring.v3.GetGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetGroupMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createGroup(com.google.monitoring.v3.CreateGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture createGroup( + com.google.monitoring.v3.CreateGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateGroupMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateGroup(com.google.monitoring.v3.UpdateGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateGroup( + com.google.monitoring.v3.UpdateGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an existing group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteGroup( + com.google.monitoring.v3.DeleteGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListGroupMembersResponse> - listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request) { + public com.google.common.util.concurrent.ListenableFuture listGroupMembers( + com.google.monitoring.v3.ListGroupMembersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), request); } @@ -813,11 +653,11 @@ protected GroupServiceFutureStub build( private static final int METHODID_DELETE_GROUP = 4; private static final int METHODID_LIST_GROUP_MEMBERS = 5; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -831,36 +671,28 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_GROUPS: - serviceImpl.listGroups( - (com.google.monitoring.v3.ListGroupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listGroups((com.google.monitoring.v3.ListGroupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_GROUP: - serviceImpl.getGroup( - (com.google.monitoring.v3.GetGroupRequest) request, + serviceImpl.getGroup((com.google.monitoring.v3.GetGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_GROUP: - serviceImpl.createGroup( - (com.google.monitoring.v3.CreateGroupRequest) request, + serviceImpl.createGroup((com.google.monitoring.v3.CreateGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_GROUP: - serviceImpl.updateGroup( - (com.google.monitoring.v3.UpdateGroupRequest) request, + serviceImpl.updateGroup((com.google.monitoring.v3.UpdateGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_GROUP: - serviceImpl.deleteGroup( - (com.google.monitoring.v3.DeleteGroupRequest) request, + serviceImpl.deleteGroup((com.google.monitoring.v3.DeleteGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_GROUP_MEMBERS: - serviceImpl.listGroupMembers( - (com.google.monitoring.v3.ListGroupMembersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listGroupMembers((com.google.monitoring.v3.ListGroupMembersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -881,48 +713,52 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListGroupsRequest, - com.google.monitoring.v3.ListGroupsResponse>(service, METHODID_LIST_GROUPS))) + getListGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListGroupsRequest, + com.google.monitoring.v3.ListGroupsResponse>( + service, METHODID_LIST_GROUPS))) .addMethod( - getGetGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>( - service, METHODID_GET_GROUP))) + getGetGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetGroupRequest, + com.google.monitoring.v3.Group>( + service, METHODID_GET_GROUP))) .addMethod( - getCreateGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>( - service, METHODID_CREATE_GROUP))) + getCreateGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateGroupRequest, + com.google.monitoring.v3.Group>( + service, METHODID_CREATE_GROUP))) .addMethod( - getUpdateGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>( - service, METHODID_UPDATE_GROUP))) + getUpdateGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateGroupRequest, + com.google.monitoring.v3.Group>( + service, METHODID_UPDATE_GROUP))) .addMethod( - getDeleteGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_GROUP))) + getDeleteGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteGroupRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_GROUP))) .addMethod( - getListGroupMembersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListGroupMembersRequest, - com.google.monitoring.v3.ListGroupMembersResponse>( - service, METHODID_LIST_GROUP_MEMBERS))) + getListGroupMembersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListGroupMembersRequest, + com.google.monitoring.v3.ListGroupMembersResponse>( + service, METHODID_LIST_GROUP_MEMBERS))) .build(); } - private abstract static class GroupServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class GroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { GroupServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -964,17 +800,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (GroupServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GroupServiceFileDescriptorSupplier()) - .addMethod(getListGroupsMethod()) - .addMethod(getGetGroupMethod()) - .addMethod(getCreateGroupMethod()) - .addMethod(getUpdateGroupMethod()) - .addMethod(getDeleteGroupMethod()) - .addMethod(getListGroupMembersMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GroupServiceFileDescriptorSupplier()) + .addMethod(getListGroupsMethod()) + .addMethod(getGetGroupMethod()) + .addMethod(getCreateGroupMethod()) + .addMethod(getUpdateGroupMethod()) + .addMethod(getDeleteGroupMethod()) + .addMethod(getListGroupMembersMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java new file mode 100644 index 000000000000..82cb474907ac --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java @@ -0,0 +1,1085 @@ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Manages metric descriptors, monitored resource descriptors, and
+ * time series data.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/metric_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MetricServiceGrpc { + + private MetricServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.MetricService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", + requestType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod() { + io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; + if ((getListMonitoredResourceDescriptorsMethod = MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListMonitoredResourceDescriptorsMethod = MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) == null) { + MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod = getListMonitoredResourceDescriptorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListMonitoredResourceDescriptors")) + .build(); + } + } + } + return getListMonitoredResourceDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMonitoredResourceDescriptor", + requestType = com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, + responseType = com.google.api.MonitoredResourceDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod() { + io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod; + if ((getGetMonitoredResourceDescriptorMethod = MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getGetMonitoredResourceDescriptorMethod = MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) == null) { + MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod = getGetMonitoredResourceDescriptorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMonitoredResourceDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MonitoredResourceDescriptor.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("GetMonitoredResourceDescriptor")) + .build(); + } + } + } + return getGetMonitoredResourceDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListMetricDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMetricDescriptors", + requestType = com.google.monitoring.v3.ListMetricDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListMetricDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMetricDescriptorsMethod() { + io.grpc.MethodDescriptor getListMetricDescriptorsMethod; + if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) == null) { + MetricServiceGrpc.getListMetricDescriptorsMethod = getListMetricDescriptorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMetricDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListMetricDescriptors")) + .build(); + } + } + } + return getListMetricDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetricDescriptor", + requestType = com.google.monitoring.v3.GetMetricDescriptorRequest.class, + responseType = com.google.api.MetricDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMetricDescriptorMethod() { + io.grpc.MethodDescriptor getGetMetricDescriptorMethod; + if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { + MetricServiceGrpc.getGetMetricDescriptorMethod = getGetMetricDescriptorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MetricDescriptor.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("GetMetricDescriptor")) + .build(); + } + } + } + return getGetMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMetricDescriptor", + requestType = com.google.monitoring.v3.CreateMetricDescriptorRequest.class, + responseType = com.google.api.MetricDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMetricDescriptorMethod() { + io.grpc.MethodDescriptor getCreateMetricDescriptorMethod; + if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) == null) { + MetricServiceGrpc.getCreateMetricDescriptorMethod = getCreateMetricDescriptorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MetricDescriptor.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateMetricDescriptor")) + .build(); + } + } + } + return getCreateMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMetricDescriptor", + requestType = com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod() { + io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod; + if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) == null) { + MetricServiceGrpc.getDeleteMetricDescriptorMethod = getDeleteMetricDescriptorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("DeleteMetricDescriptor")) + .build(); + } + } + } + return getDeleteMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTimeSeries", + requestType = com.google.monitoring.v3.ListTimeSeriesRequest.class, + responseType = com.google.monitoring.v3.ListTimeSeriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTimeSeriesMethod() { + io.grpc.MethodDescriptor getListTimeSeriesMethod; + if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { + MetricServiceGrpc.getListTimeSeriesMethod = getListTimeSeriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListTimeSeries")) + .build(); + } + } + } + return getListTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTimeSeries", + requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateTimeSeriesMethod() { + io.grpc.MethodDescriptor getCreateTimeSeriesMethod; + if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { + MetricServiceGrpc.getCreateTimeSeriesMethod = getCreateTimeSeriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateTimeSeries")) + .build(); + } + } + } + return getCreateTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServiceTimeSeries", + requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod() { + io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod; + if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) == null) { + MetricServiceGrpc.getCreateServiceTimeSeriesMethod = getCreateServiceTimeSeriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateServiceTimeSeries")) + .build(); + } + } + } + return getCreateServiceTimeSeriesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MetricServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceStub(channel, callOptions); + } + }; + return MetricServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetricServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceBlockingStub(channel, callOptions); + } + }; + return MetricServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MetricServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceFutureStub(channel, callOptions); + } + }; + return MetricServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMonitoredResourceDescriptorsMethod(), responseObserver); + } + + /** + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + default void getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMonitoredResourceDescriptorMethod(), responseObserver); + } + + /** + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMetricDescriptorsMethod(), responseObserver); + } + + /** + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + default void getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricDescriptorMethod(), responseObserver); + } + + /** + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + default void createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMetricDescriptorMethod(), responseObserver); + } + + /** + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + default void deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMetricDescriptorMethod(), responseObserver); + } + + /** + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTimeSeriesMethod(), responseObserver); + } + + /** + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + default void createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTimeSeriesMethod(), responseObserver); + } + + /** + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + default void createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceTimeSeriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MetricService. + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static abstract class MetricServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return MetricServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MetricService. + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MetricServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceStub(channel, callOptions); + } + + /** + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public void getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public void getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public void createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public void deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public void createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public void createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MetricService. + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetricServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMonitoredResourceDescriptorMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMetricDescriptorsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.api.MetricDescriptor getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public com.google.api.MetricDescriptor createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public com.google.protobuf.Empty deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTimeSeriesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public com.google.protobuf.Empty createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public com.google.protobuf.Empty createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricService. + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetricServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMonitoredResourceDescriptors( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMonitoredResourceDescriptor( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMetricDescriptors( + com.google.monitoring.v3.ListMetricDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMetricDescriptor( + com.google.monitoring.v3.GetMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMetricDescriptor( + com.google.monitoring.v3.CreateMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMetricDescriptor( + com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTimeSeries( + com.google.monitoring.v3.ListTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createServiceTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 0; + private static final int METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR = 1; + private static final int METHODID_LIST_METRIC_DESCRIPTORS = 2; + private static final int METHODID_GET_METRIC_DESCRIPTOR = 3; + private static final int METHODID_CREATE_METRIC_DESCRIPTOR = 4; + private static final int METHODID_DELETE_METRIC_DESCRIPTOR = 5; + private static final int METHODID_LIST_TIME_SERIES = 6; + private static final int METHODID_CREATE_TIME_SERIES = 7; + private static final int METHODID_CREATE_SERVICE_TIME_SERIES = 8; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: + serviceImpl.listMonitoredResourceDescriptors((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR: + serviceImpl.getMonitoredResourceDescriptor((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_METRIC_DESCRIPTORS: + serviceImpl.listMetricDescriptors((com.google.monitoring.v3.ListMetricDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_METRIC_DESCRIPTOR: + serviceImpl.getMetricDescriptor((com.google.monitoring.v3.GetMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_METRIC_DESCRIPTOR: + serviceImpl.createMetricDescriptor((com.google.monitoring.v3.CreateMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_METRIC_DESCRIPTOR: + serviceImpl.deleteMetricDescriptor((com.google.monitoring.v3.DeleteMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TIME_SERIES: + serviceImpl.listTimeSeries((com.google.monitoring.v3.ListTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TIME_SERIES: + serviceImpl.createTimeSeries((com.google.monitoring.v3.CreateTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVICE_TIME_SERIES: + serviceImpl.createServiceTimeSeries((com.google.monitoring.v3.CreateTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>( + service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + .addMethod( + getGetMonitoredResourceDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, + com.google.api.MonitoredResourceDescriptor>( + service, METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR))) + .addMethod( + getListMetricDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListMetricDescriptorsRequest, + com.google.monitoring.v3.ListMetricDescriptorsResponse>( + service, METHODID_LIST_METRIC_DESCRIPTORS))) + .addMethod( + getGetMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetMetricDescriptorRequest, + com.google.api.MetricDescriptor>( + service, METHODID_GET_METRIC_DESCRIPTOR))) + .addMethod( + getCreateMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateMetricDescriptorRequest, + com.google.api.MetricDescriptor>( + service, METHODID_CREATE_METRIC_DESCRIPTOR))) + .addMethod( + getDeleteMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteMetricDescriptorRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_METRIC_DESCRIPTOR))) + .addMethod( + getListTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListTimeSeriesRequest, + com.google.monitoring.v3.ListTimeSeriesResponse>( + service, METHODID_LIST_TIME_SERIES))) + .addMethod( + getCreateTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateTimeSeriesRequest, + com.google.protobuf.Empty>( + service, METHODID_CREATE_TIME_SERIES))) + .addMethod( + getCreateServiceTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateTimeSeriesRequest, + com.google.protobuf.Empty>( + service, METHODID_CREATE_SERVICE_TIME_SERIES))) + .build(); + } + + private static abstract class MetricServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetricServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetricService"); + } + } + + private static final class MetricServiceFileDescriptorSupplier + extends MetricServiceBaseDescriptorSupplier { + MetricServiceFileDescriptorSupplier() {} + } + + private static final class MetricServiceMethodDescriptorSupplier + extends MetricServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MetricServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MetricServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetricServiceFileDescriptorSupplier()) + .addMethod(getListMonitoredResourceDescriptorsMethod()) + .addMethod(getGetMonitoredResourceDescriptorMethod()) + .addMethod(getListMetricDescriptorsMethod()) + .addMethod(getGetMetricDescriptorMethod()) + .addMethod(getCreateMetricDescriptorMethod()) + .addMethod(getDeleteMetricDescriptorMethod()) + .addMethod(getListTimeSeriesMethod()) + .addMethod(getCreateTimeSeriesMethod()) + .addMethod(getCreateServiceTimeSeriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java new file mode 100644 index 000000000000..106cd656b1b5 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java @@ -0,0 +1,1279 @@ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The Notification Channel API provides access to configuration that
+ * controls how messages related to incidents are sent.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/notification_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotificationChannelServiceGrpc { + + private NotificationChannelServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.NotificationChannelService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannelDescriptors", + requestType = com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod() { + io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod; + if ((getListNotificationChannelDescriptorsMethod = NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getListNotificationChannelDescriptorsMethod = NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) == null) { + NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod = getListNotificationChannelDescriptorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationChannelDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("ListNotificationChannelDescriptors")) + .build(); + } + } + } + return getListNotificationChannelDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelDescriptor", + requestType = com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, + responseType = com.google.monitoring.v3.NotificationChannelDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod() { + io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod; + if ((getGetNotificationChannelDescriptorMethod = NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelDescriptorMethod = NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod = getGetNotificationChannelDescriptorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannelDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannelDescriptor")) + .build(); + } + } + } + return getGetNotificationChannelDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNotificationChannelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannels", + requestType = com.google.monitoring.v3.ListNotificationChannelsRequest.class, + responseType = com.google.monitoring.v3.ListNotificationChannelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNotificationChannelsMethod() { + io.grpc.MethodDescriptor getListNotificationChannelsMethod; + if ((getListNotificationChannelsMethod = NotificationChannelServiceGrpc.getListNotificationChannelsMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getListNotificationChannelsMethod = NotificationChannelServiceGrpc.getListNotificationChannelsMethod) == null) { + NotificationChannelServiceGrpc.getListNotificationChannelsMethod = getListNotificationChannelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationChannels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("ListNotificationChannels")) + .build(); + } + } + } + return getListNotificationChannelsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannel", + requestType = com.google.monitoring.v3.GetNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationChannelMethod() { + io.grpc.MethodDescriptor getGetNotificationChannelMethod; + if ((getGetNotificationChannelMethod = NotificationChannelServiceGrpc.getGetNotificationChannelMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelMethod = NotificationChannelServiceGrpc.getGetNotificationChannelMethod) == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelMethod = getGetNotificationChannelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannel")) + .build(); + } + } + } + return getGetNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationChannel", + requestType = com.google.monitoring.v3.CreateNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNotificationChannelMethod() { + io.grpc.MethodDescriptor getCreateNotificationChannelMethod; + if ((getCreateNotificationChannelMethod = NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getCreateNotificationChannelMethod = NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) == null) { + NotificationChannelServiceGrpc.getCreateNotificationChannelMethod = getCreateNotificationChannelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("CreateNotificationChannel")) + .build(); + } + } + } + return getCreateNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationChannel", + requestType = com.google.monitoring.v3.UpdateNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNotificationChannelMethod() { + io.grpc.MethodDescriptor getUpdateNotificationChannelMethod; + if ((getUpdateNotificationChannelMethod = NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getUpdateNotificationChannelMethod = NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) == null) { + NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod = getUpdateNotificationChannelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("UpdateNotificationChannel")) + .build(); + } + } + } + return getUpdateNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationChannel", + requestType = com.google.monitoring.v3.DeleteNotificationChannelRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteNotificationChannelMethod() { + io.grpc.MethodDescriptor getDeleteNotificationChannelMethod; + if ((getDeleteNotificationChannelMethod = NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getDeleteNotificationChannelMethod = NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) == null) { + NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod = getDeleteNotificationChannelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("DeleteNotificationChannel")) + .build(); + } + } + } + return getDeleteNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendNotificationChannelVerificationCode", + requestType = com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod() { + io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod; + if ((getSendNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getSendNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) == null) { + NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod = getSendNotificationChannelVerificationCodeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendNotificationChannelVerificationCode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("SendNotificationChannelVerificationCode")) + .build(); + } + } + } + return getSendNotificationChannelVerificationCodeMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelVerificationCode", + requestType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, + responseType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod() { + io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod; + if ((getGetNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod = getGetNotificationChannelVerificationCodeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannelVerificationCode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannelVerificationCode")) + .build(); + } + } + } + return getGetNotificationChannelVerificationCodeMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyNotificationChannel", + requestType = com.google.monitoring.v3.VerifyNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyNotificationChannelMethod() { + io.grpc.MethodDescriptor getVerifyNotificationChannelMethod; + if ((getVerifyNotificationChannelMethod = NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getVerifyNotificationChannelMethod = NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) == null) { + NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod = getVerifyNotificationChannelMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("VerifyNotificationChannel")) + .build(); + } + } + } + return getVerifyNotificationChannelMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static NotificationChannelServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceStub(channel, callOptions); + } + }; + return NotificationChannelServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NotificationChannelServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceBlockingStub(channel, callOptions); + } + }; + return NotificationChannelServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static NotificationChannelServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceFutureStub(channel, callOptions); + } + }; + return NotificationChannelServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + default void listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationChannelDescriptorsMethod(), responseObserver); + } + + /** + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + default void getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelDescriptorMethod(), responseObserver); + } + + /** + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + default void listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationChannelsMethod(), responseObserver); + } + + /** + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + default void getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelMethod(), responseObserver); + } + + /** + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationChannelMethod(), responseObserver); + } + + /** + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationChannelMethod(), responseObserver); + } + + /** + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationChannelMethod(), responseObserver); + } + + /** + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + default void sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendNotificationChannelVerificationCodeMethod(), responseObserver); + } + + /** + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + default void getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelVerificationCodeMethod(), responseObserver); + } + + /** + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + default void verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyNotificationChannelMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service NotificationChannelService. + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static abstract class NotificationChannelServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return NotificationChannelServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service NotificationChannelService. + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private NotificationChannelServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceStub(channel, callOptions); + } + + /** + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public void listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public void getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public void listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public void getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public void sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public void getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public void verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service NotificationChannelService. + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NotificationChannelServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationChannelDescriptorsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationChannelDescriptorMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationChannelsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationChannelMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationChannelMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationChannelMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationChannelMethod(), getCallOptions(), request); + } + + /** + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public com.google.protobuf.Empty sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendNotificationChannelVerificationCodeMethod(), getCallOptions(), request); + } + + /** + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationChannelVerificationCodeMethod(), getCallOptions(), request); + } + + /** + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyNotificationChannelMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service NotificationChannelService. + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NotificationChannelServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNotificationChannelDescriptors( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotificationChannelDescriptor( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNotificationChannels( + com.google.monitoring.v3.ListNotificationChannelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotificationChannel( + com.google.monitoring.v3.GetNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNotificationChannel( + com.google.monitoring.v3.CreateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNotificationChannel( + com.google.monitoring.v3.UpdateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteNotificationChannel( + com.google.monitoring.v3.DeleteNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request); + } + + /** + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture sendNotificationChannelVerificationCode( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), request); + } + + /** + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotificationChannelVerificationCode( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), request); + } + + /** + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture verifyNotificationChannel( + com.google.monitoring.v3.VerifyNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS = 0; + private static final int METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR = 1; + private static final int METHODID_LIST_NOTIFICATION_CHANNELS = 2; + private static final int METHODID_GET_NOTIFICATION_CHANNEL = 3; + private static final int METHODID_CREATE_NOTIFICATION_CHANNEL = 4; + private static final int METHODID_UPDATE_NOTIFICATION_CHANNEL = 5; + private static final int METHODID_DELETE_NOTIFICATION_CHANNEL = 6; + private static final int METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 7; + private static final int METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 8; + private static final int METHODID_VERIFY_NOTIFICATION_CHANNEL = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS: + serviceImpl.listNotificationChannelDescriptors((com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR: + serviceImpl.getNotificationChannelDescriptor((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CHANNELS: + serviceImpl.listNotificationChannels((com.google.monitoring.v3.ListNotificationChannelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL: + serviceImpl.getNotificationChannel((com.google.monitoring.v3.GetNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CHANNEL: + serviceImpl.createNotificationChannel((com.google.monitoring.v3.CreateNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CHANNEL: + serviceImpl.updateNotificationChannel((com.google.monitoring.v3.UpdateNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CHANNEL: + serviceImpl.deleteNotificationChannel((com.google.monitoring.v3.DeleteNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE: + serviceImpl.sendNotificationChannelVerificationCode((com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE: + serviceImpl.getNotificationChannelVerificationCode((com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_NOTIFICATION_CHANNEL: + serviceImpl.verifyNotificationChannel((com.google.monitoring.v3.VerifyNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNotificationChannelDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>( + service, METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS))) + .addMethod( + getGetNotificationChannelDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, + com.google.monitoring.v3.NotificationChannelDescriptor>( + service, METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR))) + .addMethod( + getListNotificationChannelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListNotificationChannelsRequest, + com.google.monitoring.v3.ListNotificationChannelsResponse>( + service, METHODID_LIST_NOTIFICATION_CHANNELS))) + .addMethod( + getGetNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_GET_NOTIFICATION_CHANNEL))) + .addMethod( + getCreateNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_CREATE_NOTIFICATION_CHANNEL))) + .addMethod( + getUpdateNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_UPDATE_NOTIFICATION_CHANNEL))) + .addMethod( + getDeleteNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteNotificationChannelRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_NOTIFICATION_CHANNEL))) + .addMethod( + getSendNotificationChannelVerificationCodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, + com.google.protobuf.Empty>( + service, METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) + .addMethod( + getGetNotificationChannelVerificationCodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>( + service, METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) + .addMethod( + getVerifyNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.VerifyNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_VERIFY_NOTIFICATION_CHANNEL))) + .build(); + } + + private static abstract class NotificationChannelServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NotificationChannelServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NotificationChannelService"); + } + } + + private static final class NotificationChannelServiceFileDescriptorSupplier + extends NotificationChannelServiceBaseDescriptorSupplier { + NotificationChannelServiceFileDescriptorSupplier() {} + } + + private static final class NotificationChannelServiceMethodDescriptorSupplier + extends NotificationChannelServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NotificationChannelServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NotificationChannelServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NotificationChannelServiceFileDescriptorSupplier()) + .addMethod(getListNotificationChannelDescriptorsMethod()) + .addMethod(getGetNotificationChannelDescriptorMethod()) + .addMethod(getListNotificationChannelsMethod()) + .addMethod(getGetNotificationChannelMethod()) + .addMethod(getCreateNotificationChannelMethod()) + .addMethod(getUpdateNotificationChannelMethod()) + .addMethod(getDeleteNotificationChannelMethod()) + .addMethod(getSendNotificationChannelVerificationCodeMethod()) + .addMethod(getGetNotificationChannelVerificationCodeMethod()) + .addMethod(getVerifyNotificationChannelMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java similarity index 57% rename from java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java rename to owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java index 2b550fe16c8d..b40de816b7c6 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The QueryService API is used to manage time series data in Stackdriver
  * Monitoring. Time series data is a collection of data points that describes
@@ -37,96 +20,82 @@ private QueryServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.QueryService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.QueryTimeSeriesRequest,
-          com.google.monitoring.v3.QueryTimeSeriesResponse>
-      getQueryTimeSeriesMethod;
+  private static volatile io.grpc.MethodDescriptor getQueryTimeSeriesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "QueryTimeSeries",
       requestType = com.google.monitoring.v3.QueryTimeSeriesRequest.class,
       responseType = com.google.monitoring.v3.QueryTimeSeriesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.QueryTimeSeriesRequest,
-          com.google.monitoring.v3.QueryTimeSeriesResponse>
-      getQueryTimeSeriesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.QueryTimeSeriesRequest,
-            com.google.monitoring.v3.QueryTimeSeriesResponse>
-        getQueryTimeSeriesMethod;
+  public static io.grpc.MethodDescriptor getQueryTimeSeriesMethod() {
+    io.grpc.MethodDescriptor getQueryTimeSeriesMethod;
     if ((getQueryTimeSeriesMethod = QueryServiceGrpc.getQueryTimeSeriesMethod) == null) {
       synchronized (QueryServiceGrpc.class) {
         if ((getQueryTimeSeriesMethod = QueryServiceGrpc.getQueryTimeSeriesMethod) == null) {
-          QueryServiceGrpc.getQueryTimeSeriesMethod =
-              getQueryTimeSeriesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTimeSeries"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.QueryTimeSeriesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new QueryServiceMethodDescriptorSupplier("QueryTimeSeries"))
-                      .build();
+          QueryServiceGrpc.getQueryTimeSeriesMethod = getQueryTimeSeriesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTimeSeries"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new QueryServiceMethodDescriptorSupplier("QueryTimeSeries"))
+              .build();
         }
       }
     }
     return getQueryTimeSeriesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static QueryServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public QueryServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new QueryServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public QueryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new QueryServiceStub(channel, callOptions);
+        }
+      };
     return QueryServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static QueryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static QueryServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public QueryServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new QueryServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public QueryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new QueryServiceBlockingStub(channel, callOptions);
+        }
+      };
     return QueryServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static QueryServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static QueryServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public QueryServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new QueryServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public QueryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new QueryServiceFutureStub(channel, callOptions);
+        }
+      };
     return QueryServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -136,42 +105,34 @@ public QueryServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - default void queryTimeSeries( - com.google.monitoring.v3.QueryTimeSeriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryTimeSeriesMethod(), responseObserver); + default void queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryTimeSeriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service QueryService. - * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
    * the time-varying values of a metric.
    * 
*/ - public abstract static class QueryServiceImplBase + public static abstract class QueryServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return QueryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service QueryService. - * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -180,36 +141,31 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class QueryServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private QueryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected QueryServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected QueryServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new QueryServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public void queryTimeSeries( - com.google.monitoring.v3.QueryTimeSeriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service QueryService. - * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -218,7 +174,8 @@ public void queryTimeSeries(
    */
   public static final class QueryServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private QueryServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -229,14 +186,11 @@ protected QueryServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries( - com.google.monitoring.v3.QueryTimeSeriesRequest request) { + public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryTimeSeriesMethod(), getCallOptions(), request); } @@ -244,7 +198,6 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service QueryService. - * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -253,7 +206,8 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries(
    */
   public static final class QueryServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private QueryServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -264,15 +218,12 @@ protected QueryServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.QueryTimeSeriesResponse> - queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request) { + public com.google.common.util.concurrent.ListenableFuture queryTimeSeries( + com.google.monitoring.v3.QueryTimeSeriesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), request); } @@ -280,11 +231,11 @@ protected QueryServiceFutureStub build( private static final int METHODID_QUERY_TIME_SERIES = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -298,10 +249,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_QUERY_TIME_SERIES: - serviceImpl.queryTimeSeries( - (com.google.monitoring.v3.QueryTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.queryTimeSeries((com.google.monitoring.v3.QueryTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -322,18 +271,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getQueryTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.QueryTimeSeriesRequest, - com.google.monitoring.v3.QueryTimeSeriesResponse>( - service, METHODID_QUERY_TIME_SERIES))) + getQueryTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.QueryTimeSeriesRequest, + com.google.monitoring.v3.QueryTimeSeriesResponse>( + service, METHODID_QUERY_TIME_SERIES))) .build(); } - private abstract static class QueryServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class QueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { QueryServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -375,12 +323,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (QueryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryServiceFileDescriptorSupplier()) - .addMethod(getQueryTimeSeriesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new QueryServiceFileDescriptorSupplier()) + .addMethod(getQueryTimeSeriesMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java new file mode 100644 index 000000000000..6d4835015364 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java @@ -0,0 +1,1115 @@ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+ * managing and querying aspects of a workspace's services. These include the
+ * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+ * of categorized Health Metrics.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/service_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServiceMonitoringServiceGrpc { + + private ServiceMonitoringServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.ServiceMonitoringService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateService", + requestType = com.google.monitoring.v3.CreateServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServiceMethod() { + io.grpc.MethodDescriptor getCreateServiceMethod; + if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { + ServiceMonitoringServiceGrpc.getCreateServiceMethod = getCreateServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("CreateService")) + .build(); + } + } + } + return getCreateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetService", + requestType = com.google.monitoring.v3.GetServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServiceMethod() { + io.grpc.MethodDescriptor getGetServiceMethod; + if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { + ServiceMonitoringServiceGrpc.getGetServiceMethod = getGetServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("GetService")) + .build(); + } + } + } + return getGetServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServices", + requestType = com.google.monitoring.v3.ListServicesRequest.class, + responseType = com.google.monitoring.v3.ListServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListServicesMethod() { + io.grpc.MethodDescriptor getListServicesMethod; + if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { + ServiceMonitoringServiceGrpc.getListServicesMethod = getListServicesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("ListServices")) + .build(); + } + } + } + return getListServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateService", + requestType = com.google.monitoring.v3.UpdateServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateServiceMethod() { + io.grpc.MethodDescriptor getUpdateServiceMethod; + if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { + ServiceMonitoringServiceGrpc.getUpdateServiceMethod = getUpdateServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateService")) + .build(); + } + } + } + return getUpdateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteService", + requestType = com.google.monitoring.v3.DeleteServiceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteServiceMethod() { + io.grpc.MethodDescriptor getDeleteServiceMethod; + if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { + ServiceMonitoringServiceGrpc.getDeleteServiceMethod = getDeleteServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteService")) + .build(); + } + } + } + return getDeleteServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServiceLevelObjective", + requestType = com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod; + if ((getCreateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getCreateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) == null) { + ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod = getCreateServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("CreateServiceLevelObjective")) + .build(); + } + } + } + return getCreateServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServiceLevelObjective", + requestType = com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod; + if ((getGetServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getGetServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) == null) { + ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod = getGetServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("GetServiceLevelObjective")) + .build(); + } + } + } + return getGetServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServiceLevelObjectives", + requestType = com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, + responseType = com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod() { + io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod; + if ((getListServiceLevelObjectivesMethod = ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getListServiceLevelObjectivesMethod = ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) == null) { + ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod = getListServiceLevelObjectivesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServiceLevelObjectives")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("ListServiceLevelObjectives")) + .build(); + } + } + } + return getListServiceLevelObjectivesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateServiceLevelObjective", + requestType = com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod; + if ((getUpdateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getUpdateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) == null) { + ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod = getUpdateServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateServiceLevelObjective")) + .build(); + } + } + } + return getUpdateServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServiceLevelObjective", + requestType = com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod; + if ((getDeleteServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getDeleteServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) == null) { + ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod = getDeleteServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteServiceLevelObjective")) + .build(); + } + } + } + return getDeleteServiceLevelObjectiveMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ServiceMonitoringServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServiceMonitoringServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceBlockingStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ServiceMonitoringServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceFutureStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Create a `Service`.
+     * 
+ */ + default void createService(com.google.monitoring.v3.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); + } + + /** + *
+     * Get the named `Service`.
+     * 
+ */ + default void getService(com.google.monitoring.v3.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + *
+     * List `Service`s for this workspace.
+     * 
+ */ + default void listServices(com.google.monitoring.v3.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); + } + + /** + *
+     * Update this `Service`.
+     * 
+ */ + default void updateService(com.google.monitoring.v3.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); + } + + /** + *
+     * Soft delete this `Service`.
+     * 
+ */ + default void deleteService(com.google.monitoring.v3.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); + } + + /** + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + default void createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceLevelObjectiveMethod(), responseObserver); + } + + /** + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + default void getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceLevelObjectiveMethod(), responseObserver); + } + + /** + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + default void listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServiceLevelObjectivesMethod(), responseObserver); + } + + /** + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + default void updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceLevelObjectiveMethod(), responseObserver); + } + + /** + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + default void deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceLevelObjectiveMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ServiceMonitoringService. + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static abstract class ServiceMonitoringServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ServiceMonitoringServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ServiceMonitoringService. + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ServiceMonitoringServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceStub(channel, callOptions); + } + + /** + *
+     * Create a `Service`.
+     * 
+ */ + public void createService(com.google.monitoring.v3.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get the named `Service`.
+     * 
+ */ + public void getService(com.google.monitoring.v3.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public void listServices(com.google.monitoring.v3.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update this `Service`.
+     * 
+ */ + public void updateService(com.google.monitoring.v3.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Soft delete this `Service`.
+     * 
+ */ + public void deleteService(com.google.monitoring.v3.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public void createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public void getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public void listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public void updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public void deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ServiceMonitoringService. + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServiceMonitoringServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service createService(com.google.monitoring.v3.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Get the named `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service getService(com.google.monitoring.v3.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListServicesResponse listServices(com.google.monitoring.v3.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update this `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service updateService(com.google.monitoring.v3.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Soft delete this `Service`.
+     * 
+ */ + public com.google.protobuf.Empty deleteService(com.google.monitoring.v3.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServiceLevelObjectivesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.protobuf.Empty deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceLevelObjectiveMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceMonitoringService. + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServiceMonitoringServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createService( + com.google.monitoring.v3.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Get the named `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getService( + com.google.monitoring.v3.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listServices( + com.google.monitoring.v3.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update this `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateService( + com.google.monitoring.v3.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Soft delete this `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteService( + com.google.monitoring.v3.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createServiceLevelObjective( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getServiceLevelObjective( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listServiceLevelObjectives( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateServiceLevelObjective( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteServiceLevelObjective( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SERVICE = 0; + private static final int METHODID_GET_SERVICE = 1; + private static final int METHODID_LIST_SERVICES = 2; + private static final int METHODID_UPDATE_SERVICE = 3; + private static final int METHODID_DELETE_SERVICE = 4; + private static final int METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE = 5; + private static final int METHODID_GET_SERVICE_LEVEL_OBJECTIVE = 6; + private static final int METHODID_LIST_SERVICE_LEVEL_OBJECTIVES = 7; + private static final int METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE = 8; + private static final int METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SERVICE: + serviceImpl.createService((com.google.monitoring.v3.CreateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVICE: + serviceImpl.getService((com.google.monitoring.v3.GetServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVICES: + serviceImpl.listServices((com.google.monitoring.v3.ListServicesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVICE: + serviceImpl.updateService((com.google.monitoring.v3.UpdateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE: + serviceImpl.deleteService((com.google.monitoring.v3.DeleteServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.createServiceLevelObjective((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.getServiceLevelObjective((com.google.monitoring.v3.GetServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVICE_LEVEL_OBJECTIVES: + serviceImpl.listServiceLevelObjectives((com.google.monitoring.v3.ListServiceLevelObjectivesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.updateServiceLevelObjective((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.deleteServiceLevelObjective((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateServiceRequest, + com.google.monitoring.v3.Service>( + service, METHODID_CREATE_SERVICE))) + .addMethod( + getGetServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetServiceRequest, + com.google.monitoring.v3.Service>( + service, METHODID_GET_SERVICE))) + .addMethod( + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListServicesRequest, + com.google.monitoring.v3.ListServicesResponse>( + service, METHODID_LIST_SERVICES))) + .addMethod( + getUpdateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateServiceRequest, + com.google.monitoring.v3.Service>( + service, METHODID_UPDATE_SERVICE))) + .addMethod( + getDeleteServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteServiceRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SERVICE))) + .addMethod( + getCreateServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getGetServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_GET_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getListServiceLevelObjectivesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListServiceLevelObjectivesRequest, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse>( + service, METHODID_LIST_SERVICE_LEVEL_OBJECTIVES))) + .addMethod( + getUpdateServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getDeleteServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE))) + .build(); + } + + private static abstract class ServiceMonitoringServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServiceMonitoringServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ServiceMonitoringService"); + } + } + + private static final class ServiceMonitoringServiceFileDescriptorSupplier + extends ServiceMonitoringServiceBaseDescriptorSupplier { + ServiceMonitoringServiceFileDescriptorSupplier() {} + } + + private static final class ServiceMonitoringServiceMethodDescriptorSupplier + extends ServiceMonitoringServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ServiceMonitoringServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServiceMonitoringServiceFileDescriptorSupplier()) + .addMethod(getCreateServiceMethod()) + .addMethod(getGetServiceMethod()) + .addMethod(getListServicesMethod()) + .addMethod(getUpdateServiceMethod()) + .addMethod(getDeleteServiceMethod()) + .addMethod(getCreateServiceLevelObjectiveMethod()) + .addMethod(getGetServiceLevelObjectiveMethod()) + .addMethod(getListServiceLevelObjectivesMethod()) + .addMethod(getUpdateServiceLevelObjectiveMethod()) + .addMethod(getDeleteServiceLevelObjectiveMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java similarity index 53% rename from java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java rename to owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java index 377f15cefe7b..03b85b634e0e 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The SnoozeService API is used to temporarily prevent an alert policy from
  * generating alerts. A Snooze is a description of the criteria under which one
@@ -37,216 +20,175 @@ private SnoozeServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.SnoozeService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getCreateSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSnooze",
       requestType = com.google.monitoring.v3.CreateSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getCreateSnoozeMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
-        getCreateSnoozeMethod;
+  public static io.grpc.MethodDescriptor getCreateSnoozeMethod() {
+    io.grpc.MethodDescriptor getCreateSnoozeMethod;
     if ((getCreateSnoozeMethod = SnoozeServiceGrpc.getCreateSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getCreateSnoozeMethod = SnoozeServiceGrpc.getCreateSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getCreateSnoozeMethod =
-              getCreateSnoozeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnooze"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.CreateSnoozeRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SnoozeServiceMethodDescriptorSupplier("CreateSnooze"))
-                      .build();
+          SnoozeServiceGrpc.getCreateSnoozeMethod = getCreateSnoozeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnooze"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.CreateSnoozeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
+              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("CreateSnooze"))
+              .build();
         }
       }
     }
     return getCreateSnoozeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListSnoozesRequest, com.google.monitoring.v3.ListSnoozesResponse>
-      getListSnoozesMethod;
+  private static volatile io.grpc.MethodDescriptor getListSnoozesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSnoozes",
       requestType = com.google.monitoring.v3.ListSnoozesRequest.class,
       responseType = com.google.monitoring.v3.ListSnoozesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.ListSnoozesRequest, com.google.monitoring.v3.ListSnoozesResponse>
-      getListSnoozesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.ListSnoozesRequest,
-            com.google.monitoring.v3.ListSnoozesResponse>
-        getListSnoozesMethod;
+  public static io.grpc.MethodDescriptor getListSnoozesMethod() {
+    io.grpc.MethodDescriptor getListSnoozesMethod;
     if ((getListSnoozesMethod = SnoozeServiceGrpc.getListSnoozesMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getListSnoozesMethod = SnoozeServiceGrpc.getListSnoozesMethod) == null) {
-          SnoozeServiceGrpc.getListSnoozesMethod =
-              getListSnoozesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnoozes"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListSnoozesRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.ListSnoozesResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("ListSnoozes"))
-                      .build();
+          SnoozeServiceGrpc.getListSnoozesMethod = getListSnoozesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnoozes"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListSnoozesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.ListSnoozesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("ListSnoozes"))
+              .build();
         }
       }
     }
     return getListSnoozesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getGetSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor getGetSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSnooze",
       requestType = com.google.monitoring.v3.GetSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getGetSnoozeMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
-        getGetSnoozeMethod;
+  public static io.grpc.MethodDescriptor getGetSnoozeMethod() {
+    io.grpc.MethodDescriptor getGetSnoozeMethod;
     if ((getGetSnoozeMethod = SnoozeServiceGrpc.getGetSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getGetSnoozeMethod = SnoozeServiceGrpc.getGetSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getGetSnoozeMethod =
-              getGetSnoozeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnooze"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.GetSnoozeRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
-                      .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("GetSnooze"))
-                      .build();
+          SnoozeServiceGrpc.getGetSnoozeMethod = getGetSnoozeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnooze"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.GetSnoozeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
+              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("GetSnooze"))
+              .build();
         }
       }
     }
     return getGetSnoozeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getUpdateSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSnooze",
       requestType = com.google.monitoring.v3.UpdateSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
-      getUpdateSnoozeMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
-        getUpdateSnoozeMethod;
+  public static io.grpc.MethodDescriptor getUpdateSnoozeMethod() {
+    io.grpc.MethodDescriptor getUpdateSnoozeMethod;
     if ((getUpdateSnoozeMethod = SnoozeServiceGrpc.getUpdateSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getUpdateSnoozeMethod = SnoozeServiceGrpc.getUpdateSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getUpdateSnoozeMethod =
-              getUpdateSnoozeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnooze"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.UpdateSnoozeRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SnoozeServiceMethodDescriptorSupplier("UpdateSnooze"))
-                      .build();
+          SnoozeServiceGrpc.getUpdateSnoozeMethod = getUpdateSnoozeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnooze"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.UpdateSnoozeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
+              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("UpdateSnooze"))
+              .build();
         }
       }
     }
     return getUpdateSnoozeMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static SnoozeServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SnoozeServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SnoozeServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SnoozeServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SnoozeServiceStub(channel, callOptions);
+        }
+      };
     return SnoozeServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SnoozeServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static SnoozeServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SnoozeServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SnoozeServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SnoozeServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SnoozeServiceBlockingStub(channel, callOptions);
+        }
+      };
     return SnoozeServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static SnoozeServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static SnoozeServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SnoozeServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SnoozeServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SnoozeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SnoozeServiceFutureStub(channel, callOptions);
+        }
+      };
     return SnoozeServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -256,87 +198,68 @@ public SnoozeServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - default void createSnooze( - com.google.monitoring.v3.CreateSnoozeRequest request, + default void createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSnoozeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnoozeMethod(), responseObserver); } /** - * - * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - default void listSnoozes( - com.google.monitoring.v3.ListSnoozesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSnoozesMethod(), responseObserver); + default void listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnoozesMethod(), responseObserver); } /** - * - * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - default void getSnooze( - com.google.monitoring.v3.GetSnoozeRequest request, + default void getSnooze(com.google.monitoring.v3.GetSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnoozeMethod(), responseObserver); } /** - * - * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - default void updateSnooze( - com.google.monitoring.v3.UpdateSnoozeRequest request, + default void updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSnoozeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnoozeMethod(), responseObserver); } } /** * Base class for the server implementation of the service SnoozeService. - * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
    * or more alert policies should not fire alerts for the specified duration.
    * 
*/ - public abstract static class SnoozeServiceImplBase + public static abstract class SnoozeServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SnoozeServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SnoozeService. - * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -345,86 +268,68 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class SnoozeServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private SnoozeServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected SnoozeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected SnoozeServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new SnoozeServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public void createSnooze( - com.google.monitoring.v3.CreateSnoozeRequest request, + public void createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public void listSnoozes( - com.google.monitoring.v3.ListSnoozesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnoozesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListSnoozesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public void getSnooze( - com.google.monitoring.v3.GetSnoozeRequest request, + public void getSnooze(com.google.monitoring.v3.GetSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSnoozeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public void updateSnooze( - com.google.monitoring.v3.UpdateSnoozeRequest request, + public void updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service SnoozeService. - * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -433,7 +338,8 @@ public void updateSnooze(
    */
   public static final class SnoozeServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private SnoozeServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -444,57 +350,45 @@ protected SnoozeServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public com.google.monitoring.v3.Snooze createSnooze( - com.google.monitoring.v3.CreateSnoozeRequest request) { + public com.google.monitoring.v3.Snooze createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSnoozeMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public com.google.monitoring.v3.ListSnoozesResponse listSnoozes( - com.google.monitoring.v3.ListSnoozesRequest request) { + public com.google.monitoring.v3.ListSnoozesResponse listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSnoozesMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public com.google.monitoring.v3.Snooze getSnooze( - com.google.monitoring.v3.GetSnoozeRequest request) { + public com.google.monitoring.v3.Snooze getSnooze(com.google.monitoring.v3.GetSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSnoozeMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public com.google.monitoring.v3.Snooze updateSnooze( - com.google.monitoring.v3.UpdateSnoozeRequest request) { + public com.google.monitoring.v3.Snooze updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSnoozeMethod(), getCallOptions(), request); } @@ -502,7 +396,6 @@ public com.google.monitoring.v3.Snooze updateSnooze( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SnoozeService. - * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -511,7 +404,8 @@ public com.google.monitoring.v3.Snooze updateSnooze(
    */
   public static final class SnoozeServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SnoozeServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -522,58 +416,49 @@ protected SnoozeServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture createSnooze( + com.google.monitoring.v3.CreateSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.monitoring.v3.ListSnoozesResponse> - listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listSnoozes( + com.google.monitoring.v3.ListSnoozesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSnoozesMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getSnooze(com.google.monitoring.v3.GetSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture getSnooze( + com.google.monitoring.v3.GetSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSnoozeMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateSnooze( + com.google.monitoring.v3.UpdateSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), request); } @@ -584,11 +469,11 @@ protected SnoozeServiceFutureStub build( private static final int METHODID_GET_SNOOZE = 2; private static final int METHODID_UPDATE_SNOOZE = 3; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -602,24 +487,19 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_SNOOZE: - serviceImpl.createSnooze( - (com.google.monitoring.v3.CreateSnoozeRequest) request, + serviceImpl.createSnooze((com.google.monitoring.v3.CreateSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SNOOZES: - serviceImpl.listSnoozes( - (com.google.monitoring.v3.ListSnoozesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listSnoozes((com.google.monitoring.v3.ListSnoozesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SNOOZE: - serviceImpl.getSnooze( - (com.google.monitoring.v3.GetSnoozeRequest) request, + serviceImpl.getSnooze((com.google.monitoring.v3.GetSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SNOOZE: - serviceImpl.updateSnooze( - (com.google.monitoring.v3.UpdateSnoozeRequest) request, + serviceImpl.updateSnooze((com.google.monitoring.v3.UpdateSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -641,35 +521,38 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>( - service, METHODID_CREATE_SNOOZE))) + getCreateSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateSnoozeRequest, + com.google.monitoring.v3.Snooze>( + service, METHODID_CREATE_SNOOZE))) .addMethod( - getListSnoozesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListSnoozesRequest, - com.google.monitoring.v3.ListSnoozesResponse>(service, METHODID_LIST_SNOOZES))) + getListSnoozesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListSnoozesRequest, + com.google.monitoring.v3.ListSnoozesResponse>( + service, METHODID_LIST_SNOOZES))) .addMethod( - getGetSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>( - service, METHODID_GET_SNOOZE))) + getGetSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetSnoozeRequest, + com.google.monitoring.v3.Snooze>( + service, METHODID_GET_SNOOZE))) .addMethod( - getUpdateSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>( - service, METHODID_UPDATE_SNOOZE))) + getUpdateSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateSnoozeRequest, + com.google.monitoring.v3.Snooze>( + service, METHODID_UPDATE_SNOOZE))) .build(); } - private abstract static class SnoozeServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SnoozeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SnoozeServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -711,15 +594,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SnoozeServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SnoozeServiceFileDescriptorSupplier()) - .addMethod(getCreateSnoozeMethod()) - .addMethod(getListSnoozesMethod()) - .addMethod(getGetSnoozeMethod()) - .addMethod(getUpdateSnoozeMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SnoozeServiceFileDescriptorSupplier()) + .addMethod(getCreateSnoozeMethod()) + .addMethod(getListSnoozesMethod()) + .addMethod(getGetSnoozeMethod()) + .addMethod(getUpdateSnoozeMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java new file mode 100644 index 000000000000..3228e1912a0f --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java @@ -0,0 +1,819 @@ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The UptimeCheckService API is used to manage (list, create, delete, edit)
+ * Uptime check configurations in the Cloud Monitoring product. An Uptime
+ * check is a piece of configuration that determines which resources and
+ * services to monitor for availability. These configurations can also be
+ * configured interactively by navigating to the [Cloud console]
+ * (https://console.cloud.google.com), selecting the appropriate project,
+ * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+ * Monitoring, and then clicking on "Uptime".
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/uptime_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class UptimeCheckServiceGrpc { + + private UptimeCheckServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.UptimeCheckService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckConfigs", + requestType = com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, + responseType = com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod() { + io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod; + if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) == null) { + UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod = getListUptimeCheckConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckConfigs")) + .build(); + } + } + } + return getListUptimeCheckConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUptimeCheckConfig", + requestType = com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod; + if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) == null) { + UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod = getGetUptimeCheckConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("GetUptimeCheckConfig")) + .build(); + } + } + } + return getGetUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUptimeCheckConfig", + requestType = com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod; + if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) == null) { + UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod = getCreateUptimeCheckConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("CreateUptimeCheckConfig")) + .build(); + } + } + } + return getCreateUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUptimeCheckConfig", + requestType = com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod; + if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) == null) { + UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod = getUpdateUptimeCheckConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("UpdateUptimeCheckConfig")) + .build(); + } + } + } + return getUpdateUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUptimeCheckConfig", + requestType = com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod; + if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) == null) { + UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod = getDeleteUptimeCheckConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("DeleteUptimeCheckConfig")) + .build(); + } + } + } + return getDeleteUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUptimeCheckIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckIps", + requestType = com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, + responseType = com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUptimeCheckIpsMethod() { + io.grpc.MethodDescriptor getListUptimeCheckIpsMethod; + if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) == null) { + UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod = getListUptimeCheckIpsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance())) + .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckIps")) + .build(); + } + } + } + return getListUptimeCheckIpsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static UptimeCheckServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceStub(channel, callOptions); + } + }; + return UptimeCheckServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UptimeCheckServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceBlockingStub(channel, callOptions); + } + }; + return UptimeCheckServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static UptimeCheckServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceFutureStub(channel, callOptions); + } + }; + return UptimeCheckServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + default void listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUptimeCheckConfigsMethod(), responseObserver); + } + + /** + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + default void getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUptimeCheckConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + default void createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUptimeCheckConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + default void updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUptimeCheckConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + default void deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUptimeCheckConfigMethod(), responseObserver); + } + + /** + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + default void listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUptimeCheckIpsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UptimeCheckService. + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static abstract class UptimeCheckServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return UptimeCheckServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UptimeCheckService. + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UptimeCheckServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceStub(channel, callOptions); + } + + /** + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public void listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public void getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public void createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public void updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public void deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public void listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UptimeCheckService. + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UptimeCheckServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUptimeCheckConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public com.google.protobuf.Empty deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUptimeCheckIpsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UptimeCheckService. + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UptimeCheckServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUptimeCheckConfigs( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getUptimeCheckConfig( + com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createUptimeCheckConfig( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateUptimeCheckConfig( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteUptimeCheckConfig( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUptimeCheckIps( + com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_UPTIME_CHECK_CONFIGS = 0; + private static final int METHODID_GET_UPTIME_CHECK_CONFIG = 1; + private static final int METHODID_CREATE_UPTIME_CHECK_CONFIG = 2; + private static final int METHODID_UPDATE_UPTIME_CHECK_CONFIG = 3; + private static final int METHODID_DELETE_UPTIME_CHECK_CONFIG = 4; + private static final int METHODID_LIST_UPTIME_CHECK_IPS = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_UPTIME_CHECK_CONFIGS: + serviceImpl.listUptimeCheckConfigs((com.google.monitoring.v3.ListUptimeCheckConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_UPTIME_CHECK_CONFIG: + serviceImpl.getUptimeCheckConfig((com.google.monitoring.v3.GetUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_UPTIME_CHECK_CONFIG: + serviceImpl.createUptimeCheckConfig((com.google.monitoring.v3.CreateUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_UPTIME_CHECK_CONFIG: + serviceImpl.updateUptimeCheckConfig((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_UPTIME_CHECK_CONFIG: + serviceImpl.deleteUptimeCheckConfig((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_UPTIME_CHECK_IPS: + serviceImpl.listUptimeCheckIps((com.google.monitoring.v3.ListUptimeCheckIpsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListUptimeCheckConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListUptimeCheckConfigsRequest, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse>( + service, METHODID_LIST_UPTIME_CHECK_CONFIGS))) + .addMethod( + getGetUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_GET_UPTIME_CHECK_CONFIG))) + .addMethod( + getCreateUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_CREATE_UPTIME_CHECK_CONFIG))) + .addMethod( + getUpdateUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_UPDATE_UPTIME_CHECK_CONFIG))) + .addMethod( + getDeleteUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_UPTIME_CHECK_CONFIG))) + .addMethod( + getListUptimeCheckIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListUptimeCheckIpsRequest, + com.google.monitoring.v3.ListUptimeCheckIpsResponse>( + service, METHODID_LIST_UPTIME_CHECK_IPS))) + .build(); + } + + private static abstract class UptimeCheckServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UptimeCheckServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UptimeCheckService"); + } + } + + private static final class UptimeCheckServiceFileDescriptorSupplier + extends UptimeCheckServiceBaseDescriptorSupplier { + UptimeCheckServiceFileDescriptorSupplier() {} + } + + private static final class UptimeCheckServiceMethodDescriptorSupplier + extends UptimeCheckServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + UptimeCheckServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (UptimeCheckServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UptimeCheckServiceFileDescriptorSupplier()) + .addMethod(getListUptimeCheckConfigsMethod()) + .addMethod(getGetUptimeCheckConfigMethod()) + .addMethod(getCreateUptimeCheckConfigMethod()) + .addMethod(getUpdateUptimeCheckConfigMethod()) + .addMethod(getDeleteUptimeCheckConfigMethod()) + .addMethod(getListUptimeCheckIpsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java similarity index 86% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java index 841cdfa54b65..dd7b84d1e3d0 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** - * - * *
  * Describes how to combine multiple time series to provide a different view of
  * the data.  Aggregation of time series is done in two steps. First, each time
@@ -52,46 +35,43 @@
  *
  * Protobuf type {@code google.monitoring.v3.Aggregation}
  */
-public final class Aggregation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Aggregation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Aggregation)
     AggregationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Aggregation.newBuilder() to construct.
   private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Aggregation() {
     perSeriesAligner_ = 0;
     crossSeriesReducer_ = 0;
-    groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    groupByFields_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Aggregation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.CommonProto
-        .internal_static_google_monitoring_v3_Aggregation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.CommonProto
-        .internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
+    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.Aggregation.class,
-            com.google.monitoring.v3.Aggregation.Builder.class);
+            com.google.monitoring.v3.Aggregation.class, com.google.monitoring.v3.Aggregation.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The `Aligner` specifies the operation that will be applied to the data
    * points in each alignment period in a time series. Except for
@@ -109,10 +89,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.monitoring.v3.Aggregation.Aligner}
    */
-  public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Aligner
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No alignment. Raw data is returned. Not valid if cross-series reduction
      * is requested. The `value_type` of the result is the same as the
@@ -123,8 +102,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_NONE(0),
     /**
-     *
-     *
      * 
      * Align and convert to
      * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
@@ -142,8 +119,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_DELTA(1),
     /**
-     *
-     *
      * 
      * Align and convert to a rate. The result is computed as
      * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
@@ -164,8 +139,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_RATE(2),
     /**
-     *
-     *
      * 
      * Align by interpolating between adjacent points around the alignment
      * period boundary. This aligner is valid for `GAUGE` metrics with
@@ -177,8 +150,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_INTERPOLATE(3),
     /**
-     *
-     *
      * 
      * Align by moving the most recent data point before the end of the
      * alignment period to the boundary at the end of the alignment
@@ -190,8 +161,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_NEXT_OLDER(4),
     /**
-     *
-     *
      * 
      * Align the time series by returning the minimum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -203,8 +172,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_MIN(10),
     /**
-     *
-     *
      * 
      * Align the time series by returning the maximum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -216,8 +183,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_MAX(11),
     /**
-     *
-     *
      * 
      * Align the time series by returning the mean value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -228,8 +193,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_MEAN(12),
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of values in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -241,8 +204,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_COUNT(13),
     /**
-     *
-     *
      * 
      * Align the time series by returning the sum of the values in each
      * alignment period. This aligner is valid for `GAUGE` and `DELTA`
@@ -254,8 +215,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_SUM(14),
     /**
-     *
-     *
      * 
      * Align the time series by returning the standard deviation of the values
      * in each alignment period. This aligner is valid for `GAUGE` and
@@ -267,8 +226,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_STDDEV(15),
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of `True` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -279,8 +236,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_COUNT_TRUE(16),
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of `False` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -291,8 +246,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_COUNT_FALSE(24),
     /**
-     *
-     *
      * 
      * Align the time series by returning the ratio of the number of `True`
      * values to the total number of values in each alignment period. This
@@ -304,8 +257,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_FRACTION_TRUE(17),
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -319,8 +270,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_PERCENTILE_99(18),
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -334,8 +283,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_PERCENTILE_95(19),
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -349,8 +296,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_PERCENTILE_50(20),
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -364,8 +309,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     ALIGN_PERCENTILE_05(21),
     /**
-     *
-     *
      * 
      * Align and convert to a percentage change. This aligner is valid for
      * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
@@ -392,8 +335,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No alignment. Raw data is returned. Not valid if cross-series reduction
      * is requested. The `value_type` of the result is the same as the
@@ -404,8 +345,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_NONE_VALUE = 0;
     /**
-     *
-     *
      * 
      * Align and convert to
      * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
@@ -423,8 +362,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_DELTA_VALUE = 1;
     /**
-     *
-     *
      * 
      * Align and convert to a rate. The result is computed as
      * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
@@ -445,8 +382,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_RATE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Align by interpolating between adjacent points around the alignment
      * period boundary. This aligner is valid for `GAUGE` metrics with
@@ -458,8 +393,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_INTERPOLATE_VALUE = 3;
     /**
-     *
-     *
      * 
      * Align by moving the most recent data point before the end of the
      * alignment period to the boundary at the end of the alignment
@@ -471,8 +404,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_NEXT_OLDER_VALUE = 4;
     /**
-     *
-     *
      * 
      * Align the time series by returning the minimum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -484,8 +415,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_MIN_VALUE = 10;
     /**
-     *
-     *
      * 
      * Align the time series by returning the maximum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -497,8 +426,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_MAX_VALUE = 11;
     /**
-     *
-     *
      * 
      * Align the time series by returning the mean value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -509,8 +436,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_MEAN_VALUE = 12;
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of values in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -522,8 +447,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_COUNT_VALUE = 13;
     /**
-     *
-     *
      * 
      * Align the time series by returning the sum of the values in each
      * alignment period. This aligner is valid for `GAUGE` and `DELTA`
@@ -535,8 +458,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_SUM_VALUE = 14;
     /**
-     *
-     *
      * 
      * Align the time series by returning the standard deviation of the values
      * in each alignment period. This aligner is valid for `GAUGE` and
@@ -548,8 +469,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_STDDEV_VALUE = 15;
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of `True` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -560,8 +479,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_COUNT_TRUE_VALUE = 16;
     /**
-     *
-     *
      * 
      * Align the time series by returning the number of `False` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -572,8 +489,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_COUNT_FALSE_VALUE = 24;
     /**
-     *
-     *
      * 
      * Align the time series by returning the ratio of the number of `True`
      * values to the total number of values in each alignment period. This
@@ -585,8 +500,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_FRACTION_TRUE_VALUE = 17;
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -600,8 +513,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_PERCENTILE_99_VALUE = 18;
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -615,8 +526,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_PERCENTILE_95_VALUE = 19;
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -630,8 +539,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_PERCENTILE_50_VALUE = 20;
     /**
-     *
-     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -645,8 +552,6 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_PERCENTILE_05_VALUE = 21;
     /**
-     *
-     *
      * 
      * Align and convert to a percentage change. This aligner is valid for
      * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
@@ -670,6 +575,7 @@ public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ALIGN_PERCENT_CHANGE_VALUE = 23;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -694,81 +600,65 @@ public static Aligner valueOf(int value) {
      */
     public static Aligner forNumber(int value) {
       switch (value) {
-        case 0:
-          return ALIGN_NONE;
-        case 1:
-          return ALIGN_DELTA;
-        case 2:
-          return ALIGN_RATE;
-        case 3:
-          return ALIGN_INTERPOLATE;
-        case 4:
-          return ALIGN_NEXT_OLDER;
-        case 10:
-          return ALIGN_MIN;
-        case 11:
-          return ALIGN_MAX;
-        case 12:
-          return ALIGN_MEAN;
-        case 13:
-          return ALIGN_COUNT;
-        case 14:
-          return ALIGN_SUM;
-        case 15:
-          return ALIGN_STDDEV;
-        case 16:
-          return ALIGN_COUNT_TRUE;
-        case 24:
-          return ALIGN_COUNT_FALSE;
-        case 17:
-          return ALIGN_FRACTION_TRUE;
-        case 18:
-          return ALIGN_PERCENTILE_99;
-        case 19:
-          return ALIGN_PERCENTILE_95;
-        case 20:
-          return ALIGN_PERCENTILE_50;
-        case 21:
-          return ALIGN_PERCENTILE_05;
-        case 23:
-          return ALIGN_PERCENT_CHANGE;
-        default:
-          return null;
+        case 0: return ALIGN_NONE;
+        case 1: return ALIGN_DELTA;
+        case 2: return ALIGN_RATE;
+        case 3: return ALIGN_INTERPOLATE;
+        case 4: return ALIGN_NEXT_OLDER;
+        case 10: return ALIGN_MIN;
+        case 11: return ALIGN_MAX;
+        case 12: return ALIGN_MEAN;
+        case 13: return ALIGN_COUNT;
+        case 14: return ALIGN_SUM;
+        case 15: return ALIGN_STDDEV;
+        case 16: return ALIGN_COUNT_TRUE;
+        case 24: return ALIGN_COUNT_FALSE;
+        case 17: return ALIGN_FRACTION_TRUE;
+        case 18: return ALIGN_PERCENTILE_99;
+        case 19: return ALIGN_PERCENTILE_95;
+        case 20: return ALIGN_PERCENTILE_50;
+        case 21: return ALIGN_PERCENTILE_05;
+        case 23: return ALIGN_PERCENT_CHANGE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Aligner> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Aligner findValueByNumber(int number) {
+              return Aligner.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Aligner findValueByNumber(int number) {
-            return Aligner.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Aligner[] VALUES = values();
 
-    public static Aligner valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Aligner valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -786,8 +676,6 @@ private Aligner(int value) {
   }
 
   /**
-   *
-   *
    * 
    * A Reducer operation describes how to aggregate data points from multiple
    * time series into a single time series, where the value of each data point
@@ -797,10 +685,9 @@ private Aligner(int value) {
    *
    * Protobuf enum {@code google.monitoring.v3.Aggregation.Reducer}
    */
-  public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Reducer
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No cross-time series reduction. The output of the `Aligner` is
      * returned.
@@ -810,8 +697,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_NONE(0),
     /**
-     *
-     *
      * 
      * Reduce by computing the mean value across time series for each
      * alignment period. This reducer is valid for
@@ -825,8 +710,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_MEAN(1),
     /**
-     *
-     *
      * 
      * Reduce by computing the minimum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -838,8 +721,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_MIN(2),
     /**
-     *
-     *
      * 
      * Reduce by computing the maximum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -851,8 +732,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_MAX(3),
     /**
-     *
-     *
      * 
      * Reduce by computing the sum across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -864,8 +743,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_SUM(4),
     /**
-     *
-     *
      * 
      * Reduce by computing the standard deviation across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -877,8 +754,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_STDDEV(5),
     /**
-     *
-     *
      * 
      * Reduce by computing the number of data points across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -890,8 +765,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_COUNT(6),
     /**
-     *
-     *
      * 
      * Reduce by computing the number of `True`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -903,8 +776,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_COUNT_TRUE(7),
     /**
-     *
-     *
      * 
      * Reduce by computing the number of `False`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -916,8 +787,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_COUNT_FALSE(15),
     /**
-     *
-     *
      * 
      * Reduce by computing the ratio of the number of `True`-valued data points
      * to the total number of data points for each alignment period. This
@@ -930,8 +799,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_FRACTION_TRUE(8),
     /**
-     *
-     *
      * 
      * Reduce by computing the [99th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -944,8 +811,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_PERCENTILE_99(9),
     /**
-     *
-     *
      * 
      * Reduce by computing the [95th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -958,8 +823,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_PERCENTILE_95(10),
     /**
-     *
-     *
      * 
      * Reduce by computing the [50th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -972,8 +835,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     REDUCE_PERCENTILE_50(11),
     /**
-     *
-     *
      * 
      * Reduce by computing the [5th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -989,8 +850,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No cross-time series reduction. The output of the `Aligner` is
      * returned.
@@ -1000,8 +859,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_NONE_VALUE = 0;
     /**
-     *
-     *
      * 
      * Reduce by computing the mean value across time series for each
      * alignment period. This reducer is valid for
@@ -1015,8 +872,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_MEAN_VALUE = 1;
     /**
-     *
-     *
      * 
      * Reduce by computing the minimum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -1028,8 +883,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_MIN_VALUE = 2;
     /**
-     *
-     *
      * 
      * Reduce by computing the maximum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -1041,8 +894,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_MAX_VALUE = 3;
     /**
-     *
-     *
      * 
      * Reduce by computing the sum across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -1054,8 +905,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_SUM_VALUE = 4;
     /**
-     *
-     *
      * 
      * Reduce by computing the standard deviation across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -1067,8 +916,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_STDDEV_VALUE = 5;
     /**
-     *
-     *
      * 
      * Reduce by computing the number of data points across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -1080,8 +927,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_COUNT_VALUE = 6;
     /**
-     *
-     *
      * 
      * Reduce by computing the number of `True`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -1093,8 +938,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_COUNT_TRUE_VALUE = 7;
     /**
-     *
-     *
      * 
      * Reduce by computing the number of `False`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -1106,8 +949,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_COUNT_FALSE_VALUE = 15;
     /**
-     *
-     *
      * 
      * Reduce by computing the ratio of the number of `True`-valued data points
      * to the total number of data points for each alignment period. This
@@ -1120,8 +961,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_FRACTION_TRUE_VALUE = 8;
     /**
-     *
-     *
      * 
      * Reduce by computing the [99th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -1134,8 +973,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_PERCENTILE_99_VALUE = 9;
     /**
-     *
-     *
      * 
      * Reduce by computing the [95th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -1148,8 +985,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_PERCENTILE_95_VALUE = 10;
     /**
-     *
-     *
      * 
      * Reduce by computing the [50th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -1162,8 +997,6 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_PERCENTILE_50_VALUE = 11;
     /**
-     *
-     *
      * 
      * Reduce by computing the [5th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -1176,6 +1009,7 @@ public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REDUCE_PERCENTILE_05_VALUE = 12;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1200,71 +1034,60 @@ public static Reducer valueOf(int value) {
      */
     public static Reducer forNumber(int value) {
       switch (value) {
-        case 0:
-          return REDUCE_NONE;
-        case 1:
-          return REDUCE_MEAN;
-        case 2:
-          return REDUCE_MIN;
-        case 3:
-          return REDUCE_MAX;
-        case 4:
-          return REDUCE_SUM;
-        case 5:
-          return REDUCE_STDDEV;
-        case 6:
-          return REDUCE_COUNT;
-        case 7:
-          return REDUCE_COUNT_TRUE;
-        case 15:
-          return REDUCE_COUNT_FALSE;
-        case 8:
-          return REDUCE_FRACTION_TRUE;
-        case 9:
-          return REDUCE_PERCENTILE_99;
-        case 10:
-          return REDUCE_PERCENTILE_95;
-        case 11:
-          return REDUCE_PERCENTILE_50;
-        case 12:
-          return REDUCE_PERCENTILE_05;
-        default:
-          return null;
+        case 0: return REDUCE_NONE;
+        case 1: return REDUCE_MEAN;
+        case 2: return REDUCE_MIN;
+        case 3: return REDUCE_MAX;
+        case 4: return REDUCE_SUM;
+        case 5: return REDUCE_STDDEV;
+        case 6: return REDUCE_COUNT;
+        case 7: return REDUCE_COUNT_TRUE;
+        case 15: return REDUCE_COUNT_FALSE;
+        case 8: return REDUCE_FRACTION_TRUE;
+        case 9: return REDUCE_PERCENTILE_99;
+        case 10: return REDUCE_PERCENTILE_95;
+        case 11: return REDUCE_PERCENTILE_50;
+        case 12: return REDUCE_PERCENTILE_05;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Reducer> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Reducer findValueByNumber(int number) {
+              return Reducer.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Reducer findValueByNumber(int number) {
-            return Reducer.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Reducer[] VALUES = values();
 
-    public static Reducer valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Reducer valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -1284,8 +1107,6 @@ private Reducer(int value) {
   public static final int ALIGNMENT_PERIOD_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration alignmentPeriod_;
   /**
-   *
-   *
    * 
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1303,7 +1124,6 @@ private Reducer(int value) {
    * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ @java.lang.Override @@ -1311,8 +1131,6 @@ public boolean hasAlignmentPeriod() { return alignmentPeriod_ != null; } /** - * - * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1330,18 +1148,13 @@ public boolean hasAlignmentPeriod() {
    * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getAlignmentPeriod() { - return alignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : alignmentPeriod_; + return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; } /** - * - * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1362,16 +1175,12 @@ public com.google.protobuf.Duration getAlignmentPeriod() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
-    return alignmentPeriod_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : alignmentPeriod_;
+    return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
   }
 
   public static final int PER_SERIES_ALIGNER_FIELD_NUMBER = 2;
   private int perSeriesAligner_ = 0;
   /**
-   *
-   *
    * 
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -1392,16 +1201,12 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override - public int getPerSeriesAlignerValue() { + @java.lang.Override public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** - * - * *
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -1422,21 +1227,16 @@ public int getPerSeriesAlignerValue() {
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ - @java.lang.Override - public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.v3.Aggregation.Aligner result = - com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); + @java.lang.Override public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { + com.google.monitoring.v3.Aggregation.Aligner result = com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); return result == null ? com.google.monitoring.v3.Aggregation.Aligner.UNRECOGNIZED : result; } public static final int CROSS_SERIES_REDUCER_FIELD_NUMBER = 4; private int crossSeriesReducer_ = 0; /** - * - * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -1455,16 +1255,12 @@ public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() {
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override - public int getCrossSeriesReducerValue() { + @java.lang.Override public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** - * - * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -1483,24 +1279,18 @@ public int getCrossSeriesReducerValue() {
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ - @java.lang.Override - public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.v3.Aggregation.Reducer result = - com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); + @java.lang.Override public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { + com.google.monitoring.v3.Aggregation.Reducer result = com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); return result == null ? com.google.monitoring.v3.Aggregation.Reducer.UNRECOGNIZED : result; } public static final int GROUP_BY_FIELDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1519,15 +1309,13 @@ public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() {
    * 
* * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList + getGroupByFieldsList() { return groupByFields_; } /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1546,15 +1334,12 @@ public com.google.protobuf.ProtocolStringList getGroupByFieldsList() {
    * 
* * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1573,7 +1358,6 @@ public int getGroupByFieldsCount() {
    * 
* * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -1581,8 +1365,6 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1601,16 +1383,15 @@ public java.lang.String getGroupByFields(int index) {
    * 
* * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString + getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1622,15 +1403,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (alignmentPeriod_ != null) { output.writeMessage(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { output.writeEnum(2, perSeriesAligner_); } - if (crossSeriesReducer_ - != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { output.writeEnum(4, crossSeriesReducer_); } for (int i = 0; i < groupByFields_.size(); i++) { @@ -1646,14 +1427,16 @@ public int getSerializedSize() { size = 0; if (alignmentPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, perSeriesAligner_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, perSeriesAligner_); } - if (crossSeriesReducer_ - != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, crossSeriesReducer_); + if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; @@ -1671,7 +1454,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Aggregation)) { return super.equals(obj); @@ -1680,11 +1463,13 @@ public boolean equals(final java.lang.Object obj) { if (hasAlignmentPeriod() != other.hasAlignmentPeriod()) return false; if (hasAlignmentPeriod()) { - if (!getAlignmentPeriod().equals(other.getAlignmentPeriod())) return false; + if (!getAlignmentPeriod() + .equals(other.getAlignmentPeriod())) return false; } if (perSeriesAligner_ != other.perSeriesAligner_) return false; if (crossSeriesReducer_ != other.crossSeriesReducer_) return false; - if (!getGroupByFieldsList().equals(other.getGroupByFieldsList())) return false; + if (!getGroupByFieldsList() + .equals(other.getGroupByFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1713,103 +1498,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Aggregation parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Aggregation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Aggregation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Aggregation parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.Aggregation parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Aggregation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Aggregation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Aggregation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Aggregation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Aggregation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Aggregation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Aggregation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Aggregation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Aggregation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes how to combine multiple time series to provide a different view of
    * the data.  Aggregation of time series is done in two steps. First, each time
@@ -1841,32 +1622,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.Aggregation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Aggregation)
       com.google.monitoring.v3.AggregationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_Aggregation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Aggregation.class,
-              com.google.monitoring.v3.Aggregation.Builder.class);
+              com.google.monitoring.v3.Aggregation.class, com.google.monitoring.v3.Aggregation.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Aggregation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1878,14 +1660,15 @@ public Builder clear() {
       }
       perSeriesAligner_ = 0;
       crossSeriesReducer_ = 0;
-      groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      groupByFields_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_Aggregation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
     }
 
     @java.lang.Override
@@ -1905,9 +1688,7 @@ public com.google.monitoring.v3.Aggregation build() {
     @java.lang.Override
     public com.google.monitoring.v3.Aggregation buildPartial() {
       com.google.monitoring.v3.Aggregation result = new com.google.monitoring.v3.Aggregation(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1915,8 +1696,9 @@ public com.google.monitoring.v3.Aggregation buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.Aggregation result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.alignmentPeriod_ =
-            alignmentPeriodBuilder_ == null ? alignmentPeriod_ : alignmentPeriodBuilder_.build();
+        result.alignmentPeriod_ = alignmentPeriodBuilder_ == null
+            ? alignmentPeriod_
+            : alignmentPeriodBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.perSeriesAligner_ = perSeriesAligner_;
@@ -1934,39 +1716,38 @@ private void buildPartial0(com.google.monitoring.v3.Aggregation result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Aggregation) {
-        return mergeFrom((com.google.monitoring.v3.Aggregation) other);
+        return mergeFrom((com.google.monitoring.v3.Aggregation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2020,38 +1801,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                perSeriesAligner_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 32:
-              {
-                crossSeriesReducer_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureGroupByFieldsIsMutable();
-                groupByFields_.add(s);
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getAlignmentPeriodFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              perSeriesAligner_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 32: {
+              crossSeriesReducer_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureGroupByFieldsIsMutable();
+              groupByFields_.add(s);
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2061,18 +1839,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Duration alignmentPeriod_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        alignmentPeriodBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> alignmentPeriodBuilder_;
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2090,15 +1862,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2116,21 +1885,16 @@ public boolean hasAlignmentPeriod() {
      * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ public com.google.protobuf.Duration getAlignmentPeriod() { if (alignmentPeriodBuilder_ == null) { - return alignmentPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : alignmentPeriod_; + return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; } else { return alignmentPeriodBuilder_.getMessage(); } } /** - * - * *
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2163,8 +1927,6 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2183,7 +1945,8 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration alignment_period = 1;
      */
-    public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setAlignmentPeriod(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (alignmentPeriodBuilder_ == null) {
         alignmentPeriod_ = builderForValue.build();
       } else {
@@ -2194,8 +1957,6 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2216,9 +1977,9 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
       if (alignmentPeriodBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && alignmentPeriod_ != null
-            && alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          alignmentPeriod_ != null &&
+          alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getAlignmentPeriodBuilder().mergeFrom(value);
         } else {
           alignmentPeriod_ = value;
@@ -2231,8 +1992,6 @@ public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2262,8 +2021,6 @@ public Builder clearAlignmentPeriod() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2288,8 +2045,6 @@ public com.google.protobuf.Duration.Builder getAlignmentPeriodBuilder() {
       return getAlignmentPeriodFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2312,14 +2067,11 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
       if (alignmentPeriodBuilder_ != null) {
         return alignmentPeriodBuilder_.getMessageOrBuilder();
       } else {
-        return alignmentPeriod_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : alignmentPeriod_;
+        return alignmentPeriod_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
       }
     }
     /**
-     *
-     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2339,17 +2091,14 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
      * .google.protobuf.Duration alignment_period = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getAlignmentPeriodFieldBuilder() {
       if (alignmentPeriodBuilder_ == null) {
-        alignmentPeriodBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getAlignmentPeriod(), getParentForChildren(), isClean());
+        alignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getAlignmentPeriod(),
+                getParentForChildren(),
+                isClean());
         alignmentPeriod_ = null;
       }
       return alignmentPeriodBuilder_;
@@ -2357,8 +2106,6 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
 
     private int perSeriesAligner_ = 0;
     /**
-     *
-     *
      * 
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2379,16 +2126,12 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override - public int getPerSeriesAlignerValue() { + @java.lang.Override public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** - * - * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2409,7 +2152,6 @@ public int getPerSeriesAlignerValue() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @param value The enum numeric value on the wire for perSeriesAligner to set. * @return This builder for chaining. */ @@ -2420,8 +2162,6 @@ public Builder setPerSeriesAlignerValue(int value) { return this; } /** - * - * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2442,18 +2182,14 @@ public Builder setPerSeriesAlignerValue(int value) {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ @java.lang.Override public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.v3.Aggregation.Aligner result = - com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); + com.google.monitoring.v3.Aggregation.Aligner result = com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); return result == null ? com.google.monitoring.v3.Aggregation.Aligner.UNRECOGNIZED : result; } /** - * - * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2474,7 +2210,6 @@ public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @param value The perSeriesAligner to set. * @return This builder for chaining. */ @@ -2488,8 +2223,6 @@ public Builder setPerSeriesAligner(com.google.monitoring.v3.Aggregation.Aligner return this; } /** - * - * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2510,7 +2243,6 @@ public Builder setPerSeriesAligner(com.google.monitoring.v3.Aggregation.Aligner
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return This builder for chaining. */ public Builder clearPerSeriesAligner() { @@ -2522,8 +2254,6 @@ public Builder clearPerSeriesAligner() { private int crossSeriesReducer_ = 0; /** - * - * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2542,16 +2272,12 @@ public Builder clearPerSeriesAligner() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override - public int getCrossSeriesReducerValue() { + @java.lang.Override public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** - * - * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2570,7 +2296,6 @@ public int getCrossSeriesReducerValue() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @param value The enum numeric value on the wire for crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2581,8 +2306,6 @@ public Builder setCrossSeriesReducerValue(int value) { return this; } /** - * - * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2601,18 +2324,14 @@ public Builder setCrossSeriesReducerValue(int value) {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ @java.lang.Override public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.v3.Aggregation.Reducer result = - com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); + com.google.monitoring.v3.Aggregation.Reducer result = com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); return result == null ? com.google.monitoring.v3.Aggregation.Reducer.UNRECOGNIZED : result; } /** - * - * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2631,7 +2350,6 @@ public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @param value The crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2645,8 +2363,6 @@ public Builder setCrossSeriesReducer(com.google.monitoring.v3.Aggregation.Reduce return this; } /** - * - * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2665,7 +2381,6 @@ public Builder setCrossSeriesReducer(com.google.monitoring.v3.Aggregation.Reduce
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return This builder for chaining. */ public Builder clearCrossSeriesReducer() { @@ -2677,7 +2392,6 @@ public Builder clearCrossSeriesReducer() { private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureGroupByFieldsIsMutable() { if (!groupByFields_.isModifiable()) { groupByFields_ = new com.google.protobuf.LazyStringArrayList(groupByFields_); @@ -2685,8 +2399,6 @@ private void ensureGroupByFieldsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2705,16 +2417,14 @@ private void ensureGroupByFieldsIsMutable() {
      * 
* * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList + getGroupByFieldsList() { groupByFields_.makeImmutable(); return groupByFields_; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2733,15 +2443,12 @@ public com.google.protobuf.ProtocolStringList getGroupByFieldsList() {
      * 
* * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2760,7 +2467,6 @@ public int getGroupByFieldsCount() {
      * 
* * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -2768,8 +2474,6 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2788,16 +2492,14 @@ public java.lang.String getGroupByFields(int index) {
      * 
* * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString + getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2816,15 +2518,13 @@ public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) {
      * 
* * repeated string group_by_fields = 5; - * * @param index The index to set the value at. * @param value The groupByFields to set. * @return This builder for chaining. */ - public Builder setGroupByFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGroupByFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupByFieldsIsMutable(); groupByFields_.set(index, value); bitField0_ |= 0x00000008; @@ -2832,8 +2532,6 @@ public Builder setGroupByFields(int index, java.lang.String value) { return this; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2852,14 +2550,12 @@ public Builder setGroupByFields(int index, java.lang.String value) {
      * 
* * repeated string group_by_fields = 5; - * * @param value The groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupByFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupByFieldsIsMutable(); groupByFields_.add(value); bitField0_ |= 0x00000008; @@ -2867,8 +2563,6 @@ public Builder addGroupByFields(java.lang.String value) { return this; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2887,20 +2581,19 @@ public Builder addGroupByFields(java.lang.String value) {
      * 
* * repeated string group_by_fields = 5; - * * @param values The groupByFields to add. * @return This builder for chaining. */ - public Builder addAllGroupByFields(java.lang.Iterable values) { + public Builder addAllGroupByFields( + java.lang.Iterable values) { ensureGroupByFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupByFields_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2919,19 +2612,16 @@ public Builder addAllGroupByFields(java.lang.Iterable values)
      * 
* * repeated string group_by_fields = 5; - * * @return This builder for chaining. */ public Builder clearGroupByFields() { - groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + groupByFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2950,14 +2640,12 @@ public Builder clearGroupByFields() {
      * 
* * repeated string group_by_fields = 5; - * * @param value The bytes of the groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupByFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupByFieldsIsMutable(); groupByFields_.add(value); @@ -2965,9 +2653,9 @@ public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2977,12 +2665,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Aggregation) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) private static final com.google.monitoring.v3.Aggregation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Aggregation(); } @@ -2991,27 +2679,27 @@ public static com.google.monitoring.v3.Aggregation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Aggregation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aggregation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3026,4 +2714,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Aggregation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java similarity index 92% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java index a3f8e15183c7..cd85ea974656 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; -public interface AggregationOrBuilder - extends +public interface AggregationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Aggregation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -43,13 +25,10 @@ public interface AggregationOrBuilder
    * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return Whether the alignmentPeriod field is set. */ boolean hasAlignmentPeriod(); /** - * - * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -67,13 +46,10 @@ public interface AggregationOrBuilder
    * 
* * .google.protobuf.Duration alignment_period = 1; - * * @return The alignmentPeriod. */ com.google.protobuf.Duration getAlignmentPeriod(); /** - * - * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -95,8 +71,6 @@ public interface AggregationOrBuilder
   com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder();
 
   /**
-   *
-   *
    * 
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -117,13 +91,10 @@ public interface AggregationOrBuilder
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The enum numeric value on the wire for perSeriesAligner. */ int getPerSeriesAlignerValue(); /** - * - * *
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -144,14 +115,11 @@ public interface AggregationOrBuilder
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; - * * @return The perSeriesAligner. */ com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner(); /** - * - * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -170,13 +138,10 @@ public interface AggregationOrBuilder
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The enum numeric value on the wire for crossSeriesReducer. */ int getCrossSeriesReducerValue(); /** - * - * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -195,14 +160,11 @@ public interface AggregationOrBuilder
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; - * * @return The crossSeriesReducer. */ com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer(); /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -221,13 +183,11 @@ public interface AggregationOrBuilder
    * 
* * repeated string group_by_fields = 5; - * * @return A list containing the groupByFields. */ - java.util.List getGroupByFieldsList(); + java.util.List + getGroupByFieldsList(); /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -246,13 +206,10 @@ public interface AggregationOrBuilder
    * 
* * repeated string group_by_fields = 5; - * * @return The count of groupByFields. */ int getGroupByFieldsCount(); /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -271,14 +228,11 @@ public interface AggregationOrBuilder
    * 
* * repeated string group_by_fields = 5; - * * @param index The index of the element to return. * @return The groupByFields at the given index. */ java.lang.String getGroupByFields(int index); /** - * - * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -297,9 +251,9 @@ public interface AggregationOrBuilder
    * 
* * repeated string group_by_fields = 5; - * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - com.google.protobuf.ByteString getGroupByFieldsBytes(int index); + com.google.protobuf.ByteString + getGroupByFieldsBytes(int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java similarity index 59% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index 9c8bff2d6e81..45cc4a7fa130 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert.proto package com.google.monitoring.v3; /** - * - * *
  * A description of the conditions under which some aspect of your system is
  * considered to be "unhealthy" and the ways to notify people or services about
@@ -30,69 +13,66 @@
  *
  * Protobuf type {@code google.monitoring.v3.AlertPolicy}
  */
-public final class AlertPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AlertPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy)
     AlertPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AlertPolicy.newBuilder() to construct.
   private AlertPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AlertPolicy() {
     name_ = "";
     displayName_ = "";
     conditions_ = java.util.Collections.emptyList();
     combiner_ = 0;
-    notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    notificationChannels_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AlertPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.AlertProto
-        .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 16:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.AlertProto
-        .internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
+    return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.AlertPolicy.class,
-            com.google.monitoring.v3.AlertPolicy.Builder.class);
+            com.google.monitoring.v3.AlertPolicy.class, com.google.monitoring.v3.AlertPolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Operators for combining conditions.
    * 
* * Protobuf enum {@code google.monitoring.v3.AlertPolicy.ConditionCombinerType} */ - public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessageEnum { + public enum ConditionCombinerType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * An unspecified combiner.
      * 
@@ -101,8 +81,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage */ COMBINE_UNSPECIFIED(0), /** - * - * *
      * Combine conditions using the logical `AND` operator. An
      * incident is created only if all the conditions are met
@@ -114,8 +92,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
      */
     AND(1),
     /**
-     *
-     *
      * 
      * Combine conditions using the logical `OR` operator. An incident
      * is created if any of the listed conditions is met.
@@ -125,8 +101,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
      */
     OR(2),
     /**
-     *
-     *
      * 
      * Combine conditions using logical `AND` operator, but unlike the regular
      * `AND` option, an incident is created only if all conditions are met
@@ -140,8 +114,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
     ;
 
     /**
-     *
-     *
      * 
      * An unspecified combiner.
      * 
@@ -150,8 +122,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage */ public static final int COMBINE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Combine conditions using the logical `AND` operator. An
      * incident is created only if all the conditions are met
@@ -163,8 +133,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
      */
     public static final int AND_VALUE = 1;
     /**
-     *
-     *
      * 
      * Combine conditions using the logical `OR` operator. An incident
      * is created if any of the listed conditions is met.
@@ -174,8 +142,6 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
      */
     public static final int OR_VALUE = 2;
     /**
-     *
-     *
      * 
      * Combine conditions using logical `AND` operator, but unlike the regular
      * `AND` option, an incident is created only if all conditions are met
@@ -186,6 +152,7 @@ public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessage
      */
     public static final int AND_WITH_MATCHING_RESOURCE_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -210,16 +177,11 @@ public static ConditionCombinerType valueOf(int value) {
      */
     public static ConditionCombinerType forNumber(int value) {
       switch (value) {
-        case 0:
-          return COMBINE_UNSPECIFIED;
-        case 1:
-          return AND;
-        case 2:
-          return OR;
-        case 3:
-          return AND_WITH_MATCHING_RESOURCE;
-        default:
-          return null;
+        case 0: return COMBINE_UNSPECIFIED;
+        case 1: return AND;
+        case 2: return OR;
+        case 3: return AND_WITH_MATCHING_RESOURCE;
+        default: return null;
       }
     }
 
@@ -227,28 +189,28 @@ public static ConditionCombinerType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ConditionCombinerType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ConditionCombinerType findValueByNumber(int number) {
+              return ConditionCombinerType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ConditionCombinerType findValueByNumber(int number) {
-                return ConditionCombinerType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.AlertPolicy.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -257,7 +219,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ConditionCombinerType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -274,16 +237,13 @@ private ConditionCombinerType(int value) {
     // @@protoc_insertion_point(enum_scope:google.monitoring.v3.AlertPolicy.ConditionCombinerType)
   }
 
-  public interface DocumentationOrBuilder
-      extends
+  public interface DocumentationOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Documentation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
-     * The text of the documentation, interpreted according to `mime_type`.
+     * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
      * more than 10,240 bytes when encoded in UTF-8 format, whichever is
      * smaller. This text can be [templatized by using
@@ -291,15 +251,12 @@ public interface DocumentationOrBuilder
      * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
-     * The text of the documentation, interpreted according to `mime_type`.
+     * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
      * more than 10,240 bytes when encoded in UTF-8 format, whichever is
      * smaller. This text can be [templatized by using
@@ -307,14 +264,12 @@ public interface DocumentationOrBuilder
      * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -322,13 +277,10 @@ public interface DocumentationOrBuilder
      * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -336,14 +288,56 @@ public interface DocumentationOrBuilder
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); + + /** + *
+     * Optional. The subject line of the notification. The subject line may not
+     * exceed 10,240 bytes. In notifications generated by this policy, the
+     * contents of the subject line after variable expansion will be truncated
+     * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+     * 255-byte limit is recommended by [this
+     * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+     * It is both the limit imposed by some third-party ticketing products and
+     * it is common to define textual fields in databases as VARCHAR(255).
+     *
+     * The contents of the subject line can be [templatized by using
+     * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+     * If this field is missing or empty, a default subject line will be
+     * generated.
+     * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The subject. + */ + java.lang.String getSubject(); + /** + *
+     * Optional. The subject line of the notification. The subject line may not
+     * exceed 10,240 bytes. In notifications generated by this policy, the
+     * contents of the subject line after variable expansion will be truncated
+     * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+     * 255-byte limit is recommended by [this
+     * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+     * It is both the limit imposed by some third-party ticketing products and
+     * it is common to define textual fields in databases as VARCHAR(255).
+     *
+     * The contents of the subject line can be [templatized by using
+     * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+     * If this field is missing or empty, a default subject line will be
+     * generated.
+     * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for subject. + */ + com.google.protobuf.ByteString + getSubjectBytes(); } /** - * - * *
    * A content string and a MIME type that describes the content string's
    * format.
@@ -351,51 +345,47 @@ public interface DocumentationOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation}
    */
-  public static final class Documentation extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Documentation extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Documentation)
       DocumentationOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Documentation.newBuilder() to construct.
     private Documentation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Documentation() {
       content_ = "";
       mimeType_ = "";
+      subject_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Documentation();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.Documentation.class,
-              com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.Documentation.class, com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
     }
 
     public static final int CONTENT_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object content_ = "";
     /**
-     *
-     *
      * 
-     * The text of the documentation, interpreted according to `mime_type`.
+     * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
      * more than 10,240 bytes when encoded in UTF-8 format, whichever is
      * smaller. This text can be [templatized by using
@@ -403,7 +393,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -412,17 +401,16 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** - * - * *
-     * The text of the documentation, interpreted according to `mime_type`.
+     * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
      * more than 10,240 bytes when encoded in UTF-8 format, whichever is
      * smaller. This text can be [templatized by using
@@ -430,15 +418,16 @@ public java.lang.String getContent() {
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -447,12 +436,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -460,7 +446,6 @@ public com.google.protobuf.ByteString getContentBytes() {
      * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -469,15 +454,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -485,15 +469,16 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -501,8 +486,78 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int SUBJECT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + /** + *
+     * Optional. The subject line of the notification. The subject line may not
+     * exceed 10,240 bytes. In notifications generated by this policy, the
+     * contents of the subject line after variable expansion will be truncated
+     * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+     * 255-byte limit is recommended by [this
+     * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+     * It is both the limit imposed by some third-party ticketing products and
+     * it is common to define textual fields in databases as VARCHAR(255).
+     *
+     * The contents of the subject line can be [templatized by using
+     * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+     * If this field is missing or empty, a default subject line will be
+     * generated.
+     * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } + } + /** + *
+     * Optional. The subject line of the notification. The subject line may not
+     * exceed 10,240 bytes. In notifications generated by this policy, the
+     * contents of the subject line after variable expansion will be truncated
+     * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+     * 255-byte limit is recommended by [this
+     * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+     * It is both the limit imposed by some third-party ticketing products and
+     * it is common to define textual fields in databases as VARCHAR(255).
+     *
+     * The contents of the subject line can be [templatized by using
+     * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+     * If this field is missing or empty, a default subject line will be
+     * generated.
+     * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -514,13 +569,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subject_); + } getUnknownFields().writeTo(output); } @@ -536,6 +595,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subject_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -544,16 +606,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Documentation)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Documentation other = - (com.google.monitoring.v3.AlertPolicy.Documentation) obj; + com.google.monitoring.v3.AlertPolicy.Documentation other = (com.google.monitoring.v3.AlertPolicy.Documentation) obj; - if (!getContent().equals(other.getContent())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContent() + .equals(other.getContent())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -569,99 +634,97 @@ public int hashCode() { hash = (53 * hash) + getContent().hashCode(); hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Documentation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -671,8 +734,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A content string and a MIME type that describes the content string's
      * format.
@@ -680,46 +741,47 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Documentation)
         com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Documentation.class,
-                com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Documentation.class, com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.AlertPolicy.Documentation.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
         content_ = "";
         mimeType_ = "";
+        subject_ = "";
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
       }
 
       @java.lang.Override
@@ -738,11 +800,8 @@ public com.google.monitoring.v3.AlertPolicy.Documentation build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Documentation buildPartial() {
-        com.google.monitoring.v3.AlertPolicy.Documentation result =
-            new com.google.monitoring.v3.AlertPolicy.Documentation(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.AlertPolicy.Documentation result = new com.google.monitoring.v3.AlertPolicy.Documentation(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -755,47 +814,47 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Documentation re
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.mimeType_ = mimeType_;
         }
+        if (((from_bitField0_ & 0x00000004) != 0)) {
+          result.subject_ = subject_;
+        }
       }
 
       @java.lang.Override
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.AlertPolicy.Documentation) {
-          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Documentation) other);
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Documentation)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -803,8 +862,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation other) {
-        if (other == com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) return this;
         if (!other.getContent().isEmpty()) {
           content_ = other.content_;
           bitField0_ |= 0x00000001;
@@ -815,6 +873,11 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation othe
           bitField0_ |= 0x00000002;
           onChanged();
         }
+        if (!other.getSubject().isEmpty()) {
+          subject_ = other.subject_;
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -841,25 +904,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  content_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  mimeType_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                content_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                mimeType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                subject_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -869,15 +934,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object content_ = "";
       /**
-       *
-       *
        * 
-       * The text of the documentation, interpreted according to `mime_type`.
+       * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
        * more than 10,240 bytes when encoded in UTF-8 format, whichever is
        * smaller. This text can be [templatized by using
@@ -885,13 +947,13 @@ public Builder mergeFrom(
        * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -900,10 +962,8 @@ public java.lang.String getContent() { } } /** - * - * *
-       * The text of the documentation, interpreted according to `mime_type`.
+       * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
        * more than 10,240 bytes when encoded in UTF-8 format, whichever is
        * smaller. This text can be [templatized by using
@@ -911,14 +971,15 @@ public java.lang.String getContent() {
        * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -926,10 +987,8 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
-       * The text of the documentation, interpreted according to `mime_type`.
+       * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
        * more than 10,240 bytes when encoded in UTF-8 format, whichever is
        * smaller. This text can be [templatized by using
@@ -937,24 +996,20 @@ public com.google.protobuf.ByteString getContentBytes() {
        * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-       * The text of the documentation, interpreted according to `mime_type`.
+       * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
        * more than 10,240 bytes when encoded in UTF-8 format, whichever is
        * smaller. This text can be [templatized by using
@@ -962,7 +1017,6 @@ public Builder setContent(java.lang.String value) {
        * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -972,10 +1026,8 @@ public Builder clearContent() { return this; } /** - * - * *
-       * The text of the documentation, interpreted according to `mime_type`.
+       * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
        * more than 10,240 bytes when encoded in UTF-8 format, whichever is
        * smaller. This text can be [templatized by using
@@ -983,14 +1035,12 @@ public Builder clearContent() {
        * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -1000,8 +1050,6 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1009,13 +1057,13 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) {
        * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1024,8 +1072,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1033,14 +1079,15 @@ public java.lang.String getMimeType() {
        * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1048,8 +1095,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1057,22 +1102,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
        * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1080,7 +1121,6 @@ public Builder setMimeType(java.lang.String value) {
        * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1090,8 +1130,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1099,14 +1137,12 @@ public Builder clearMimeType() {
        * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1114,24 +1150,175 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private java.lang.Object subject_ = ""; + /** + *
+       * Optional. The subject line of the notification. The subject line may not
+       * exceed 10,240 bytes. In notifications generated by this policy, the
+       * contents of the subject line after variable expansion will be truncated
+       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+       * 255-byte limit is recommended by [this
+       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+       * It is both the limit imposed by some third-party ticketing products and
+       * it is common to define textual fields in databases as VARCHAR(255).
+       *
+       * The contents of the subject line can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * If this field is missing or empty, a default subject line will be
+       * generated.
+       * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Documentation) + /** + *
+       * Optional. The subject line of the notification. The subject line may not
+       * exceed 10,240 bytes. In notifications generated by this policy, the
+       * contents of the subject line after variable expansion will be truncated
+       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+       * 255-byte limit is recommended by [this
+       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+       * It is both the limit imposed by some third-party ticketing products and
+       * it is common to define textual fields in databases as VARCHAR(255).
+       *
+       * The contents of the subject line can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * If this field is missing or empty, a default subject line will be
+       * generated.
+       * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. The subject line of the notification. The subject line may not
+       * exceed 10,240 bytes. In notifications generated by this policy, the
+       * contents of the subject line after variable expansion will be truncated
+       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+       * 255-byte limit is recommended by [this
+       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+       * It is both the limit imposed by some third-party ticketing products and
+       * it is common to define textual fields in databases as VARCHAR(255).
+       *
+       * The contents of the subject line can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * If this field is missing or empty, a default subject line will be
+       * generated.
+       * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subject_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Optional. The subject line of the notification. The subject line may not
+       * exceed 10,240 bytes. In notifications generated by this policy, the
+       * contents of the subject line after variable expansion will be truncated
+       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+       * 255-byte limit is recommended by [this
+       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+       * It is both the limit imposed by some third-party ticketing products and
+       * it is common to define textual fields in databases as VARCHAR(255).
+       *
+       * The contents of the subject line can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * If this field is missing or empty, a default subject line will be
+       * generated.
+       * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Optional. The subject line of the notification. The subject line may not
+       * exceed 10,240 bytes. In notifications generated by this policy, the
+       * contents of the subject line after variable expansion will be truncated
+       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
+       * 255-byte limit is recommended by [this
+       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+       * It is both the limit imposed by some third-party ticketing products and
+       * it is common to define textual fields in databases as VARCHAR(255).
+       *
+       * The contents of the subject line can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * If this field is missing or empty, a default subject line will be
+       * generated.
+       * 
+ * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Documentation) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) private static final com.google.monitoring.v3.AlertPolicy.Documentation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Documentation(); } @@ -1140,28 +1327,27 @@ public static com.google.monitoring.v3.AlertPolicy.Documentation getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Documentation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Documentation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1176,16 +1362,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.Documentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConditionOrBuilder - extends + public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -1215,13 +1399,10 @@ public interface ConditionOrBuilder
      * 
* * string name = 12; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -1251,14 +1432,12 @@ public interface ConditionOrBuilder
      * 
* * string name = 12; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -1266,13 +1445,10 @@ public interface ConditionOrBuilder
      * 
* * string display_name = 6; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -1280,79 +1456,59 @@ public interface ConditionOrBuilder
      * 
* * string display_name = 6; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; * @return Whether the conditionThreshold field is set. */ boolean hasConditionThreshold(); /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; * @return The conditionThreshold. */ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold(); /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; */ - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder - getConditionThresholdOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder(); /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * * @return Whether the conditionAbsent field is set. */ boolean hasConditionAbsent(); /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * * @return The conditionAbsent. */ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent(); /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
@@ -1360,38 +1516,29 @@ public interface ConditionOrBuilder
      *
      * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
      */
-    com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
-        getConditionAbsentOrBuilder();
+    com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder();
 
     /**
-     *
-     *
      * 
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * * @return Whether the conditionMatchedLog field is set. */ boolean hasConditionMatchedLog(); /** - * - * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * * @return The conditionMatchedLog. */ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog(); /** - * - * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
@@ -1399,60 +1546,68 @@ public interface ConditionOrBuilder
      *
      * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
      */
-    com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
-        getConditionMatchedLogOrBuilder();
+    com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder();
 
     /**
-     *
-     *
      * 
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; * @return Whether the conditionMonitoringQueryLanguage field is set. */ boolean hasConditionMonitoringQueryLanguage(); /** - * - * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; * @return The conditionMonitoringQueryLanguage. */ - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getConditionMonitoringQueryLanguage(); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage(); /** - * - * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + */ + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder(); + + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return Whether the conditionPrometheusQueryLanguage field is set. + */ + boolean hasConditionPrometheusQueryLanguage(); + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return The conditionPrometheusQueryLanguage. + */ + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage(); + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; */ - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder - getConditionMonitoringQueryLanguageOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder(); com.google.monitoring.v3.AlertPolicy.Condition.ConditionCase getConditionCase(); } /** - * - * *
    * A condition is a true/false test that determines when an alerting policy
    * should open an incident. If a condition evaluates to true, it signifies
@@ -1461,16 +1616,15 @@ public interface ConditionOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
    */
-  public static final class Condition extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Condition extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition)
       ConditionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Condition.newBuilder() to construct.
     private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Condition() {
       name_ = "";
       displayName_ = "";
@@ -1478,28 +1632,25 @@ private Condition() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Condition();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.Condition.class,
-              com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.Condition.class, com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * A condition control that determines how metric-threshold conditions
      * are evaluated when data stops arriving.
@@ -1508,10 +1659,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData}
      */
-    public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessageEnum {
+    public enum EvaluationMissingData
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * An unspecified evaluation missing data option.  Equivalent to
        * EVALUATION_MISSING_DATA_NO_OP.
@@ -1521,8 +1671,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       EVALUATION_MISSING_DATA_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as false.
@@ -1532,8 +1680,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       EVALUATION_MISSING_DATA_INACTIVE(1),
       /**
-       *
-       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as true.
@@ -1543,8 +1689,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       EVALUATION_MISSING_DATA_ACTIVE(2),
       /**
-       *
-       *
        * 
        * Do not evaluate the condition to any value if there is no data.
        * 
@@ -1556,8 +1700,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage ; /** - * - * *
        * An unspecified evaluation missing data option.  Equivalent to
        * EVALUATION_MISSING_DATA_NO_OP.
@@ -1567,8 +1709,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       public static final int EVALUATION_MISSING_DATA_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as false.
@@ -1578,8 +1718,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       public static final int EVALUATION_MISSING_DATA_INACTIVE_VALUE = 1;
       /**
-       *
-       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as true.
@@ -1589,8 +1727,6 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage
        */
       public static final int EVALUATION_MISSING_DATA_ACTIVE_VALUE = 2;
       /**
-       *
-       *
        * 
        * Do not evaluate the condition to any value if there is no data.
        * 
@@ -1599,6 +1735,7 @@ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessage */ public static final int EVALUATION_MISSING_DATA_NO_OP_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1623,16 +1760,11 @@ public static EvaluationMissingData valueOf(int value) { */ public static EvaluationMissingData forNumber(int value) { switch (value) { - case 0: - return EVALUATION_MISSING_DATA_UNSPECIFIED; - case 1: - return EVALUATION_MISSING_DATA_INACTIVE; - case 2: - return EVALUATION_MISSING_DATA_ACTIVE; - case 3: - return EVALUATION_MISSING_DATA_NO_OP; - default: - return null; + case 0: return EVALUATION_MISSING_DATA_UNSPECIFIED; + case 1: return EVALUATION_MISSING_DATA_INACTIVE; + case 2: return EVALUATION_MISSING_DATA_ACTIVE; + case 3: return EVALUATION_MISSING_DATA_NO_OP; + default: return null; } } @@ -1640,28 +1772,28 @@ public static EvaluationMissingData forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EvaluationMissingData> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMissingData findValueByNumber(int number) { + return EvaluationMissingData.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMissingData findValueByNumber(int number) { - return EvaluationMissingData.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.v3.AlertPolicy.Condition.getDescriptor().getEnumTypes().get(0); } @@ -1670,7 +1802,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static EvaluationMissingData valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1687,61 +1820,48 @@ private EvaluationMissingData(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData) } - public interface TriggerOrBuilder - extends + public interface TriggerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.Trigger) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; - * * @return Whether the count field is set. */ boolean hasCount(); /** - * - * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; - * * @return The count. */ int getCount(); /** - * - * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; - * * @return Whether the percent field is set. */ boolean hasPercent(); /** - * - * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; - * * @return The percent. */ double getPercent(); @@ -1749,8 +1869,6 @@ public interface TriggerOrBuilder com.google.monitoring.v3.AlertPolicy.Condition.Trigger.TypeCase getTypeCase(); } /** - * - * *
      * Specifies how many time series must fail a predicate to trigger a
      * condition. If not specified, then a `{count: 1}` trigger is used.
@@ -1758,53 +1876,48 @@ public interface TriggerOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.Trigger}
      */
-    public static final class Trigger extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class Trigger extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.Trigger)
         TriggerOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use Trigger.newBuilder() to construct.
       private Trigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private Trigger() {}
+      private Trigger() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new Trigger();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class,
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
       }
 
       private int typeCase_ = 0;
-
       @SuppressWarnings("serial")
       private java.lang.Object type_;
-
       public enum TypeCase
-          implements
-              com.google.protobuf.Internal.EnumLite,
+          implements com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         COUNT(1),
         PERCENT(2),
         TYPE_NOT_SET(0);
         private final int value;
-
         private TypeCase(int value) {
           this.value = value;
         }
@@ -1820,37 +1933,31 @@ public static TypeCase valueOf(int value) {
 
         public static TypeCase forNumber(int value) {
           switch (value) {
-            case 1:
-              return COUNT;
-            case 2:
-              return PERCENT;
-            case 0:
-              return TYPE_NOT_SET;
-            default:
-              return null;
+            case 1: return COUNT;
+            case 2: return PERCENT;
+            case 0: return TYPE_NOT_SET;
+            default: return null;
           }
         }
-
         public int getNumber() {
           return this.value;
         }
       };
 
-      public TypeCase getTypeCase() {
-        return TypeCase.forNumber(typeCase_);
+      public TypeCase
+      getTypeCase() {
+        return TypeCase.forNumber(
+            typeCase_);
       }
 
       public static final int COUNT_FIELD_NUMBER = 1;
       /**
-       *
-       *
        * 
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; - * * @return Whether the count field is set. */ @java.lang.Override @@ -1858,15 +1965,12 @@ public boolean hasCount() { return typeCase_ == 1; } /** - * - * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; - * * @return The count. */ @java.lang.Override @@ -1879,15 +1983,12 @@ public int getCount() { public static final int PERCENT_FIELD_NUMBER = 2; /** - * - * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; - * * @return Whether the percent field is set. */ @java.lang.Override @@ -1895,15 +1996,12 @@ public boolean hasPercent() { return typeCase_ == 2; } /** - * - * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; - * * @return The percent. */ @java.lang.Override @@ -1915,7 +2013,6 @@ public double getPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1927,12 +2024,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 1) { - output.writeInt32(1, (int) ((java.lang.Integer) type_)); + output.writeInt32( + 1, (int)((java.lang.Integer) type_)); } if (typeCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) type_)); + output.writeDouble( + 2, (double)((java.lang.Double) type_)); } getUnknownFields().writeTo(output); } @@ -1944,14 +2044,14 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, (int) ((java.lang.Integer) type_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 1, (int)((java.lang.Integer) type_)); } if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) type_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) type_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1961,22 +2061,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.Trigger)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.Trigger other = - (com.google.monitoring.v3.AlertPolicy.Condition.Trigger) obj; + com.google.monitoring.v3.AlertPolicy.Condition.Trigger other = (com.google.monitoring.v3.AlertPolicy.Condition.Trigger) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (getCount() != other.getCount()) return false; + if (getCount() + != other.getCount()) return false; break; case 2: if (java.lang.Double.doubleToLongBits(getPercent()) - != java.lang.Double.doubleToLongBits(other.getPercent())) return false; + != java.lang.Double.doubleToLongBits( + other.getPercent())) return false; break; case 0: default: @@ -1999,10 +2100,8 @@ public int hashCode() { break; case 2: hash = (37 * hash) + PERCENT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPercent())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPercent())); break; case 0: default: @@ -2013,94 +2112,89 @@ public int hashCode() { } public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.Condition.Trigger prototype) { + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.Trigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2110,8 +2204,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specifies how many time series must fail a predicate to trigger a
        * condition. If not specified, then a `{count: 1}` trigger is used.
@@ -2119,33 +2211,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.Trigger}
        */
-      public static final class Builder
-          extends com.google.protobuf.GeneratedMessageV3.Builder
-          implements
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.Trigger)
           com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.monitoring.v3.AlertProto
-              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto
-              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class,
-                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
         }
 
         // Construct using com.google.monitoring.v3.AlertPolicy.Condition.Trigger.newBuilder()
-        private Builder() {}
+        private Builder() {
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
         }
 
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -2156,9 +2248,9 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto
-              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
         }
 
         @java.lang.Override
@@ -2177,11 +2269,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger build() {
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.Condition.Trigger buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.Condition.Trigger result =
-              new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+          com.google.monitoring.v3.AlertPolicy.Condition.Trigger result = new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           buildPartialOneofs(result);
           onBuilt();
           return result;
@@ -2191,8 +2280,7 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Trigge
           int from_bitField0_ = bitField0_;
         }
 
-        private void buildPartialOneofs(
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger result) {
+        private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition.Trigger result) {
           result.typeCase_ = typeCase_;
           result.type_ = this.type_;
         }
@@ -2201,41 +2289,38 @@ private void buildPartialOneofs(
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.setField(field, value);
         }
-
         @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(
+            com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-
         @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(
+            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
+            int index, java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.Trigger) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.Trigger) other);
+            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.Trigger)other);
           } else {
             super.mergeFrom(other);
             return this;
@@ -2243,23 +2328,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
 
         public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.Trigger other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance())
-            return this;
+          if (other == com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) return this;
           switch (other.getTypeCase()) {
-            case COUNT:
-              {
-                setCount(other.getCount());
-                break;
-              }
-            case PERCENT:
-              {
-                setPercent(other.getPercent());
-                break;
-              }
-            case TYPE_NOT_SET:
-              {
-                break;
-              }
+            case COUNT: {
+              setCount(other.getCount());
+              break;
+            }
+            case PERCENT: {
+              setPercent(other.getPercent());
+              break;
+            }
+            case TYPE_NOT_SET: {
+              break;
+            }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
@@ -2287,25 +2368,22 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8:
-                  {
-                    type_ = input.readInt32();
-                    typeCase_ = 1;
-                    break;
-                  } // case 8
-                case 17:
-                  {
-                    type_ = input.readDouble();
-                    typeCase_ = 2;
-                    break;
-                  } // case 17
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 8: {
+                  type_ = input.readInt32();
+                  typeCase_ = 1;
+                  break;
+                } // case 8
+                case 17: {
+                  type_ = input.readDouble();
+                  typeCase_ = 2;
+                  break;
+                } // case 17
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2315,12 +2393,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int typeCase_ = 0;
         private java.lang.Object type_;
-
-        public TypeCase getTypeCase() {
-          return TypeCase.forNumber(typeCase_);
+        public TypeCase
+            getTypeCase() {
+          return TypeCase.forNumber(
+              typeCase_);
         }
 
         public Builder clearType() {
@@ -2333,30 +2411,24 @@ public Builder clearType() {
         private int bitField0_;
 
         /**
-         *
-         *
          * 
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; - * * @return Whether the count field is set. */ public boolean hasCount() { return typeCase_ == 1; } /** - * - * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; - * * @return The count. */ public int getCount() { @@ -2366,15 +2438,12 @@ public int getCount() { return 0; } /** - * - * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; - * * @param value The count to set. * @return This builder for chaining. */ @@ -2386,15 +2455,12 @@ public Builder setCount(int value) { return this; } /** - * - * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -2407,30 +2473,24 @@ public Builder clearCount() { } /** - * - * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; - * * @return Whether the percent field is set. */ public boolean hasPercent() { return typeCase_ == 2; } /** - * - * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; - * * @return The percent. */ public double getPercent() { @@ -2440,15 +2500,12 @@ public double getPercent() { return 0D; } /** - * - * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; - * * @param value The percent to set. * @return This builder for chaining. */ @@ -2460,15 +2517,12 @@ public Builder setPercent(double value) { return this; } /** - * - * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; - * * @return This builder for chaining. */ public Builder clearPercent() { @@ -2479,7 +2533,6 @@ public Builder clearPercent() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2492,12 +2545,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) private static final com.google.monitoring.v3.AlertPolicy.Condition.Trigger DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(); } @@ -2506,28 +2559,27 @@ public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Trigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2542,18 +2594,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MetricThresholdOrBuilder - extends + public interface MetricThresholdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -2566,15 +2617,13 @@ public interface MetricThresholdOrBuilder
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -2587,14 +2636,12 @@ public interface MetricThresholdOrBuilder
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2611,10 +2658,9 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      java.util.List getAggregationsList();
+      java.util.List 
+          getAggregationsList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2633,8 +2679,6 @@ public interface MetricThresholdOrBuilder
        */
       com.google.monitoring.v3.Aggregation getAggregations(int index);
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2653,8 +2697,6 @@ public interface MetricThresholdOrBuilder
        */
       int getAggregationsCount();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2671,11 +2713,9 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      java.util.List
+      java.util.List 
           getAggregationsOrBuilderList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2692,11 +2732,10 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index);
+      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
+          int index);
 
       /**
-       *
-       *
        * 
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -2710,13 +2749,10 @@ public interface MetricThresholdOrBuilder
        * 
* * string denominator_filter = 9; - * * @return The denominatorFilter. */ java.lang.String getDenominatorFilter(); /** - * - * *
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -2730,14 +2766,12 @@ public interface MetricThresholdOrBuilder
        * 
* * string denominator_filter = 9; - * * @return The bytes for denominatorFilter. */ - com.google.protobuf.ByteString getDenominatorFilterBytes(); + com.google.protobuf.ByteString + getDenominatorFilterBytes(); /** - * - * *
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2753,10 +2787,9 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      java.util.List getDenominatorAggregationsList();
+      java.util.List 
+          getDenominatorAggregationsList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2774,8 +2807,6 @@ public interface MetricThresholdOrBuilder
        */
       com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index);
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2793,8 +2824,6 @@ public interface MetricThresholdOrBuilder
        */
       int getDenominatorAggregationsCount();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2810,11 +2839,9 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      java.util.List
+      java.util.List 
           getDenominatorAggregationsOrBuilderList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2830,11 +2857,49 @@ public interface MetricThresholdOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(int index);
+      com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(
+          int index);
 
       /**
+       * 
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return Whether the forecastOptions field is set. + */ + boolean hasForecastOptions(); + /** + *
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
* + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return The forecastOptions. + */ + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions(); + /** + *
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
* + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder(); + + /** *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -2845,13 +2910,10 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @return The enum numeric value on the wire for comparison. */ int getComparisonValue(); /** - * - * *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -2862,27 +2924,21 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @return The comparison. */ com.google.monitoring.v3.ComparisonType getComparison(); /** - * - * *
        * A value against which to compare the time series.
        * 
* * double threshold_value = 5; - * * @return The thresholdValue. */ double getThresholdValue(); /** - * - * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2897,13 +2953,10 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.protobuf.Duration duration = 6; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2918,13 +2971,10 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.protobuf.Duration duration = 6; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2943,8 +2993,6 @@ public interface MetricThresholdOrBuilder
       com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
       /**
-       *
-       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -2955,13 +3003,10 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * * @return Whether the trigger field is set. */ boolean hasTrigger(); /** - * - * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -2972,13 +3017,10 @@ public interface MetricThresholdOrBuilder
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * * @return The trigger. */ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** - * - * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -2993,40 +3035,27 @@ public interface MetricThresholdOrBuilder
       com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
 
       /**
-       *
-       *
        * 
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @return The enum numeric value on the wire for evaluationMissingData. */ int getEvaluationMissingDataValue(); /** - * - * *
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @return The evaluationMissingData. */ - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData(); + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData(); } /** - * - * *
      * A condition type that compares a collection of time series
      * against a threshold.
@@ -3034,16 +3063,15 @@ public interface MetricThresholdOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold}
      */
-    public static final class MetricThreshold extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class MetricThreshold extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)
         MetricThresholdOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use MetricThreshold.newBuilder() to construct.
       private MetricThreshold(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
       private MetricThreshold() {
         filter_ = "";
         aggregations_ = java.util.Collections.emptyList();
@@ -3055,1346 +3083,2055 @@ private MetricThreshold() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new MetricThreshold();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class,
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
       }
 
-      public static final int FILTER_FIELD_NUMBER = 2;
+      public interface ForecastOptionsOrBuilder extends
+          // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)
+          com.google.protobuf.MessageOrBuilder {
 
-      @SuppressWarnings("serial")
-      private volatile java.lang.Object filter_ = "";
-      /**
-       *
-       *
-       * 
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-       * identifies which time series should be compared with the threshold.
-       *
-       * The filter is similar to the one that is specified in the
-       * [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-       * (that call is useful to verify the time series that will be retrieved /
-       * processed). The filter must specify the metric type and the resource
-       * type. Optionally, it can specify resource labels and metric labels.
-       * This field must not exceed 2048 Unicode characters in length.
-       * 
- * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the forecastHorizon field is set. + */ + boolean hasForecastHorizon(); + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The forecastHorizon. + */ + com.google.protobuf.Duration getForecastHorizon(); + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder(); } /** - * - * *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-       * identifies which time series should be compared with the threshold.
-       *
-       * The filter is similar to the one that is specified in the
-       * [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-       * (that call is useful to verify the time series that will be retrieved /
-       * processed). The filter must specify the metric type and the resource
-       * type. Optionally, it can specify resource labels and metric labels.
-       * This field must not exceed 2048 Unicode characters in length.
+       * Options used when forecasting the time series and testing
+       * the predicted value against the threshold.
        * 
* - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class ForecastOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) + ForecastOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForecastOptions.newBuilder() to construct. + private ForecastOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ForecastOptions() { } - } - public static final int AGGREGATIONS_FIELD_NUMBER = 8; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ForecastOptions(); + } - @SuppressWarnings("serial") - private java.util.List aggregations_; - /** - * - * - *
-       * Specifies the alignment of data points in individual time series as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources). Multiple aggregations
-       * are applied in the order specified.
-       *
-       * This field is similar to the one in the [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-       * It is advisable to use the `ListTimeSeries` method when debugging this
-       * field.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 8; - */ - @java.lang.Override - public java.util.List getAggregationsList() { - return aggregations_; - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources). Multiple aggregations
-       * are applied in the order specified.
-       *
-       * This field is similar to the one in the [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-       * It is advisable to use the `ListTimeSeries` method when debugging this
-       * field.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 8; - */ - @java.lang.Override - public java.util.List - getAggregationsOrBuilderList() { - return aggregations_; - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources). Multiple aggregations
-       * are applied in the order specified.
-       *
-       * This field is similar to the one in the [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-       * It is advisable to use the `ListTimeSeries` method when debugging this
-       * field.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 8; - */ - @java.lang.Override - public int getAggregationsCount() { - return aggregations_.size(); - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources). Multiple aggregations
-       * are applied in the order specified.
-       *
-       * This field is similar to the one in the [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-       * It is advisable to use the `ListTimeSeries` method when debugging this
-       * field.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 8; - */ - @java.lang.Override - public com.google.monitoring.v3.Aggregation getAggregations(int index) { - return aggregations_.get(index); - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources). Multiple aggregations
-       * are applied in the order specified.
-       *
-       * This field is similar to the one in the [`ListTimeSeries`
-       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-       * It is advisable to use the `ListTimeSeries` method when debugging this
-       * field.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 8; - */ - @java.lang.Override - public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) { - return aggregations_.get(index); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + } - public static final int DENOMINATOR_FILTER_FIELD_NUMBER = 9; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder.class); + } - @SuppressWarnings("serial") - private volatile java.lang.Object denominatorFilter_ = ""; - /** - * - * - *
-       * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-       * identifies a time series that should be used as the denominator of a
-       * ratio that will be compared with the threshold. If a
-       * `denominator_filter` is specified, the time series specified by the
-       * `filter` field will be used as the numerator.
-       *
-       * The filter must specify the metric type and optionally may contain
-       * restrictions on resource type, resource labels, and metric labels.
-       * This field may not exceed 2048 Unicode characters in length.
-       * 
- * - * string denominator_filter = 9; - * - * @return The denominatorFilter. - */ - @java.lang.Override - public java.lang.String getDenominatorFilter() { - java.lang.Object ref = denominatorFilter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - denominatorFilter_ = s; - return s; + public static final int FORECAST_HORIZON_FIELD_NUMBER = 1; + private com.google.protobuf.Duration forecastHorizon_; + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the forecastHorizon field is set. + */ + @java.lang.Override + public boolean hasForecastHorizon() { + return forecastHorizon_ != null; } - } - /** - * - * - *
-       * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-       * identifies a time series that should be used as the denominator of a
-       * ratio that will be compared with the threshold. If a
-       * `denominator_filter` is specified, the time series specified by the
-       * `filter` field will be used as the numerator.
-       *
-       * The filter must specify the metric type and optionally may contain
-       * restrictions on resource type, resource labels, and metric labels.
-       * This field may not exceed 2048 Unicode characters in length.
-       * 
- * - * string denominator_filter = 9; - * - * @return The bytes for denominatorFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDenominatorFilterBytes() { - java.lang.Object ref = denominatorFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - denominatorFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The forecastHorizon. + */ + @java.lang.Override + public com.google.protobuf.Duration getForecastHorizon() { + return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + } + /** + *
+         * Required. The length of time into the future to forecast whether a
+         * time series will violate the threshold. If the predicted value is
+         * found to violate the threshold, and the violation is observed in all
+         * forecasts made for the configured `duration`, then the time series is
+         * considered to be failing.
+         * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder() { + return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; } - } - public static final int DENOMINATOR_AGGREGATIONS_FIELD_NUMBER = 10; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @SuppressWarnings("serial") - private java.util.List denominatorAggregations_; - /** - * - * - *
-       * Specifies the alignment of data points in individual time series
-       * selected by `denominatorFilter` as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources).
-       *
-       * When computing ratios, the `aggregations` and
-       * `denominator_aggregations` fields must use the same alignment period
-       * and produce time series that have the same periodicity and labels.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; - */ - @java.lang.Override - public java.util.List getDenominatorAggregationsList() { - return denominatorAggregations_; - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series
-       * selected by `denominatorFilter` as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources).
-       *
-       * When computing ratios, the `aggregations` and
-       * `denominator_aggregations` fields must use the same alignment period
-       * and produce time series that have the same periodicity and labels.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; - */ - @java.lang.Override - public java.util.List - getDenominatorAggregationsOrBuilderList() { - return denominatorAggregations_; - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series
-       * selected by `denominatorFilter` as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources).
-       *
-       * When computing ratios, the `aggregations` and
-       * `denominator_aggregations` fields must use the same alignment period
-       * and produce time series that have the same periodicity and labels.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; - */ - @java.lang.Override - public int getDenominatorAggregationsCount() { - return denominatorAggregations_.size(); - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series
-       * selected by `denominatorFilter` as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources).
-       *
-       * When computing ratios, the `aggregations` and
-       * `denominator_aggregations` fields must use the same alignment period
-       * and produce time series that have the same periodicity and labels.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; - */ - @java.lang.Override - public com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index) { - return denominatorAggregations_.get(index); - } - /** - * - * - *
-       * Specifies the alignment of data points in individual time series
-       * selected by `denominatorFilter` as
-       * well as how to combine the retrieved time series together (such as
-       * when aggregating multiple streams on each resource to a single
-       * stream for each resource or when aggregating streams across all
-       * members of a group of resources).
-       *
-       * When computing ratios, the `aggregations` and
-       * `denominator_aggregations` fields must use the same alignment period
-       * and produce time series that have the same periodicity and labels.
-       * 
- * - * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; - */ - @java.lang.Override - public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder( - int index) { - return denominatorAggregations_.get(index); - } + memoizedIsInitialized = 1; + return true; + } - public static final int COMPARISON_FIELD_NUMBER = 4; - private int comparison_ = 0; - /** - * - * - *
-       * The comparison to apply between the time series (indicated by `filter`
-       * and `aggregation`) and the threshold (indicated by `threshold_value`).
-       * The comparison is applied on each time series, with the time series
-       * on the left-hand side and the threshold on the right-hand side.
-       *
-       * Only `COMPARISON_LT` and `COMPARISON_GT` are supported currently.
-       * 
- * - * .google.monitoring.v3.ComparisonType comparison = 4; - * - * @return The enum numeric value on the wire for comparison. - */ - @java.lang.Override - public int getComparisonValue() { - return comparison_; - } - /** - * - * - *
-       * The comparison to apply between the time series (indicated by `filter`
-       * and `aggregation`) and the threshold (indicated by `threshold_value`).
-       * The comparison is applied on each time series, with the time series
-       * on the left-hand side and the threshold on the right-hand side.
-       *
-       * Only `COMPARISON_LT` and `COMPARISON_GT` are supported currently.
-       * 
- * - * .google.monitoring.v3.ComparisonType comparison = 4; - * - * @return The comparison. - */ - @java.lang.Override - public com.google.monitoring.v3.ComparisonType getComparison() { - com.google.monitoring.v3.ComparisonType result = - com.google.monitoring.v3.ComparisonType.forNumber(comparison_); - return result == null ? com.google.monitoring.v3.ComparisonType.UNRECOGNIZED : result; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (forecastHorizon_ != null) { + output.writeMessage(1, getForecastHorizon()); + } + getUnknownFields().writeTo(output); + } - public static final int THRESHOLD_VALUE_FIELD_NUMBER = 5; - private double thresholdValue_ = 0D; - /** - * - * - *
-       * A value against which to compare the time series.
-       * 
- * - * double threshold_value = 5; - * - * @return The thresholdValue. - */ - @java.lang.Override - public double getThresholdValue() { - return thresholdValue_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - * - * - *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
-       * 
- * - * .google.protobuf.Duration duration = 6; - * - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return duration_ != null; - } - /** - * - * - *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
-       * 
- * - * .google.protobuf.Duration duration = 6; - * - * @return The duration. - */ - @java.lang.Override - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - * - * - *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } + size = 0; + if (forecastHorizon_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getForecastHorizon()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int TRIGGER_FIELD_NUMBER = 7; - private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; - /** - * - * - *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * - * @return Whether the trigger field is set. - */ - @java.lang.Override - public boolean hasTrigger() { - return trigger_ != null; - } - /** - * - * - *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * - * @return The trigger. - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } - /** - * - * - *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)) { + return super.equals(obj); + } + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) obj; - public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 11; - private int evaluationMissingData_ = 0; - /** - * - * - *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * - * @return The enum numeric value on the wire for evaluationMissingData. - */ - @java.lang.Override - public int getEvaluationMissingDataValue() { - return evaluationMissingData_; - } - /** - * - * - *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * - * @return The evaluationMissingData. - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( - evaluationMissingData_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (comparison_ - != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { - output.writeEnum(4, comparison_); - } - if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { - output.writeDouble(5, thresholdValue_); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (trigger_ != null) { - output.writeMessage(7, getTrigger()); - } - for (int i = 0; i < aggregations_.size(); i++) { - output.writeMessage(8, aggregations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denominatorFilter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, denominatorFilter_); - } - for (int i = 0; i < denominatorAggregations_.size(); i++) { - output.writeMessage(10, denominatorAggregations_.get(i)); - } - if (evaluationMissingData_ - != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - .EVALUATION_MISSING_DATA_UNSPECIFIED - .getNumber()) { - output.writeEnum(11, evaluationMissingData_); + if (hasForecastHorizon() != other.hasForecastHorizon()) return false; + if (hasForecastHorizon()) { + if (!getForecastHorizon() + .equals(other.getForecastHorizon())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasForecastHorizon()) { + hash = (37 * hash) + FORECAST_HORIZON_FIELD_NUMBER; + hash = (53 * hash) + getForecastHorizon().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - if (comparison_ - != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, comparison_); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, thresholdValue_); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDuration()); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTrigger()); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - for (int i = 0; i < aggregations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, aggregations_.get(i)); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denominatorFilter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, denominatorFilter_); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - for (int i = 0; i < denominatorAggregations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, denominatorAggregations_.get(i)); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - if (evaluationMissingData_ - != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - .EVALUATION_MISSING_DATA_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, evaluationMissingData_); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)) { - return super.equals(obj); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other = - (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) obj; - if (!getFilter().equals(other.getFilter())) return false; - if (!getAggregationsList().equals(other.getAggregationsList())) return false; - if (!getDenominatorFilter().equals(other.getDenominatorFilter())) return false; - if (!getDenominatorAggregationsList().equals(other.getDenominatorAggregationsList())) - return false; - if (comparison_ != other.comparison_) return false; - if (java.lang.Double.doubleToLongBits(getThresholdValue()) - != java.lang.Double.doubleToLongBits(other.getThresholdValue())) return false; - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; - } - if (hasTrigger() != other.hasTrigger()) return false; - if (hasTrigger()) { - if (!getTrigger().equals(other.getTrigger())) return false; + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - if (evaluationMissingData_ != other.evaluationMissingData_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - if (getAggregationsCount() > 0) { - hash = (37 * hash) + AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAggregationsList().hashCode(); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - hash = (37 * hash) + DENOMINATOR_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDenominatorFilter().hashCode(); - if (getDenominatorAggregationsCount() > 0) { - hash = (37 * hash) + DENOMINATOR_AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getDenominatorAggregationsList().hashCode(); + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - hash = (37 * hash) + COMPARISON_FIELD_NUMBER; - hash = (53 * hash) + comparison_; - hash = (37 * hash) + THRESHOLD_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdValue())); - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (hasTrigger()) { - hash = (37 * hash) + TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + getTrigger().hashCode(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER; - hash = (53 * hash) + evaluationMissingData_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Options used when forecasting the time series and testing
+         * the predicted value against the threshold.
+         * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder.class); + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.newBuilder() + private Builder() { - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + forecastHorizon_ = null; + if (forecastHorizonBuilder_ != null) { + forecastHorizonBuilder_.dispose(); + forecastHorizonBuilder_ = null; + } + return this; + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance(); + } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions build() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.forecastHorizon_ = forecastHorizonBuilder_ == null + ? forecastHorizon_ + : forecastHorizonBuilder_.build(); + } + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance()) return this; + if (other.hasForecastHorizon()) { + mergeForecastHorizon(other.getForecastHorizon()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * A condition type that compares a collection of time series
-       * against a threshold.
-       * 
- * - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class); - } - - // Construct using - // com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filter_ = ""; - if (aggregationsBuilder_ == null) { - aggregations_ = java.util.Collections.emptyList(); - } else { - aggregations_ = null; - aggregationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - denominatorFilter_ = ""; - if (denominatorAggregationsBuilder_ == null) { - denominatorAggregations_ = java.util.Collections.emptyList(); - } else { - denominatorAggregations_ = null; - denominatorAggregationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - comparison_ = 0; - thresholdValue_ = 0D; - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - trigger_ = null; - if (triggerBuilder_ != null) { - triggerBuilder_.dispose(); - triggerBuilder_ = null; - } - evaluationMissingData_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; - } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold build() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result = - new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getForecastHorizonFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) { - if (aggregationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - aggregations_ = java.util.Collections.unmodifiableList(aggregations_); - bitField0_ = (bitField0_ & ~0x00000002); + private int bitField0_; + + private com.google.protobuf.Duration forecastHorizon_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> forecastHorizonBuilder_; + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the forecastHorizon field is set. + */ + public boolean hasForecastHorizon() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The forecastHorizon. + */ + public com.google.protobuf.Duration getForecastHorizon() { + if (forecastHorizonBuilder_ == null) { + return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + } else { + return forecastHorizonBuilder_.getMessage(); } - result.aggregations_ = aggregations_; - } else { - result.aggregations_ = aggregationsBuilder_.build(); } - if (denominatorAggregationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - denominatorAggregations_ = - java.util.Collections.unmodifiableList(denominatorAggregations_); - bitField0_ = (bitField0_ & ~0x00000008); + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setForecastHorizon(com.google.protobuf.Duration value) { + if (forecastHorizonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forecastHorizon_ = value; + } else { + forecastHorizonBuilder_.setMessage(value); } - result.denominatorAggregations_ = denominatorAggregations_; - } else { - result.denominatorAggregations_ = denominatorAggregationsBuilder_.build(); + bitField0_ |= 0x00000001; + onChanged(); + return this; } - } - - private void buildPartial0( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setForecastHorizon( + com.google.protobuf.Duration.Builder builderForValue) { + if (forecastHorizonBuilder_ == null) { + forecastHorizon_ = builderForValue.build(); + } else { + forecastHorizonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.denominatorFilter_ = denominatorFilter_; + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeForecastHorizon(com.google.protobuf.Duration value) { + if (forecastHorizonBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + forecastHorizon_ != null && + forecastHorizon_ != com.google.protobuf.Duration.getDefaultInstance()) { + getForecastHorizonBuilder().mergeFrom(value); + } else { + forecastHorizon_ = value; + } + } else { + forecastHorizonBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.comparison_ = comparison_; + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearForecastHorizon() { + bitField0_ = (bitField0_ & ~0x00000001); + forecastHorizon_ = null; + if (forecastHorizonBuilder_ != null) { + forecastHorizonBuilder_.dispose(); + forecastHorizonBuilder_ = null; + } + onChanged(); + return this; } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.thresholdValue_ = thresholdValue_; + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Duration.Builder getForecastHorizonBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getForecastHorizonFieldBuilder().getBuilder(); + } + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder() { + if (forecastHorizonBuilder_ != null) { + return forecastHorizonBuilder_.getMessageOrBuilder(); + } else { + return forecastHorizon_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + } } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + /** + *
+           * Required. The length of time into the future to forecast whether a
+           * time series will violate the threshold. If the predicted value is
+           * found to violate the threshold, and the violation is observed in all
+           * forecasts made for the configured `duration`, then the time series is
+           * considered to be failing.
+           * 
+ * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getForecastHorizonFieldBuilder() { + if (forecastHorizonBuilder_ == null) { + forecastHorizonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getForecastHorizon(), + getParentForChildren(), + isClean()); + forecastHorizon_ = null; + } + return forecastHorizonBuilder_; } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.evaluationMissingData_ = evaluationMissingData_; + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) + private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions(); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForecastOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) { - return mergeFrom( - (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public Builder mergeFrom( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other) { - if (other - == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance()) return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (aggregationsBuilder_ == null) { - if (!other.aggregations_.isEmpty()) { - if (aggregations_.isEmpty()) { - aggregations_ = other.aggregations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAggregationsIsMutable(); - aggregations_.addAll(other.aggregations_); - } - onChanged(); - } - } else { - if (!other.aggregations_.isEmpty()) { - if (aggregationsBuilder_.isEmpty()) { - aggregationsBuilder_.dispose(); - aggregationsBuilder_ = null; - aggregations_ = other.aggregations_; - bitField0_ = (bitField0_ & ~0x00000002); - aggregationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAggregationsFieldBuilder() - : null; - } else { - aggregationsBuilder_.addAllMessages(other.aggregations_); - } - } - } - if (!other.getDenominatorFilter().isEmpty()) { - denominatorFilter_ = other.denominatorFilter_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (denominatorAggregationsBuilder_ == null) { - if (!other.denominatorAggregations_.isEmpty()) { - if (denominatorAggregations_.isEmpty()) { - denominatorAggregations_ = other.denominatorAggregations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDenominatorAggregationsIsMutable(); - denominatorAggregations_.addAll(other.denominatorAggregations_); - } - onChanged(); - } - } else { - if (!other.denominatorAggregations_.isEmpty()) { - if (denominatorAggregationsBuilder_.isEmpty()) { - denominatorAggregationsBuilder_.dispose(); - denominatorAggregationsBuilder_ = null; - denominatorAggregations_ = other.denominatorAggregations_; - bitField0_ = (bitField0_ & ~0x00000008); - denominatorAggregationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDenominatorAggregationsFieldBuilder() - : null; - } else { - denominatorAggregationsBuilder_.addAllMessages(other.denominatorAggregations_); - } - } - } - if (other.comparison_ != 0) { - setComparisonValue(other.getComparisonValue()); - } - if (other.getThresholdValue() != 0D) { - setThresholdValue(other.getThresholdValue()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasTrigger()) { - mergeTrigger(other.getTrigger()); - } - if (other.evaluationMissingData_ != 0) { - setEvaluationMissingDataValue(other.getEvaluationMissingDataValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * identifies which time series should be compared with the threshold.
+       *
+       * The filter is similar to the one that is specified in the
+       * [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+       * (that call is useful to verify the time series that will be retrieved /
+       * processed). The filter must specify the metric type and the resource
+       * type. Optionally, it can specify resource labels and metric labels.
+       * This field must not exceed 2048 Unicode characters in length.
+       * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 32: - { - comparison_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 41: - { - thresholdValue_ = input.readDouble(); - bitField0_ |= 0x00000020; - break; - } // case 41 - case 50: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - com.google.monitoring.v3.Aggregation m = - input.readMessage( - com.google.monitoring.v3.Aggregation.parser(), extensionRegistry); - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.add(m); - } else { - aggregationsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - denominatorFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 74 - case 82: - { - com.google.monitoring.v3.Aggregation m = - input.readMessage( - com.google.monitoring.v3.Aggregation.parser(), extensionRegistry); - if (denominatorAggregationsBuilder_ == null) { - ensureDenominatorAggregationsIsMutable(); - denominatorAggregations_.add(m); - } else { - denominatorAggregationsBuilder_.addMessage(m); - } - break; - } // case 82 - case 88: - { - evaluationMissingData_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + } + /** + *
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * identifies which time series should be compared with the threshold.
+       *
+       * The filter is similar to the one that is specified in the
+       * [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+       * (that call is useful to verify the time series that will be retrieved /
+       * processed). The filter must specify the metric type and the resource
+       * type. Optionally, it can specify resource labels and metric labels.
+       * This field must not exceed 2048 Unicode characters in length.
+       * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private int bitField0_; + public static final int AGGREGATIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private java.util.List aggregations_; + /** + *
+       * Specifies the alignment of data points in individual time series as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources). Multiple aggregations
+       * are applied in the order specified.
+       *
+       * This field is similar to the one in the [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+       * It is advisable to use the `ListTimeSeries` method when debugging this
+       * field.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 8; + */ + @java.lang.Override + public java.util.List getAggregationsList() { + return aggregations_; + } + /** + *
+       * Specifies the alignment of data points in individual time series as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources). Multiple aggregations
+       * are applied in the order specified.
+       *
+       * This field is similar to the one in the [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+       * It is advisable to use the `ListTimeSeries` method when debugging this
+       * field.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 8; + */ + @java.lang.Override + public java.util.List + getAggregationsOrBuilderList() { + return aggregations_; + } + /** + *
+       * Specifies the alignment of data points in individual time series as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources). Multiple aggregations
+       * are applied in the order specified.
+       *
+       * This field is similar to the one in the [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+       * It is advisable to use the `ListTimeSeries` method when debugging this
+       * field.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 8; + */ + @java.lang.Override + public int getAggregationsCount() { + return aggregations_.size(); + } + /** + *
+       * Specifies the alignment of data points in individual time series as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources). Multiple aggregations
+       * are applied in the order specified.
+       *
+       * This field is similar to the one in the [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+       * It is advisable to use the `ListTimeSeries` method when debugging this
+       * field.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 8; + */ + @java.lang.Override + public com.google.monitoring.v3.Aggregation getAggregations(int index) { + return aggregations_.get(index); + } + /** + *
+       * Specifies the alignment of data points in individual time series as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources). Multiple aggregations
+       * are applied in the order specified.
+       *
+       * This field is similar to the one in the [`ListTimeSeries`
+       * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+       * It is advisable to use the `ListTimeSeries` method when debugging this
+       * field.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 8; + */ + @java.lang.Override + public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder( + int index) { + return aggregations_.get(index); + } - private java.lang.Object filter_ = ""; - /** - * - * - *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
-         * 
- * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; + public static final int DENOMINATOR_FILTER_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object denominatorFilter_ = ""; + /** + *
+       * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * identifies a time series that should be used as the denominator of a
+       * ratio that will be compared with the threshold. If a
+       * `denominator_filter` is specified, the time series specified by the
+       * `filter` field will be used as the numerator.
+       *
+       * The filter must specify the metric type and optionally may contain
+       * restrictions on resource type, resource labels, and metric labels.
+       * This field may not exceed 2048 Unicode characters in length.
+       * 
+ * + * string denominator_filter = 9; + * @return The denominatorFilter. + */ + @java.lang.Override + public java.lang.String getDenominatorFilter() { + java.lang.Object ref = denominatorFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + denominatorFilter_ = s; + return s; + } + } + /** + *
+       * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * identifies a time series that should be used as the denominator of a
+       * ratio that will be compared with the threshold. If a
+       * `denominator_filter` is specified, the time series specified by the
+       * `filter` field will be used as the numerator.
+       *
+       * The filter must specify the metric type and optionally may contain
+       * restrictions on resource type, resource labels, and metric labels.
+       * This field may not exceed 2048 Unicode characters in length.
+       * 
+ * + * string denominator_filter = 9; + * @return The bytes for denominatorFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDenominatorFilterBytes() { + java.lang.Object ref = denominatorFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + denominatorFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DENOMINATOR_AGGREGATIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private java.util.List denominatorAggregations_; + /** + *
+       * Specifies the alignment of data points in individual time series
+       * selected by `denominatorFilter` as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources).
+       *
+       * When computing ratios, the `aggregations` and
+       * `denominator_aggregations` fields must use the same alignment period
+       * and produce time series that have the same periodicity and labels.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; + */ + @java.lang.Override + public java.util.List getDenominatorAggregationsList() { + return denominatorAggregations_; + } + /** + *
+       * Specifies the alignment of data points in individual time series
+       * selected by `denominatorFilter` as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources).
+       *
+       * When computing ratios, the `aggregations` and
+       * `denominator_aggregations` fields must use the same alignment period
+       * and produce time series that have the same periodicity and labels.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; + */ + @java.lang.Override + public java.util.List + getDenominatorAggregationsOrBuilderList() { + return denominatorAggregations_; + } + /** + *
+       * Specifies the alignment of data points in individual time series
+       * selected by `denominatorFilter` as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources).
+       *
+       * When computing ratios, the `aggregations` and
+       * `denominator_aggregations` fields must use the same alignment period
+       * and produce time series that have the same periodicity and labels.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; + */ + @java.lang.Override + public int getDenominatorAggregationsCount() { + return denominatorAggregations_.size(); + } + /** + *
+       * Specifies the alignment of data points in individual time series
+       * selected by `denominatorFilter` as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources).
+       *
+       * When computing ratios, the `aggregations` and
+       * `denominator_aggregations` fields must use the same alignment period
+       * and produce time series that have the same periodicity and labels.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; + */ + @java.lang.Override + public com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index) { + return denominatorAggregations_.get(index); + } + /** + *
+       * Specifies the alignment of data points in individual time series
+       * selected by `denominatorFilter` as
+       * well as how to combine the retrieved time series together (such as
+       * when aggregating multiple streams on each resource to a single
+       * stream for each resource or when aggregating streams across all
+       * members of a group of resources).
+       *
+       * When computing ratios, the `aggregations` and
+       * `denominator_aggregations` fields must use the same alignment period
+       * and produce time series that have the same periodicity and labels.
+       * 
+ * + * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10; + */ + @java.lang.Override + public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder( + int index) { + return denominatorAggregations_.get(index); + } + + public static final int FORECAST_OPTIONS_FIELD_NUMBER = 12; + private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecastOptions_; + /** + *
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return Whether the forecastOptions field is set. + */ + @java.lang.Override + public boolean hasForecastOptions() { + return forecastOptions_ != null; + } + /** + *
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return The forecastOptions. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions() { + return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + } + /** + *
+       * When this field is present, the `MetricThreshold` condition forecasts
+       * whether the time series is predicted to violate the threshold within
+       * the `forecast_horizon`. When this field is not set, the
+       * `MetricThreshold` tests the current value of the timeseries against the
+       * threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder() { + return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + } + + public static final int COMPARISON_FIELD_NUMBER = 4; + private int comparison_ = 0; + /** + *
+       * The comparison to apply between the time series (indicated by `filter`
+       * and `aggregation`) and the threshold (indicated by `threshold_value`).
+       * The comparison is applied on each time series, with the time series
+       * on the left-hand side and the threshold on the right-hand side.
+       *
+       * Only `COMPARISON_LT` and `COMPARISON_GT` are supported currently.
+       * 
+ * + * .google.monitoring.v3.ComparisonType comparison = 4; + * @return The enum numeric value on the wire for comparison. + */ + @java.lang.Override public int getComparisonValue() { + return comparison_; + } + /** + *
+       * The comparison to apply between the time series (indicated by `filter`
+       * and `aggregation`) and the threshold (indicated by `threshold_value`).
+       * The comparison is applied on each time series, with the time series
+       * on the left-hand side and the threshold on the right-hand side.
+       *
+       * Only `COMPARISON_LT` and `COMPARISON_GT` are supported currently.
+       * 
+ * + * .google.monitoring.v3.ComparisonType comparison = 4; + * @return The comparison. + */ + @java.lang.Override public com.google.monitoring.v3.ComparisonType getComparison() { + com.google.monitoring.v3.ComparisonType result = com.google.monitoring.v3.ComparisonType.forNumber(comparison_); + return result == null ? com.google.monitoring.v3.ComparisonType.UNRECOGNIZED : result; + } + + public static final int THRESHOLD_VALUE_FIELD_NUMBER = 5; + private double thresholdValue_ = 0D; + /** + *
+       * A value against which to compare the time series.
+       * 
+ * + * double threshold_value = 5; + * @return The thresholdValue. + */ + @java.lang.Override + public double getThresholdValue() { + return thresholdValue_; + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int TRIGGER_FIELD_NUMBER = 7; + private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * @return Whether the trigger field is set. + */ + @java.lang.Override + public boolean hasTrigger() { + return trigger_ != null; + } + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * @return The trigger. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + } + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + } + + public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 11; + private int evaluationMissingData_ = 0; + /** + *
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * @return The enum numeric value on the wire for evaluationMissingData. + */ + @java.lang.Override public int getEvaluationMissingDataValue() { + return evaluationMissingData_; + } + /** + *
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * @return The evaluationMissingData. + */ + @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); + return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (comparison_ != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { + output.writeEnum(4, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { + output.writeDouble(5, thresholdValue_); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (trigger_ != null) { + output.writeMessage(7, getTrigger()); + } + for (int i = 0; i < aggregations_.size(); i++) { + output.writeMessage(8, aggregations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denominatorFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, denominatorFilter_); + } + for (int i = 0; i < denominatorAggregations_.size(); i++) { + output.writeMessage(10, denominatorAggregations_.get(i)); + } + if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + output.writeEnum(11, evaluationMissingData_); + } + if (forecastOptions_ != null) { + output.writeMessage(12, getForecastOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (comparison_ != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, thresholdValue_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (trigger_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTrigger()); + } + for (int i = 0; i < aggregations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, aggregations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denominatorFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, denominatorFilter_); + } + for (int i = 0; i < denominatorAggregations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, denominatorAggregations_.get(i)); + } + if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, evaluationMissingData_); + } + if (forecastOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getForecastOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)) { + return super.equals(obj); + } + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) obj; + + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getAggregationsList() + .equals(other.getAggregationsList())) return false; + if (!getDenominatorFilter() + .equals(other.getDenominatorFilter())) return false; + if (!getDenominatorAggregationsList() + .equals(other.getDenominatorAggregationsList())) return false; + if (hasForecastOptions() != other.hasForecastOptions()) return false; + if (hasForecastOptions()) { + if (!getForecastOptions() + .equals(other.getForecastOptions())) return false; + } + if (comparison_ != other.comparison_) return false; + if (java.lang.Double.doubleToLongBits(getThresholdValue()) + != java.lang.Double.doubleToLongBits( + other.getThresholdValue())) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasTrigger() != other.hasTrigger()) return false; + if (hasTrigger()) { + if (!getTrigger() + .equals(other.getTrigger())) return false; + } + if (evaluationMissingData_ != other.evaluationMissingData_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (getAggregationsCount() > 0) { + hash = (37 * hash) + AGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAggregationsList().hashCode(); + } + hash = (37 * hash) + DENOMINATOR_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDenominatorFilter().hashCode(); + if (getDenominatorAggregationsCount() > 0) { + hash = (37 * hash) + DENOMINATOR_AGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDenominatorAggregationsList().hashCode(); + } + if (hasForecastOptions()) { + hash = (37 * hash) + FORECAST_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getForecastOptions().hashCode(); + } + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + comparison_; + hash = (37 * hash) + THRESHOLD_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdValue())); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasTrigger()) { + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + } + hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER; + hash = (53 * hash) + evaluationMissingData_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A condition type that compares a collection of time series
+       * against a threshold.
+       * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class); + } + + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + if (aggregationsBuilder_ == null) { + aggregations_ = java.util.Collections.emptyList(); + } else { + aggregations_ = null; + aggregationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + denominatorFilter_ = ""; + if (denominatorAggregationsBuilder_ == null) { + denominatorAggregations_ = java.util.Collections.emptyList(); + } else { + denominatorAggregations_ = null; + denominatorAggregationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + forecastOptions_ = null; + if (forecastOptionsBuilder_ != null) { + forecastOptionsBuilder_.dispose(); + forecastOptionsBuilder_ = null; + } + comparison_ = 0; + thresholdValue_ = 0D; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + trigger_ = null; + if (triggerBuilder_ != null) { + triggerBuilder_.dispose(); + triggerBuilder_ = null; + } + evaluationMissingData_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold build() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) { + if (aggregationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aggregations_ = java.util.Collections.unmodifiableList(aggregations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aggregations_ = aggregations_; + } else { + result.aggregations_ = aggregationsBuilder_.build(); + } + if (denominatorAggregationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + denominatorAggregations_ = java.util.Collections.unmodifiableList(denominatorAggregations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.denominatorAggregations_ = denominatorAggregations_; + } else { + result.denominatorAggregations_ = denominatorAggregationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.denominatorFilter_ = denominatorFilter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.forecastOptions_ = forecastOptionsBuilder_ == null + ? forecastOptions_ + : forecastOptionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.comparison_ = comparison_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.thresholdValue_ = thresholdValue_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.trigger_ = triggerBuilder_ == null + ? trigger_ + : triggerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.evaluationMissingData_ = evaluationMissingData_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aggregationsBuilder_ == null) { + if (!other.aggregations_.isEmpty()) { + if (aggregations_.isEmpty()) { + aggregations_ = other.aggregations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAggregationsIsMutable(); + aggregations_.addAll(other.aggregations_); + } + onChanged(); + } } else { - return (java.lang.String) ref; + if (!other.aggregations_.isEmpty()) { + if (aggregationsBuilder_.isEmpty()) { + aggregationsBuilder_.dispose(); + aggregationsBuilder_ = null; + aggregations_ = other.aggregations_; + bitField0_ = (bitField0_ & ~0x00000002); + aggregationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAggregationsFieldBuilder() : null; + } else { + aggregationsBuilder_.addAllMessages(other.aggregations_); + } + } + } + if (!other.getDenominatorFilter().isEmpty()) { + denominatorFilter_ = other.denominatorFilter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (denominatorAggregationsBuilder_ == null) { + if (!other.denominatorAggregations_.isEmpty()) { + if (denominatorAggregations_.isEmpty()) { + denominatorAggregations_ = other.denominatorAggregations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDenominatorAggregationsIsMutable(); + denominatorAggregations_.addAll(other.denominatorAggregations_); + } + onChanged(); + } + } else { + if (!other.denominatorAggregations_.isEmpty()) { + if (denominatorAggregationsBuilder_.isEmpty()) { + denominatorAggregationsBuilder_.dispose(); + denominatorAggregationsBuilder_ = null; + denominatorAggregations_ = other.denominatorAggregations_; + bitField0_ = (bitField0_ & ~0x00000008); + denominatorAggregationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDenominatorAggregationsFieldBuilder() : null; + } else { + denominatorAggregationsBuilder_.addAllMessages(other.denominatorAggregations_); + } + } + } + if (other.hasForecastOptions()) { + mergeForecastOptions(other.getForecastOptions()); + } + if (other.comparison_ != 0) { + setComparisonValue(other.getComparisonValue()); + } + if (other.getThresholdValue() != 0D) { + setThresholdValue(other.getThresholdValue()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasTrigger()) { + mergeTrigger(other.getTrigger()); + } + if (other.evaluationMissingData_ != 0) { + setEvaluationMissingDataValue(other.getEvaluationMissingDataValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 32: { + comparison_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 41: { + thresholdValue_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 41 + case 50: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getTriggerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + com.google.monitoring.v3.Aggregation m = + input.readMessage( + com.google.monitoring.v3.Aggregation.parser(), + extensionRegistry); + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.add(m); + } else { + aggregationsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + denominatorFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: { + com.google.monitoring.v3.Aggregation m = + input.readMessage( + com.google.monitoring.v3.Aggregation.parser(), + extensionRegistry); + if (denominatorAggregationsBuilder_ == null) { + ensureDenominatorAggregationsIsMutable(); + denominatorAggregations_.add(m); + } else { + denominatorAggregationsBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: { + evaluationMissingData_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 98: { + input.readMessage( + getForecastOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } + private int bitField0_; + + private java.lang.Object filter_ = ""; /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
          *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
* + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies which time series should be compared with the threshold.
          *
          * The filter is similar to the one that is specified in the
@@ -4407,14 +5144,15 @@ public java.lang.String getFilter() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -4422,10 +5160,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies which time series should be compared with the threshold.
          *
          * The filter is similar to the one that is specified in the
@@ -4438,24 +5175,21 @@ public com.google.protobuf.ByteString getFilterBytes() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies which time series should be compared with the threshold.
          *
          * The filter is similar to the one that is specified in the
@@ -4468,7 +5202,6 @@ public Builder setFilter(java.lang.String value) {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -4478,10 +5211,9 @@ public Builder clearFilter() { return this; } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies which time series should be compared with the threshold.
          *
          * The filter is similar to the one that is specified in the
@@ -4494,14 +5226,12 @@ public Builder clearFilter() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -4510,25 +5240,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } private java.util.List aggregations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAggregationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aggregations_ = - new java.util.ArrayList(aggregations_); + aggregations_ = new java.util.ArrayList(aggregations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder> - aggregationsBuilder_; + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationsBuilder_; /** - * - * *
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4553,8 +5276,6 @@ public java.util.List getAggregationsList(
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4579,8 +5300,6 @@ public int getAggregationsCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4605,8 +5324,6 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4623,7 +5340,8 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public Builder setAggregations(int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder setAggregations(
+            int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -4637,8 +5355,6 @@ public Builder setAggregations(int index, com.google.monitoring.v3.Aggregation v
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4667,8 +5383,6 @@ public Builder setAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4699,8 +5413,6 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4717,7 +5429,8 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public Builder addAggregations(int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder addAggregations(
+            int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -4731,8 +5444,6 @@ public Builder addAggregations(int index, com.google.monitoring.v3.Aggregation v
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4761,8 +5472,6 @@ public Builder addAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4791,8 +5500,6 @@ public Builder addAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4813,7 +5520,8 @@ public Builder addAllAggregations(
             java.lang.Iterable values) {
           if (aggregationsBuilder_ == null) {
             ensureAggregationsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregations_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, aggregations_);
             onChanged();
           } else {
             aggregationsBuilder_.addAllMessages(values);
@@ -4821,8 +5529,6 @@ public Builder addAllAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4850,8 +5556,6 @@ public Builder clearAggregations() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4879,8 +5583,6 @@ public Builder removeAggregations(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4897,12 +5599,11 @@ public Builder removeAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(int index) {
+        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(
+            int index) {
           return getAggregationsFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4919,16 +5620,14 @@ public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(int i
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
+        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
+            int index) {
           if (aggregationsBuilder_ == null) {
-            return aggregations_.get(index);
-          } else {
+            return aggregations_.get(index);  } else {
             return aggregationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4945,8 +5644,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(in
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public java.util.List
-            getAggregationsOrBuilderList() {
+        public java.util.List 
+             getAggregationsOrBuilderList() {
           if (aggregationsBuilder_ != null) {
             return aggregationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -4954,8 +5653,6 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(in
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4973,12 +5670,10 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(in
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
         public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
-          return getAggregationsFieldBuilder()
-              .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getAggregationsFieldBuilder().addBuilder(
+              com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -4995,13 +5690,12 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int index) {
-          return getAggregationsFieldBuilder()
-              .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
+        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
+            int index) {
+          return getAggregationsFieldBuilder().addBuilder(
+              index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5018,22 +5712,16 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int i
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public java.util.List
-            getAggregationsBuilderList() {
+        public java.util.List 
+             getAggregationsBuilderList() {
           return getAggregationsFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation,
-                com.google.monitoring.v3.Aggregation.Builder,
-                com.google.monitoring.v3.AggregationOrBuilder>
+            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
             getAggregationsFieldBuilder() {
           if (aggregationsBuilder_ == null) {
-            aggregationsBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.monitoring.v3.Aggregation,
-                    com.google.monitoring.v3.Aggregation.Builder,
-                    com.google.monitoring.v3.AggregationOrBuilder>(
+            aggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
                     aggregations_,
                     ((bitField0_ & 0x00000002) != 0),
                     getParentForChildren(),
@@ -5045,8 +5733,6 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int i
 
         private java.lang.Object denominatorFilter_ = "";
         /**
-         *
-         *
          * 
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5060,13 +5746,13 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int i
          * 
* * string denominator_filter = 9; - * * @return The denominatorFilter. */ public java.lang.String getDenominatorFilter() { java.lang.Object ref = denominatorFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denominatorFilter_ = s; return s; @@ -5075,8 +5761,6 @@ public java.lang.String getDenominatorFilter() { } } /** - * - * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5090,14 +5774,15 @@ public java.lang.String getDenominatorFilter() {
          * 
* * string denominator_filter = 9; - * * @return The bytes for denominatorFilter. */ - public com.google.protobuf.ByteString getDenominatorFilterBytes() { + public com.google.protobuf.ByteString + getDenominatorFilterBytes() { java.lang.Object ref = denominatorFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); denominatorFilter_ = b; return b; } else { @@ -5105,8 +5790,6 @@ public com.google.protobuf.ByteString getDenominatorFilterBytes() { } } /** - * - * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5120,22 +5803,18 @@ public com.google.protobuf.ByteString getDenominatorFilterBytes() {
          * 
* * string denominator_filter = 9; - * * @param value The denominatorFilter to set. * @return This builder for chaining. */ - public Builder setDenominatorFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDenominatorFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } denominatorFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5149,7 +5828,6 @@ public Builder setDenominatorFilter(java.lang.String value) {
          * 
* * string denominator_filter = 9; - * * @return This builder for chaining. */ public Builder clearDenominatorFilter() { @@ -5159,8 +5837,6 @@ public Builder clearDenominatorFilter() { return this; } /** - * - * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5174,14 +5850,12 @@ public Builder clearDenominatorFilter() {
          * 
* * string denominator_filter = 9; - * * @param value The bytes for denominatorFilter to set. * @return This builder for chaining. */ - public Builder setDenominatorFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDenominatorFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denominatorFilter_ = value; bitField0_ |= 0x00000004; @@ -5190,26 +5864,18 @@ public Builder setDenominatorFilterBytes(com.google.protobuf.ByteString value) { } private java.util.List denominatorAggregations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDenominatorAggregationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - denominatorAggregations_ = - new java.util.ArrayList( - denominatorAggregations_); + denominatorAggregations_ = new java.util.ArrayList(denominatorAggregations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder> - denominatorAggregationsBuilder_; + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> denominatorAggregationsBuilder_; /** - * - * *
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5225,8 +5891,7 @@ private void ensureDenominatorAggregationsIsMutable() {
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List
-            getDenominatorAggregationsList() {
+        public java.util.List getDenominatorAggregationsList() {
           if (denominatorAggregationsBuilder_ == null) {
             return java.util.Collections.unmodifiableList(denominatorAggregations_);
           } else {
@@ -5234,8 +5899,6 @@ private void ensureDenominatorAggregationsIsMutable() {
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5259,8 +5922,6 @@ public int getDenominatorAggregationsCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5284,8 +5945,6 @@ public com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5316,8 +5975,6 @@ public Builder setDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5345,8 +6002,6 @@ public Builder setDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5376,8 +6031,6 @@ public Builder addDenominatorAggregations(com.google.monitoring.v3.Aggregation v
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5408,8 +6061,6 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5437,8 +6088,6 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5466,8 +6115,6 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5496,8 +6143,6 @@ public Builder addAllDenominatorAggregations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5524,8 +6169,6 @@ public Builder clearDenominatorAggregations() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5552,8 +6195,6 @@ public Builder removeDenominatorAggregations(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5574,8 +6215,6 @@ public com.google.monitoring.v3.Aggregation.Builder getDenominatorAggregationsBu
           return getDenominatorAggregationsFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5594,14 +6233,11 @@ public com.google.monitoring.v3.Aggregation.Builder getDenominatorAggregationsBu
         public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(
             int index) {
           if (denominatorAggregationsBuilder_ == null) {
-            return denominatorAggregations_.get(index);
-          } else {
+            return denominatorAggregations_.get(index);  } else {
             return denominatorAggregationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5617,8 +6253,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List
-            getDenominatorAggregationsOrBuilderList() {
+        public java.util.List 
+             getDenominatorAggregationsOrBuilderList() {
           if (denominatorAggregationsBuilder_ != null) {
             return denominatorAggregationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -5626,8 +6262,6 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
           }
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5644,12 +6278,10 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
         public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBuilder() {
-          return getDenominatorAggregationsFieldBuilder()
-              .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getDenominatorAggregationsFieldBuilder().addBuilder(
+              com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5667,12 +6299,10 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          */
         public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBuilder(
             int index) {
-          return getDenominatorAggregationsFieldBuilder()
-              .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getDenominatorAggregationsFieldBuilder().addBuilder(
+              index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5688,22 +6318,16 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List
-            getDenominatorAggregationsBuilderList() {
+        public java.util.List 
+             getDenominatorAggregationsBuilderList() {
           return getDenominatorAggregationsFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation,
-                com.google.monitoring.v3.Aggregation.Builder,
-                com.google.monitoring.v3.AggregationOrBuilder>
+            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
             getDenominatorAggregationsFieldBuilder() {
           if (denominatorAggregationsBuilder_ == null) {
-            denominatorAggregationsBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.monitoring.v3.Aggregation,
-                    com.google.monitoring.v3.Aggregation.Builder,
-                    com.google.monitoring.v3.AggregationOrBuilder>(
+            denominatorAggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
                     denominatorAggregations_,
                     ((bitField0_ & 0x00000008) != 0),
                     getParentForChildren(),
@@ -5713,10 +6337,199 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
           return denominatorAggregationsBuilder_;
         }
 
-        private int comparison_ = 0;
+        private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecastOptions_;
+        private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder> forecastOptionsBuilder_;
+        /**
+         * 
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return Whether the forecastOptions field is set. + */ + public boolean hasForecastOptions() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * @return The forecastOptions. + */ + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions() { + if (forecastOptionsBuilder_ == null) { + return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + } else { + return forecastOptionsBuilder_.getMessage(); + } + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public Builder setForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { + if (forecastOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forecastOptions_ = value; + } else { + forecastOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public Builder setForecastOptions( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder builderForValue) { + if (forecastOptionsBuilder_ == null) { + forecastOptions_ = builderForValue.build(); + } else { + forecastOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public Builder mergeForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { + if (forecastOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + forecastOptions_ != null && + forecastOptions_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance()) { + getForecastOptionsBuilder().mergeFrom(value); + } else { + forecastOptions_ = value; + } + } else { + forecastOptionsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public Builder clearForecastOptions() { + bitField0_ = (bitField0_ & ~0x00000010); + forecastOptions_ = null; + if (forecastOptionsBuilder_ != null) { + forecastOptionsBuilder_.dispose(); + forecastOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder getForecastOptionsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getForecastOptionsFieldBuilder().getBuilder(); + } /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
* + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder() { + if (forecastOptionsBuilder_ != null) { + return forecastOptionsBuilder_.getMessageOrBuilder(); + } else { + return forecastOptions_ == null ? + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + } + } + /** + *
+         * When this field is present, the `MetricThreshold` condition forecasts
+         * whether the time series is predicted to violate the threshold within
+         * the `forecast_horizon`. When this field is not set, the
+         * `MetricThreshold` tests the current value of the timeseries against the
+         * threshold.
+         * 
* + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder> + getForecastOptionsFieldBuilder() { + if (forecastOptionsBuilder_ == null) { + forecastOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder>( + getForecastOptions(), + getParentForChildren(), + isClean()); + forecastOptions_ = null; + } + return forecastOptionsBuilder_; + } + + private int comparison_ = 0; + /** *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -5727,16 +6540,12 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @return The enum numeric value on the wire for comparison. */ - @java.lang.Override - public int getComparisonValue() { + @java.lang.Override public int getComparisonValue() { return comparison_; } /** - * - * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -5747,19 +6556,16 @@ public int getComparisonValue() {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @param value The enum numeric value on the wire for comparison to set. * @return This builder for chaining. */ public Builder setComparisonValue(int value) { comparison_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -5770,18 +6576,14 @@ public Builder setComparisonValue(int value) {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @return The comparison. */ @java.lang.Override public com.google.monitoring.v3.ComparisonType getComparison() { - com.google.monitoring.v3.ComparisonType result = - com.google.monitoring.v3.ComparisonType.forNumber(comparison_); + com.google.monitoring.v3.ComparisonType result = com.google.monitoring.v3.ComparisonType.forNumber(comparison_); return result == null ? com.google.monitoring.v3.ComparisonType.UNRECOGNIZED : result; } /** - * - * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -5792,7 +6594,6 @@ public com.google.monitoring.v3.ComparisonType getComparison() {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @param value The comparison to set. * @return This builder for chaining. */ @@ -5800,14 +6601,12 @@ public Builder setComparison(com.google.monitoring.v3.ComparisonType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; comparison_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -5818,26 +6617,22 @@ public Builder setComparison(com.google.monitoring.v3.ComparisonType value) {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; - * * @return This builder for chaining. */ public Builder clearComparison() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); comparison_ = 0; onChanged(); return this; } - private double thresholdValue_; + private double thresholdValue_ ; /** - * - * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; - * * @return The thresholdValue. */ @java.lang.Override @@ -5845,37 +6640,31 @@ public double getThresholdValue() { return thresholdValue_; } /** - * - * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; - * * @param value The thresholdValue to set. * @return This builder for chaining. */ public Builder setThresholdValue(double value) { thresholdValue_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; - * * @return This builder for chaining. */ public Builder clearThresholdValue() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); thresholdValue_ = 0D; onChanged(); return this; @@ -5883,13 +6672,8 @@ public Builder clearThresholdValue() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -5904,15 +6688,12 @@ public Builder clearThresholdValue() {
          * 
* * .google.protobuf.Duration duration = 6; - * * @return Whether the duration field is set. */ public boolean hasDuration() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -5927,21 +6708,16 @@ public boolean hasDuration() {
          * 
* * .google.protobuf.Duration duration = 6; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** - * - * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -5966,13 +6742,11 @@ public Builder setDuration(com.google.protobuf.Duration value) {
           } else {
             durationBuilder_.setMessage(value);
           }
-          bitField0_ |= 0x00000040;
+          bitField0_ |= 0x00000080;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -5988,19 +6762,18 @@ public Builder setDuration(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration duration = 6;
          */
-        public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder setDuration(
+            com.google.protobuf.Duration.Builder builderForValue) {
           if (durationBuilder_ == null) {
             duration_ = builderForValue.build();
           } else {
             durationBuilder_.setMessage(builderForValue.build());
           }
-          bitField0_ |= 0x00000040;
+          bitField0_ |= 0x00000080;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6018,9 +6791,9 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
          */
         public Builder mergeDuration(com.google.protobuf.Duration value) {
           if (durationBuilder_ == null) {
-            if (((bitField0_ & 0x00000040) != 0)
-                && duration_ != null
-                && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000080) != 0) &&
+              duration_ != null &&
+              duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
               getDurationBuilder().mergeFrom(value);
             } else {
               duration_ = value;
@@ -6028,13 +6801,11 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
           } else {
             durationBuilder_.mergeFrom(value);
           }
-          bitField0_ |= 0x00000040;
+          bitField0_ |= 0x00000080;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6051,7 +6822,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
          * .google.protobuf.Duration duration = 6;
          */
         public Builder clearDuration() {
-          bitField0_ = (bitField0_ & ~0x00000040);
+          bitField0_ = (bitField0_ & ~0x00000080);
           duration_ = null;
           if (durationBuilder_ != null) {
             durationBuilder_.dispose();
@@ -6061,8 +6832,6 @@ public Builder clearDuration() {
           return this;
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6079,13 +6848,11 @@ public Builder clearDuration() {
          * .google.protobuf.Duration duration = 6;
          */
         public com.google.protobuf.Duration.Builder getDurationBuilder() {
-          bitField0_ |= 0x00000040;
+          bitField0_ |= 0x00000080;
           onChanged();
           return getDurationFieldBuilder().getBuilder();
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6105,14 +6872,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
           if (durationBuilder_ != null) {
             return durationBuilder_.getMessageOrBuilder();
           } else {
-            return duration_ == null
-                ? com.google.protobuf.Duration.getDefaultInstance()
-                : duration_;
+            return duration_ == null ?
+                com.google.protobuf.Duration.getDefaultInstance() : duration_;
           }
         }
         /**
-         *
-         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6129,17 +6893,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * .google.protobuf.Duration duration = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
             getDurationFieldBuilder() {
           if (durationBuilder_ == null) {
-            durationBuilder_ =
-                new com.google.protobuf.SingleFieldBuilderV3<
-                    com.google.protobuf.Duration,
-                    com.google.protobuf.Duration.Builder,
-                    com.google.protobuf.DurationOrBuilder>(
-                    getDuration(), getParentForChildren(), isClean());
+            durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                    getDuration(),
+                    getParentForChildren(),
+                    isClean());
             duration_ = null;
           }
           return durationBuilder_;
@@ -6147,13 +6908,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
         private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
-                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
-            triggerBuilder_;
+            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_;
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6164,15 +6920,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * * @return Whether the trigger field is set. */ public boolean hasTrigger() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6183,21 +6936,16 @@ public boolean hasTrigger() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; - * * @return The trigger. */ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { if (triggerBuilder_ == null) { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } else { return triggerBuilder_.getMessage(); } } /** - * - * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6218,13 +6966,11 @@ public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger
           } else {
             triggerBuilder_.setMessage(value);
           }
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6243,13 +6989,11 @@ public Builder setTrigger(
           } else {
             triggerBuilder_.setMessage(builderForValue.build());
           }
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6263,11 +7007,9 @@ public Builder setTrigger(
          */
         public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
           if (triggerBuilder_ == null) {
-            if (((bitField0_ & 0x00000080) != 0)
-                && trigger_ != null
-                && trigger_
-                    != com.google.monitoring.v3.AlertPolicy.Condition.Trigger
-                        .getDefaultInstance()) {
+            if (((bitField0_ & 0x00000100) != 0) &&
+              trigger_ != null &&
+              trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) {
               getTriggerBuilder().mergeFrom(value);
             } else {
               trigger_ = value;
@@ -6275,13 +7017,11 @@ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigg
           } else {
             triggerBuilder_.mergeFrom(value);
           }
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           onChanged();
           return this;
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6294,7 +7034,7 @@ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigg
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
         public Builder clearTrigger() {
-          bitField0_ = (bitField0_ & ~0x00000080);
+          bitField0_ = (bitField0_ & ~0x00000100);
           trigger_ = null;
           if (triggerBuilder_ != null) {
             triggerBuilder_.dispose();
@@ -6304,8 +7044,6 @@ public Builder clearTrigger() {
           return this;
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6318,13 +7056,11 @@ public Builder clearTrigger() {
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
         public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() {
-          bitField0_ |= 0x00000080;
+          bitField0_ |= 0x00000100;
           onChanged();
           return getTriggerFieldBuilder().getBuilder();
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6336,19 +7072,15 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
          *
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
-        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
-            getTriggerOrBuilder() {
+        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
           if (triggerBuilder_ != null) {
             return triggerBuilder_.getMessageOrBuilder();
           } else {
-            return trigger_ == null
-                ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
-                : trigger_;
+            return trigger_ == null ?
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
           }
         }
         /**
-         *
-         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6361,17 +7093,14 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
-                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> 
             getTriggerFieldBuilder() {
           if (triggerBuilder_ == null) {
-            triggerBuilder_ =
-                new com.google.protobuf.SingleFieldBuilderV3<
-                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
-                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
-                    com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
-                    getTrigger(), getParentForChildren(), isClean());
+            triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
+                    getTrigger(),
+                    getParentForChildren(),
+                    isClean());
             trigger_ = null;
           }
           return triggerBuilder_;
@@ -6379,114 +7108,81 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
 
         private int evaluationMissingData_ = 0;
         /**
-         *
-         *
          * 
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @return The enum numeric value on the wire for evaluationMissingData. */ - @java.lang.Override - public int getEvaluationMissingDataValue() { + @java.lang.Override public int getEvaluationMissingDataValue() { return evaluationMissingData_; } /** - * - * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @param value The enum numeric value on the wire for evaluationMissingData to set. * @return This builder for chaining. */ public Builder setEvaluationMissingDataValue(int value) { evaluationMissingData_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @return The evaluationMissingData. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( - evaluationMissingData_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED - : result; + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); + return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; } /** - * - * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @param value The evaluationMissingData to set. * @return This builder for chaining. */ - public Builder setEvaluationMissingData( - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { + public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; evaluationMissingData_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; * @return This builder for chaining. */ public Builder clearEvaluationMissingData() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); evaluationMissingData_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6499,44 +7195,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricThreshold parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricThreshold parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6548,22 +7241,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MetricAbsenceOrBuilder - extends + public interface MetricAbsenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -6576,15 +7267,13 @@ public interface MetricAbsenceOrBuilder
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); - /** - * - * + /** *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -6597,14 +7286,12 @@ public interface MetricAbsenceOrBuilder
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6621,10 +7308,9 @@ public interface MetricAbsenceOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      java.util.List getAggregationsList();
+      java.util.List 
+          getAggregationsList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6643,8 +7329,6 @@ public interface MetricAbsenceOrBuilder
        */
       com.google.monitoring.v3.Aggregation getAggregations(int index);
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6663,8 +7347,6 @@ public interface MetricAbsenceOrBuilder
        */
       int getAggregationsCount();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6681,11 +7363,9 @@ public interface MetricAbsenceOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      java.util.List
+      java.util.List 
           getAggregationsOrBuilderList();
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6702,11 +7382,10 @@ public interface MetricAbsenceOrBuilder
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index);
+      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
+          int index);
 
       /**
-       *
-       *
        * 
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -6718,13 +7397,10 @@ public interface MetricAbsenceOrBuilder
        * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -6736,13 +7412,10 @@ public interface MetricAbsenceOrBuilder
        * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -6758,8 +7431,6 @@ public interface MetricAbsenceOrBuilder
       com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
       /**
-       *
-       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -6768,13 +7439,10 @@ public interface MetricAbsenceOrBuilder
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * * @return Whether the trigger field is set. */ boolean hasTrigger(); /** - * - * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -6783,13 +7451,10 @@ public interface MetricAbsenceOrBuilder
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * * @return The trigger. */ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** - * - * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -6802,8 +7467,6 @@ public interface MetricAbsenceOrBuilder
       com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
     }
     /**
-     *
-     *
      * 
      * A condition type that checks that monitored resources
      * are reporting data. The configuration defines a metric and
@@ -6814,16 +7477,15 @@ public interface MetricAbsenceOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricAbsence}
      */
-    public static final class MetricAbsence extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class MetricAbsence extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)
         MetricAbsenceOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use MetricAbsence.newBuilder() to construct.
       private MetricAbsence(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
       private MetricAbsence() {
         filter_ = "";
         aggregations_ = java.util.Collections.emptyList();
@@ -6831,34 +7493,31 @@ private MetricAbsence() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new MetricAbsence();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class,
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
       }
 
       public static final int FILTER_FIELD_NUMBER = 1;
-
       @SuppressWarnings("serial")
       private volatile java.lang.Object filter_ = "";
       /**
-       *
-       *
        * 
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -6871,7 +7530,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -6880,17 +7538,17 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
-       * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+       * Required. A
+       * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies which time series should be compared with the threshold.
        *
        * The filter is similar to the one that is specified in the
@@ -6903,15 +7561,16 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -6920,12 +7579,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int AGGREGATIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List aggregations_; /** - * - * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6947,8 +7603,6 @@ public java.util.List getAggregationsList(
         return aggregations_;
       }
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6966,13 +7620,11 @@ public java.util.List getAggregationsList(
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getAggregationsOrBuilderList() {
         return aggregations_;
       }
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -6994,8 +7646,6 @@ public int getAggregationsCount() {
         return aggregations_.size();
       }
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7017,8 +7667,6 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
         return aggregations_.get(index);
       }
       /**
-       *
-       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7036,15 +7684,14 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
       @java.lang.Override
-      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
+      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
+          int index) {
         return aggregations_.get(index);
       }
 
       public static final int DURATION_FIELD_NUMBER = 2;
       private com.google.protobuf.Duration duration_;
       /**
-       *
-       *
        * 
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7056,7 +7703,6 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(in
        * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -7064,8 +7710,6 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7077,1717 +7721,2736 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } - /** - * - * - *
-       * The amount of time that a time series must fail to report new
-       * data to be considered failing. The minimum value of this field
-       * is 120 seconds. Larger values that are a multiple of a
-       * minute--for example, 240 or 300 seconds--are supported.
-       * If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored.
-       * 
- * - * .google.protobuf.Duration duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + /** + *
+       * The amount of time that a time series must fail to report new
+       * data to be considered failing. The minimum value of this field
+       * is 120 seconds. Larger values that are a multiple of a
+       * minute--for example, 240 or 300 seconds--are supported.
+       * If an invalid value is given, an
+       * error will be returned. The `Duration.nanos` field is
+       * ignored.
+       * 
+ * + * .google.protobuf.Duration duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int TRIGGER_FIELD_NUMBER = 3; + private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return Whether the trigger field is set. + */ + @java.lang.Override + public boolean hasTrigger() { + return trigger_ != null; + } + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return The trigger. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + } + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (trigger_ != null) { + output.writeMessage(3, getTrigger()); + } + for (int i = 0; i < aggregations_.size(); i++) { + output.writeMessage(5, aggregations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (trigger_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTrigger()); + } + for (int i = 0; i < aggregations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, aggregations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)) { + return super.equals(obj); + } + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) obj; + + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getAggregationsList() + .equals(other.getAggregationsList())) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasTrigger() != other.hasTrigger()) return false; + if (hasTrigger()) { + if (!getTrigger() + .equals(other.getTrigger())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (getAggregationsCount() > 0) { + hash = (37 * hash) + AGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAggregationsList().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasTrigger()) { + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static final int TRIGGER_FIELD_NUMBER = 3; - private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; - /** - * - * - *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return Whether the trigger field is set. - */ @java.lang.Override - public boolean hasTrigger() { - return trigger_ != null; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * - * - *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return The trigger. - */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * - * *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`.
+       * A condition type that checks that monitored resources
+       * are reporting data. The configuration defines a metric and
+       * a set of monitored resources. The predicate is considered in violation
+       * when a time series for the specified metric of a monitored
+       * resource does not include any data in the specified `duration`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricAbsence} */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder() + private Builder() { - memoizedIsInitialized = 1; - return true; - } + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } - if (duration_ != null) { - output.writeMessage(2, getDuration()); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + if (aggregationsBuilder_ == null) { + aggregations_ = java.util.Collections.emptyList(); + } else { + aggregations_ = null; + aggregationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + trigger_ = null; + if (triggerBuilder_ != null) { + triggerBuilder_.dispose(); + triggerBuilder_ = null; + } + return this; } - if (trigger_ != null) { - output.writeMessage(3, getTrigger()); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; } - for (int i = 0; i < aggregations_.size(); i++) { - output.writeMessage(5, aggregations_.get(i)); + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence build() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) { + if (aggregationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aggregations_ = java.util.Collections.unmodifiableList(aggregations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aggregations_ = aggregations_; + } else { + result.aggregations_ = aggregationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trigger_ = triggerBuilder_ == null + ? trigger_ + : triggerBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aggregationsBuilder_ == null) { + if (!other.aggregations_.isEmpty()) { + if (aggregations_.isEmpty()) { + aggregations_ = other.aggregations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAggregationsIsMutable(); + aggregations_.addAll(other.aggregations_); + } + onChanged(); + } + } else { + if (!other.aggregations_.isEmpty()) { + if (aggregationsBuilder_.isEmpty()) { + aggregationsBuilder_.dispose(); + aggregationsBuilder_ = null; + aggregations_ = other.aggregations_; + bitField0_ = (bitField0_ & ~0x00000002); + aggregationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAggregationsFieldBuilder() : null; + } else { + aggregationsBuilder_.addAllMessages(other.aggregations_); + } + } + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasTrigger()) { + mergeTrigger(other.getTrigger()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getTriggerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 42: { + com.google.monitoring.v3.Aggregation m = + input.readMessage( + com.google.monitoring.v3.Aggregation.parser(), + extensionRegistry); + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.add(m); + } else { + aggregationsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + private java.lang.Object filter_ = ""; + /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
+         *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
+         *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger()); + /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
+         *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - for (int i = 0; i < aggregations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, aggregations_.get(i)); + /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
+         *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + *
+         * Required. A
+         * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+         * identifies which time series should be compared with the threshold.
+         *
+         * The filter is similar to the one that is specified in the
+         * [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
+         * (that call is useful to verify the time series that will be retrieved /
+         * processed). The filter must specify the metric type and the resource
+         * type. Optionally, it can specify resource labels and metric labels.
+         * This field must not exceed 2048 Unicode characters in length.
+         * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)) { - return super.equals(obj); + + private java.util.List aggregations_ = + java.util.Collections.emptyList(); + private void ensureAggregationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aggregations_ = new java.util.ArrayList(aggregations_); + bitField0_ |= 0x00000002; + } } - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other = - (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) obj; - if (!getFilter().equals(other.getFilter())) return false; - if (!getAggregationsList().equals(other.getAggregationsList())) return false; - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationsBuilder_; + + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public java.util.List getAggregationsList() { + if (aggregationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aggregations_); + } else { + return aggregationsBuilder_.getMessageList(); + } } - if (hasTrigger() != other.hasTrigger()) return false; - if (hasTrigger()) { - if (!getTrigger().equals(other.getTrigger())) return false; + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public int getAggregationsCount() { + if (aggregationsBuilder_ == null) { + return aggregations_.size(); + } else { + return aggregationsBuilder_.getCount(); + } + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public com.google.monitoring.v3.Aggregation getAggregations(int index) { + if (aggregationsBuilder_ == null) { + return aggregations_.get(index); + } else { + return aggregationsBuilder_.getMessage(index); + } } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder setAggregations( + int index, com.google.monitoring.v3.Aggregation value) { + if (aggregationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationsIsMutable(); + aggregations_.set(index, value); + onChanged(); + } else { + aggregationsBuilder_.setMessage(index, value); + } + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - if (getAggregationsCount() > 0) { - hash = (37 * hash) + AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAggregationsList().hashCode(); + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder setAggregations( + int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.set(index, builderForValue.build()); + onChanged(); + } else { + aggregationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder addAggregations(com.google.monitoring.v3.Aggregation value) { + if (aggregationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationsIsMutable(); + aggregations_.add(value); + onChanged(); + } else { + aggregationsBuilder_.addMessage(value); + } + return this; } - if (hasTrigger()) { - hash = (37 * hash) + TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + getTrigger().hashCode(); + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder addAggregations( + int index, com.google.monitoring.v3.Aggregation value) { + if (aggregationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationsIsMutable(); + aggregations_.add(index, value); + onChanged(); + } else { + aggregationsBuilder_.addMessage(index, value); + } + return this; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * A condition type that checks that monitored resources
-       * are reporting data. The configuration defines a metric and
-       * a set of monitored resources. The predicate is considered in violation
-       * when a time series for the specified metric of a monitored
-       * resource does not include any data in the specified `duration`.
-       * 
- * - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricAbsence} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder addAggregations( + com.google.monitoring.v3.Aggregation.Builder builderForValue) { + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.add(builderForValue.build()); + onChanged(); + } else { + aggregationsBuilder_.addMessage(builderForValue.build()); + } + return this; } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class); + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder addAggregations( + int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.add(index, builderForValue.build()); + onChanged(); + } else { + aggregationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - - // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder addAllAggregations( + java.lang.Iterable values) { + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aggregations_); + onChanged(); + } else { + aggregationsBuilder_.addAllMessages(values); + } + return this; } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filter_ = ""; + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder clearAggregations() { if (aggregationsBuilder_ == null) { aggregations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); } else { - aggregations_ = null; aggregationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; + return this; + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public Builder removeAggregations(int index) { + if (aggregationsBuilder_ == null) { + ensureAggregationsIsMutable(); + aggregations_.remove(index); + onChanged(); + } else { + aggregationsBuilder_.remove(index); } - trigger_ = null; - if (triggerBuilder_ != null) { - triggerBuilder_.dispose(); - triggerBuilder_ = null; + return this; + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder( + int index) { + return getAggregationsFieldBuilder().getBuilder(index); + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder( + int index) { + if (aggregationsBuilder_ == null) { + return aggregations_.get(index); } else { + return aggregationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public java.util.List + getAggregationsOrBuilderList() { + if (aggregationsBuilder_ != null) { + return aggregationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aggregations_); + } + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() { + return getAggregationsFieldBuilder().addBuilder( + com.google.monitoring.v3.Aggregation.getDefaultInstance()); + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder( + int index) { + return getAggregationsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.Aggregation.getDefaultInstance()); + } + /** + *
+         * Specifies the alignment of data points in individual time series as
+         * well as how to combine the retrieved time series together (such as
+         * when aggregating multiple streams on each resource to a single
+         * stream for each resource or when aggregating streams across all
+         * members of a group of resources). Multiple aggregations
+         * are applied in the order specified.
+         *
+         * This field is similar to the one in the [`ListTimeSeries`
+         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
+         * It is advisable to use the `ListTimeSeries` method when debugging this
+         * field.
+         * 
+ * + * repeated .google.monitoring.v3.Aggregation aggregations = 5; + */ + public java.util.List + getAggregationsBuilderList() { + return getAggregationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> + getAggregationsFieldBuilder() { + if (aggregationsBuilder_ == null) { + aggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>( + aggregations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aggregations_ = null; } - return this; + return aggregationsBuilder_; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000004) != 0); } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence - getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence build() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); } - return result; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result = - new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); } - onBuilt(); - return result; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - - private void buildPartialRepeatedFields( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) { - if (aggregationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - aggregations_ = java.util.Collections.unmodifiableList(aggregations_); - bitField0_ = (bitField0_ & ~0x00000002); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; } - result.aggregations_ = aggregations_; } else { - result.aggregations_ = aggregationsBuilder_.build(); + durationBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000004; + onChanged(); + return this; } - - private void buildPartial0( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build(); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; } + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDurationFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+         * The amount of time that a time series must fail to report new
+         * data to be considered failing. The minimum value of this field
+         * is 120 seconds. Larger values that are a multiple of a
+         * minute--for example, 240 or 300 seconds--are supported.
+         * If an invalid value is given, an
+         * error will be returned. The `Duration.nanos` field is
+         * ignored.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_; + /** + *
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return Whether the trigger field is set. + */ + public boolean hasTrigger() { + return ((bitField0_ & 0x00000008) != 0); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) other); + /** + *
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return The trigger. + */ + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { + if (triggerBuilder_ == null) { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } else { - super.mergeFrom(other); - return this; + return triggerBuilder_.getMessage(); } } - - public Builder mergeFrom( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other) { - if (other - == com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance()) - return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (aggregationsBuilder_ == null) { - if (!other.aggregations_.isEmpty()) { - if (aggregations_.isEmpty()) { - aggregations_ = other.aggregations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAggregationsIsMutable(); - aggregations_.addAll(other.aggregations_); - } - onChanged(); + /** + *
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
+         * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + */ + public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { + if (triggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + trigger_ = value; } else { - if (!other.aggregations_.isEmpty()) { - if (aggregationsBuilder_.isEmpty()) { - aggregationsBuilder_.dispose(); - aggregationsBuilder_ = null; - aggregations_ = other.aggregations_; - bitField0_ = (bitField0_ & ~0x00000002); - aggregationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAggregationsFieldBuilder() - : null; - } else { - aggregationsBuilder_.addAllMessages(other.aggregations_); - } - } - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasTrigger()) { - mergeTrigger(other.getTrigger()); + triggerBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 42: - { - com.google.monitoring.v3.Aggregation m = - input.readMessage( - com.google.monitoring.v3.Aggregation.parser(), extensionRegistry); - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.add(m); - } else { - aggregationsBuilder_.addMessage(m); - } - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object filter_ = ""; /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; + public Builder setTrigger( + com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) { + if (triggerBuilder_ == null) { + trigger_ = builderForValue.build(); } else { - return (java.lang.String) ref; + triggerBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; + public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { + if (triggerBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + trigger_ != null && + trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) { + getTriggerBuilder().mergeFrom(value); + } else { + trigger_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + triggerBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filter to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearTrigger() { + bitField0_ = (bitField0_ & ~0x00000008); + trigger_ = null; + if (triggerBuilder_ != null) { + triggerBuilder_.dispose(); + triggerBuilder_ = null; } - filter_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTriggerFieldBuilder().getBuilder(); + } + /** + *
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
+         * 
* - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { + if (triggerBuilder_ != null) { + return triggerBuilder_.getMessageOrBuilder(); + } else { + return trigger_ == null ? + com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + } } /** - * - * *
-         * Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
-         * identifies which time series should be compared with the threshold.
-         *
-         * The filter is similar to the one that is specified in the
-         * [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
-         * (that call is useful to verify the time series that will be retrieved /
-         * processed). The filter must specify the metric type and the resource
-         * type. Optionally, it can specify resource labels and metric labels.
-         * This field must not exceed 2048 Unicode characters in length.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> + getTriggerFieldBuilder() { + if (triggerBuilder_ == null) { + triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>( + getTrigger(), + getParentForChildren(), + isClean()); + trigger_ = null; } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return triggerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - private java.util.List aggregations_ = - java.util.Collections.emptyList(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private void ensureAggregationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - aggregations_ = - new java.util.ArrayList(aggregations_); - bitField0_ |= 0x00000002; + + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) + private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricAbsence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } + return builder.buildPartial(); } + }; - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder> - aggregationsBuilder_; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public java.util.List getAggregationsList() { - if (aggregationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(aggregations_); - } else { - return aggregationsBuilder_.getMessageList(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LogMatchOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Required. A logs-based filter. See [Advanced Logs
+       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+       * for how this filter should be constructed.
+       * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+       * Required. A logs-based filter. See [Advanced Logs
+       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+       * for how this filter should be constructed.
+       * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + int getLabelExtractorsCount(); + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + boolean containsLabelExtractors( + java.lang.String key); + /** + * Use {@link #getLabelExtractorsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabelExtractors(); + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + java.util.Map + getLabelExtractorsMap(); + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + /* nullable */ +java.lang.String getLabelExtractorsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + java.lang.String getLabelExtractorsOrThrow( + java.lang.String key); + } + /** + *
+     * A condition type that checks whether a log message in the [scoping
+     * project](https://cloud.google.com/monitoring/api/v3#project_name)
+     * satisfies the given filter. Logs from other projects in the metrics
+     * scope are not evaluated.
+     * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch} + */ + public static final class LogMatch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + LogMatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogMatch.newBuilder() to construct. + private LogMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogMatch() { + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogMatch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabelExtractors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public int getAggregationsCount() { - if (aggregationsBuilder_ == null) { - return aggregations_.size(); - } else { - return aggregationsBuilder_.getCount(); - } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+       * Required. A logs-based filter. See [Advanced Logs
+       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+       * for how this filter should be constructed.
+       * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public com.google.monitoring.v3.Aggregation getAggregations(int index) { - if (aggregationsBuilder_ == null) { - return aggregations_.get(index); - } else { - return aggregationsBuilder_.getMessage(index); - } + } + /** + *
+       * Required. A logs-based filter. See [Advanced Logs
+       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+       * for how this filter should be constructed.
+       * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder setAggregations(int index, com.google.monitoring.v3.Aggregation value) { - if (aggregationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregationsIsMutable(); - aggregations_.set(index, value); - onChanged(); - } else { - aggregationsBuilder_.setMessage(index, value); - } - return this; + } + + public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 2; + private static final class LabelExtractorsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField + internalGetLabelExtractors() { + if (labelExtractors_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder setAggregations( - int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.set(index, builderForValue.build()); - onChanged(); - } else { - aggregationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + return labelExtractors_; + } + public int getLabelExtractorsCount() { + return internalGetLabelExtractors().getMap().size(); + } + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + @java.lang.Override + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabelExtractors().getMap().containsKey(key); + } + /** + * Use {@link #getLabelExtractorsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabelExtractors() { + return getLabelExtractorsMap(); + } + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + @java.lang.Override + public java.util.Map getLabelExtractorsMap() { + return internalGetLabelExtractors().getMap(); + } + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelExtractorsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional. A map from a label key to an extractor expression, which is
+       * used to extract the value for this label key. Each entry in this map is
+       * a specification for how data should be extracted from log entries that
+       * match `filter`. Each combination of extracted values is treated as a
+       * separate rule for the purposes of triggering notifications. Label keys
+       * and corresponding values can be used in notifications generated by this
+       * condition.
+       *
+       * Please see [the documentation on logs-based metric
+       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+       * for syntax and examples.
+       * 
+ * + * map<string, string> label_extractors = 2; + */ + @java.lang.Override + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder addAggregations(com.google.monitoring.v3.Aggregation value) { - if (aggregationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregationsIsMutable(); - aggregations_.add(value); - onChanged(); - } else { - aggregationsBuilder_.addMessage(value); - } - return this; + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder addAggregations(int index, com.google.monitoring.v3.Aggregation value) { - if (aggregationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregationsIsMutable(); - aggregations_.add(index, value); - onChanged(); - } else { - aggregationsBuilder_.addMessage(index, value); - } - return this; + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabelExtractors(), + LabelExtractorsDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder addAggregations( - com.google.monitoring.v3.Aggregation.Builder builderForValue) { - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.add(builderForValue.build()); - onChanged(); - } else { - aggregationsBuilder_.addMessage(builderForValue.build()); - } - return this; + for (java.util.Map.Entry entry + : internalGetLabelExtractors().getMap().entrySet()) { + com.google.protobuf.MapEntry + labelExtractors__ = LabelExtractorsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, labelExtractors__); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder addAggregations( - int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.add(index, builderForValue.build()); - onChanged(); - } else { - aggregationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder addAllAggregations( - java.lang.Iterable values) { - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregations_); - onChanged(); - } else { - aggregationsBuilder_.addAllMessages(values); - } - return this; + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch)) { + return super.equals(obj); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder clearAggregations() { - if (aggregationsBuilder_ == null) { - aggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - aggregationsBuilder_.clear(); - } - return this; + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other = (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) obj; + + if (!getFilter() + .equals(other.getFilter())) return false; + if (!internalGetLabelExtractors().equals( + other.internalGetLabelExtractors())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public Builder removeAggregations(int index) { - if (aggregationsBuilder_ == null) { - ensureAggregationsIsMutable(); - aggregations_.remove(index); - onChanged(); - } else { - aggregationsBuilder_.remove(index); - } - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (!internalGetLabelExtractors().getMap().isEmpty()) { + hash = (37 * hash) + LABEL_EXTRACTORS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabelExtractors().hashCode(); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(int index) { - return getAggregationsFieldBuilder().getBuilder(index); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A condition type that checks whether a log message in the [scoping
+       * project](https://cloud.google.com/monitoring/api/v3#project_name)
+       * satisfies the given filter. Logs from other projects in the metrics
+       * scope are not evaluated.
+       * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) { - if (aggregationsBuilder_ == null) { - return aggregations_.get(index); - } else { - return aggregationsBuilder_.getMessageOrBuilder(index); + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabelExtractors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); } } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public java.util.List - getAggregationsOrBuilderList() { - if (aggregationsBuilder_ != null) { - return aggregationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(aggregations_); + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableLabelExtractors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); } } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() { - return getAggregationsFieldBuilder() - .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance()); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class); } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int index) { - return getAggregationsFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance()); + + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + internalGetMutableLabelExtractors().clear(); + return this; } - /** - * - * - *
-         * Specifies the alignment of data points in individual time series as
-         * well as how to combine the retrieved time series together (such as
-         * when aggregating multiple streams on each resource to a single
-         * stream for each resource or when aggregating streams across all
-         * members of a group of resources). Multiple aggregations
-         * are applied in the order specified.
-         *
-         * This field is similar to the one in the [`ListTimeSeries`
-         * request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
-         * It is advisable to use the `ListTimeSeries` method when debugging this
-         * field.
-         * 
- * - * repeated .google.monitoring.v3.Aggregation aggregations = 5; - */ - public java.util.List - getAggregationsBuilderList() { - return getAggregationsFieldBuilder().getBuilderList(); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder> - getAggregationsFieldBuilder() { - if (aggregationsBuilder_ == null) { - aggregationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder>( - aggregations_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - aggregations_ = null; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch build() { + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return aggregationsBuilder_; + return result; } - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; - /** - * - * - *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
-         * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return Whether the duration field is set. - */ - public boolean hasDuration() { - return ((bitField0_ & 0x00000004) != 0); + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - /** - * - * - *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
-         * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return The duration. - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : duration_; - } else { - return durationBuilder_.getMessage(); + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.labelExtractors_ = internalGetLabelExtractors(); + result.labelExtractors_.makeImmutable(); } } - /** - * - * - *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
-         * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch)other); } else { - durationBuilder_.setMessage(value); + super.mergeFrom(other); + return this; } - bitField0_ |= 0x00000004; + } + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableLabelExtractors().mergeFrom( + other.internalGetLabelExtractors()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * - * - *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
-         * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - } else { - durationBuilder_.setMessage(builderForValue.build()); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - bitField0_ |= 0x00000004; - onChanged(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + labelExtractors__ = input.readMessage( + LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabelExtractors().getMutableMap().put( + labelExtractors__.getKey(), labelExtractors__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private java.lang.Object filter_ = ""; /** - * - * *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
+         * Required. A logs-based filter. See [Advanced Logs
+         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+         * for how this filter should be constructed.
          * 
* - * .google.protobuf.Duration duration = 2; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationBuilder().mergeFrom(value); - } else { - duration_ = value; - } + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; } else { - durationBuilder_.mergeFrom(value); + return (java.lang.String) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** - * - * *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
+         * Required. A logs-based filter. See [Advanced Logs
+         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+         * for how this filter should be constructed.
          * 
* - * .google.protobuf.Duration duration = 2; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** - * - * *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
+         * Required. A logs-based filter. See [Advanced Logs
+         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+         * for how this filter should be constructed.
          * 
* - * .google.protobuf.Duration duration = 2; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The filter to set. + * @return This builder for chaining. */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - bitField0_ |= 0x00000004; + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000001; onChanged(); - return getDurationFieldBuilder().getBuilder(); + return this; } /** - * - * *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
+         * Required. A logs-based filter. See [Advanced Logs
+         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+         * for how this filter should be constructed.
          * 
* - * .google.protobuf.Duration duration = 2; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : duration_; - } + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** - * - * *
-         * The amount of time that a time series must fail to report new
-         * data to be considered failing. The minimum value of this field
-         * is 120 seconds. Larger values that are a multiple of a
-         * minute--for example, 240 or 300 seconds--are supported.
-         * If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored.
+         * Required. A logs-based filter. See [Advanced Logs
+         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
+         * for how this filter should be constructed.
          * 
* - * .google.protobuf.Duration duration = 2; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for filter to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); - duration_ = null; - } - return durationBuilder_; + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> - triggerBuilder_; + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField + internalGetLabelExtractors() { + if (labelExtractors_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); + } + return labelExtractors_; + } + private com.google.protobuf.MapField + internalGetMutableLabelExtractors() { + if (labelExtractors_ == null) { + labelExtractors_ = com.google.protobuf.MapField.newMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); + } + if (!labelExtractors_.isMutable()) { + labelExtractors_ = labelExtractors_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return labelExtractors_; + } + public int getLabelExtractorsCount() { + return internalGetLabelExtractors().getMap().size(); + } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
-         * 
+ * Optional. A map from a label key to an extractor expression, which is + * used to extract the value for this label key. Each entry in this map is + * a specification for how data should be extracted from log entries that + * match `filter`. Each combination of extracted values is treated as a + * separate rule for the purposes of triggering notifications. Label keys + * and corresponding values can be used in notifications generated by this + * condition. * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * Please see [the documentation on logs-based metric + * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) + * for syntax and examples. + *
* - * @return Whether the trigger field is set. + * map<string, string> label_extractors = 2; */ - public boolean hasTrigger() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabelExtractors().getMap().containsKey(key); } /** - * - * - *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
-         * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return The trigger. + * Use {@link #getLabelExtractorsMap()} instead. */ - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - if (triggerBuilder_ == null) { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } else { - return triggerBuilder_.getMessage(); - } + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabelExtractors() { + return getLabelExtractorsMap(); } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
+         *
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { - if (triggerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trigger_ = value; - } else { - triggerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getLabelExtractorsMap() { + return internalGetLabelExtractors().getMap(); } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
+         *
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - public Builder setTrigger( - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) { - if (triggerBuilder_ == null) { - trigger_ = builderForValue.build(); - } else { - triggerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public /* nullable */ +java.lang.String getLabelExtractorsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** + *
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
          *
-         *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { - if (triggerBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && trigger_ != null - && trigger_ - != com.google.monitoring.v3.AlertPolicy.Condition.Trigger - .getDefaultInstance()) { - getTriggerBuilder().mergeFrom(value); - } else { - trigger_ = value; - } - } else { - triggerBuilder_.mergeFrom(value); + @java.lang.Override + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabelExtractors().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - bitField0_ |= 0x00000008; - onChanged(); + return map.get(key); + } + public Builder clearLabelExtractors() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableLabelExtractors().getMutableMap() + .clear(); return this; } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
+         *
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - public Builder clearTrigger() { - bitField0_ = (bitField0_ & ~0x00000008); - trigger_ = null; - if (triggerBuilder_ != null) { - triggerBuilder_.dispose(); - triggerBuilder_ = null; - } - onChanged(); + public Builder removeLabelExtractors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabelExtractors().getMutableMap() + .remove(key); return this; } /** - * - * - *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
-         * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * Use alternate mutation accessors instead. */ - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getTriggerFieldBuilder().getBuilder(); + @java.lang.Deprecated + public java.util.Map + getMutableLabelExtractors() { + bitField0_ |= 0x00000002; + return internalGetMutableLabelExtractors().getMutableMap(); } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
+         *
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder - getTriggerOrBuilder() { - if (triggerBuilder_ != null) { - return triggerBuilder_.getMessageOrBuilder(); - } else { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } + public Builder putLabelExtractors( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabelExtractors().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000002; + return this; } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`.
+         * Optional. A map from a label key to an extractor expression, which is
+         * used to extract the value for this label key. Each entry in this map is
+         * a specification for how data should be extracted from log entries that
+         * match `filter`. Each combination of extracted values is treated as a
+         * separate rule for the purposes of triggering notifications. Label keys
+         * and corresponding values can be used in notifications generated by this
+         * condition.
+         *
+         * Please see [the documentation on logs-based metric
+         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
+         * for syntax and examples.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> label_extractors = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> - getTriggerFieldBuilder() { - if (triggerBuilder_ == null) { - triggerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>( - getTrigger(), getParentForChildren(), isClean()); - trigger_ = null; - } - return triggerBuilder_; + public Builder putAllLabelExtractors( + java.util.Map values) { + internalGetMutableLabelExtractors().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000002; + return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8800,464 +10463,439 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - } - // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence - DEFAULT_INSTANCE; + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + } + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + private static final com.google.monitoring.v3.AlertPolicy.Condition.LogMatch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence - getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricAbsence parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogMatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence - getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LogMatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.LogMatch) + public interface MonitoringQueryLanguageConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * Required. A logs-based filter. See [Advanced Logs
-       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-       * for how this filter should be constructed.
+       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+       * query that outputs a boolean stream.
        * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. + * string query = 1; + * @return The query. */ - java.lang.String getFilter(); + java.lang.String getQuery(); /** - * - * *
-       * Required. A logs-based filter. See [Advanced Logs
-       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-       * for how this filter should be constructed.
+       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+       * query that outputs a boolean stream.
        * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. + * string query = 1; + * @return The bytes for query. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
* + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
* + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + /** *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
* - * Please see [the documentation on logs-based metric - * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) - * for syntax and examples. + * .google.protobuf.Duration duration = 2; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return Whether the trigger field is set. */ - int getLabelExtractorsCount(); + boolean hasTrigger(); /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return The trigger. */ - boolean containsLabelExtractors(java.lang.String key); - /** Use {@link #getLabelExtractorsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabelExtractors(); + com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - java.util.Map getLabelExtractorsMap(); + com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder(); + /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The enum numeric value on the wire for evaluationMissingData. */ - /* nullable */ - java.lang.String getLabelExtractorsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); + int getEvaluationMissingDataValue(); /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The evaluationMissingData. */ - java.lang.String getLabelExtractorsOrThrow(java.lang.String key); + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData(); } /** - * - * *
-     * A condition type that checks whether a log message in the [scoping
-     * project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * satisfies the given filter. Logs from other projects in the metrics
-     * scope are not evaluated.
+     * A condition type that allows alert policies to be defined using
+     * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
      * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} */ - public static final class LogMatch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch) - LogMatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use LogMatch.newBuilder() to construct. - private LogMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + public static final class MonitoringQueryLanguageCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + MonitoringQueryLanguageConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringQueryLanguageCondition.newBuilder() to construct. + private MonitoringQueryLanguageCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LogMatch() { - filter_ = ""; + private MonitoringQueryLanguageCondition() { + query_ = ""; + evaluationMissingData_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LogMatch(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MonitoringQueryLanguageCondition(); } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabelExtractors(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder.class); } - public static final int FILTER_FIELD_NUMBER = 1; - + public static final int QUERY_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; + private volatile java.lang.Object query_ = ""; /** - * - * *
-       * Required. A logs-based filter. See [Advanced Logs
-       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-       * for how this filter should be constructed.
+       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+       * query that outputs a boolean stream.
        * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. + * string query = 1; + * @return The query. */ @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + public java.lang.String getQuery() { + java.lang.Object ref = query_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - filter_ = s; + query_ = s; return s; } } /** - * - * *
-       * Required. A logs-based filter. See [Advanced Logs
-       * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-       * for how this filter should be constructed.
+       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+       * query that outputs a boolean stream.
        * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. + * string query = 1; + * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 2; - - private static final class LabelExtractorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField labelExtractors_; - - private com.google.protobuf.MapField - internalGetLabelExtractors() { - if (labelExtractors_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); - } - return labelExtractors_; - } - - public int getLabelExtractorsCount() { - return internalGetLabelExtractors().getMap().size(); - } + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration duration_; /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
* - * + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
+       * 
* - * Please see [the documentation on logs-based metric - * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) - * for syntax and examples. + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+       * The amount of time that a time series must violate the
+       * threshold to be considered failing. Currently, only values
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+       * seconds--are supported. If an invalid value is given, an
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* - * map<string, string> label_extractors = 2; + * .google.protobuf.Duration duration = 2; */ @java.lang.Override - public boolean containsLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabelExtractors().getMap().containsKey(key); + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } - /** Use {@link #getLabelExtractorsMap()} instead. */ + + public static final int TRIGGER_FIELD_NUMBER = 3; + private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + /** + *
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return Whether the trigger field is set. + */ @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabelExtractors() { - return getLabelExtractorsMap(); + public boolean hasTrigger() { + return trigger_ != null; } /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return The trigger. */ @java.lang.Override - public java.util.Map getLabelExtractorsMap() { - return internalGetLabelExtractors().getMap(); + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
-       *
-       * Please see [the documentation on logs-based metric
-       * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-       * for syntax and examples.
+       * The number/percent of time series for which the comparison must hold
+       * in order for the condition to trigger. If unspecified, then the
+       * condition will trigger if the comparison is true for any of the
+       * time series that have been identified by `filter` and `aggregations`,
+       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+       * are specified.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelExtractorsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetLabelExtractors().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } + + public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 4; + private int evaluationMissingData_ = 0; /** - * - * *
-       * Optional. A map from a label key to an extractor expression, which is
-       * used to extract the value for this label key. Each entry in this map is
-       * a specification for how data should be extracted from log entries that
-       * match `filter`. Each combination of extracted values is treated as a
-       * separate rule for the purposes of triggering notifications. Label keys
-       * and corresponding values can be used in notifications generated by this
-       * condition.
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
+       * 
* - * Please see [the documentation on logs-based metric - * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) - * for syntax and examples. + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The enum numeric value on the wire for evaluationMissingData. + */ + @java.lang.Override public int getEvaluationMissingDataValue() { + return evaluationMissingData_; + } + /** + *
+       * A condition control that determines how metric-threshold conditions
+       * are evaluated when data stops arriving.
        * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The evaluationMissingData. */ - @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetLabelExtractors().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); + @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); + return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9269,15 +10907,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (trigger_ != null) { + output.writeMessage(3, getTrigger()); + } + if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + output.writeEnum(4, evaluationMissingData_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetLabelExtractors(), - LabelExtractorsDefaultEntryHolder.defaultEntry, - 2); getUnknownFields().writeTo(output); } @@ -9287,18 +10930,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (trigger_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTrigger()); } - for (java.util.Map.Entry entry : - internalGetLabelExtractors().getMap().entrySet()) { - com.google.protobuf.MapEntry labelExtractors__ = - LabelExtractorsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelExtractors__); + if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, evaluationMissingData_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9308,16 +10953,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch)) { + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other = - (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) obj; + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other = (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) obj; - if (!getFilter().equals(other.getFilter())) return false; - if (!internalGetLabelExtractors().equals(other.internalGetLabelExtractors())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasTrigger() != other.hasTrigger()) return false; + if (hasTrigger()) { + if (!getTrigger() + .equals(other.getTrigger())) return false; + } + if (evaluationMissingData_ != other.evaluationMissingData_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9329,106 +10984,107 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - if (!internalGetLabelExtractors().getMap().isEmpty()) { - hash = (37 * hash) + LABEL_EXTRACTORS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabelExtractors().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); } + if (hasTrigger()) { + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + } + hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER; + hash = (53 * hash) + evaluationMissingData_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(byte[] data) + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom( + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch prototype) { + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9438,590 +11094,842 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-       * A condition type that checks whether a log message in the [scoping
-       * project](https://cloud.google.com/monitoring/api/v3#project_name)
-       * satisfies the given filter. Logs from other projects in the metrics
-       * scope are not evaluated.
+       * A condition type that allows alert policies to be defined using
+       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch) - com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabelExtractors(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder.class); + } + + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + trigger_ = null; + if (triggerBuilder_ != null) { + triggerBuilder_.dispose(); + triggerBuilder_ = null; } + evaluationMissingData_ = 0; + return this; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableLabelExtractors(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition build() { + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class); + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - // Construct using com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trigger_ = triggerBuilder_ == null + ? trigger_ + : triggerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.evaluationMissingData_ = evaluationMissingData_; + } } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filter_ = ""; - internalGetMutableLabelExtractors().clear(); + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasTrigger()) { + mergeTrigger(other.getTrigger()); + } + if (other.evaluationMissingData_ != 0) { + setEvaluationMissingDataValue(other.getEvaluationMissingDataValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + public final boolean isInitialized() { + return true; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getTriggerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + evaluationMissingData_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } + private int bitField0_; - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch build() { - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.lang.Object query_ = ""; + /** + *
+         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+         * query that outputs a boolean stream.
+         * 
+ * + * string query = 1; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+         * query that outputs a boolean stream.
+         * 
+ * + * string query = 1; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+         * query that outputs a boolean stream.
+         * 
+ * + * string query = 1; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+         * query that outputs a boolean stream.
+         * 
+ * + * string query = 1; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
+         * query that outputs a boolean stream.
+         * 
+ * + * string query = 1; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); } - return result; } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result = - new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); } - onBuilt(); - return result; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.labelExtractors_ = internalGetLabelExtractors(); - result.labelExtractors_.makeImmutable(); + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) other); + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } } else { - super.mergeFrom(other); - return this; + durationBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other) { - if (other == com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) - return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000001; - onChanged(); + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; } - internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors()); - bitField0_ |= 0x00000002; - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDurationFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry - labelExtractors__ = - input.readMessage( - LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabelExtractors() - .getMutableMap() - .put(labelExtractors__.getKey(), labelExtractors__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + } + /** + *
+         * The amount of time that a time series must violate the
+         * threshold to be considered failing. Currently, only values
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
+         * seconds--are supported. If an invalid value is given, an
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
+         * 
+ * + * .google.protobuf.Duration duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; } - private int bitField0_; - - private java.lang.Object filter_ = ""; + private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_; /** - * - * *
-         * Required. A logs-based filter. See [Advanced Logs
-         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-         * for how this filter should be constructed.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return Whether the trigger field is set. */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasTrigger() { + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
-         * Required. A logs-based filter. See [Advanced Logs
-         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-         * for how this filter should be constructed.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * @return The trigger. */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { + if (triggerBuilder_ == null) { + return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } else { - return (com.google.protobuf.ByteString) ref; + return triggerBuilder_.getMessage(); } } /** - * - * *
-         * Required. A logs-based filter. See [Advanced Logs
-         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-         * for how this filter should be constructed.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filter to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { + if (triggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trigger_ = value; + } else { + triggerBuilder_.setMessage(value); } - filter_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-         * Required. A logs-based filter. See [Advanced Logs
-         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-         * for how this filter should be constructed.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setTrigger( + com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) { + if (triggerBuilder_ == null) { + trigger_ = builderForValue.build(); + } else { + triggerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-         * Required. A logs-based filter. See [Advanced Logs
-         * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
-         * for how this filter should be constructed.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { + if (triggerBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + trigger_ != null && + trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) { + getTriggerBuilder().mergeFrom(value); + } else { + trigger_ = value; + } + } else { + triggerBuilder_.mergeFrom(value); } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } - - private com.google.protobuf.MapField labelExtractors_; - - private com.google.protobuf.MapField - internalGetLabelExtractors() { - if (labelExtractors_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); - } - return labelExtractors_; - } - - private com.google.protobuf.MapField - internalGetMutableLabelExtractors() { - if (labelExtractors_ == null) { - labelExtractors_ = - com.google.protobuf.MapField.newMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); - } - if (!labelExtractors_.isMutable()) { - labelExtractors_ = labelExtractors_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return labelExtractors_; - } - - public int getLabelExtractorsCount() { - return internalGetLabelExtractors().getMap().size(); - } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
-         *
-         * Please see [the documentation on logs-based metric
-         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-         * for syntax and examples.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - @java.lang.Override - public boolean containsLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearTrigger() { + bitField0_ = (bitField0_ & ~0x00000004); + trigger_ = null; + if (triggerBuilder_ != null) { + triggerBuilder_.dispose(); + triggerBuilder_ = null; } - return internalGetLabelExtractors().getMap().containsKey(key); - } - /** Use {@link #getLabelExtractorsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabelExtractors() { - return getLabelExtractorsMap(); + onChanged(); + return this; } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
-         *
-         * Please see [the documentation on logs-based metric
-         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-         * for syntax and examples.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - @java.lang.Override - public java.util.Map getLabelExtractorsMap() { - return internalGetLabelExtractors().getMap(); + public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTriggerFieldBuilder().getBuilder(); } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
-         *
-         * Please see [the documentation on logs-based metric
-         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-         * for syntax and examples.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelExtractorsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { + if (triggerBuilder_ != null) { + return triggerBuilder_.getMessageOrBuilder(); + } else { + return trigger_ == null ? + com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; } - java.util.Map map = - internalGetLabelExtractors().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
-         *
-         * Please see [the documentation on logs-based metric
-         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-         * for syntax and examples.
+         * The number/percent of time series for which the comparison must hold
+         * in order for the condition to trigger. If unspecified, then the
+         * condition will trigger if the comparison is true for any of the
+         * time series that have been identified by `filter` and `aggregations`,
+         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
+         * are specified.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; */ - @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetLabelExtractors().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> + getTriggerFieldBuilder() { + if (triggerBuilder_ == null) { + triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>( + getTrigger(), + getParentForChildren(), + isClean()); + trigger_ = null; } - return map.get(key); + return triggerBuilder_; } - public Builder clearLabelExtractors() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableLabelExtractors().getMutableMap().clear(); - return this; - } + private int evaluationMissingData_ = 0; /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
+         * A condition control that determines how metric-threshold conditions
+         * are evaluated when data stops arriving.
+         * 
* - * Please see [the documentation on logs-based metric - * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) - * for syntax and examples. + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The enum numeric value on the wire for evaluationMissingData. + */ + @java.lang.Override public int getEvaluationMissingDataValue() { + return evaluationMissingData_; + } + /** + *
+         * A condition control that determines how metric-threshold conditions
+         * are evaluated when data stops arriving.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @param value The enum numeric value on the wire for evaluationMissingData to set. + * @return This builder for chaining. */ - public Builder removeLabelExtractors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabelExtractors().getMutableMap().remove(key); + public Builder setEvaluationMissingDataValue(int value) { + evaluationMissingData_ = value; + bitField0_ |= 0x00000008; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabelExtractors() { - bitField0_ |= 0x00000002; - return internalGetMutableLabelExtractors().getMutableMap(); - } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
+         * A condition control that determines how metric-threshold conditions
+         * are evaluated when data stops arriving.
+         * 
* - * Please see [the documentation on logs-based metric - * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) - * for syntax and examples. + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return The evaluationMissingData. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); + return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + } + /** + *
+         * A condition control that determines how metric-threshold conditions
+         * are evaluated when data stops arriving.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @param value The evaluationMissingData to set. + * @return This builder for chaining. */ - public Builder putLabelExtractors(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { if (value == null) { - throw new NullPointerException("map value"); + throw new NullPointerException(); } - internalGetMutableLabelExtractors().getMutableMap().put(key, value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; + evaluationMissingData_ = value.getNumber(); + onChanged(); return this; } /** - * - * *
-         * Optional. A map from a label key to an extractor expression, which is
-         * used to extract the value for this label key. Each entry in this map is
-         * a specification for how data should be extracted from log entries that
-         * match `filter`. Each combination of extracted values is treated as a
-         * separate rule for the purposes of triggering notifications. Label keys
-         * and corresponding values can be used in notifications generated by this
-         * condition.
-         *
-         * Please see [the documentation on logs-based metric
-         * `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
-         * for syntax and examples.
+         * A condition control that determines how metric-threshold conditions
+         * are evaluated when data stops arriving.
          * 
* - * map<string, string> label_extractors = 2; + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * @return This builder for chaining. */ - public Builder putAllLabelExtractors( - java.util.Map values) { - internalGetMutableLabelExtractors().getMutableMap().putAll(values); - bitField0_ |= 0x00000002; + public Builder clearEvaluationMissingData() { + bitField0_ = (bitField0_ & ~0x00000008); + evaluationMissingData_ = 0; + onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10034,299 +11942,435 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch) - } - // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch) - private static final com.google.monitoring.v3.AlertPolicy.Condition.LogMatch DEFAULT_INSTANCE; + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + } + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + private static final com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogMatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringQueryLanguageCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MonitoringQueryLanguageConditionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + public interface PrometheusQueryLanguageConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-       * query that outputs a boolean stream.
+       * Required. The PromQL expression to evaluate. Every evaluation cycle
+       * this expression is evaluated at the current time, and all resultant
+       * time series become pending/firing alerts. This field must not be empty.
        * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ java.lang.String getQuery(); /** - * - * *
-       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-       * query that outputs a boolean stream.
+       * Required. The PromQL expression to evaluate. Every evaluation cycle
+       * this expression is evaluated at the current time, and all resultant
+       * time series become pending/firing alerts. This field must not be empty.
        * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** + *
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
+       * 
+ * + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + *
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
+       * 
* + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + /** + *
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
+       * 
* + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
        * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the evaluationInterval field is set. + */ + boolean hasEvaluationInterval(); + /** + *
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
+       * 
* - * @return Whether the duration field is set. + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The evaluationInterval. */ - boolean hasDuration(); + com.google.protobuf.Duration getEvaluationInterval(); /** + *
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
+       * 
* + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder(); + + /** + *
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
+       * 
* + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * .google.protobuf.Duration duration = 2; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
+       * 
* - * @return The duration. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.Duration getDuration(); + java.util.Map + getLabelsMap(); /** - * - * *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * .google.protobuf.Duration duration = 2; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); /** - * - * *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return Whether the trigger field is set. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean hasTrigger(); + java.lang.String getLabelsOrThrow( + java.lang.String key); + /** + *
+       * Optional. The rule group name of this alert in the corresponding
+       * Prometheus configuration file.
        *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
        *
-       * 
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * This field is optional. If this field is not empty, then it must
+       * contain a valid UTF-8 string.
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return The trigger. + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ruleGroup. */ - com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); + java.lang.String getRuleGroup(); /** + *
+       * Optional. The rule group name of this alert in the corresponding
+       * Prometheus configuration file.
        *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
        *
-       * 
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * This field is optional. If this field is not empty, then it must
+       * contain a valid UTF-8 string.
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ruleGroup. */ - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder(); + com.google.protobuf.ByteString + getRuleGroupBytes(); /** - * - * *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
+       * Optional. The alerting rule name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
+       *
+       * This field is optional. If this field is not empty, then it must be a
+       * [valid Prometheus label
+       * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The enum numeric value on the wire for evaluationMissingData. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The alertRule. */ - int getEvaluationMissingDataValue(); + java.lang.String getAlertRule(); /** - * - * *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
+       * Optional. The alerting rule name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
+       *
+       * This field is optional. If this field is not empty, then it must be a
+       * [valid Prometheus label
+       * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The evaluationMissingData. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for alertRule. */ - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData(); + com.google.protobuf.ByteString + getAlertRuleBytes(); } /** - * - * *
      * A condition type that allows alert policies to be defined using
-     * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+     * [Prometheus Query Language
+     * (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
+     *
+     * The PrometheusQueryLanguageCondition message contains information
+     * from a Prometheus alerting rule and its associated rule group.
+     *
+     * A Prometheus alerting rule is described
+     * [here](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/).
+     * The semantics of a Prometheus alerting rule is described
+     * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule).
+     *
+     * A Prometheus rule group is described
+     * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/).
+     * The semantics of a Prometheus rule group is described
+     * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule_group).
+     *
+     * Because Cloud Alerting has no representation of a Prometheus rule
+     * group resource, we must embed the information of the parent rule
+     * group inside each of the conditions that refer to it. We must also
+     * update the contents of all Prometheus alerts in case the information
+     * of their rule group changes.
+     *
+     * The PrometheusQueryLanguageCondition protocol buffer combines the
+     * information of the corresponding rule group and alerting rule.
+     * The structure of the PrometheusQueryLanguageCondition protocol buffer
+     * does NOT mimic the structure of the Prometheus rule group and alerting
+     * rule YAML declarations. The PrometheusQueryLanguageCondition protocol
+     * buffer may change in the future to support future rule group and/or
+     * alerting rule features. There are no new such features at the present
+     * time (2023-06-26).
      * 
* - * Protobuf type {@code - * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} */ - public static final class MonitoringQueryLanguageCondition - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - MonitoringQueryLanguageConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonitoringQueryLanguageCondition.newBuilder() to construct. - private MonitoringQueryLanguageCondition( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + public static final class PrometheusQueryLanguageCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + PrometheusQueryLanguageConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrometheusQueryLanguageCondition.newBuilder() to construct. + private PrometheusQueryLanguageCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MonitoringQueryLanguageCondition() { + private PrometheusQueryLanguageCondition() { query_ = ""; - evaluationMissingData_ = 0; + ruleGroup_ = ""; + alertRule_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonitoringQueryLanguageCondition(); + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrometheusQueryLanguageCondition(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .class, - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
-       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-       * query that outputs a boolean stream.
+       * Required. The PromQL expression to evaluate. Every evaluation cycle
+       * this expression is evaluated at the current time, and all resultant
+       * time series become pending/firing alerts. This field must not be empty.
        * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ @java.lang.Override @@ -10335,30 +12379,31 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
-       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-       * query that outputs a boolean stream.
+       * Required. The PromQL expression to evaluate. Every evaluation cycle
+       * this expression is evaluated at the current time, and all resultant
+       * time series become pending/firing alerts. This field must not be empty.
        * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -10369,23 +12414,16 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2; - * + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the duration field is set. */ @java.lang.Override @@ -10393,23 +12431,16 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2; - * + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The duration. */ @java.lang.Override @@ -10417,140 +12448,335 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
-       * The amount of time that a time series must violate the
-       * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-       * seconds--are supported. If an invalid value is given, an
-       * error will be returned. When choosing a duration, it is useful to
-       * keep in mind the frequency of the underlying time series data
-       * (which may also be affected by any alignments specified in the
-       * `aggregations` field); a good duration is long enough so that a single
-       * outlier does not generate spurious alerts, but short enough that
-       * unhealthy states are detected and alerted on quickly.
+       * Optional. Alerts are considered firing once their PromQL expression was
+       * evaluated to be "true" for this long.
+       * Alerts whose PromQL expression was not evaluated to be "true" for
+       * long enough are considered pending.
+       * Must be a non-negative duration or missing.
+       * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } - public static final int TRIGGER_FIELD_NUMBER = 3; - private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + public static final int EVALUATION_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration evaluationInterval_; /** + *
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
+       * 
* - * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the evaluationInterval field is set. + */ + @java.lang.Override + public boolean hasEvaluationInterval() { + return evaluationInterval_ != null; + } + /** *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The evaluationInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getEvaluationInterval() { + return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + } + /** + *
+       * Optional. How often this rule should be evaluated.
+       * Must be a positive multiple of 30 seconds or missing.
+       * This field is optional. Its default value is 30 seconds.
+       * If this PrometheusQueryLanguageCondition was generated from a
+       * Prometheus alerting rule, then this value should be taken from the
+       * enclosing rule group.
+       * 
* - * @return Whether the trigger field is set. + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean hasTrigger() { - return trigger_ != null; + public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { + return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } /** + *
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
+       * 
* + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
+       * 
* + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional. Labels to add to or overwrite in the PromQL query result.
+       * Label names [must be
+       * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * Label values can be [templatized by using
+       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+       * The only available variable names are the names of the labels in the
+       * PromQL result, including "__name__" and "value". "labels" may be empty.
+       * 
* - * @return The trigger. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } + + public static final int RULE_GROUP_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object ruleGroup_ = ""; /** + *
+       * Optional. The rule group name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
        *
+       * This field is optional. If this field is not empty, then it must
+       * contain a valid UTF-8 string.
+       * This field may not exceed 2048 Unicode characters in length.
+       * 
* + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ruleGroup. + */ + @java.lang.Override + public java.lang.String getRuleGroup() { + java.lang.Object ref = ruleGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleGroup_ = s; + return s; + } + } + /** *
-       * The number/percent of time series for which the comparison must hold
-       * in order for the condition to trigger. If unspecified, then the
-       * condition will trigger if the comparison is true for any of the
-       * time series that have been identified by `filter` and `aggregations`,
-       * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-       * are specified.
+       * Optional. The rule group name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
+       *
+       * This field is optional. If this field is not empty, then it must
+       * contain a valid UTF-8 string.
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ruleGroup. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; + public com.google.protobuf.ByteString + getRuleGroupBytes() { + java.lang.Object ref = ruleGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 4; - private int evaluationMissingData_ = 0; + public static final int ALERT_RULE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object alertRule_ = ""; /** - * - * *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
+       * Optional. The alerting rule name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
+       *
+       * This field is optional. If this field is not empty, then it must be a
+       * [valid Prometheus label
+       * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The enum numeric value on the wire for evaluationMissingData. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The alertRule. */ @java.lang.Override - public int getEvaluationMissingDataValue() { - return evaluationMissingData_; + public java.lang.String getAlertRule() { + java.lang.Object ref = alertRule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertRule_ = s; + return s; + } } /** - * - * *
-       * A condition control that determines how metric-threshold conditions
-       * are evaluated when data stops arriving.
+       * Optional. The alerting rule name of this alert in the corresponding
+       * Prometheus configuration file.
+       *
+       * Some external tools may require this field to be populated correctly
+       * in order to refer to the original Prometheus configuration file.
+       * The rule group name and the alert name are necessary to update the
+       * relevant AlertPolicies in case the definition of the rule group changes
+       * in the future.
+       *
+       * This field is optional. If this field is not empty, then it must be a
+       * [valid Prometheus label
+       * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+       * This field may not exceed 2048 Unicode characters in length.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The evaluationMissingData. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for alertRule. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( - evaluationMissingData_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED - : result; + public com.google.protobuf.ByteString + getAlertRuleBytes() { + java.lang.Object ref = alertRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alertRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10562,21 +12788,28 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } if (duration_ != null) { output.writeMessage(2, getDuration()); } - if (trigger_ != null) { - output.writeMessage(3, getTrigger()); + if (evaluationInterval_ != null) { + output.writeMessage(3, getEvaluationInterval()); } - if (evaluationMissingData_ - != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - .EVALUATION_MISSING_DATA_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, evaluationMissingData_); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ruleGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertRule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, alertRule_); } getUnknownFields().writeTo(output); } @@ -10591,16 +12824,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } - if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger()); + if (evaluationInterval_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEvaluationInterval()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } - if (evaluationMissingData_ - != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - .EVALUATION_MISSING_DATA_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, evaluationMissingData_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ruleGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertRule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, alertRule_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10610,26 +12855,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)) { + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other = - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) obj; + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other = (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) obj; - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; - } - if (hasTrigger() != other.hasTrigger()) return false; - if (hasTrigger()) { - if (!getTrigger().equals(other.getTrigger())) return false; - } - if (evaluationMissingData_ != other.evaluationMissingData_) return false; + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasEvaluationInterval() != other.hasEvaluationInterval()) return false; + if (hasEvaluationInterval()) { + if (!getEvaluationInterval() + .equals(other.getEvaluationInterval())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getRuleGroup() + .equals(other.getRuleGroup())) return false; + if (!getAlertRule() + .equals(other.getAlertRule())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10647,115 +12897,107 @@ public int hashCode() { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } - if (hasTrigger()) { - hash = (37 * hash) + TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + getTrigger().hashCode(); + if (hasEvaluationInterval()) { + hash = (37 * hash) + EVALUATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationInterval().hashCode(); } - hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER; - hash = (53 * hash) + evaluationMissingData_; + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + RULE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRuleGroup().hashCode(); + hash = (37 * hash) + ALERT_RULE_FIELD_NUMBER; + hash = (53 * hash) + getAlertRule().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - prototype) { + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10765,46 +13007,91 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A condition type that allows alert policies to be defined using
-       * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
+       * [Prometheus Query Language
+       * (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
+       *
+       * The PrometheusQueryLanguageCondition message contains information
+       * from a Prometheus alerting rule and its associated rule group.
+       *
+       * A Prometheus alerting rule is described
+       * [here](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/).
+       * The semantics of a Prometheus alerting rule is described
+       * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule).
+       *
+       * A Prometheus rule group is described
+       * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/).
+       * The semantics of a Prometheus rule group is described
+       * [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule_group).
+       *
+       * Because Cloud Alerting has no representation of a Prometheus rule
+       * group resource, we must embed the information of the parent rule
+       * group inside each of the conditions that refer to it. We must also
+       * update the contents of all Prometheus alerts in case the information
+       * of their rule group changes.
+       *
+       * The PrometheusQueryLanguageCondition protocol buffer combines the
+       * information of the corresponding rule group and alerting rule.
+       * The structure of the PrometheusQueryLanguageCondition protocol buffer
+       * does NOT mimic the structure of the Prometheus rule group and alerting
+       * rule YAML declarations. The PrometheusQueryLanguageCondition protocol
+       * buffer may change in the future to support future rule group and/or
+       * alerting rule features. There are no new such features at the present
+       * time (2023-06-26).
        * 
* - * Protobuf type {@code - * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .class, - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder.class); } - // Construct using - // com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -10815,33 +13102,31 @@ public Builder clear() { durationBuilder_.dispose(); durationBuilder_ = null; } - trigger_ = null; - if (triggerBuilder_ != null) { - triggerBuilder_.dispose(); - triggerBuilder_ = null; + evaluationInterval_ = null; + if (evaluationIntervalBuilder_ != null) { + evaluationIntervalBuilder_.dispose(); + evaluationIntervalBuilder_ = null; } - evaluationMissingData_ = 0; + internalGetMutableLabels().clear(); + ruleGroup_ = ""; + alertRule_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - build() { - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = - buildPartial(); + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition build() { + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10849,33 +13134,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = - new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - result) { + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.query_ = query_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build(); + result.evaluationInterval_ = evaluationIntervalBuilder_ == null + ? evaluationInterval_ + : evaluationIntervalBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.evaluationMissingData_ = evaluationMissingData_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ruleGroup_ = ruleGroup_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.alertRule_ = alertRule_; } } @@ -10883,56 +13172,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) { - return mergeFrom( - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - other); + if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other) { - if (other - == com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other) { + if (other == com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance()) return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000001; @@ -10941,11 +13220,21 @@ public Builder mergeFrom( if (other.hasDuration()) { mergeDuration(other.getDuration()); } - if (other.hasTrigger()) { - mergeTrigger(other.getTrigger()); + if (other.hasEvaluationInterval()) { + mergeEvaluationInterval(other.getEvaluationInterval()); } - if (other.evaluationMissingData_ != 0) { - setEvaluationMissingDataValue(other.getEvaluationMissingDataValue()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getRuleGroup().isEmpty()) { + ruleGroup_ = other.ruleGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAlertRule().isEmpty()) { + alertRule_ = other.alertRule_; + bitField0_ |= 0x00000020; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -10973,37 +13262,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - evaluationMissingData_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEvaluationIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + ruleGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + alertRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11013,26 +13315,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object query_ = ""; /** - * - * *
-         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-         * query that outputs a boolean stream.
+         * Required. The PromQL expression to evaluate. Every evaluation cycle
+         * this expression is evaluated at the current time, and all resultant
+         * time series become pending/firing alerts. This field must not be empty.
          * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -11041,22 +13341,22 @@ public java.lang.String getQuery() { } } /** - * - * *
-         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-         * query that outputs a boolean stream.
+         * Required. The PromQL expression to evaluate. Every evaluation cycle
+         * this expression is evaluated at the current time, and all resultant
+         * time series become pending/firing alerts. This field must not be empty.
          * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -11064,37 +13364,32 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
-         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-         * query that outputs a boolean stream.
+         * Required. The PromQL expression to evaluate. Every evaluation cycle
+         * this expression is evaluated at the current time, and all resultant
+         * time series become pending/firing alerts. This field must not be empty.
          * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-         * query that outputs a boolean stream.
+         * Required. The PromQL expression to evaluate. Every evaluation cycle
+         * this expression is evaluated at the current time, and all resultant
+         * time series become pending/firing alerts. This field must not be empty.
          * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearQuery() { @@ -11104,22 +13399,19 @@ public Builder clearQuery() { return this; } /** - * - * *
-         * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
-         * query that outputs a boolean stream.
+         * Required. The PromQL expression to evaluate. Every evaluation cycle
+         * this expression is evaluated at the current time, and all resultant
+         * time series become pending/firing alerts. This field must not be empty.
          * 
* - * string query = 1; - * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000001; @@ -11127,81 +13419,56 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; - /** - * - * - *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
-         * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return Whether the duration field is set. - */ - public boolean hasDuration() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+        private com.google.protobuf.Duration duration_;
+        private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
+        /**
+         * 
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
+         * 
* + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -11217,24 +13484,19 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -11245,28 +13507,22 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -11279,22 +13535,16 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -11307,22 +13557,16 @@ public Builder clearDuration() { return this; } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000002; @@ -11330,409 +13574,746 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
-         * The amount of time that a time series must violate the
-         * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
-         * seconds--are supported. If an invalid value is given, an
-         * error will be returned. When choosing a duration, it is useful to
-         * keep in mind the frequency of the underlying time series data
-         * (which may also be affected by any alignments specified in the
-         * `aggregations` field); a good duration is long enough so that a single
-         * outlier does not generate spurious alerts, but short enough that
-         * unhealthy states are detected and alerted on quickly.
+         * Optional. Alerts are considered firing once their PromQL expression was
+         * evaluated to be "true" for this long.
+         * Alerts whose PromQL expression was not evaluated to be "true" for
+         * long enough are considered pending.
+         * Must be a non-negative duration or missing.
+         * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_; + private com.google.protobuf.Duration evaluationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> - triggerBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> evaluationIntervalBuilder_; /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
* + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the evaluationInterval field is set. + */ + public boolean hasEvaluationInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
* + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The evaluationInterval. + */ + public com.google.protobuf.Duration getEvaluationInterval() { + if (evaluationIntervalBuilder_ == null) { + return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + } else { + return evaluationIntervalBuilder_.getMessage(); + } + } + /** *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEvaluationInterval(com.google.protobuf.Duration value) { + if (evaluationIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationInterval_ = value; + } else { + evaluationIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEvaluationInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (evaluationIntervalBuilder_ == null) { + evaluationInterval_ = builderForValue.build(); + } else { + evaluationIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeEvaluationInterval(com.google.protobuf.Duration value) { + if (evaluationIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + evaluationInterval_ != null && + evaluationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getEvaluationIntervalBuilder().mergeFrom(value); + } else { + evaluationInterval_ = value; + } + } else { + evaluationIntervalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearEvaluationInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + evaluationInterval_ = null; + if (evaluationIntervalBuilder_ != null) { + evaluationIntervalBuilder_.dispose(); + evaluationIntervalBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Duration.Builder getEvaluationIntervalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEvaluationIntervalFieldBuilder().getBuilder(); + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { + if (evaluationIntervalBuilder_ != null) { + return evaluationIntervalBuilder_.getMessageOrBuilder(); + } else { + return evaluationInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + } + } + /** + *
+         * Optional. How often this rule should be evaluated.
+         * Must be a positive multiple of 30 seconds or missing.
+         * This field is optional. Its default value is 30 seconds.
+         * If this PrometheusQueryLanguageCondition was generated from a
+         * Prometheus alerting rule, then this value should be taken from the
+         * enclosing rule group.
+         * 
+ * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getEvaluationIntervalFieldBuilder() { + if (evaluationIntervalBuilder_ == null) { + evaluationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getEvaluationInterval(), + getParentForChildren(), + isClean()); + evaluationInterval_ = null; + } + return evaluationIntervalBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
+         * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
+         * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
+         * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
+         * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return Whether the trigger field is set. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public boolean hasTrigger() { - return ((bitField0_ & 0x00000004) != 0); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; - * - * @return The trigger. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - if (triggerBuilder_ == null) { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } else { - return triggerBuilder_.getMessage(); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; } /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * Optional. Labels to add to or overwrite in the PromQL query result.
+         * Label names [must be
+         * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * Label values can be [templatized by using
+         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+         * The only available variable names are the names of the labels in the
+         * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { - if (triggerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trigger_ = value; - } else { - triggerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000008; return this; } + + private java.lang.Object ruleGroup_ = ""; /** + *
+         * Optional. The rule group name of this alert in the corresponding
+         * Prometheus configuration file.
          *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
          *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * This field is optional. If this field is not empty, then it must
+         * contain a valid UTF-8 string.
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ruleGroup. */ - public Builder setTrigger( - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder builderForValue) { - if (triggerBuilder_ == null) { - trigger_ = builderForValue.build(); + public java.lang.String getRuleGroup() { + java.lang.Object ref = ruleGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleGroup_ = s; + return s; } else { - triggerBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** + *
+         * Optional. The rule group name of this alert in the corresponding
+         * Prometheus configuration file.
          *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
          *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * This field is optional. If this field is not empty, then it must
+         * contain a valid UTF-8 string.
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ruleGroup. */ - public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) { - if (triggerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && trigger_ != null - && trigger_ - != com.google.monitoring.v3.AlertPolicy.Condition.Trigger - .getDefaultInstance()) { - getTriggerBuilder().mergeFrom(value); - } else { - trigger_ = value; - } + public com.google.protobuf.ByteString + getRuleGroupBytes() { + java.lang.Object ref = ruleGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleGroup_ = b; + return b; } else { - triggerBuilder_.mergeFrom(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** + *
+         * Optional. The rule group name of this alert in the corresponding
+         * Prometheus configuration file.
          *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
          *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * This field is optional. If this field is not empty, then it must
+         * contain a valid UTF-8 string.
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The ruleGroup to set. + * @return This builder for chaining. */ - public Builder clearTrigger() { - bitField0_ = (bitField0_ & ~0x00000004); - trigger_ = null; - if (triggerBuilder_ != null) { - triggerBuilder_.dispose(); - triggerBuilder_ = null; - } + public Builder setRuleGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ruleGroup_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** + *
+         * Optional. The rule group name of this alert in the corresponding
+         * Prometheus configuration file.
          *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
          *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * This field is optional. If this field is not empty, then it must
+         * contain a valid UTF-8 string.
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. */ - public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTriggerBuilder() { - bitField0_ |= 0x00000004; + public Builder clearRuleGroup() { + ruleGroup_ = getDefaultInstance().getRuleGroup(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); - return getTriggerFieldBuilder().getBuilder(); + return this; } /** + *
+         * Optional. The rule group name of this alert in the corresponding
+         * Prometheus configuration file.
          *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
          *
-         * 
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * This field is optional. If this field is not empty, then it must
+         * contain a valid UTF-8 string.
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for ruleGroup to set. + * @return This builder for chaining. */ - public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder - getTriggerOrBuilder() { - if (triggerBuilder_ != null) { - return triggerBuilder_.getMessageOrBuilder(); - } else { - return trigger_ == null - ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() - : trigger_; - } + public Builder setRuleGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ruleGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } + + private java.lang.Object alertRule_ = ""; /** - * - * *
-         * The number/percent of time series for which the comparison must hold
-         * in order for the condition to trigger. If unspecified, then the
-         * condition will trigger if the comparison is true for any of the
-         * time series that have been identified by `filter` and `aggregations`,
-         * or by the ratio, if `denominator_filter` and `denominator_aggregations`
-         * are specified.
+         * Optional. The alerting rule name of this alert in the corresponding
+         * Prometheus configuration file.
+         *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
+         *
+         * This field is optional. If this field is not empty, then it must be a
+         * [valid Prometheus label
+         * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The alertRule. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> - getTriggerFieldBuilder() { - if (triggerBuilder_ == null) { - triggerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.Trigger, - com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>( - getTrigger(), getParentForChildren(), isClean()); - trigger_ = null; + public java.lang.String getAlertRule() { + java.lang.Object ref = alertRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertRule_ = s; + return s; + } else { + return (java.lang.String) ref; } - return triggerBuilder_; } - - private int evaluationMissingData_ = 0; /** - * - * *
-         * A condition control that determines how metric-threshold conditions
-         * are evaluated when data stops arriving.
+         * Optional. The alerting rule name of this alert in the corresponding
+         * Prometheus configuration file.
+         *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
+         *
+         * This field is optional. If this field is not empty, then it must be a
+         * [valid Prometheus label
+         * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The enum numeric value on the wire for evaluationMissingData. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for alertRule. */ - @java.lang.Override - public int getEvaluationMissingDataValue() { - return evaluationMissingData_; + public com.google.protobuf.ByteString + getAlertRuleBytes() { + java.lang.Object ref = alertRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alertRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * - * *
-         * A condition control that determines how metric-threshold conditions
-         * are evaluated when data stops arriving.
+         * Optional. The alerting rule name of this alert in the corresponding
+         * Prometheus configuration file.
+         *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
+         *
+         * This field is optional. If this field is not empty, then it must be a
+         * [valid Prometheus label
+         * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @param value The enum numeric value on the wire for evaluationMissingData to set. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The alertRule to set. * @return This builder for chaining. */ - public Builder setEvaluationMissingDataValue(int value) { - evaluationMissingData_ = value; - bitField0_ |= 0x00000008; + public Builder setAlertRule( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + alertRule_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * - *
-         * A condition control that determines how metric-threshold conditions
-         * are evaluated when data stops arriving.
-         * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @return The evaluationMissingData. - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData - getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( - evaluationMissingData_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED - : result; - } - /** - * - * *
-         * A condition control that determines how metric-threshold conditions
-         * are evaluated when data stops arriving.
+         * Optional. The alerting rule name of this alert in the corresponding
+         * Prometheus configuration file.
+         *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
+         *
+         * This field is optional. If this field is not empty, then it must be a
+         * [valid Prometheus label
+         * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * - * @param value The evaluationMissingData to set. + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ - public Builder setEvaluationMissingData( - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - evaluationMissingData_ = value.getNumber(); + public Builder clearAlertRule() { + alertRule_ = getDefaultInstance().getAlertRule(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * - * *
-         * A condition control that determines how metric-threshold conditions
-         * are evaluated when data stops arriving.
+         * Optional. The alerting rule name of this alert in the corresponding
+         * Prometheus configuration file.
+         *
+         * Some external tools may require this field to be populated correctly
+         * in order to refer to the original Prometheus configuration file.
+         * The rule group name and the alert name are necessary to update the
+         * relevant AlertPolicies in case the definition of the rule group changes
+         * in the future.
+         *
+         * This field is optional. If this field is not empty, then it must be a
+         * [valid Prometheus label
+         * name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+         * This field may not exceed 2048 Unicode characters in length.
          * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; - * - * + * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for alertRule to set. * @return This builder for chaining. */ - public Builder clearEvaluationMissingData() { - bitField0_ = (bitField0_ & ~0x00000008); - evaluationMissingData_ = 0; + public Builder setAlertRuleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + alertRule_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11745,79 +14326,71 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - } - // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - private static final com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageCondition - DEFAULT_INSTANCE; + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + } + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + private static final com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringQueryLanguageCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrometheusQueryLanguageCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int conditionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object condition_; - public enum ConditionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONDITION_THRESHOLD(1), CONDITION_ABSENT(2), CONDITION_MATCHED_LOG(20), CONDITION_MONITORING_QUERY_LANGUAGE(19), + CONDITION_PROMETHEUS_QUERY_LANGUAGE(21), CONDITION_NOT_SET(0); private final int value; - private ConditionCase(int value) { this.value = value; } @@ -11833,37 +14406,30 @@ public static ConditionCase valueOf(int value) { public static ConditionCase forNumber(int value) { switch (value) { - case 1: - return CONDITION_THRESHOLD; - case 2: - return CONDITION_ABSENT; - case 20: - return CONDITION_MATCHED_LOG; - case 19: - return CONDITION_MONITORING_QUERY_LANGUAGE; - case 0: - return CONDITION_NOT_SET; - default: - return null; + case 1: return CONDITION_THRESHOLD; + case 2: return CONDITION_ABSENT; + case 20: return CONDITION_MATCHED_LOG; + case 19: return CONDITION_MONITORING_QUERY_LANGUAGE; + case 21: return CONDITION_PROMETHEUS_QUERY_LANGUAGE; + case 0: return CONDITION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConditionCase getConditionCase() { - return ConditionCase.forNumber(conditionCase_); + public ConditionCase + getConditionCase() { + return ConditionCase.forNumber( + conditionCase_); } public static final int NAME_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -11893,7 +14459,6 @@ public ConditionCase getConditionCase() {
      * 
* * string name = 12; - * * @return The name. */ @java.lang.Override @@ -11902,15 +14467,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -11940,15 +14504,16 @@ public java.lang.String getName() {
      * 
* * string name = 12; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -11957,12 +14522,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -11970,7 +14532,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string display_name = 6; - * * @return The displayName. */ @java.lang.Override @@ -11979,15 +14540,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -11995,15 +14555,16 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 6; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -12013,15 +14574,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CONDITION_THRESHOLD_FIELD_NUMBER = 1; /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; * @return Whether the conditionThreshold field is set. */ @java.lang.Override @@ -12029,54 +14586,43 @@ public boolean hasConditionThreshold() { return conditionCase_ == 1; } /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; * @return The conditionThreshold. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() { if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } /** - * - * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder - getConditionThresholdOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder() { if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } public static final int CONDITION_ABSENT_FIELD_NUMBER = 2; /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * * @return Whether the conditionAbsent field is set. */ @java.lang.Override @@ -12084,27 +14630,22 @@ public boolean hasConditionAbsent() { return conditionCase_ == 2; } /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * * @return The conditionAbsent. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() { if (conditionCase_ == 2) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); } /** - * - * *
      * A condition that checks that a time series continues to
      * receive new data points.
@@ -12113,25 +14654,21 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getCondition
      * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
-        getConditionAbsentOrBuilder() {
+    public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder() {
       if (conditionCase_ == 2) {
-        return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+         return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
       }
       return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
     }
 
     public static final int CONDITION_MATCHED_LOG_FIELD_NUMBER = 20;
     /**
-     *
-     *
      * 
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * * @return Whether the conditionMatchedLog field is set. */ @java.lang.Override @@ -12139,27 +14676,22 @@ public boolean hasConditionMatchedLog() { return conditionCase_ == 20; } /** - * - * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * * @return The conditionMatchedLog. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() { if (conditionCase_ == 20) { - return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); } /** - * - * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
@@ -12168,27 +14700,21 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatch
      * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
-        getConditionMatchedLogOrBuilder() {
+    public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder() {
       if (conditionCase_ == 20) {
-        return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+         return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
       }
       return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
     }
 
     public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER = 19;
     /**
-     *
-     *
      * 
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; * @return Whether the conditionMonitoringQueryLanguage field is set. */ @java.lang.Override @@ -12196,54 +14722,81 @@ public boolean hasConditionMonitoringQueryLanguage() { return conditionCase_ == 19; } /** - * - * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; * @return The conditionMonitoringQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getConditionMonitoringQueryLanguage() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage() { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); } /** - * - * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder - getConditionMonitoringQueryLanguageOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder() { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); } - private byte memoizedIsInitialized = -1; + public static final int CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER = 21; + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return Whether the conditionPrometheusQueryLanguage field is set. + */ + @java.lang.Override + public boolean hasConditionPrometheusQueryLanguage() { + return conditionCase_ == 21; + } + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return The conditionPrometheusQueryLanguage. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage() { + if (conditionCase_ == 21) { + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + } + /** + *
+     * A condition that uses the Prometheus query language to define alerts.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder() { + if (conditionCase_ == 21) { + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12255,14 +14808,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (conditionCase_ == 1) { - output.writeMessage( - 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); + output.writeMessage(1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); } if (conditionCase_ == 2) { - output.writeMessage( - 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); + output.writeMessage(2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); @@ -12271,14 +14823,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_); } if (conditionCase_ == 19) { - output.writeMessage( - 19, - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_); + output.writeMessage(19, (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_); } if (conditionCase_ == 20) { - output.writeMessage( - 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + output.writeMessage(20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + } + if (conditionCase_ == 21) { + output.writeMessage(21, (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_); } getUnknownFields().writeTo(output); } @@ -12290,14 +14841,12 @@ public int getSerializedSize() { size = 0; if (conditionCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); } if (conditionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); @@ -12306,16 +14855,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_); } if (conditionCase_ == 19) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_); } if (conditionCase_ == 20) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + } + if (conditionCase_ == 21) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12325,31 +14874,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition other = - (com.google.monitoring.v3.AlertPolicy.Condition) obj; + com.google.monitoring.v3.AlertPolicy.Condition other = (com.google.monitoring.v3.AlertPolicy.Condition) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getConditionCase().equals(other.getConditionCase())) return false; switch (conditionCase_) { case 1: - if (!getConditionThreshold().equals(other.getConditionThreshold())) return false; + if (!getConditionThreshold() + .equals(other.getConditionThreshold())) return false; break; case 2: - if (!getConditionAbsent().equals(other.getConditionAbsent())) return false; + if (!getConditionAbsent() + .equals(other.getConditionAbsent())) return false; break; case 20: - if (!getConditionMatchedLog().equals(other.getConditionMatchedLog())) return false; + if (!getConditionMatchedLog() + .equals(other.getConditionMatchedLog())) return false; break; case 19: if (!getConditionMonitoringQueryLanguage() .equals(other.getConditionMonitoringQueryLanguage())) return false; break; + case 21: + if (!getConditionPrometheusQueryLanguage() + .equals(other.getConditionPrometheusQueryLanguage())) return false; + break; case 0: default: } @@ -12385,6 +14942,10 @@ public int hashCode() { hash = (37 * hash) + CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getConditionMonitoringQueryLanguage().hashCode(); break; + case 21: + hash = (37 * hash) + CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getConditionPrometheusQueryLanguage().hashCode(); + break; case 0: default: } @@ -12393,94 +14954,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -12490,8 +15047,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A condition is a true/false test that determines when an alerting policy
      * should open an incident. If a condition evaluates to true, it signifies
@@ -12500,1930 +15055,2681 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition)
         com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+      }
+
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+          internalGetFieldAccessorTable() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
+            .ensureFieldAccessorsInitialized(
+                com.google.monitoring.v3.AlertPolicy.Condition.class, com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+      }
+
+      // Construct using com.google.monitoring.v3.AlertPolicy.Condition.newBuilder()
+      private Builder() {
+
+      }
+
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
+      @java.lang.Override
+      public Builder clear() {
+        super.clear();
+        bitField0_ = 0;
+        name_ = "";
+        displayName_ = "";
+        if (conditionThresholdBuilder_ != null) {
+          conditionThresholdBuilder_.clear();
+        }
+        if (conditionAbsentBuilder_ != null) {
+          conditionAbsentBuilder_.clear();
+        }
+        if (conditionMatchedLogBuilder_ != null) {
+          conditionMatchedLogBuilder_.clear();
+        }
+        if (conditionMonitoringQueryLanguageBuilder_ != null) {
+          conditionMonitoringQueryLanguageBuilder_.clear();
+        }
+        if (conditionPrometheusQueryLanguageBuilder_ != null) {
+          conditionPrometheusQueryLanguageBuilder_.clear();
+        }
+        conditionCase_ = 0;
+        condition_ = null;
+        return this;
+      }
+
+      @java.lang.Override
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+      }
+
+      @java.lang.Override
+      public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() {
+        return com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance();
+      }
+
+      @java.lang.Override
+      public com.google.monitoring.v3.AlertPolicy.Condition build() {
+        com.google.monitoring.v3.AlertPolicy.Condition result = buildPartial();
+        if (!result.isInitialized()) {
+          throw newUninitializedMessageException(result);
+        }
+        return result;
+      }
+
+      @java.lang.Override
+      public com.google.monitoring.v3.AlertPolicy.Condition buildPartial() {
+        com.google.monitoring.v3.AlertPolicy.Condition result = new com.google.monitoring.v3.AlertPolicy.Condition(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
+        buildPartialOneofs(result);
+        onBuilt();
+        return result;
+      }
+
+      private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition result) {
+        int from_bitField0_ = bitField0_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          result.name_ = name_;
+        }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          result.displayName_ = displayName_;
+        }
+      }
+
+      private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition result) {
+        result.conditionCase_ = conditionCase_;
+        result.condition_ = this.condition_;
+        if (conditionCase_ == 1 &&
+            conditionThresholdBuilder_ != null) {
+          result.condition_ = conditionThresholdBuilder_.build();
+        }
+        if (conditionCase_ == 2 &&
+            conditionAbsentBuilder_ != null) {
+          result.condition_ = conditionAbsentBuilder_.build();
+        }
+        if (conditionCase_ == 20 &&
+            conditionMatchedLogBuilder_ != null) {
+          result.condition_ = conditionMatchedLogBuilder_.build();
+        }
+        if (conditionCase_ == 19 &&
+            conditionMonitoringQueryLanguageBuilder_ != null) {
+          result.condition_ = conditionMonitoringQueryLanguageBuilder_.build();
+        }
+        if (conditionCase_ == 21 &&
+            conditionPrometheusQueryLanguageBuilder_ != null) {
+          result.condition_ = conditionPrometheusQueryLanguageBuilder_.build();
+        }
+      }
+
+      @java.lang.Override
+      public Builder clone() {
+        return super.clone();
+      }
+      @java.lang.Override
+      public Builder setField(
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
+        return super.setField(field, value);
+      }
+      @java.lang.Override
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
+        return super.clearField(field);
+      }
+      @java.lang.Override
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        return super.clearOneof(oneof);
+      }
+      @java.lang.Override
+      public Builder setRepeatedField(
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          int index, java.lang.Object value) {
+        return super.setRepeatedField(field, index, value);
+      }
+      @java.lang.Override
+      public Builder addRepeatedField(
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
+        return super.addRepeatedField(field, value);
+      }
+      @java.lang.Override
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition) {
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) {
+        if (other == com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()) return this;
+        if (!other.getName().isEmpty()) {
+          name_ = other.name_;
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
+        if (!other.getDisplayName().isEmpty()) {
+          displayName_ = other.displayName_;
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
+        switch (other.getConditionCase()) {
+          case CONDITION_THRESHOLD: {
+            mergeConditionThreshold(other.getConditionThreshold());
+            break;
+          }
+          case CONDITION_ABSENT: {
+            mergeConditionAbsent(other.getConditionAbsent());
+            break;
+          }
+          case CONDITION_MATCHED_LOG: {
+            mergeConditionMatchedLog(other.getConditionMatchedLog());
+            break;
+          }
+          case CONDITION_MONITORING_QUERY_LANGUAGE: {
+            mergeConditionMonitoringQueryLanguage(other.getConditionMonitoringQueryLanguage());
+            break;
+          }
+          case CONDITION_PROMETHEUS_QUERY_LANGUAGE: {
+            mergeConditionPrometheusQueryLanguage(other.getConditionPrometheusQueryLanguage());
+            break;
+          }
+          case CONDITION_NOT_SET: {
+            break;
+          }
+        }
+        this.mergeUnknownFields(other.getUnknownFields());
+        onChanged();
+        return this;
       }
 
       @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.class,
-                com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+      public final boolean isInitialized() {
+        return true;
       }
 
-      // Construct using com.google.monitoring.v3.AlertPolicy.Condition.newBuilder()
-      private Builder() {}
+      @java.lang.Override
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
+        try {
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                input.readMessage(
+                    getConditionThresholdFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                conditionCase_ = 1;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getConditionAbsentFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                conditionCase_ = 2;
+                break;
+              } // case 18
+              case 50: {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+              case 98: {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 98
+              case 154: {
+                input.readMessage(
+                    getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                conditionCase_ = 19;
+                break;
+              } // case 154
+              case 162: {
+                input.readMessage(
+                    getConditionMatchedLogFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                conditionCase_ = 20;
+                break;
+              } // case 162
+              case 170: {
+                input.readMessage(
+                    getConditionPrometheusQueryLanguageFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                conditionCase_ = 21;
+                break;
+              } // case 170
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.unwrapIOException();
+        } finally {
+          onChanged();
+        } // finally
+        return this;
+      }
+      private int conditionCase_ = 0;
+      private java.lang.Object condition_;
+      public ConditionCase
+          getConditionCase() {
+        return ConditionCase.forNumber(
+            conditionCase_);
+      }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
+      public Builder clearCondition() {
+        conditionCase_ = 0;
+        condition_ = null;
+        onChanged();
+        return this;
+      }
+
+      private int bitField0_;
+
+      private java.lang.Object name_ = "";
+      /**
+       * 
+       * Required if the condition exists. The unique resource name for this
+       * condition. Its format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+       *
+       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
+       * condition is created as part of a new or updated alerting policy.
+       *
+       * When calling the
+       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+       * method, do not include the `name` field in the conditions of the
+       * requested alerting policy. Cloud Monitoring creates the
+       * condition identifiers and includes them in the new policy.
+       *
+       * When calling the
+       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+       * method to update a policy, including a condition `name` causes the
+       * existing condition to be updated. Conditions without names are added to
+       * the updated policy. Existing conditions are deleted if they are not
+       * updated.
+       *
+       * Best practice is to preserve `[CONDITION_ID]` if you make only small
+       * changes, such as those to condition thresholds, durations, or trigger
+       * values.  Otherwise, treat the change as a new condition and let the
+       * existing condition be deleted.
+       * 
+ * + * string name = 12; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required if the condition exists. The unique resource name for this
+       * condition. Its format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+       *
+       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
+       * condition is created as part of a new or updated alerting policy.
+       *
+       * When calling the
+       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+       * method, do not include the `name` field in the conditions of the
+       * requested alerting policy. Cloud Monitoring creates the
+       * condition identifiers and includes them in the new policy.
+       *
+       * When calling the
+       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+       * method to update a policy, including a condition `name` causes the
+       * existing condition to be updated. Conditions without names are added to
+       * the updated policy. Existing conditions are deleted if they are not
+       * updated.
+       *
+       * Best practice is to preserve `[CONDITION_ID]` if you make only small
+       * changes, such as those to condition thresholds, durations, or trigger
+       * values.  Otherwise, treat the change as a new condition and let the
+       * existing condition be deleted.
+       * 
+ * + * string name = 12; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required if the condition exists. The unique resource name for this
+       * condition. Its format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+       *
+       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
+       * condition is created as part of a new or updated alerting policy.
+       *
+       * When calling the
+       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+       * method, do not include the `name` field in the conditions of the
+       * requested alerting policy. Cloud Monitoring creates the
+       * condition identifiers and includes them in the new policy.
+       *
+       * When calling the
+       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+       * method to update a policy, including a condition `name` causes the
+       * existing condition to be updated. Conditions without names are added to
+       * the updated policy. Existing conditions are deleted if they are not
+       * updated.
+       *
+       * Best practice is to preserve `[CONDITION_ID]` if you make only small
+       * changes, such as those to condition thresholds, durations, or trigger
+       * values.  Otherwise, treat the change as a new condition and let the
+       * existing condition be deleted.
+       * 
+ * + * string name = 12; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Required if the condition exists. The unique resource name for this
+       * condition. Its format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+       *
+       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
+       * condition is created as part of a new or updated alerting policy.
+       *
+       * When calling the
+       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+       * method, do not include the `name` field in the conditions of the
+       * requested alerting policy. Cloud Monitoring creates the
+       * condition identifiers and includes them in the new policy.
+       *
+       * When calling the
+       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+       * method to update a policy, including a condition `name` causes the
+       * existing condition to be updated. Conditions without names are added to
+       * the updated policy. Existing conditions are deleted if they are not
+       * updated.
+       *
+       * Best practice is to preserve `[CONDITION_ID]` if you make only small
+       * changes, such as those to condition thresholds, durations, or trigger
+       * values.  Otherwise, treat the change as a new condition and let the
+       * existing condition be deleted.
+       * 
+ * + * string name = 12; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Required if the condition exists. The unique resource name for this
+       * condition. Its format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
+       *
+       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
+       * condition is created as part of a new or updated alerting policy.
+       *
+       * When calling the
+       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
+       * method, do not include the `name` field in the conditions of the
+       * requested alerting policy. Cloud Monitoring creates the
+       * condition identifiers and includes them in the new policy.
+       *
+       * When calling the
+       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
+       * method to update a policy, including a condition `name` causes the
+       * existing condition to be updated. Conditions without names are added to
+       * the updated policy. Existing conditions are deleted if they are not
+       * updated.
+       *
+       * Best practice is to preserve `[CONDITION_ID]` if you make only small
+       * changes, such as those to condition thresholds, durations, or trigger
+       * values.  Otherwise, treat the change as a new condition and let the
+       * existing condition be deleted.
+       * 
+ * + * string name = 12; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - if (conditionThresholdBuilder_ != null) { - conditionThresholdBuilder_.clear(); - } - if (conditionAbsentBuilder_ != null) { - conditionAbsentBuilder_.clear(); - } - if (conditionMatchedLogBuilder_ != null) { - conditionMatchedLogBuilder_.clear(); + private java.lang.Object displayName_ = ""; + /** + *
+       * A short name or phrase used to identify the condition in dashboards,
+       * notifications, and incidents. To avoid confusion, don't use the same
+       * display name for multiple conditions in the same policy.
+       * 
+ * + * string display_name = 6; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; } - if (conditionMonitoringQueryLanguageBuilder_ != null) { - conditionMonitoringQueryLanguageBuilder_.clear(); + } + /** + *
+       * A short name or phrase used to identify the condition in dashboards,
+       * notifications, and incidents. To avoid confusion, don't use the same
+       * display name for multiple conditions in the same policy.
+       * 
+ * + * string display_name = 6; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - conditionCase_ = 0; - condition_ = null; + } + /** + *
+       * A short name or phrase used to identify the condition in dashboards,
+       * notifications, and incidents. To avoid confusion, don't use the same
+       * display name for multiple conditions in the same policy.
+       * 
+ * + * string display_name = 6; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; + /** + *
+       * A short name or phrase used to identify the condition in dashboards,
+       * notifications, and incidents. To avoid confusion, don't use the same
+       * display name for multiple conditions in the same policy.
+       * 
+ * + * string display_name = 6; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance(); + /** + *
+       * A short name or phrase used to identify the condition in dashboards,
+       * notifications, and incidents. To avoid confusion, don't use the same
+       * display name for multiple conditions in the same policy.
+       * 
+ * + * string display_name = 6; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> conditionThresholdBuilder_; + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * @return Whether the conditionThreshold field is set. + */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition build() { - com.google.monitoring.v3.AlertPolicy.Condition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasConditionThreshold() { + return conditionCase_ == 1; } - + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * @return The conditionThreshold. + */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition result = - new com.google.monitoring.v3.AlertPolicy.Condition(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() { + if (conditionThresholdBuilder_ == null) { + if (conditionCase_ == 1) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + } else { + if (conditionCase_ == 1) { + return conditionThresholdBuilder_.getMessage(); + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + public Builder setConditionThreshold(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { + if (conditionThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionThresholdBuilder_.setMessage(value); } + conditionCase_ = 1; + return this; } - - private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition result) { - result.conditionCase_ = conditionCase_; - result.condition_ = this.condition_; - if (conditionCase_ == 1 && conditionThresholdBuilder_ != null) { - result.condition_ = conditionThresholdBuilder_.build(); - } - if (conditionCase_ == 2 && conditionAbsentBuilder_ != null) { - result.condition_ = conditionAbsentBuilder_.build(); - } - if (conditionCase_ == 20 && conditionMatchedLogBuilder_ != null) { - result.condition_ = conditionMatchedLogBuilder_.build(); - } - if (conditionCase_ == 19 && conditionMonitoringQueryLanguageBuilder_ != null) { - result.condition_ = conditionMonitoringQueryLanguageBuilder_.build(); + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + public Builder setConditionThreshold( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder builderForValue) { + if (conditionThresholdBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionThresholdBuilder_.setMessage(builderForValue.build()); } + conditionCase_ = 1; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + public Builder mergeConditionThreshold(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { + if (conditionThresholdBuilder_ == null) { + if (conditionCase_ == 1 && + condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance()) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 1) { + conditionThresholdBuilder_.mergeFrom(value); + } else { + conditionThresholdBuilder_.setMessage(value); + } + } + conditionCase_ = 1; + return this; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + public Builder clearConditionThreshold() { + if (conditionThresholdBuilder_ == null) { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + } + conditionThresholdBuilder_.clear(); + } + return this; } - + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder getConditionThresholdBuilder() { + return getConditionThresholdFieldBuilder().getBuilder(); + } + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition) other); + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder() { + if ((conditionCase_ == 1) && (conditionThresholdBuilder_ != null)) { + return conditionThresholdBuilder_.getMessageOrBuilder(); } else { - super.mergeFrom(other); - return this; + if (conditionCase_ == 1) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) { - if (other == com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - switch (other.getConditionCase()) { - case CONDITION_THRESHOLD: - { - mergeConditionThreshold(other.getConditionThreshold()); - break; - } - case CONDITION_ABSENT: - { - mergeConditionAbsent(other.getConditionAbsent()); - break; - } - case CONDITION_MATCHED_LOG: - { - mergeConditionMatchedLog(other.getConditionMatchedLog()); - break; - } - case CONDITION_MONITORING_QUERY_LANGUAGE: - { - mergeConditionMonitoringQueryLanguage(other.getConditionMonitoringQueryLanguage()); - break; - } - case CONDITION_NOT_SET: - { - break; - } + /** + *
+       * A condition that compares a time series against a threshold.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> + getConditionThresholdFieldBuilder() { + if (conditionThresholdBuilder_ == null) { + if (!(conditionCase_ == 1)) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + } + conditionThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_, + getParentForChildren(), + isClean()); + condition_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); + conditionCase_ = 1; onChanged(); - return this; + return conditionThresholdBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> conditionAbsentBuilder_; + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * @return Whether the conditionAbsent field is set. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public boolean hasConditionAbsent() { + return conditionCase_ == 2; } - + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * @return The conditionAbsent. + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() { + if (conditionAbsentBuilder_ == null) { + if (conditionCase_ == 2) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + } else { + if (conditionCase_ == 2) { + return conditionAbsentBuilder_.getMessage(); + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getConditionThresholdFieldBuilder().getBuilder(), extensionRegistry); - conditionCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getConditionAbsentFieldBuilder().getBuilder(), extensionRegistry); - conditionCase_ = 2; - break; - } // case 18 - case 50: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 50 - case 98: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 98 - case 154: - { - input.readMessage( - getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(), - extensionRegistry); - conditionCase_ = 19; - break; - } // case 154 - case 162: - { - input.readMessage( - getConditionMatchedLogFieldBuilder().getBuilder(), extensionRegistry); - conditionCase_ = 20; - break; - } // case 162 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + } + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + */ + public Builder setConditionAbsent(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { + if (conditionAbsentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; onChanged(); - } // finally + } else { + conditionAbsentBuilder_.setMessage(value); + } + conditionCase_ = 2; return this; } - - private int conditionCase_ = 0; - private java.lang.Object condition_; - - public ConditionCase getConditionCase() { - return ConditionCase.forNumber(conditionCase_); - } - - public Builder clearCondition() { - conditionCase_ = 0; - condition_ = null; - onChanged(); + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + */ + public Builder setConditionAbsent( + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder builderForValue) { + if (conditionAbsentBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionAbsentBuilder_.setMessage(builderForValue.build()); + } + conditionCase_ = 2; return this; } - - private int bitField0_; - - private java.lang.Object name_ = ""; /** - * - * *
-       * Required if the condition exists. The unique resource name for this
-       * condition. Its format is:
-       *
-       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
-       *
-       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
-       * condition is created as part of a new or updated alerting policy.
-       *
-       * When calling the
-       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
-       * method, do not include the `name` field in the conditions of the
-       * requested alerting policy. Cloud Monitoring creates the
-       * condition identifiers and includes them in the new policy.
-       *
-       * When calling the
-       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
-       * method to update a policy, including a condition `name` causes the
-       * existing condition to be updated. Conditions without names are added to
-       * the updated policy. Existing conditions are deleted if they are not
-       * updated.
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
* - * Best practice is to preserve `[CONDITION_ID]` if you make only small - * changes, such as those to condition thresholds, durations, or trigger - * values. Otherwise, treat the change as a new condition and let the - * existing condition be deleted. + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + */ + public Builder mergeConditionAbsent(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { + if (conditionAbsentBuilder_ == null) { + if (conditionCase_ == 2 && + condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance()) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 2) { + conditionAbsentBuilder_.mergeFrom(value); + } else { + conditionAbsentBuilder_.setMessage(value); + } + } + conditionCase_ = 2; + return this; + } + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
        * 
* - * string name = 12; - * - * @return The name. + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public Builder clearConditionAbsent() { + if (conditionAbsentBuilder_ == null) { + if (conditionCase_ == 2) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } } else { - return (java.lang.String) ref; + if (conditionCase_ == 2) { + conditionCase_ = 0; + condition_ = null; + } + conditionAbsentBuilder_.clear(); } + return this; } /** - * - * *
-       * Required if the condition exists. The unique resource name for this
-       * condition. Its format is:
-       *
-       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
-       *
-       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
-       * condition is created as part of a new or updated alerting policy.
-       *
-       * When calling the
-       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
-       * method, do not include the `name` field in the conditions of the
-       * requested alerting policy. Cloud Monitoring creates the
-       * condition identifiers and includes them in the new policy.
-       *
-       * When calling the
-       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
-       * method to update a policy, including a condition `name` causes the
-       * existing condition to be updated. Conditions without names are added to
-       * the updated policy. Existing conditions are deleted if they are not
-       * updated.
-       *
-       * Best practice is to preserve `[CONDITION_ID]` if you make only small
-       * changes, such as those to condition thresholds, durations, or trigger
-       * values.  Otherwise, treat the change as a new condition and let the
-       * existing condition be deleted.
+       * A condition that checks that a time series continues to
+       * receive new data points.
        * 
* - * string name = 12; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder getConditionAbsentBuilder() { + return getConditionAbsentFieldBuilder().getBuilder(); + } + /** + *
+       * A condition that checks that a time series continues to
+       * receive new data points.
+       * 
* - * @return The bytes for name. + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder() { + if ((conditionCase_ == 2) && (conditionAbsentBuilder_ != null)) { + return conditionAbsentBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + if (conditionCase_ == 2) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); } } /** - * - * *
-       * Required if the condition exists. The unique resource name for this
-       * condition. Its format is:
-       *
-       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
-       *
-       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
-       * condition is created as part of a new or updated alerting policy.
-       *
-       * When calling the
-       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
-       * method, do not include the `name` field in the conditions of the
-       * requested alerting policy. Cloud Monitoring creates the
-       * condition identifiers and includes them in the new policy.
-       *
-       * When calling the
-       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
-       * method to update a policy, including a condition `name` causes the
-       * existing condition to be updated. Conditions without names are added to
-       * the updated policy. Existing conditions are deleted if they are not
-       * updated.
-       *
-       * Best practice is to preserve `[CONDITION_ID]` if you make only small
-       * changes, such as those to condition thresholds, durations, or trigger
-       * values.  Otherwise, treat the change as a new condition and let the
-       * existing condition be deleted.
+       * A condition that checks that a time series continues to
+       * receive new data points.
        * 
* - * string name = 12; - * - * @param value The name to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> + getConditionAbsentFieldBuilder() { + if (conditionAbsentBuilder_ == null) { + if (!(conditionCase_ == 2)) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + } + conditionAbsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_, + getParentForChildren(), + isClean()); + condition_ = null; } - name_ = value; - bitField0_ |= 0x00000001; + conditionCase_ = 2; onChanged(); - return this; + return conditionAbsentBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> conditionMatchedLogBuilder_; /** - * - * *
-       * Required if the condition exists. The unique resource name for this
-       * condition. Its format is:
-       *
-       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
-       *
-       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
-       * condition is created as part of a new or updated alerting policy.
-       *
-       * When calling the
-       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
-       * method, do not include the `name` field in the conditions of the
-       * requested alerting policy. Cloud Monitoring creates the
-       * condition identifiers and includes them in the new policy.
-       *
-       * When calling the
-       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
-       * method to update a policy, including a condition `name` causes the
-       * existing condition to be updated. Conditions without names are added to
-       * the updated policy. Existing conditions are deleted if they are not
-       * updated.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
+       * 
* - * Best practice is to preserve `[CONDITION_ID]` if you make only small - * changes, such as those to condition thresholds, durations, or trigger - * values. Otherwise, treat the change as a new condition and let the - * existing condition be deleted. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * @return Whether the conditionMatchedLog field is set. + */ + @java.lang.Override + public boolean hasConditionMatchedLog() { + return conditionCase_ == 20; + } + /** + *
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string name = 12; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * @return The conditionMatchedLog. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() { + if (conditionMatchedLogBuilder_ == null) { + if (conditionCase_ == 20) { + return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } else { + if (conditionCase_ == 20) { + return conditionMatchedLogBuilder_.getMessage(); + } + return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } + } + /** + *
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
+       * 
* - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder setConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { + if (conditionMatchedLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionMatchedLogBuilder_.setMessage(value); + } + conditionCase_ = 20; return this; } /** - * - * *
-       * Required if the condition exists. The unique resource name for this
-       * condition. Its format is:
-       *
-       *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
-       *
-       * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
-       * condition is created as part of a new or updated alerting policy.
-       *
-       * When calling the
-       * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
-       * method, do not include the `name` field in the conditions of the
-       * requested alerting policy. Cloud Monitoring creates the
-       * condition identifiers and includes them in the new policy.
-       *
-       * When calling the
-       * [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
-       * method to update a policy, including a condition `name` causes the
-       * existing condition to be updated. Conditions without names are added to
-       * the updated policy. Existing conditions are deleted if they are not
-       * updated.
-       *
-       * Best practice is to preserve `[CONDITION_ID]` if you make only small
-       * changes, such as those to condition thresholds, durations, or trigger
-       * values.  Otherwise, treat the change as a new condition and let the
-       * existing condition be deleted.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string name = 12; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setConditionMatchedLog( + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder builderForValue) { + if (conditionMatchedLogBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionMatchedLogBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); + conditionCase_ = 20; return this; } - - private java.lang.Object displayName_ = ""; /** - * - * *
-       * A short name or phrase used to identify the condition in dashboards,
-       * notifications, and incidents. To avoid confusion, don't use the same
-       * display name for multiple conditions in the same policy.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string display_name = 6; - * - * @return The displayName. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + public Builder mergeConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { + if (conditionMatchedLogBuilder_ == null) { + if (conditionCase_ == 20 && + condition_ != com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (conditionCase_ == 20) { + conditionMatchedLogBuilder_.mergeFrom(value); + } else { + conditionMatchedLogBuilder_.setMessage(value); + } } + conditionCase_ = 20; + return this; } /** - * - * *
-       * A short name or phrase used to identify the condition in dashboards,
-       * notifications, and incidents. To avoid confusion, don't use the same
-       * display name for multiple conditions in the same policy.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string display_name = 6; - * - * @return The bytes for displayName. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; + public Builder clearConditionMatchedLog() { + if (conditionMatchedLogBuilder_ == null) { + if (conditionCase_ == 20) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } } else { - return (com.google.protobuf.ByteString) ref; + if (conditionCase_ == 20) { + conditionCase_ = 0; + condition_ = null; + } + conditionMatchedLogBuilder_.clear(); } + return this; } /** - * - * *
-       * A short name or phrase used to identify the condition in dashboards,
-       * notifications, and incidents. To avoid confusion, don't use the same
-       * display name for multiple conditions in the same policy.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string display_name = 6; - * - * @param value The displayName to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder getConditionMatchedLogBuilder() { + return getConditionMatchedLogFieldBuilder().getBuilder(); } /** - * - * *
-       * A short name or phrase used to identify the condition in dashboards,
-       * notifications, and incidents. To avoid confusion, don't use the same
-       * display name for multiple conditions in the same policy.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string display_name = 6; - * - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder() { + if ((conditionCase_ == 20) && (conditionMatchedLogBuilder_ != null)) { + return conditionMatchedLogBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 20) { + return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } } /** - * - * *
-       * A short name or phrase used to identify the condition in dashboards,
-       * notifications, and incidents. To avoid confusion, don't use the same
-       * display name for multiple conditions in the same policy.
+       * A condition that checks for log messages matching given constraints. If
+       * set, no other conditions can be present.
        * 
* - * string display_name = 6; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> + getConditionMatchedLogFieldBuilder() { + if (conditionMatchedLogBuilder_ == null) { + if (!(conditionCase_ == 20)) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } + conditionMatchedLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_, + getParentForChildren(), + isClean()); + condition_ = null; } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + conditionCase_ = 20; onChanged(); - return this; + return conditionMatchedLogBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> - conditionThresholdBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder> conditionMonitoringQueryLanguageBuilder_; /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * - * @return Whether the conditionThreshold field is set. + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * @return Whether the conditionMonitoringQueryLanguage field is set. */ @java.lang.Override - public boolean hasConditionThreshold() { - return conditionCase_ == 1; + public boolean hasConditionMonitoringQueryLanguage() { + return conditionCase_ == 19; } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * - * - * @return The conditionThreshold. + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * @return The conditionMonitoringQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - getConditionThreshold() { - if (conditionThresholdBuilder_ == null) { - if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage() { + if (conditionMonitoringQueryLanguageBuilder_ == null) { + if (conditionCase_ == 19) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); } else { - if (conditionCase_ == 1) { - return conditionThresholdBuilder_.getMessage(); + if (conditionCase_ == 19) { + return conditionMonitoringQueryLanguageBuilder_.getMessage(); } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); } } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ - public Builder setConditionThreshold( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { - if (conditionThresholdBuilder_ == null) { + public Builder setConditionMonitoringQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { + if (conditionMonitoringQueryLanguageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } condition_ = value; onChanged(); } else { - conditionThresholdBuilder_.setMessage(value); + conditionMonitoringQueryLanguageBuilder_.setMessage(value); } - conditionCase_ = 1; + conditionCase_ = 19; return this; } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ - public Builder setConditionThreshold( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder builderForValue) { - if (conditionThresholdBuilder_ == null) { + public Builder setConditionMonitoringQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder builderForValue) { + if (conditionMonitoringQueryLanguageBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); } else { - conditionThresholdBuilder_.setMessage(builderForValue.build()); + conditionMonitoringQueryLanguageBuilder_.setMessage(builderForValue.build()); } - conditionCase_ = 1; + conditionCase_ = 19; return this; } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ - public Builder mergeConditionThreshold( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { - if (conditionThresholdBuilder_ == null) { - if (conditionCase_ == 1 - && condition_ - != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance()) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder( - (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeConditionMonitoringQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { + if (conditionMonitoringQueryLanguageBuilder_ == null) { + if (conditionCase_ == 19 && + condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance()) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_) + .mergeFrom(value).buildPartial(); } else { condition_ = value; } onChanged(); } else { - if (conditionCase_ == 1) { - conditionThresholdBuilder_.mergeFrom(value); + if (conditionCase_ == 19) { + conditionMonitoringQueryLanguageBuilder_.mergeFrom(value); } else { - conditionThresholdBuilder_.setMessage(value); + conditionMonitoringQueryLanguageBuilder_.setMessage(value); } } - conditionCase_ = 1; + conditionCase_ = 19; return this; } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ - public Builder clearConditionThreshold() { - if (conditionThresholdBuilder_ == null) { - if (conditionCase_ == 1) { + public Builder clearConditionMonitoringQueryLanguage() { + if (conditionMonitoringQueryLanguageBuilder_ == null) { + if (conditionCase_ == 19) { conditionCase_ = 0; condition_ = null; onChanged(); } } else { - if (conditionCase_ == 1) { + if (conditionCase_ == 19) { conditionCase_ = 0; condition_ = null; } - conditionThresholdBuilder_.clear(); + conditionMonitoringQueryLanguageBuilder_.clear(); } return this; } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder - getConditionThresholdBuilder() { - return getConditionThresholdFieldBuilder().getBuilder(); + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder getConditionMonitoringQueryLanguageBuilder() { + return getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(); } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder - getConditionThresholdOrBuilder() { - if ((conditionCase_ == 1) && (conditionThresholdBuilder_ != null)) { - return conditionThresholdBuilder_.getMessageOrBuilder(); + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder() { + if ((conditionCase_ == 19) && (conditionMonitoringQueryLanguageBuilder_ != null)) { + return conditionMonitoringQueryLanguageBuilder_.getMessageOrBuilder(); } else { - if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + if (conditionCase_ == 19) { + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold - .getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); } } /** - * - * *
-       * A condition that compares a time series against a threshold.
+       * A condition that uses the Monitoring Query Language to define
+       * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; - * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> - getConditionThresholdFieldBuilder() { - if (conditionThresholdBuilder_ == null) { - if (!(conditionCase_ == 1)) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); - } - conditionThresholdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder> + getConditionMonitoringQueryLanguageFieldBuilder() { + if (conditionMonitoringQueryLanguageBuilder_ == null) { + if (!(conditionCase_ == 19)) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + } + conditionMonitoringQueryLanguageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_, getParentForChildren(), isClean()); condition_ = null; } - conditionCase_ = 1; + conditionCase_ = 19; onChanged(); - return conditionThresholdBuilder_; + return conditionMonitoringQueryLanguageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> - conditionAbsentBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder> conditionPrometheusQueryLanguageBuilder_; /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * - * - * @return Whether the conditionAbsent field is set. + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return Whether the conditionPrometheusQueryLanguage field is set. */ @java.lang.Override - public boolean hasConditionAbsent() { - return conditionCase_ == 2; + public boolean hasConditionPrometheusQueryLanguage() { + return conditionCase_ == 21; } /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * - * - * @return The conditionAbsent. + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * @return The conditionPrometheusQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() { - if (conditionAbsentBuilder_ == null) { - if (conditionCase_ == 2) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage() { + if (conditionPrometheusQueryLanguageBuilder_ == null) { + if (conditionCase_ == 21) { + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); } else { - if (conditionCase_ == 2) { - return conditionAbsentBuilder_.getMessage(); + if (conditionCase_ == 21) { + return conditionPrometheusQueryLanguageBuilder_.getMessage(); } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); } } /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; */ - public Builder setConditionAbsent( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { - if (conditionAbsentBuilder_ == null) { + public Builder setConditionPrometheusQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { + if (conditionPrometheusQueryLanguageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } condition_ = value; onChanged(); } else { - conditionAbsentBuilder_.setMessage(value); + conditionPrometheusQueryLanguageBuilder_.setMessage(value); } - conditionCase_ = 2; + conditionCase_ = 21; return this; } /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; */ - public Builder setConditionAbsent( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder builderForValue) { - if (conditionAbsentBuilder_ == null) { + public Builder setConditionPrometheusQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder builderForValue) { + if (conditionPrometheusQueryLanguageBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); } else { - conditionAbsentBuilder_.setMessage(builderForValue.build()); + conditionPrometheusQueryLanguageBuilder_.setMessage(builderForValue.build()); } - conditionCase_ = 2; + conditionCase_ = 21; return this; } /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; */ - public Builder mergeConditionAbsent( - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { - if (conditionAbsentBuilder_ == null) { - if (conditionCase_ == 2 - && condition_ - != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence - .getDefaultInstance()) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder( - (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeConditionPrometheusQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { + if (conditionPrometheusQueryLanguageBuilder_ == null) { + if (conditionCase_ == 21 && + condition_ != com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance()) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_) + .mergeFrom(value).buildPartial(); } else { condition_ = value; } onChanged(); } else { - if (conditionCase_ == 2) { - conditionAbsentBuilder_.mergeFrom(value); + if (conditionCase_ == 21) { + conditionPrometheusQueryLanguageBuilder_.mergeFrom(value); } else { - conditionAbsentBuilder_.setMessage(value); + conditionPrometheusQueryLanguageBuilder_.setMessage(value); } } - conditionCase_ = 2; + conditionCase_ = 21; + return this; + } + /** + *
+       * A condition that uses the Prometheus query language to define alerts.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + */ + public Builder clearConditionPrometheusQueryLanguage() { + if (conditionPrometheusQueryLanguageBuilder_ == null) { + if (conditionCase_ == 21) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 21) { + conditionCase_ = 0; + condition_ = null; + } + conditionPrometheusQueryLanguageBuilder_.clear(); + } return this; } /** + *
+       * A condition that uses the Prometheus query language to define alerts.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + */ + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder getConditionPrometheusQueryLanguageBuilder() { + return getConditionPrometheusQueryLanguageFieldBuilder().getBuilder(); + } + /** + *
+       * A condition that uses the Prometheus query language to define alerts.
+       * 
* + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder() { + if ((conditionCase_ == 21) && (conditionPrometheusQueryLanguageBuilder_ != null)) { + return conditionPrometheusQueryLanguageBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 21) { + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + } + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + } + } + /** + *
+       * A condition that uses the Prometheus query language to define alerts.
+       * 
* + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder> + getConditionPrometheusQueryLanguageFieldBuilder() { + if (conditionPrometheusQueryLanguageBuilder_ == null) { + if (!(conditionCase_ == 21)) { + condition_ = com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + } + conditionPrometheusQueryLanguageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_, + getParentForChildren(), + isClean()); + condition_ = null; + } + conditionCase_ = 21; + onChanged(); + return conditionPrometheusQueryLanguageBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) + private static final com.google.monitoring.v3.AlertPolicy.Condition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition(); + } + + public static com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlertStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required for alert policies with a `LogMatch` condition.
+     *
+     * This limit is not implemented for alert policies that are not log-based.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * @return Whether the notificationRateLimit field is set. + */ + boolean hasNotificationRateLimit(); + /** + *
+     * Required for alert policies with a `LogMatch` condition.
+     *
+     * This limit is not implemented for alert policies that are not log-based.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * @return The notificationRateLimit. + */ + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit(); + /** + *
+     * Required for alert policies with a `LogMatch` condition.
+     *
+     * This limit is not implemented for alert policies that are not log-based.
+     * 
+ * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + */ + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder(); + + /** + *
+     * If an alert policy that was active has no data for this long, any open
+     * incidents will close
+     * 
+ * + * .google.protobuf.Duration auto_close = 3; + * @return Whether the autoClose field is set. + */ + boolean hasAutoClose(); + /** + *
+     * If an alert policy that was active has no data for this long, any open
+     * incidents will close
+     * 
+ * + * .google.protobuf.Duration auto_close = 3; + * @return The autoClose. + */ + com.google.protobuf.Duration getAutoClose(); + /** + *
+     * If an alert policy that was active has no data for this long, any open
+     * incidents will close
+     * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder(); + + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + java.util.List + getNotificationChannelStrategyList(); + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index); + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + int getNotificationChannelStrategyCount(); + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + java.util.List + getNotificationChannelStrategyOrBuilderList(); + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( + int index); + } + /** + *
+   * Control over how the notification channels in `notification_channels`
+   * are notified when this alert fires.
+   * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy} + */ + public static final class AlertStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy) + AlertStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlertStrategy.newBuilder() to construct. + private AlertStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlertStrategy() { + notificationChannelStrategy_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AlertStrategy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class); + } + + public interface NotificationRateLimitOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + com.google.protobuf.MessageOrBuilder { + + /** *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.protobuf.Duration period = 1; + * @return Whether the period field is set. */ - public Builder clearConditionAbsent() { - if (conditionAbsentBuilder_ == null) { - if (conditionCase_ == 2) { - conditionCase_ = 0; - condition_ = null; - onChanged(); - } - } else { - if (conditionCase_ == 2) { - conditionCase_ = 0; - condition_ = null; - } - conditionAbsentBuilder_.clear(); - } - return this; - } + boolean hasPeriod(); /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.protobuf.Duration period = 1; + * @return The period. */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder - getConditionAbsentBuilder() { - return getConditionAbsentFieldBuilder().getBuilder(); - } + com.google.protobuf.Duration getPeriod(); /** - * - * *
-       * A condition that checks that a time series continues to
-       * receive new data points.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * + * .google.protobuf.Duration period = 1; */ + com.google.protobuf.DurationOrBuilder getPeriodOrBuilder(); + } + /** + *
+     * Control over the rate of notifications sent to this alert policy's
+     * notification channels.
+     * 
+ * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit} + */ + public static final class NotificationRateLimit extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + NotificationRateLimitOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationRateLimit.newBuilder() to construct. + private NotificationRateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationRateLimit() { + } + @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder - getConditionAbsentOrBuilder() { - if ((conditionCase_ == 2) && (conditionAbsentBuilder_ != null)) { - return conditionAbsentBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 2) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; - } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); - } + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NotificationRateLimit(); } - /** - * - * - *
-       * A condition that checks that a time series continues to
-       * receive new data points.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> - getConditionAbsentFieldBuilder() { - if (conditionAbsentBuilder_ == null) { - if (!(conditionCase_ == 2)) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); - } - conditionAbsentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_, - getParentForChildren(), - isClean()); - condition_ = null; - } - conditionCase_ = 2; - onChanged(); - return conditionAbsentBuilder_; + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> - conditionMatchedLogBuilder_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder.class); + } + + public static final int PERIOD_FIELD_NUMBER = 1; + private com.google.protobuf.Duration period_; /** - * - * *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - * - * @return Whether the conditionMatchedLog field is set. + * .google.protobuf.Duration period = 1; + * @return Whether the period field is set. */ @java.lang.Override - public boolean hasConditionMatchedLog() { - return conditionCase_ == 20; + public boolean hasPeriod() { + return period_ != null; } /** - * - * *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - * - * @return The conditionMatchedLog. + * .google.protobuf.Duration period = 1; + * @return The period. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() { - if (conditionMatchedLogBuilder_ == null) { - if (conditionCase_ == 20) { - return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; - } - return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); - } else { - if (conditionCase_ == 20) { - return conditionMatchedLogBuilder_.getMessage(); - } - return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); - } + public com.google.protobuf.Duration getPeriod() { + return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** - * - * *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
+       * Not more than one notification per `period`.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * + * .google.protobuf.Duration period = 1; */ - public Builder setConditionMatchedLog( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { - if (conditionMatchedLogBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - conditionMatchedLogBuilder_.setMessage(value); + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { + return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (period_ != null) { + output.writeMessage(1, getPeriod()); } - conditionCase_ = 20; - return this; + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (period_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPeriod()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)) { + return super.equals(obj); + } + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) obj; + + if (hasPeriod() != other.hasPeriod()) return false; + if (hasPeriod()) { + if (!getPeriod() + .equals(other.getPeriod())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPeriod()) { + hash = (37 * hash) + PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getPeriod().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - /** - * - * - *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - */ - public Builder setConditionMatchedLog( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder builderForValue) { - if (conditionMatchedLogBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - conditionMatchedLogBuilder_.setMessage(builderForValue.build()); - } - conditionCase_ = 20; - return this; + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * - * *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
+       * Control over the rate of notifications sent to this alert policy's
+       * notification channels.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit} */ - public Builder mergeConditionMatchedLog( - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { - if (conditionMatchedLogBuilder_ == null) { - if (conditionCase_ == 20 - && condition_ - != com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder( - (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_) - .mergeFrom(value) - .buildPartial(); - } else { - condition_ = value; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder.class); + } + + // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + period_ = null; + if (periodBuilder_ != null) { + periodBuilder_.dispose(); + periodBuilder_ = null; } - onChanged(); - } else { - if (conditionCase_ == 20) { - conditionMatchedLogBuilder_.mergeFrom(value); - } else { - conditionMatchedLogBuilder_.setMessage(value); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit build() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - conditionCase_ = 20; - return this; - } - /** - * - * - *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - */ - public Builder clearConditionMatchedLog() { - if (conditionMatchedLogBuilder_ == null) { - if (conditionCase_ == 20) { - conditionCase_ = 0; - condition_ = null; - onChanged(); + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit buildPartial() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.period_ = periodBuilder_ == null + ? period_ + : periodBuilder_.build(); } - } else { - if (conditionCase_ == 20) { - conditionCase_ = 0; - condition_ = null; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)other); + } else { + super.mergeFrom(other); + return this; } - conditionMatchedLogBuilder_.clear(); } - return this; - } - /** - * - * - *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - */ - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder - getConditionMatchedLogBuilder() { - return getConditionMatchedLogFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder - getConditionMatchedLogOrBuilder() { - if ((conditionCase_ == 20) && (conditionMatchedLogBuilder_ != null)) { - return conditionMatchedLogBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 20) { - return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other) { + if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance()) return this; + if (other.hasPeriod()) { + mergePeriod(other.getPeriod()); } - return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - } - /** - * - * - *
-       * A condition that checks for log messages matching given constraints. If
-       * set, no other conditions can be present.
-       * 
- * - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> - getConditionMatchedLogFieldBuilder() { - if (conditionMatchedLogBuilder_ == null) { - if (!(conditionCase_ == 20)) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); - } - conditionMatchedLogBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, - com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_, - getParentForChildren(), - isClean()); - condition_ = null; + + @java.lang.Override + public final boolean isInitialized() { + return true; } - conditionCase_ = 20; - onChanged(); - return conditionMatchedLogBuilder_; - } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .Builder, - com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageConditionOrBuilder> - conditionMonitoringQueryLanguageBuilder_; - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * - * @return Whether the conditionMonitoringQueryLanguage field is set. - */ - @java.lang.Override - public boolean hasConditionMonitoringQueryLanguage() { - return conditionCase_ == 19; - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - * - * @return The conditionMonitoringQueryLanguage. - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - getConditionMonitoringQueryLanguage() { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_; - } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); - } else { - if (conditionCase_ == 19) { - return conditionMonitoringQueryLanguageBuilder_.getMessage(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - public Builder setConditionMonitoringQueryLanguage( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + private int bitField0_; + + private com.google.protobuf.Duration period_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + * @return Whether the period field is set. + */ + public boolean hasPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + * @return The period. + */ + public com.google.protobuf.Duration getPeriod() { + if (periodBuilder_ == null) { + return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + } else { + return periodBuilder_.getMessage(); } - condition_ = value; - onChanged(); - } else { - conditionMonitoringQueryLanguageBuilder_.setMessage(value); } - conditionCase_ = 19; - return this; - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - public Builder setConditionMonitoringQueryLanguage( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder - builderForValue) { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - condition_ = builderForValue.build(); + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public Builder setPeriod(com.google.protobuf.Duration value) { + if (periodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + period_ = value; + } else { + periodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; onChanged(); - } else { - conditionMonitoringQueryLanguageBuilder_.setMessage(builderForValue.build()); + return this; } - conditionCase_ = 19; - return this; - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - public Builder mergeConditionMonitoringQueryLanguage( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (conditionCase_ == 19 - && condition_ - != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance()) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .newBuilder( - (com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageCondition) - condition_) - .mergeFrom(value) - .buildPartial(); + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public Builder setPeriod( + com.google.protobuf.Duration.Builder builderForValue) { + if (periodBuilder_ == null) { + period_ = builderForValue.build(); } else { - condition_ = value; + periodBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000001; onChanged(); - } else { - if (conditionCase_ == 19) { - conditionMonitoringQueryLanguageBuilder_.mergeFrom(value); + return this; + } + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public Builder mergePeriod(com.google.protobuf.Duration value) { + if (periodBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + period_ != null && + period_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPeriodBuilder().mergeFrom(value); + } else { + period_ = value; + } } else { - conditionMonitoringQueryLanguageBuilder_.setMessage(value); + periodBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - conditionCase_ = 19; - return this; - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - public Builder clearConditionMonitoringQueryLanguage() { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (conditionCase_ == 19) { - conditionCase_ = 0; - condition_ = null; - onChanged(); + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public Builder clearPeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + period_ = null; + if (periodBuilder_ != null) { + periodBuilder_.dispose(); + periodBuilder_ = null; } - } else { - if (conditionCase_ == 19) { - conditionCase_ = 0; - condition_ = null; + onChanged(); + return this; + } + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public com.google.protobuf.Duration.Builder getPeriodBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPeriodFieldBuilder().getBuilder(); + } + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { + if (periodBuilder_ != null) { + return periodBuilder_.getMessageOrBuilder(); + } else { + return period_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : period_; } - conditionMonitoringQueryLanguageBuilder_.clear(); } - return this; - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder - getConditionMonitoringQueryLanguageBuilder() { - return getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageConditionOrBuilder - getConditionMonitoringQueryLanguageOrBuilder() { - if ((conditionCase_ == 19) && (conditionMonitoringQueryLanguageBuilder_ != null)) { - return conditionMonitoringQueryLanguageBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_; + /** + *
+         * Not more than one notification per `period`.
+         * 
+ * + * .google.protobuf.Duration period = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getPeriodFieldBuilder() { + if (periodBuilder_ == null) { + periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getPeriod(), + getParentForChildren(), + isClean()); + period_ = null; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); + return periodBuilder_; } - } - /** - * - * - *
-       * A condition that uses the Monitoring Query Language to define
-       * alerts.
-       * 
- * - * - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .Builder, - com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageConditionOrBuilder> - getConditionMonitoringQueryLanguageFieldBuilder() { - if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (!(conditionCase_ == 19)) { - condition_ = - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .getDefaultInstance(); - } - conditionMonitoringQueryLanguageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition - .Builder, - com.google.monitoring.v3.AlertPolicy.Condition - .MonitoringQueryLanguageConditionOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - condition_, - getParentForChildren(), - isClean()); - condition_ = null; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - conditionCase_ = 19; - onChanged(); - return conditionMonitoringQueryLanguageBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition) - } - // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) - private static final com.google.monitoring.v3.AlertPolicy.Condition DEFAULT_INSTANCE; + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + } - static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition(); - } + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(); + } - public static com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationRateLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface AlertStrategyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required for alert policies with a `LogMatch` condition.
-     *
-     * This limit is not implemented for alert policies that are not log-based.
-     * 
- * - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * - * @return Whether the notificationRateLimit field is set. - */ - boolean hasNotificationRateLimit(); - /** - * - * - *
-     * Required for alert policies with a `LogMatch` condition.
-     *
-     * This limit is not implemented for alert policies that are not log-based.
-     * 
- * - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * - * @return The notificationRateLimit. - */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getNotificationRateLimit(); - /** - * - * - *
-     * Required for alert policies with a `LogMatch` condition.
-     *
-     * This limit is not implemented for alert policies that are not log-based.
-     * 
- * - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder - getNotificationRateLimitOrBuilder(); - - /** - * - * - *
-     * If an alert policy that was active has no data for this long, any open
-     * incidents will close
-     * 
- * - * .google.protobuf.Duration auto_close = 3; - * - * @return Whether the autoClose field is set. - */ - boolean hasAutoClose(); - /** - * - * - *
-     * If an alert policy that was active has no data for this long, any open
-     * incidents will close
-     * 
- * - * .google.protobuf.Duration auto_close = 3; - * - * @return The autoClose. - */ - com.google.protobuf.Duration getAutoClose(); - /** - * - * - *
-     * If an alert policy that was active has no data for this long, any open
-     * incidents will close
-     * 
- * - * .google.protobuf.Duration auto_close = 3; - */ - com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder(); - } - /** - * - * - *
-   * Control over how the notification channels in `notification_channels`
-   * are notified when this alert fires.
-   * 
- * - * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy} - */ - public static final class AlertStrategy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy) - AlertStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AlertStrategy.newBuilder() to construct. - private AlertStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + return builder.buildPartial(); + } + }; - private AlertStrategy() {} + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AlertStrategy(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; - } + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.class, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class); } - public interface NotificationRateLimitOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) + public interface NotificationChannelStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) com.google.protobuf.MessageOrBuilder { /** + *
+       * The full REST resource name for the notification channels that these
+       * settings apply to. Each of these correspond to the name field in one
+       * of the NotificationChannel objects referenced in the
+       * notification_channels field of this AlertPolicy.
+       * The format is:
        *
+       *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+       * 
* + * repeated string notification_channel_names = 1; + * @return A list containing the notificationChannelNames. + */ + java.util.List + getNotificationChannelNamesList(); + /** *
-       * Not more than one notification per `period`.
-       * 
+ * The full REST resource name for the notification channels that these + * settings apply to. Each of these correspond to the name field in one + * of the NotificationChannel objects referenced in the + * notification_channels field of this AlertPolicy. + * The format is: * - * .google.protobuf.Duration period = 1; + * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + *
* - * @return Whether the period field is set. + * repeated string notification_channel_names = 1; + * @return The count of notificationChannelNames. */ - boolean hasPeriod(); + int getNotificationChannelNamesCount(); /** + *
+       * The full REST resource name for the notification channels that these
+       * settings apply to. Each of these correspond to the name field in one
+       * of the NotificationChannel objects referenced in the
+       * notification_channels field of this AlertPolicy.
+       * The format is:
        *
+       *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+       * 
* + * repeated string notification_channel_names = 1; + * @param index The index of the element to return. + * @return The notificationChannelNames at the given index. + */ + java.lang.String getNotificationChannelNames(int index); + /** *
-       * Not more than one notification per `period`.
-       * 
+ * The full REST resource name for the notification channels that these + * settings apply to. Each of these correspond to the name field in one + * of the NotificationChannel objects referenced in the + * notification_channels field of this AlertPolicy. + * The format is: * - * .google.protobuf.Duration period = 1; + * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + *
* - * @return The period. + * repeated string notification_channel_names = 1; + * @param index The index of the value to return. + * @return The bytes of the notificationChannelNames at the given index. */ - com.google.protobuf.Duration getPeriod(); + com.google.protobuf.ByteString + getNotificationChannelNamesBytes(int index); + /** + *
+       * The frequency at which to send reminder notifications for open
+       * incidents.
+       * 
* + * .google.protobuf.Duration renotify_interval = 2; + * @return Whether the renotifyInterval field is set. + */ + boolean hasRenotifyInterval(); + /** + *
+       * The frequency at which to send reminder notifications for open
+       * incidents.
+       * 
* + * .google.protobuf.Duration renotify_interval = 2; + * @return The renotifyInterval. + */ + com.google.protobuf.Duration getRenotifyInterval(); + /** *
-       * Not more than one notification per `period`.
+       * The frequency at which to send reminder notifications for open
+       * incidents.
        * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - com.google.protobuf.DurationOrBuilder getPeriodOrBuilder(); + com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder(); } /** - * - * *
-     * Control over the rate of notifications sent to this alert policy's
-     * notification channels.
+     * Control over how the notification channels in `notification_channels`
+     * are notified when this alert fires, on a per-channel basis.
      * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} */ - public static final class NotificationRateLimit extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) - NotificationRateLimitOrBuilder { - private static final long serialVersionUID = 0L; - // Use NotificationRateLimit.newBuilder() to construct. - private NotificationRateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + public static final class NotificationChannelStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) + NotificationChannelStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationChannelStrategy.newBuilder() to construct. + private NotificationChannelStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private NotificationRateLimit() {} + private NotificationChannelStrategy() { + notificationChannelNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NotificationRateLimit(); + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NotificationChannelStrategy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder - .class); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder.class); } - public static final int PERIOD_FIELD_NUMBER = 1; - private com.google.protobuf.Duration period_; + public static final int NOTIFICATION_CHANNEL_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList notificationChannelNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** + *
+       * The full REST resource name for the notification channels that these
+       * settings apply to. Each of these correspond to the name field in one
+       * of the NotificationChannel objects referenced in the
+       * notification_channels field of this AlertPolicy.
+       * The format is:
        *
+       *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+       * 
* + * repeated string notification_channel_names = 1; + * @return A list containing the notificationChannelNames. + */ + public com.google.protobuf.ProtocolStringList + getNotificationChannelNamesList() { + return notificationChannelNames_; + } + /** *
-       * Not more than one notification per `period`.
-       * 
+ * The full REST resource name for the notification channels that these + * settings apply to. Each of these correspond to the name field in one + * of the NotificationChannel objects referenced in the + * notification_channels field of this AlertPolicy. + * The format is: * - * .google.protobuf.Duration period = 1; + * projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + *
* - * @return Whether the period field is set. + * repeated string notification_channel_names = 1; + * @return The count of notificationChannelNames. */ - @java.lang.Override - public boolean hasPeriod() { - return period_ != null; + public int getNotificationChannelNamesCount() { + return notificationChannelNames_.size(); } /** + *
+       * The full REST resource name for the notification channels that these
+       * settings apply to. Each of these correspond to the name field in one
+       * of the NotificationChannel objects referenced in the
+       * notification_channels field of this AlertPolicy.
+       * The format is:
        *
+       *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+       * 
* + * repeated string notification_channel_names = 1; + * @param index The index of the element to return. + * @return The notificationChannelNames at the given index. + */ + public java.lang.String getNotificationChannelNames(int index) { + return notificationChannelNames_.get(index); + } + /** *
-       * Not more than one notification per `period`.
+       * The full REST resource name for the notification channels that these
+       * settings apply to. Each of these correspond to the name field in one
+       * of the NotificationChannel objects referenced in the
+       * notification_channels field of this AlertPolicy.
+       * The format is:
+       *
+       *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
        * 
* - * .google.protobuf.Duration period = 1; + * repeated string notification_channel_names = 1; + * @param index The index of the value to return. + * @return The bytes of the notificationChannelNames at the given index. + */ + public com.google.protobuf.ByteString + getNotificationChannelNamesBytes(int index) { + return notificationChannelNames_.getByteString(index); + } + + public static final int RENOTIFY_INTERVAL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration renotifyInterval_; + /** + *
+       * The frequency at which to send reminder notifications for open
+       * incidents.
+       * 
* - * @return The period. + * .google.protobuf.Duration renotify_interval = 2; + * @return Whether the renotifyInterval field is set. */ @java.lang.Override - public com.google.protobuf.Duration getPeriod() { - return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + public boolean hasRenotifyInterval() { + return renotifyInterval_ != null; } /** + *
+       * The frequency at which to send reminder notifications for open
+       * incidents.
+       * 
* - * + * .google.protobuf.Duration renotify_interval = 2; + * @return The renotifyInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getRenotifyInterval() { + return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; + } + /** *
-       * Not more than one notification per `period`.
+       * The frequency at which to send reminder notifications for open
+       * incidents.
        * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ @java.lang.Override - public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { - return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder() { + return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14435,9 +17741,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (period_ != null) { - output.writeMessage(1, getPeriod()); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < notificationChannelNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationChannelNames_.getRaw(i)); + } + if (renotifyInterval_ != null) { + output.writeMessage(2, getRenotifyInterval()); } getUnknownFields().writeTo(output); } @@ -14448,8 +17758,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (period_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPeriod()); + { + int dataSize = 0; + for (int i = 0; i < notificationChannelNames_.size(); i++) { + dataSize += computeStringSizeNoTag(notificationChannelNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getNotificationChannelNamesList().size(); + } + if (renotifyInterval_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRenotifyInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14459,18 +17778,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)) { + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other = - (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) obj; + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) obj; - if (hasPeriod() != other.hasPeriod()) return false; - if (hasPeriod()) { - if (!getPeriod().equals(other.getPeriod())) return false; + if (!getNotificationChannelNamesList() + .equals(other.getNotificationChannelNamesList())) return false; + if (hasRenotifyInterval() != other.hasRenotifyInterval()) return false; + if (hasRenotifyInterval()) { + if (!getRenotifyInterval() + .equals(other.getRenotifyInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -14483,112 +17803,103 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPeriod()) { - hash = (37 * hash) + PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getPeriod().hashCode(); + if (getNotificationChannelNamesCount() > 0) { + hash = (37 * hash) + NOTIFICATION_CHANNEL_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNotificationChannelNamesList().hashCode(); + } + if (hasRenotifyInterval()) { + hash = (37 * hash) + RENOTIFY_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getRenotifyInterval().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit prototype) { + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -14598,73 +17909,68 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-       * Control over the rate of notifications sent to this alert policy's
-       * notification channels.
+       * Control over how the notification channels in `notification_channels`
+       * are notified when this alert fires, on a per-channel basis.
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit} + * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder - .class); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder.class); } - // Construct using - // com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - period_ = null; - if (periodBuilder_ != null) { - periodBuilder_.dispose(); - periodBuilder_ = null; + notificationChannelNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + renotifyInterval_ = null; + if (renotifyIntervalBuilder_ != null) { + renotifyIntervalBuilder_.dispose(); + renotifyIntervalBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit build() { - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = - buildPartial(); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy build() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14672,22 +17978,23 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - buildPartial() { - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = - new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy buildPartial() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result) { + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build(); + notificationChannelNames_.makeImmutable(); + result.notificationChannelNames_ = notificationChannelNames_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.renotifyInterval_ = renotifyIntervalBuilder_ == null + ? renotifyInterval_ + : renotifyIntervalBuilder_.build(); } } @@ -14695,56 +18002,58 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) { - return mergeFrom( - (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) other); + if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other) { - if (other - == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance()) return this; - if (other.hasPeriod()) { - mergePeriod(other.getPeriod()); + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other) { + if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()) return this; + if (!other.notificationChannelNames_.isEmpty()) { + if (notificationChannelNames_.isEmpty()) { + notificationChannelNames_ = other.notificationChannelNames_; + bitField0_ |= 0x00000001; + } else { + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.addAll(other.notificationChannelNames_); + } + onChanged(); + } + if (other.hasRenotifyInterval()) { + mergeRenotifyInterval(other.getRenotifyInterval()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -14772,19 +18081,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.add(s); + break; + } // case 10 + case 18: { + input.readMessage( + getRenotifyIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14794,188 +18109,372 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList notificationChannelNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNotificationChannelNamesIsMutable() { + if (!notificationChannelNames_.isModifiable()) { + notificationChannelNames_ = new com.google.protobuf.LazyStringArrayList(notificationChannelNames_); + } + bitField0_ |= 0x00000001; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @return A list containing the notificationChannelNames. + */ + public com.google.protobuf.ProtocolStringList + getNotificationChannelNamesList() { + notificationChannelNames_.makeImmutable(); + return notificationChannelNames_; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @return The count of notificationChannelNames. + */ + public int getNotificationChannelNamesCount() { + return notificationChannelNames_.size(); + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param index The index of the element to return. + * @return The notificationChannelNames at the given index. + */ + public java.lang.String getNotificationChannelNames(int index) { + return notificationChannelNames_.get(index); + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param index The index of the value to return. + * @return The bytes of the notificationChannelNames at the given index. + */ + public com.google.protobuf.ByteString + getNotificationChannelNamesBytes(int index) { + return notificationChannelNames_.getByteString(index); + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param index The index to set the value at. + * @param value The notificationChannelNames to set. + * @return This builder for chaining. + */ + public Builder setNotificationChannelNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param value The notificationChannelNames to add. + * @return This builder for chaining. + */ + public Builder addNotificationChannelNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param values The notificationChannelNames to add. + * @return This builder for chaining. + */ + public Builder addAllNotificationChannelNames( + java.lang.Iterable values) { + ensureNotificationChannelNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationChannelNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @return This builder for chaining. + */ + public Builder clearNotificationChannelNames() { + notificationChannelNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+         * The full REST resource name for the notification channels that these
+         * settings apply to. Each of these correspond to the name field in one
+         * of the NotificationChannel objects referenced in the
+         * notification_channels field of this AlertPolicy.
+         * The format is:
+         *
+         *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+         * 
+ * + * repeated string notification_channel_names = 1; + * @param value The bytes of the notificationChannelNames to add. + * @return This builder for chaining. + */ + public Builder addNotificationChannelNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private int bitField0_; - - private com.google.protobuf.Duration period_; + private com.google.protobuf.Duration renotifyInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - periodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> renotifyIntervalBuilder_; /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; - * - * @return Whether the period field is set. + * .google.protobuf.Duration renotify_interval = 2; + * @return Whether the renotifyInterval field is set. */ - public boolean hasPeriod() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasRenotifyInterval() { + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; - * - * @return The period. + * .google.protobuf.Duration renotify_interval = 2; + * @return The renotifyInterval. */ - public com.google.protobuf.Duration getPeriod() { - if (periodBuilder_ == null) { - return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + public com.google.protobuf.Duration getRenotifyInterval() { + if (renotifyIntervalBuilder_ == null) { + return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; } else { - return periodBuilder_.getMessage(); + return renotifyIntervalBuilder_.getMessage(); } } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public Builder setPeriod(com.google.protobuf.Duration value) { - if (periodBuilder_ == null) { + public Builder setRenotifyInterval(com.google.protobuf.Duration value) { + if (renotifyIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - period_ = value; + renotifyInterval_ = value; } else { - periodBuilder_.setMessage(value); + renotifyIntervalBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) { - if (periodBuilder_ == null) { - period_ = builderForValue.build(); + public Builder setRenotifyInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (renotifyIntervalBuilder_ == null) { + renotifyInterval_ = builderForValue.build(); } else { - periodBuilder_.setMessage(builderForValue.build()); + renotifyIntervalBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public Builder mergePeriod(com.google.protobuf.Duration value) { - if (periodBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && period_ != null - && period_ != com.google.protobuf.Duration.getDefaultInstance()) { - getPeriodBuilder().mergeFrom(value); + public Builder mergeRenotifyInterval(com.google.protobuf.Duration value) { + if (renotifyIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + renotifyInterval_ != null && + renotifyInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRenotifyIntervalBuilder().mergeFrom(value); } else { - period_ = value; + renotifyInterval_ = value; } } else { - periodBuilder_.mergeFrom(value); + renotifyIntervalBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public Builder clearPeriod() { - bitField0_ = (bitField0_ & ~0x00000001); - period_ = null; - if (periodBuilder_ != null) { - periodBuilder_.dispose(); - periodBuilder_ = null; + public Builder clearRenotifyInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + renotifyInterval_ = null; + if (renotifyIntervalBuilder_ != null) { + renotifyIntervalBuilder_.dispose(); + renotifyIntervalBuilder_ = null; } onChanged(); return this; } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public com.google.protobuf.Duration.Builder getPeriodBuilder() { - bitField0_ |= 0x00000001; + public com.google.protobuf.Duration.Builder getRenotifyIntervalBuilder() { + bitField0_ |= 0x00000002; onChanged(); - return getPeriodFieldBuilder().getBuilder(); + return getRenotifyIntervalFieldBuilder().getBuilder(); } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ - public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { - if (periodBuilder_ != null) { - return periodBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder() { + if (renotifyIntervalBuilder_ != null) { + return renotifyIntervalBuilder_.getMessageOrBuilder(); } else { - return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; + return renotifyInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; } } /** - * - * *
-         * Not more than one notification per `period`.
+         * The frequency at which to send reminder notifications for open
+         * incidents.
          * 
* - * .google.protobuf.Duration period = 1; + * .google.protobuf.Duration renotify_interval = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getPeriodFieldBuilder() { - if (periodBuilder_ == null) { - periodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getPeriod(), getParentForChildren(), isClean()); - period_ = null; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getRenotifyIntervalFieldBuilder() { + if (renotifyIntervalBuilder_ == null) { + renotifyIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRenotifyInterval(), + getParentForChildren(), + isClean()); + renotifyInterval_ = null; } - return periodBuilder_; + return renotifyIntervalBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14988,78 +18487,68 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) - } - // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) - private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - DEFAULT_INSTANCE; + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) + } + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) + private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy(); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationRateLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationChannelStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NOTIFICATION_RATE_LIMIT_FIELD_NUMBER = 1; - private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - notificationRateLimit_; + private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notificationRateLimit_; /** - * - * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; * @return Whether the notificationRateLimit field is set. */ @java.lang.Override @@ -15067,62 +18556,42 @@ public boolean hasNotificationRateLimit() { return notificationRateLimit_ != null; } /** - * - * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; * @return The notificationRateLimit. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getNotificationRateLimit() { - return notificationRateLimit_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance() - : notificationRateLimit_; + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit() { + return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; } /** - * - * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder - getNotificationRateLimitOrBuilder() { - return notificationRateLimit_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance() - : notificationRateLimit_; + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder() { + return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; } public static final int AUTO_CLOSE_FIELD_NUMBER = 3; private com.google.protobuf.Duration autoClose_; /** - * - * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; - * * @return Whether the autoClose field is set. */ @java.lang.Override @@ -15130,15 +18599,12 @@ public boolean hasAutoClose() { return autoClose_ != null; } /** - * - * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; - * * @return The autoClose. */ @java.lang.Override @@ -15146,8 +18612,6 @@ public com.google.protobuf.Duration getAutoClose() { return autoClose_ == null ? com.google.protobuf.Duration.getDefaultInstance() : autoClose_; } /** - * - * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
@@ -15160,8 +18624,68 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() {
       return autoClose_ == null ? com.google.protobuf.Duration.getDefaultInstance() : autoClose_;
     }
 
-    private byte memoizedIsInitialized = -1;
+    public static final int NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER = 4;
+    @SuppressWarnings("serial")
+    private java.util.List notificationChannelStrategy_;
+    /**
+     * 
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + @java.lang.Override + public java.util.List getNotificationChannelStrategyList() { + return notificationChannelStrategy_; + } + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + @java.lang.Override + public java.util.List + getNotificationChannelStrategyOrBuilderList() { + return notificationChannelStrategy_; + } + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + @java.lang.Override + public int getNotificationChannelStrategyCount() { + return notificationChannelStrategy_.size(); + } + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index) { + return notificationChannelStrategy_.get(index); + } + /** + *
+     * Control how notifications will be sent out, on a per-channel basis.
+     * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( + int index) { + return notificationChannelStrategy_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15173,13 +18697,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (notificationRateLimit_ != null) { output.writeMessage(1, getNotificationRateLimit()); } if (autoClose_ != null) { output.writeMessage(3, getAutoClose()); } + for (int i = 0; i < notificationChannelStrategy_.size(); i++) { + output.writeMessage(4, notificationChannelStrategy_.get(i)); + } getUnknownFields().writeTo(output); } @@ -15190,11 +18718,16 @@ public int getSerializedSize() { size = 0; if (notificationRateLimit_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationRateLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNotificationRateLimit()); } if (autoClose_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutoClose()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAutoClose()); + } + for (int i = 0; i < notificationChannelStrategy_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, notificationChannelStrategy_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15204,22 +18737,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.AlertStrategy other = - (com.google.monitoring.v3.AlertPolicy.AlertStrategy) obj; + com.google.monitoring.v3.AlertPolicy.AlertStrategy other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy) obj; if (hasNotificationRateLimit() != other.hasNotificationRateLimit()) return false; if (hasNotificationRateLimit()) { - if (!getNotificationRateLimit().equals(other.getNotificationRateLimit())) return false; + if (!getNotificationRateLimit() + .equals(other.getNotificationRateLimit())) return false; } if (hasAutoClose() != other.hasAutoClose()) return false; if (hasAutoClose()) { - if (!getAutoClose().equals(other.getAutoClose())) return false; + if (!getAutoClose() + .equals(other.getAutoClose())) return false; } + if (!getNotificationChannelStrategyList() + .equals(other.getNotificationChannelStrategyList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15239,99 +18775,99 @@ public int hashCode() { hash = (37 * hash) + AUTO_CLOSE_FIELD_NUMBER; hash = (53 * hash) + getAutoClose().hashCode(); } + if (getNotificationChannelStrategyCount() > 0) { + hash = (37 * hash) + NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getNotificationChannelStrategyList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -15341,8 +18877,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Control over how the notification channels in `notification_channels`
      * are notified when this alert fires.
@@ -15350,33 +18884,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy)
         com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.AlertStrategy.class,
-                com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -15391,13 +18925,20 @@ public Builder clear() {
           autoCloseBuilder_.dispose();
           autoCloseBuilder_ = null;
         }
+        if (notificationChannelStrategyBuilder_ == null) {
+          notificationChannelStrategy_ = java.util.Collections.emptyList();
+        } else {
+          notificationChannelStrategy_ = null;
+          notificationChannelStrategyBuilder_.clear();
+        }
+        bitField0_ = (bitField0_ & ~0x00000004);
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.AlertProto
-            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
       }
 
       @java.lang.Override
@@ -15416,25 +18957,36 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.AlertStrategy buildPartial() {
-        com.google.monitoring.v3.AlertPolicy.AlertStrategy result =
-            new com.google.monitoring.v3.AlertPolicy.AlertStrategy(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.AlertPolicy.AlertStrategy result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy(this);
+        buildPartialRepeatedFields(result);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
+      private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.AlertStrategy result) {
+        if (notificationChannelStrategyBuilder_ == null) {
+          if (((bitField0_ & 0x00000004) != 0)) {
+            notificationChannelStrategy_ = java.util.Collections.unmodifiableList(notificationChannelStrategy_);
+            bitField0_ = (bitField0_ & ~0x00000004);
+          }
+          result.notificationChannelStrategy_ = notificationChannelStrategy_;
+        } else {
+          result.notificationChannelStrategy_ = notificationChannelStrategyBuilder_.build();
+        }
+      }
+
       private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.notificationRateLimit_ =
-              notificationRateLimitBuilder_ == null
-                  ? notificationRateLimit_
-                  : notificationRateLimitBuilder_.build();
+          result.notificationRateLimit_ = notificationRateLimitBuilder_ == null
+              ? notificationRateLimit_
+              : notificationRateLimitBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.autoClose_ = autoCloseBuilder_ == null ? autoClose_ : autoCloseBuilder_.build();
+          result.autoClose_ = autoCloseBuilder_ == null
+              ? autoClose_
+              : autoCloseBuilder_.build();
         }
       }
 
@@ -15442,41 +18994,38 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy re
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy) {
-          return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy) other);
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -15484,14 +19033,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy other) {
-        if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) return this;
         if (other.hasNotificationRateLimit()) {
           mergeNotificationRateLimit(other.getNotificationRateLimit());
         }
         if (other.hasAutoClose()) {
           mergeAutoClose(other.getAutoClose());
         }
+        if (notificationChannelStrategyBuilder_ == null) {
+          if (!other.notificationChannelStrategy_.isEmpty()) {
+            if (notificationChannelStrategy_.isEmpty()) {
+              notificationChannelStrategy_ = other.notificationChannelStrategy_;
+              bitField0_ = (bitField0_ & ~0x00000004);
+            } else {
+              ensureNotificationChannelStrategyIsMutable();
+              notificationChannelStrategy_.addAll(other.notificationChannelStrategy_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.notificationChannelStrategy_.isEmpty()) {
+            if (notificationChannelStrategyBuilder_.isEmpty()) {
+              notificationChannelStrategyBuilder_.dispose();
+              notificationChannelStrategyBuilder_ = null;
+              notificationChannelStrategy_ = other.notificationChannelStrategy_;
+              bitField0_ = (bitField0_ & ~0x00000004);
+              notificationChannelStrategyBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getNotificationChannelStrategyFieldBuilder() : null;
+            } else {
+              notificationChannelStrategyBuilder_.addAllMessages(other.notificationChannelStrategy_);
+            }
+          }
+        }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -15518,26 +19092,39 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getNotificationRateLimitFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 26:
-                {
-                  input.readMessage(getAutoCloseFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getNotificationRateLimitFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 26: {
+                input.readMessage(
+                    getAutoCloseFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+              case 34: {
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy m =
+                    input.readMessage(
+                        com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.parser(),
+                        extensionRegistry);
+                if (notificationChannelStrategyBuilder_ == null) {
+                  ensureNotificationChannelStrategyIsMutable();
+                  notificationChannelStrategy_.add(m);
+                } else {
+                  notificationChannelStrategyBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -15547,75 +19134,51 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
-          notificationRateLimit_;
+      private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notificationRateLimit_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit,
-              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder,
-              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>
-          notificationRateLimitBuilder_;
+          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> notificationRateLimitBuilder_;
       /**
-       *
-       *
        * 
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; * @return Whether the notificationRateLimit field is set. */ public boolean hasNotificationRateLimit() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; * @return The notificationRateLimit. */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - getNotificationRateLimit() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit() { if (notificationRateLimitBuilder_ == null) { - return notificationRateLimit_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance() - : notificationRateLimit_; + return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; } else { return notificationRateLimitBuilder_.getMessage(); } } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ - public Builder setNotificationRateLimit( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { + public Builder setNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { if (notificationRateLimitBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15629,21 +19192,16 @@ public Builder setNotificationRateLimit( return this; } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ public Builder setNotificationRateLimit( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder - builderForValue) { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue) { if (notificationRateLimitBuilder_ == null) { notificationRateLimit_ = builderForValue.build(); } else { @@ -15654,26 +19212,19 @@ public Builder setNotificationRateLimit( return this; } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ - public Builder mergeNotificationRateLimit( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { + public Builder mergeNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { if (notificationRateLimitBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && notificationRateLimit_ != null - && notificationRateLimit_ - != com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + notificationRateLimit_ != null && + notificationRateLimit_ != com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance()) { getNotificationRateLimitBuilder().mergeFrom(value); } else { notificationRateLimit_ = value; @@ -15686,17 +19237,13 @@ public Builder mergeNotificationRateLimit( return this; } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ public Builder clearNotificationRateLimit() { bitField0_ = (bitField0_ & ~0x00000001); @@ -15709,271 +19256,534 @@ public Builder clearNotificationRateLimit() { return this; } /** - * - * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder - getNotificationRateLimitBuilder() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder getNotificationRateLimitBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNotificationRateLimitFieldBuilder().getBuilder(); } /** - * - * *
-       * Required for alert policies with a `LogMatch` condition.
-       *
-       * This limit is not implemented for alert policies that are not log-based.
+       * Required for alert policies with a `LogMatch` condition.
+       *
+       * This limit is not implemented for alert policies that are not log-based.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder() { + if (notificationRateLimitBuilder_ != null) { + return notificationRateLimitBuilder_.getMessageOrBuilder(); + } else { + return notificationRateLimit_ == null ? + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; + } + } + /** + *
+       * Required for alert policies with a `LogMatch` condition.
+       *
+       * This limit is not implemented for alert policies that are not log-based.
+       * 
+ * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> + getNotificationRateLimitFieldBuilder() { + if (notificationRateLimitBuilder_ == null) { + notificationRateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>( + getNotificationRateLimit(), + getParentForChildren(), + isClean()); + notificationRateLimit_ = null; + } + return notificationRateLimitBuilder_; + } + + private com.google.protobuf.Duration autoClose_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> autoCloseBuilder_; + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + * @return Whether the autoClose field is set. + */ + public boolean hasAutoClose() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + * @return The autoClose. + */ + public com.google.protobuf.Duration getAutoClose() { + if (autoCloseBuilder_ == null) { + return autoClose_ == null ? com.google.protobuf.Duration.getDefaultInstance() : autoClose_; + } else { + return autoCloseBuilder_.getMessage(); + } + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public Builder setAutoClose(com.google.protobuf.Duration value) { + if (autoCloseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoClose_ = value; + } else { + autoCloseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public Builder setAutoClose( + com.google.protobuf.Duration.Builder builderForValue) { + if (autoCloseBuilder_ == null) { + autoClose_ = builderForValue.build(); + } else { + autoCloseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public Builder mergeAutoClose(com.google.protobuf.Duration value) { + if (autoCloseBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + autoClose_ != null && + autoClose_ != com.google.protobuf.Duration.getDefaultInstance()) { + getAutoCloseBuilder().mergeFrom(value); + } else { + autoClose_ = value; + } + } else { + autoCloseBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public Builder clearAutoClose() { + bitField0_ = (bitField0_ & ~0x00000002); + autoClose_ = null; + if (autoCloseBuilder_ != null) { + autoCloseBuilder_.dispose(); + autoCloseBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public com.google.protobuf.Duration.Builder getAutoCloseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAutoCloseFieldBuilder().getBuilder(); + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() { + if (autoCloseBuilder_ != null) { + return autoCloseBuilder_.getMessageOrBuilder(); + } else { + return autoClose_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : autoClose_; + } + } + /** + *
+       * If an alert policy that was active has no data for this long, any open
+       * incidents will close
+       * 
+ * + * .google.protobuf.Duration auto_close = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getAutoCloseFieldBuilder() { + if (autoCloseBuilder_ == null) { + autoCloseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getAutoClose(), + getParentForChildren(), + isClean()); + autoClose_ = null; + } + return autoCloseBuilder_; + } + + private java.util.List notificationChannelStrategy_ = + java.util.Collections.emptyList(); + private void ensureNotificationChannelStrategyIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + notificationChannelStrategy_ = new java.util.ArrayList(notificationChannelStrategy_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> notificationChannelStrategyBuilder_; + + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public java.util.List getNotificationChannelStrategyList() { + if (notificationChannelStrategyBuilder_ == null) { + return java.util.Collections.unmodifiableList(notificationChannelStrategy_); + } else { + return notificationChannelStrategyBuilder_.getMessageList(); + } + } + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public int getNotificationChannelStrategyCount() { + if (notificationChannelStrategyBuilder_ == null) { + return notificationChannelStrategy_.size(); + } else { + return notificationChannelStrategyBuilder_.getCount(); + } + } + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index) { + if (notificationChannelStrategyBuilder_ == null) { + return notificationChannelStrategy_.get(index); + } else { + return notificationChannelStrategyBuilder_.getMessage(index); + } + } + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
+ * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public Builder setNotificationChannelStrategy( + int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + if (notificationChannelStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.set(index, value); + onChanged(); + } else { + notificationChannelStrategyBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder - getNotificationRateLimitOrBuilder() { - if (notificationRateLimitBuilder_ != null) { - return notificationRateLimitBuilder_.getMessageOrBuilder(); + public Builder setNotificationChannelStrategy( + int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + if (notificationChannelStrategyBuilder_ == null) { + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.set(index, builderForValue.build()); + onChanged(); } else { - return notificationRateLimit_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit - .getDefaultInstance() - : notificationRateLimit_; + notificationChannelStrategyBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** - * - * *
-       * Required for alert policies with a `LogMatch` condition.
-       *
-       * This limit is not implemented for alert policies that are not log-based.
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; - * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> - getNotificationRateLimitFieldBuilder() { - if (notificationRateLimitBuilder_ == null) { - notificationRateLimitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, - com.google.monitoring.v3.AlertPolicy.AlertStrategy - .NotificationRateLimitOrBuilder>( - getNotificationRateLimit(), getParentForChildren(), isClean()); - notificationRateLimit_ = null; + public Builder addNotificationChannelStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + if (notificationChannelStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.add(value); + onChanged(); + } else { + notificationChannelStrategyBuilder_.addMessage(value); } - return notificationRateLimitBuilder_; + return this; } - - private com.google.protobuf.Duration autoClose_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - autoCloseBuilder_; /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; - * - * @return Whether the autoClose field is set. + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public boolean hasAutoClose() { - return ((bitField0_ & 0x00000002) != 0); + public Builder addNotificationChannelStrategy( + int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + if (notificationChannelStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.add(index, value); + onChanged(); + } else { + notificationChannelStrategyBuilder_.addMessage(index, value); + } + return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; - * - * @return The autoClose. + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public com.google.protobuf.Duration getAutoClose() { - if (autoCloseBuilder_ == null) { - return autoClose_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : autoClose_; + public Builder addNotificationChannelStrategy( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + if (notificationChannelStrategyBuilder_ == null) { + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.add(builderForValue.build()); + onChanged(); } else { - return autoCloseBuilder_.getMessage(); + notificationChannelStrategyBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public Builder setAutoClose(com.google.protobuf.Duration value) { - if (autoCloseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoClose_ = value; + public Builder addNotificationChannelStrategy( + int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + if (notificationChannelStrategyBuilder_ == null) { + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.add(index, builderForValue.build()); + onChanged(); } else { - autoCloseBuilder_.setMessage(value); + notificationChannelStrategyBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000002; - onChanged(); return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public Builder setAutoClose(com.google.protobuf.Duration.Builder builderForValue) { - if (autoCloseBuilder_ == null) { - autoClose_ = builderForValue.build(); + public Builder addAllNotificationChannelStrategy( + java.lang.Iterable values) { + if (notificationChannelStrategyBuilder_ == null) { + ensureNotificationChannelStrategyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationChannelStrategy_); + onChanged(); } else { - autoCloseBuilder_.setMessage(builderForValue.build()); + notificationChannelStrategyBuilder_.addAllMessages(values); } - bitField0_ |= 0x00000002; - onChanged(); return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public Builder mergeAutoClose(com.google.protobuf.Duration value) { - if (autoCloseBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && autoClose_ != null - && autoClose_ != com.google.protobuf.Duration.getDefaultInstance()) { - getAutoCloseBuilder().mergeFrom(value); - } else { - autoClose_ = value; - } + public Builder clearNotificationChannelStrategy() { + if (notificationChannelStrategyBuilder_ == null) { + notificationChannelStrategy_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); } else { - autoCloseBuilder_.mergeFrom(value); + notificationChannelStrategyBuilder_.clear(); } - bitField0_ |= 0x00000002; - onChanged(); return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public Builder clearAutoClose() { - bitField0_ = (bitField0_ & ~0x00000002); - autoClose_ = null; - if (autoCloseBuilder_ != null) { - autoCloseBuilder_.dispose(); - autoCloseBuilder_ = null; + public Builder removeNotificationChannelStrategy(int index) { + if (notificationChannelStrategyBuilder_ == null) { + ensureNotificationChannelStrategyIsMutable(); + notificationChannelStrategy_.remove(index); + onChanged(); + } else { + notificationChannelStrategyBuilder_.remove(index); } - onChanged(); return this; } /** - * - * *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public com.google.protobuf.Duration.Builder getAutoCloseBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAutoCloseFieldBuilder().getBuilder(); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder getNotificationChannelStrategyBuilder( + int index) { + return getNotificationChannelStrategyFieldBuilder().getBuilder(index); } /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
* - * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( + int index) { + if (notificationChannelStrategyBuilder_ == null) { + return notificationChannelStrategy_.get(index); } else { + return notificationChannelStrategyBuilder_.getMessageOrBuilder(index); + } + } + /** *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() { - if (autoCloseBuilder_ != null) { - return autoCloseBuilder_.getMessageOrBuilder(); + public java.util.List + getNotificationChannelStrategyOrBuilderList() { + if (notificationChannelStrategyBuilder_ != null) { + return notificationChannelStrategyBuilder_.getMessageOrBuilderList(); } else { - return autoClose_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : autoClose_; + return java.util.Collections.unmodifiableList(notificationChannelStrategy_); } } /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
* + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder() { + return getNotificationChannelStrategyFieldBuilder().addBuilder( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()); + } + /** + *
+       * Control how notifications will be sent out, on a per-channel basis.
+       * 
* + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder( + int index) { + return getNotificationChannelStrategyFieldBuilder().addBuilder( + index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()); + } + /** *
-       * If an alert policy that was active has no data for this long, any open
-       * incidents will close
+       * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * .google.protobuf.Duration auto_close = 3; + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getAutoCloseFieldBuilder() { - if (autoCloseBuilder_ == null) { - autoCloseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getAutoClose(), getParentForChildren(), isClean()); - autoClose_ = null; + public java.util.List + getNotificationChannelStrategyBuilderList() { + return getNotificationChannelStrategyFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> + getNotificationChannelStrategyFieldBuilder() { + if (notificationChannelStrategyBuilder_ == null) { + notificationChannelStrategyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder>( + notificationChannelStrategy_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + notificationChannelStrategy_ = null; } - return autoCloseBuilder_; + return notificationChannelStrategyBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15986,12 +19796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy) private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy(); } @@ -16000,28 +19810,27 @@ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16036,15 +19845,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -16059,7 +19866,6 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForT
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -16068,15 +19874,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -16091,15 +19896,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -16108,21 +19914,23 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
    * display name for multiple policies in the same project. The name is
    * limited to 512 Unicode characters.
+   *
+   * The convention for the display_name of a PrometheusQueryLanguageCondition
+   * is "{rule group name}/{alert name}", where the {rule group name} and
+   * {alert name} should be taken from the corresponding Prometheus
+   * configuration file. This convention is not enforced.
+   * In any case the display_name is not a unique key of the AlertPolicy.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -16131,32 +19939,38 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
    * display name for multiple policies in the same project. The name is
    * limited to 512 Unicode characters.
+   *
+   * The convention for the display_name of a PrometheusQueryLanguageCondition
+   * is "{rule group name}/{alert name}", where the {rule group name} and
+   * {alert name} should be taken from the corresponding Prometheus
+   * configuration file. This convention is not enforced.
+   * In any case the display_name is not a unique key of the AlertPolicy.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -16167,8 +19981,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DOCUMENTATION_FIELD_NUMBER = 13; private com.google.monitoring.v3.AlertPolicy.Documentation documentation_; /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -16178,7 +19990,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return Whether the documentation field is set. */ @java.lang.Override @@ -16186,8 +19997,6 @@ public boolean hasDocumentation() { return documentation_ != null; } /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -16197,18 +20006,13 @@ public boolean hasDocumentation() {
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return The documentation. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() { - return documentation_ == null - ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() - : documentation_; + return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_; } /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -16221,40 +20025,36 @@ public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentationOrBuilder() {
-    return documentation_ == null
-        ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()
-        : documentation_;
+    return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_;
   }
 
   public static final int USER_LABELS_FIELD_NUMBER = 16;
-
   private static final class UserLabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.monitoring.v3.AlertProto
-                .internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField userLabels_;
-
-  private com.google.protobuf.MapField internalGetUserLabels() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> userLabels_;
+  private com.google.protobuf.MapField
+  internalGetUserLabels() {
     if (userLabels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          UserLabelsDefaultEntryHolder.defaultEntry);
     }
     return userLabels_;
   }
-
   public int getUserLabelsCount() {
     return internalGetUserLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -16263,26 +20063,32 @@ public int getUserLabelsCount() {
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public boolean containsUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } - /** Use {@link #getUserLabelsMap()} instead. */ + /** + * Use {@link #getUserLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserLabels() { return getUserLabelsMap(); } /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -16291,6 +20097,13 @@ public java.util.Map getUserLabels() {
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; @@ -16300,8 +20113,6 @@ public java.util.Map getUserLabelsMap() { return internalGetUserLabels().getMap(); } /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -16310,24 +20121,29 @@ public java.util.Map getUserLabelsMap() {
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public /* nullable */ java.lang.String getUserLabelsOrDefault( + public /* nullable */ +java.lang.String getUserLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -16336,16 +20152,23 @@ public java.util.Map getUserLabelsMap() {
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public java.lang.String getUserLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -16353,12 +20176,9 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public static final int CONDITIONS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -16366,6 +20186,8 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -16375,8 +20197,6 @@ public java.util.List getConditi return conditions_; } /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -16384,18 +20204,18 @@ public java.util.List getConditi
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ @java.lang.Override - public java.util.List + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -16403,6 +20223,8 @@ public java.util.List getConditi
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -16412,8 +20234,6 @@ public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -16421,6 +20241,8 @@ public int getConditionsCount() {
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -16430,8 +20252,6 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -16439,20 +20259,21 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(int index) { + public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } public static final int COMBINER_FIELD_NUMBER = 6; private int combiner_ = 0; /** - * - * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -16461,16 +20282,12 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The enum numeric value on the wire for combiner. */ - @java.lang.Override - public int getCombinerValue() { + @java.lang.Override public int getCombinerValue() { return combiner_; } /** - * - * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -16479,23 +20296,16 @@ public int getCombinerValue() {
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The combiner. */ - @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); + return result == null ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED : result; } public static final int ENABLED_FIELD_NUMBER = 17; private com.google.protobuf.BoolValue enabled_; /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -16505,7 +20315,6 @@ public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner()
    * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return Whether the enabled field is set. */ @java.lang.Override @@ -16513,8 +20322,6 @@ public boolean hasEnabled() { return enabled_ != null; } /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -16524,7 +20331,6 @@ public boolean hasEnabled() {
    * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return The enabled. */ @java.lang.Override @@ -16532,8 +20338,6 @@ public com.google.protobuf.BoolValue getEnabled() { return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_; } /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -16552,15 +20356,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
   public static final int VALIDITY_FIELD_NUMBER = 18;
   private com.google.rpc.Status validity_;
   /**
-   *
-   *
    * 
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; - * * @return Whether the validity field is set. */ @java.lang.Override @@ -16568,15 +20370,13 @@ public boolean hasValidity() { return validity_ != null; } /** - * - * *
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; - * * @return The validity. */ @java.lang.Override @@ -16584,11 +20384,10 @@ public com.google.rpc.Status getValidity() { return validity_ == null ? com.google.rpc.Status.getDefaultInstance() : validity_; } /** - * - * *
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; @@ -16599,13 +20398,10 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() { } public static final int NOTIFICATION_CHANNELS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -16620,15 +20416,13 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
    * 
* * repeated string notification_channels = 14; - * * @return A list containing the notificationChannels. */ - public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getNotificationChannelsList() { return notificationChannels_; } /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -16643,15 +20437,12 @@ public com.google.protobuf.ProtocolStringList getNotificationChannelsList() {
    * 
* * repeated string notification_channels = 14; - * * @return The count of notificationChannels. */ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -16666,7 +20457,6 @@ public int getNotificationChannelsCount() {
    * 
* * repeated string notification_channels = 14; - * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ @@ -16674,8 +20464,6 @@ public java.lang.String getNotificationChannels(int index) { return notificationChannels_.get(index); } /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -16690,26 +20478,23 @@ public java.lang.String getNotificationChannels(int index) {
    * 
* * repeated string notification_channels = 14; - * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getNotificationChannelsBytes(int index) { return notificationChannels_.getByteString(index); } public static final int CREATION_RECORD_FIELD_NUMBER = 10; private com.google.monitoring.v3.MutationRecord creationRecord_; /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return Whether the creationRecord field is set. */ @java.lang.Override @@ -16717,26 +20502,19 @@ public boolean hasCreationRecord() { return creationRecord_ != null; } /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return The creationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getCreationRecord() { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
@@ -16746,23 +20524,18 @@ public com.google.monitoring.v3.MutationRecord getCreationRecord() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder() {
-    return creationRecord_ == null
-        ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
-        : creationRecord_;
+    return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_;
   }
 
   public static final int MUTATION_RECORD_FIELD_NUMBER = 11;
   private com.google.monitoring.v3.MutationRecord mutationRecord_;
   /**
-   *
-   *
    * 
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return Whether the mutationRecord field is set. */ @java.lang.Override @@ -16770,26 +20543,19 @@ public boolean hasMutationRecord() { return mutationRecord_ != null; } /** - * - * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return The mutationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getMutationRecord() { - return mutationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : mutationRecord_; + return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_; } /** - * - * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
@@ -16799,22 +20565,17 @@ public com.google.monitoring.v3.MutationRecord getMutationRecord() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuilder() {
-    return mutationRecord_ == null
-        ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
-        : mutationRecord_;
+    return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_;
   }
 
   public static final int ALERT_STRATEGY_FIELD_NUMBER = 21;
   private com.google.monitoring.v3.AlertPolicy.AlertStrategy alertStrategy_;
   /**
-   *
-   *
    * 
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return Whether the alertStrategy field is set. */ @java.lang.Override @@ -16822,25 +20583,18 @@ public boolean hasAlertStrategy() { return alertStrategy_ != null; } /** - * - * *
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return The alertStrategy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { - return alertStrategy_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() - : alertStrategy_; + return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; } /** - * - * *
    * Control over how this alert policy's notification channels are notified.
    * 
@@ -16849,13 +20603,10 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrategyOrBuilder() { - return alertStrategy_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() - : alertStrategy_; + return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16867,16 +20618,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (combiner_ - != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED - .getNumber()) { + if (combiner_ != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED.getNumber()) { output.writeEnum(6, combiner_); } if (creationRecord_ != null) { @@ -16892,11 +20642,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(13, getDocumentation()); } for (int i = 0; i < notificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 14, notificationChannels_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 16); + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, notificationChannels_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 16); if (enabled_ != null) { output.writeMessage(17, getEnabled()); } @@ -16921,22 +20674,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (combiner_ - != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, combiner_); + if (combiner_ != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, combiner_); } if (creationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreationRecord()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCreationRecord()); } if (mutationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMutationRecord()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getMutationRecord()); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, conditions_.get(i)); } if (documentation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDocumentation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDocumentation()); } { int dataSize = 0; @@ -16946,24 +20702,27 @@ public int getSerializedSize() { size += dataSize; size += 1 * getNotificationChannelsList().size(); } - for (java.util.Map.Entry entry : - internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry userLabels__ = - UserLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, userLabels__); + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, userLabels__); } if (enabled_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEnabled()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEnabled()); } if (validity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getValidity()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getValidity()); } if (alertStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getAlertStrategy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getAlertStrategy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16973,42 +20732,53 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy)) { return super.equals(obj); } com.google.monitoring.v3.AlertPolicy other = (com.google.monitoring.v3.AlertPolicy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasDocumentation() != other.hasDocumentation()) return false; if (hasDocumentation()) { - if (!getDocumentation().equals(other.getDocumentation())) return false; + if (!getDocumentation() + .equals(other.getDocumentation())) return false; } - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (combiner_ != other.combiner_) return false; if (hasEnabled() != other.hasEnabled()) return false; if (hasEnabled()) { - if (!getEnabled().equals(other.getEnabled())) return false; + if (!getEnabled() + .equals(other.getEnabled())) return false; } if (hasValidity() != other.hasValidity()) return false; if (hasValidity()) { - if (!getValidity().equals(other.getValidity())) return false; + if (!getValidity() + .equals(other.getValidity())) return false; } - if (!getNotificationChannelsList().equals(other.getNotificationChannelsList())) return false; + if (!getNotificationChannelsList() + .equals(other.getNotificationChannelsList())) return false; if (hasCreationRecord() != other.hasCreationRecord()) return false; if (hasCreationRecord()) { - if (!getCreationRecord().equals(other.getCreationRecord())) return false; + if (!getCreationRecord() + .equals(other.getCreationRecord())) return false; } if (hasMutationRecord() != other.hasMutationRecord()) return false; if (hasMutationRecord()) { - if (!getMutationRecord().equals(other.getMutationRecord())) return false; + if (!getMutationRecord() + .equals(other.getMutationRecord())) return false; } if (hasAlertStrategy() != other.hasAlertStrategy()) return false; if (hasAlertStrategy()) { - if (!getAlertStrategy().equals(other.getAlertStrategy())) return false; + if (!getAlertStrategy() + .equals(other.getAlertStrategy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -17068,103 +20838,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.AlertPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.AlertPolicy parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.AlertPolicy parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.AlertPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A description of the conditions under which some aspect of your system is
    * considered to be "unhealthy" and the ways to notify people or services about
@@ -17174,52 +20940,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy)
       com.google.monitoring.v3.AlertPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 16:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 16:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.class,
-              com.google.monitoring.v3.AlertPolicy.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.class, com.google.monitoring.v3.AlertPolicy.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.AlertPolicy.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -17250,7 +21019,8 @@ public Builder clear() {
         validityBuilder_.dispose();
         validityBuilder_ = null;
       }
-      notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      notificationChannels_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       creationRecord_ = null;
       if (creationRecordBuilder_ != null) {
         creationRecordBuilder_.dispose();
@@ -17270,9 +21040,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.AlertProto
-          .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -17293,9 +21063,7 @@ public com.google.monitoring.v3.AlertPolicy build() {
     public com.google.monitoring.v3.AlertPolicy buildPartial() {
       com.google.monitoring.v3.AlertPolicy result = new com.google.monitoring.v3.AlertPolicy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -17321,8 +21089,9 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.documentation_ =
-            documentationBuilder_ == null ? documentation_ : documentationBuilder_.build();
+        result.documentation_ = documentationBuilder_ == null
+            ? documentation_
+            : documentationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.userLabels_ = internalGetUserLabels();
@@ -17332,26 +21101,33 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
         result.combiner_ = combiner_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.enabled_ = enabledBuilder_ == null ? enabled_ : enabledBuilder_.build();
+        result.enabled_ = enabledBuilder_ == null
+            ? enabled_
+            : enabledBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.validity_ = validityBuilder_ == null ? validity_ : validityBuilder_.build();
+        result.validity_ = validityBuilder_ == null
+            ? validity_
+            : validityBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         notificationChannels_.makeImmutable();
         result.notificationChannels_ = notificationChannels_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.creationRecord_ =
-            creationRecordBuilder_ == null ? creationRecord_ : creationRecordBuilder_.build();
+        result.creationRecord_ = creationRecordBuilder_ == null
+            ? creationRecord_
+            : creationRecordBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.mutationRecord_ =
-            mutationRecordBuilder_ == null ? mutationRecord_ : mutationRecordBuilder_.build();
+        result.mutationRecord_ = mutationRecordBuilder_ == null
+            ? mutationRecord_
+            : mutationRecordBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.alertStrategy_ =
-            alertStrategyBuilder_ == null ? alertStrategy_ : alertStrategyBuilder_.build();
+        result.alertStrategy_ = alertStrategyBuilder_ == null
+            ? alertStrategy_
+            : alertStrategyBuilder_.build();
       }
     }
 
@@ -17359,39 +21135,38 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.AlertPolicy) {
-        return mergeFrom((com.google.monitoring.v3.AlertPolicy) other);
+        return mergeFrom((com.google.monitoring.v3.AlertPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -17413,7 +21188,8 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) {
       if (other.hasDocumentation()) {
         mergeDocumentation(other.getDocumentation());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000008;
       if (conditionsBuilder_ == null) {
         if (!other.conditions_.isEmpty()) {
@@ -17433,10 +21209,9 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -17496,99 +21271,97 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 48:
-              {
-                combiner_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 82:
-              {
-                input.readMessage(getCreationRecordFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getMutationRecordFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                com.google.monitoring.v3.AlertPolicy.Condition m =
-                    input.readMessage(
-                        com.google.monitoring.v3.AlertPolicy.Condition.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getDocumentationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 106
-            case 114:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureNotificationChannelsIsMutable();
-                notificationChannels_.add(s);
-                break;
-              } // case 114
-            case 130:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 130
-            case 138:
-              {
-                input.readMessage(getEnabledFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(getValidityFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 146
-            case 170:
-              {
-                input.readMessage(getAlertStrategyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 170
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 48: {
+              combiner_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 82: {
+              input.readMessage(
+                  getCreationRecordFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getMutationRecordFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              com.google.monitoring.v3.AlertPolicy.Condition m =
+                  input.readMessage(
+                      com.google.monitoring.v3.AlertPolicy.Condition.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getDocumentationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 106
+            case 114: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureNotificationChannelsIsMutable();
+              notificationChannels_.add(s);
+              break;
+            } // case 114
+            case 130: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 130
+            case 138: {
+              input.readMessage(
+                  getEnabledFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getValidityFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 146
+            case 170: {
+              input.readMessage(
+                  getAlertStrategyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 170
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -17598,13 +21371,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -17619,13 +21389,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -17634,8 +21404,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -17650,14 +21418,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -17665,8 +21434,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -17681,22 +21448,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -17711,7 +21474,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -17721,8 +21483,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -17737,14 +21497,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -17754,23 +21512,27 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
      * display name for multiple policies in the same project. The name is
      * limited to 512 Unicode characters.
+     *
+     * The convention for the display_name of a PrometheusQueryLanguageCondition
+     * is "{rule group name}/{alert name}", where the {rule group name} and
+     * {alert name} should be taken from the corresponding Prometheus
+     * configuration file. This convention is not enforced.
+     * In any case the display_name is not a unique key of the AlertPolicy.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -17779,24 +21541,29 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
      * display name for multiple policies in the same project. The name is
      * limited to 512 Unicode characters.
+     *
+     * The convention for the display_name of a PrometheusQueryLanguageCondition
+     * is "{rule group name}/{alert name}", where the {rule group name} and
+     * {alert name} should be taken from the corresponding Prometheus
+     * configuration file. This convention is not enforced.
+     * In any case the display_name is not a unique key of the AlertPolicy.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -17804,41 +21571,46 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
      * display name for multiple policies in the same project. The name is
      * limited to 512 Unicode characters.
+     *
+     * The convention for the display_name of a PrometheusQueryLanguageCondition
+     * is "{rule group name}/{alert name}", where the {rule group name} and
+     * {alert name} should be taken from the corresponding Prometheus
+     * configuration file. This convention is not enforced.
+     * In any case the display_name is not a unique key of the AlertPolicy.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
      * display name for multiple policies in the same project. The name is
      * limited to 512 Unicode characters.
+     *
+     * The convention for the display_name of a PrometheusQueryLanguageCondition
+     * is "{rule group name}/{alert name}", where the {rule group name} and
+     * {alert name} should be taken from the corresponding Prometheus
+     * configuration file. This convention is not enforced.
+     * In any case the display_name is not a unique key of the AlertPolicy.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -17848,24 +21620,26 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
      * display name for multiple policies in the same project. The name is
      * limited to 512 Unicode characters.
+     *
+     * The convention for the display_name of a PrometheusQueryLanguageCondition
+     * is "{rule group name}/{alert name}", where the {rule group name} and
+     * {alert name} should be taken from the corresponding Prometheus
+     * configuration file. This convention is not enforced.
+     * In any case the display_name is not a unique key of the AlertPolicy.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -17875,13 +21649,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.AlertPolicy.Documentation documentation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Documentation, - com.google.monitoring.v3.AlertPolicy.Documentation.Builder, - com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> - documentationBuilder_; + com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> documentationBuilder_; /** - * - * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -17891,15 +21660,12 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return Whether the documentation field is set. */ public boolean hasDocumentation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -17909,21 +21675,16 @@ public boolean hasDocumentation() {
      * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return The documentation. */ public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() { if (documentationBuilder_ == null) { - return documentation_ == null - ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() - : documentation_; + return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_; } else { return documentationBuilder_.getMessage(); } } /** - * - * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -17948,8 +21709,6 @@ public Builder setDocumentation(com.google.monitoring.v3.AlertPolicy.Documentati
       return this;
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -17972,8 +21731,6 @@ public Builder setDocumentation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -17986,10 +21743,9 @@ public Builder setDocumentation(
      */
     public Builder mergeDocumentation(com.google.monitoring.v3.AlertPolicy.Documentation value) {
       if (documentationBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && documentation_ != null
-            && documentation_
-                != com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          documentation_ != null &&
+          documentation_ != com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) {
           getDocumentationBuilder().mergeFrom(value);
         } else {
           documentation_ = value;
@@ -18002,8 +21758,6 @@ public Builder mergeDocumentation(com.google.monitoring.v3.AlertPolicy.Documenta
       return this;
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -18025,8 +21779,6 @@ public Builder clearDocumentation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -18043,8 +21795,6 @@ public com.google.monitoring.v3.AlertPolicy.Documentation.Builder getDocumentati
       return getDocumentationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -18059,14 +21809,11 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       if (documentationBuilder_ != null) {
         return documentationBuilder_.getMessageOrBuilder();
       } else {
-        return documentation_ == null
-            ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()
-            : documentation_;
+        return documentation_ == null ?
+            com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_;
       }
     }
     /**
-     *
-     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -18078,24 +21825,21 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
      * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Documentation,
-            com.google.monitoring.v3.AlertPolicy.Documentation.Builder,
-            com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>
+        com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> 
         getDocumentationFieldBuilder() {
       if (documentationBuilder_ == null) {
-        documentationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Documentation,
-                com.google.monitoring.v3.AlertPolicy.Documentation.Builder,
-                com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>(
-                getDocumentation(), getParentForChildren(), isClean());
+        documentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>(
+                getDocumentation(),
+                getParentForChildren(),
+                isClean());
         documentation_ = null;
       }
       return documentationBuilder_;
     }
 
-    private com.google.protobuf.MapField userLabels_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> userLabels_;
     private com.google.protobuf.MapField
         internalGetUserLabels() {
       if (userLabels_ == null) {
@@ -18104,12 +21848,11 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       }
       return userLabels_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableUserLabels() {
       if (userLabels_ == null) {
-        userLabels_ =
-            com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
+        userLabels_ = com.google.protobuf.MapField.newMapField(
+            UserLabelsDefaultEntryHolder.defaultEntry);
       }
       if (!userLabels_.isMutable()) {
         userLabels_ = userLabels_.copy();
@@ -18118,13 +21861,10 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       onChanged();
       return userLabels_;
     }
-
     public int getUserLabelsCount() {
       return internalGetUserLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18133,26 +21873,32 @@ public int getUserLabelsCount() {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public boolean containsUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } - /** Use {@link #getUserLabelsMap()} instead. */ + /** + * Use {@link #getUserLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserLabels() { return getUserLabelsMap(); } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18161,6 +21907,13 @@ public java.util.Map getUserLabels() {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; @@ -18170,8 +21923,6 @@ public java.util.Map getUserLabelsMap() { return internalGetUserLabels().getMap(); } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18180,24 +21931,29 @@ public java.util.Map getUserLabelsMap() {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public /* nullable */ java.lang.String getUserLabelsOrDefault( + public /* nullable */ +java.lang.String getUserLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18206,30 +21962,35 @@ public java.util.Map getUserLabelsMap() {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ @java.lang.Override - public java.lang.String getUserLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserLabels().getMap(); + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearUserLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableUserLabels().getMutableMap().clear(); + internalGetMutableUserLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18238,26 +21999,34 @@ public Builder clearUserLabels() {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ - public Builder removeUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUserLabels().getMutableMap().remove(key); + public Builder removeUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableUserLabels() { + public java.util.Map + getMutableUserLabels() { bitField0_ |= 0x00000008; return internalGetMutableUserLabels().getMutableMap(); } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18266,24 +22035,28 @@ public java.util.Map getMutableUserLabels()
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ - public Builder putUserLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableUserLabels().getMutableMap().put(key, value); + public Builder putUserLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -18292,36 +22065,38 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
      * values can contain only lowercase letters, numerals, underscores, and
      * dashes. Keys must begin with a letter.
+     *
+     * Note that Prometheus {alert name} is a
+     * [valid Prometheus label
+     * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+     * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+     * This means that they cannot be stored as-is in user labels, because
+     * they may contain characters that are not allowed in user-label values.
      * 
* * map<string, string> user_labels = 16; */ - public Builder putAllUserLabels(java.util.Map values) { - internalGetMutableUserLabels().getMutableMap().putAll(values); + public Builder putAllUserLabels( + java.util.Map values) { + internalGetMutableUserLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.util.List conditions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - conditions_ = - new java.util.ArrayList(conditions_); + conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition, - com.google.monitoring.v3.AlertPolicy.Condition.Builder, - com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> - conditionsBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> conditionsBuilder_; /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18329,6 +22104,8 @@ private void ensureConditionsIsMutable() {
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18341,8 +22118,6 @@ public java.util.List getConditi } } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18350,6 +22125,8 @@ public java.util.List getConditi
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18362,8 +22139,6 @@ public int getConditionsCount() { } } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18371,6 +22146,8 @@ public int getConditionsCount() {
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18383,8 +22160,6 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) { } } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18392,11 +22167,14 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public Builder setConditions(int index, com.google.monitoring.v3.AlertPolicy.Condition value) { + public Builder setConditions( + int index, com.google.monitoring.v3.AlertPolicy.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18410,8 +22188,6 @@ public Builder setConditions(int index, com.google.monitoring.v3.AlertPolicy.Con return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18419,6 +22195,8 @@ public Builder setConditions(int index, com.google.monitoring.v3.AlertPolicy.Con
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18435,8 +22213,6 @@ public Builder setConditions( return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18444,6 +22220,8 @@ public Builder setConditions(
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18462,8 +22240,6 @@ public Builder addConditions(com.google.monitoring.v3.AlertPolicy.Condition valu return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18471,11 +22247,14 @@ public Builder addConditions(com.google.monitoring.v3.AlertPolicy.Condition valu
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public Builder addConditions(int index, com.google.monitoring.v3.AlertPolicy.Condition value) { + public Builder addConditions( + int index, com.google.monitoring.v3.AlertPolicy.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18489,8 +22268,6 @@ public Builder addConditions(int index, com.google.monitoring.v3.AlertPolicy.Con return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18498,6 +22275,8 @@ public Builder addConditions(int index, com.google.monitoring.v3.AlertPolicy.Con
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18514,8 +22293,6 @@ public Builder addConditions( return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18523,6 +22300,8 @@ public Builder addConditions(
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18539,8 +22318,6 @@ public Builder addConditions( return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18548,6 +22325,8 @@ public Builder addConditions(
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18556,7 +22335,8 @@ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -18564,8 +22344,6 @@ public Builder addAllConditions( return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18573,6 +22351,8 @@ public Builder addAllConditions(
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18588,8 +22368,6 @@ public Builder clearConditions() { return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18597,6 +22375,8 @@ public Builder clearConditions() {
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18612,8 +22392,6 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18621,16 +22399,17 @@ public Builder removeConditions(int index) {
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuilder(int index) { + public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18638,6 +22417,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuild
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; @@ -18645,14 +22426,11 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuild public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18660,12 +22438,14 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -18673,8 +22453,6 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu } } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18682,17 +22460,17 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()); } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18700,17 +22478,18 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()); + public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()); } /** - * - * *
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -18718,27 +22497,26 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      * conditions.
      * If `condition_time_series_query_language` is present, it must be the only
      * `condition`.
+     * If `condition_monitoring_query_language` is present, it must be the only
+     * `condition`.
      * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - public java.util.List - getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition, - com.google.monitoring.v3.AlertPolicy.Condition.Builder, - com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition, - com.google.monitoring.v3.AlertPolicy.Condition.Builder, - com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; @@ -18746,8 +22524,6 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild private int combiner_ = 0; /** - * - * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -18756,16 +22532,12 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The enum numeric value on the wire for combiner. */ - @java.lang.Override - public int getCombinerValue() { + @java.lang.Override public int getCombinerValue() { return combiner_; } /** - * - * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -18774,7 +22546,6 @@ public int getCombinerValue() {
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @param value The enum numeric value on the wire for combiner to set. * @return This builder for chaining. */ @@ -18785,8 +22556,6 @@ public Builder setCombinerValue(int value) { return this; } /** - * - * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -18795,20 +22564,14 @@ public Builder setCombinerValue(int value) {
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The combiner. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); - return result == null - ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED - : result; + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); + return result == null ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED : result; } /** - * - * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -18817,7 +22580,6 @@ public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner()
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @param value The combiner to set. * @return This builder for chaining. */ @@ -18831,8 +22593,6 @@ public Builder setCombiner(com.google.monitoring.v3.AlertPolicy.ConditionCombine return this; } /** - * - * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -18841,7 +22601,6 @@ public Builder setCombiner(com.google.monitoring.v3.AlertPolicy.ConditionCombine
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return This builder for chaining. */ public Builder clearCombiner() { @@ -18853,13 +22612,8 @@ public Builder clearCombiner() { private com.google.protobuf.BoolValue enabled_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enabledBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enabledBuilder_; /** - * - * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18869,15 +22623,12 @@ public Builder clearCombiner() {
      * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return Whether the enabled field is set. */ public boolean hasEnabled() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18887,7 +22638,6 @@ public boolean hasEnabled() {
      * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return The enabled. */ public com.google.protobuf.BoolValue getEnabled() { @@ -18898,8 +22648,6 @@ public com.google.protobuf.BoolValue getEnabled() { } } /** - * - * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18924,8 +22672,6 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18936,7 +22682,8 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enabled = 17;
      */
-    public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnabled(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enabledBuilder_ == null) {
         enabled_ = builderForValue.build();
       } else {
@@ -18947,8 +22694,6 @@ public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18961,9 +22706,9 @@ public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
      */
     public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       if (enabledBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && enabled_ != null
-            && enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          enabled_ != null &&
+          enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnabledBuilder().mergeFrom(value);
         } else {
           enabled_ = value;
@@ -18976,8 +22721,6 @@ public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -18999,8 +22742,6 @@ public Builder clearEnabled() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -19017,8 +22758,6 @@ public com.google.protobuf.BoolValue.Builder getEnabledBuilder() {
       return getEnabledFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -19033,12 +22772,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
       if (enabledBuilder_ != null) {
         return enabledBuilder_.getMessageOrBuilder();
       } else {
-        return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
+        return enabled_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
       }
     }
     /**
-     *
-     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -19050,17 +22788,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
      * .google.protobuf.BoolValue enabled = 17;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnabledFieldBuilder() {
       if (enabledBuilder_ == null) {
-        enabledBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnabled(), getParentForChildren(), isClean());
+        enabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnabled(),
+                getParentForChildren(),
+                isClean());
         enabled_ = null;
       }
       return enabledBuilder_;
@@ -19068,33 +22803,28 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
 
     private com.google.rpc.Status validity_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        validityBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> validityBuilder_;
     /**
-     *
-     *
      * 
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; - * * @return Whether the validity field is set. */ public boolean hasValidity() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; - * * @return The validity. */ public com.google.rpc.Status getValidity() { @@ -19105,11 +22835,10 @@ public com.google.rpc.Status getValidity() { } } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; @@ -19128,16 +22857,16 @@ public Builder setValidity(com.google.rpc.Status value) { return this; } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; */ - public Builder setValidity(com.google.rpc.Status.Builder builderForValue) { + public Builder setValidity( + com.google.rpc.Status.Builder builderForValue) { if (validityBuilder_ == null) { validity_ = builderForValue.build(); } else { @@ -19148,20 +22877,19 @@ public Builder setValidity(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; */ public Builder mergeValidity(com.google.rpc.Status value) { if (validityBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && validity_ != null - && validity_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + validity_ != null && + validity_ != com.google.rpc.Status.getDefaultInstance()) { getValidityBuilder().mergeFrom(value); } else { validity_ = value; @@ -19174,11 +22902,10 @@ public Builder mergeValidity(com.google.rpc.Status value) { return this; } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; @@ -19194,11 +22921,10 @@ public Builder clearValidity() { return this; } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; @@ -19209,11 +22935,10 @@ public com.google.rpc.Status.Builder getValidityBuilder() { return getValidityFieldBuilder().getBuilder(); } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; @@ -19222,28 +22947,28 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() { if (validityBuilder_ != null) { return validityBuilder_.getMessageOrBuilder(); } else { - return validity_ == null ? com.google.rpc.Status.getDefaultInstance() : validity_; + return validity_ == null ? + com.google.rpc.Status.getDefaultInstance() : validity_; } } /** - * - * *
-     * Read-only description of how the alert policy is invalid. OK if the alert
-     * policy is valid. If not OK, the alert policy will not generate incidents.
+     * Read-only description of how the alert policy is invalid. This field is
+     * only set when the alert policy is invalid. An invalid alert policy will not
+     * generate incidents.
      * 
* * .google.rpc.Status validity = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getValidityFieldBuilder() { if (validityBuilder_ == null) { - validityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getValidity(), getParentForChildren(), isClean()); + validityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getValidity(), + getParentForChildren(), + isClean()); validity_ = null; } return validityBuilder_; @@ -19251,7 +22976,6 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() { private com.google.protobuf.LazyStringArrayList notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureNotificationChannelsIsMutable() { if (!notificationChannels_.isModifiable()) { notificationChannels_ = new com.google.protobuf.LazyStringArrayList(notificationChannels_); @@ -19259,8 +22983,6 @@ private void ensureNotificationChannelsIsMutable() { bitField0_ |= 0x00000100; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19275,16 +22997,14 @@ private void ensureNotificationChannelsIsMutable() {
      * 
* * repeated string notification_channels = 14; - * * @return A list containing the notificationChannels. */ - public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList + getNotificationChannelsList() { notificationChannels_.makeImmutable(); return notificationChannels_; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19299,15 +23019,12 @@ public com.google.protobuf.ProtocolStringList getNotificationChannelsList() {
      * 
* * repeated string notification_channels = 14; - * * @return The count of notificationChannels. */ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19322,7 +23039,6 @@ public int getNotificationChannelsCount() {
      * 
* * repeated string notification_channels = 14; - * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ @@ -19330,8 +23046,6 @@ public java.lang.String getNotificationChannels(int index) { return notificationChannels_.get(index); } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19346,16 +23060,14 @@ public java.lang.String getNotificationChannels(int index) {
      * 
* * repeated string notification_channels = 14; - * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString + getNotificationChannelsBytes(int index) { return notificationChannels_.getByteString(index); } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19370,15 +23082,13 @@ public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) {
      * 
* * repeated string notification_channels = 14; - * * @param index The index to set the value at. * @param value The notificationChannels to set. * @return This builder for chaining. */ - public Builder setNotificationChannels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNotificationChannels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureNotificationChannelsIsMutable(); notificationChannels_.set(index, value); bitField0_ |= 0x00000100; @@ -19386,8 +23096,6 @@ public Builder setNotificationChannels(int index, java.lang.String value) { return this; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19402,14 +23110,12 @@ public Builder setNotificationChannels(int index, java.lang.String value) {
      * 
* * repeated string notification_channels = 14; - * * @param value The notificationChannels to add. * @return This builder for chaining. */ - public Builder addNotificationChannels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addNotificationChannels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureNotificationChannelsIsMutable(); notificationChannels_.add(value); bitField0_ |= 0x00000100; @@ -19417,8 +23123,6 @@ public Builder addNotificationChannels(java.lang.String value) { return this; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19433,20 +23137,19 @@ public Builder addNotificationChannels(java.lang.String value) {
      * 
* * repeated string notification_channels = 14; - * * @param values The notificationChannels to add. * @return This builder for chaining. */ - public Builder addAllNotificationChannels(java.lang.Iterable values) { + public Builder addAllNotificationChannels( + java.lang.Iterable values) { ensureNotificationChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationChannels_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19461,19 +23164,16 @@ public Builder addAllNotificationChannels(java.lang.Iterable v
      * 
* * repeated string notification_channels = 14; - * * @return This builder for chaining. */ public Builder clearNotificationChannels() { - notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + notificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -19488,14 +23188,12 @@ public Builder clearNotificationChannels() {
      * 
* * repeated string notification_channels = 14; - * * @param value The bytes of the notificationChannels to add. * @return This builder for chaining. */ - public Builder addNotificationChannelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addNotificationChannelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNotificationChannelsIsMutable(); notificationChannels_.add(value); @@ -19506,49 +23204,36 @@ public Builder addNotificationChannelsBytes(com.google.protobuf.ByteString value private com.google.monitoring.v3.MutationRecord creationRecord_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder> - creationRecordBuilder_; + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> creationRecordBuilder_; /** - * - * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return Whether the creationRecord field is set. */ public boolean hasCreationRecord() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return The creationRecord. */ public com.google.monitoring.v3.MutationRecord getCreationRecord() { if (creationRecordBuilder_ == null) { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } else { return creationRecordBuilder_.getMessage(); } } /** - * - * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19570,8 +23255,6 @@ public Builder setCreationRecord(com.google.monitoring.v3.MutationRecord value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19591,8 +23274,6 @@ public Builder setCreationRecord(
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19602,9 +23283,9 @@ public Builder setCreationRecord(
      */
     public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value) {
       if (creationRecordBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && creationRecord_ != null
-            && creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          creationRecord_ != null &&
+          creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
           getCreationRecordBuilder().mergeFrom(value);
         } else {
           creationRecord_ = value;
@@ -19617,8 +23298,6 @@ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19637,8 +23316,6 @@ public Builder clearCreationRecord() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19652,8 +23329,6 @@ public com.google.monitoring.v3.MutationRecord.Builder getCreationRecordBuilder(
       return getCreationRecordFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19665,14 +23340,11 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
       if (creationRecordBuilder_ != null) {
         return creationRecordBuilder_.getMessageOrBuilder();
       } else {
-        return creationRecord_ == null
-            ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
-            : creationRecord_;
+        return creationRecord_ == null ?
+            com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_;
       }
     }
     /**
-     *
-     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -19681,17 +23353,14 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
      * .google.monitoring.v3.MutationRecord creation_record = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord,
-            com.google.monitoring.v3.MutationRecord.Builder,
-            com.google.monitoring.v3.MutationRecordOrBuilder>
+        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> 
         getCreationRecordFieldBuilder() {
       if (creationRecordBuilder_ == null) {
-        creationRecordBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.MutationRecord,
-                com.google.monitoring.v3.MutationRecord.Builder,
-                com.google.monitoring.v3.MutationRecordOrBuilder>(
-                getCreationRecord(), getParentForChildren(), isClean());
+        creationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>(
+                getCreationRecord(),
+                getParentForChildren(),
+                isClean());
         creationRecord_ = null;
       }
       return creationRecordBuilder_;
@@ -19699,49 +23368,36 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
 
     private com.google.monitoring.v3.MutationRecord mutationRecord_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord,
-            com.google.monitoring.v3.MutationRecord.Builder,
-            com.google.monitoring.v3.MutationRecordOrBuilder>
-        mutationRecordBuilder_;
+        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> mutationRecordBuilder_;
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return Whether the mutationRecord field is set. */ public boolean hasMutationRecord() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return The mutationRecord. */ public com.google.monitoring.v3.MutationRecord getMutationRecord() { if (mutationRecordBuilder_ == null) { - return mutationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : mutationRecord_; + return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_; } else { return mutationRecordBuilder_.getMessage(); } } /** - * - * *
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19763,8 +23419,6 @@ public Builder setMutationRecord(com.google.monitoring.v3.MutationRecord value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19784,8 +23438,6 @@ public Builder setMutationRecord(
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19795,9 +23447,9 @@ public Builder setMutationRecord(
      */
     public Builder mergeMutationRecord(com.google.monitoring.v3.MutationRecord value) {
       if (mutationRecordBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0)
-            && mutationRecord_ != null
-            && mutationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0) &&
+          mutationRecord_ != null &&
+          mutationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
           getMutationRecordBuilder().mergeFrom(value);
         } else {
           mutationRecord_ = value;
@@ -19810,8 +23462,6 @@ public Builder mergeMutationRecord(com.google.monitoring.v3.MutationRecord value
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19830,8 +23480,6 @@ public Builder clearMutationRecord() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19845,8 +23493,6 @@ public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordBuilder(
       return getMutationRecordFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19858,14 +23504,11 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
       if (mutationRecordBuilder_ != null) {
         return mutationRecordBuilder_.getMessageOrBuilder();
       } else {
-        return mutationRecord_ == null
-            ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
-            : mutationRecord_;
+        return mutationRecord_ == null ?
+            com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_;
       }
     }
     /**
-     *
-     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -19874,17 +23517,14 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
      * .google.monitoring.v3.MutationRecord mutation_record = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord,
-            com.google.monitoring.v3.MutationRecord.Builder,
-            com.google.monitoring.v3.MutationRecordOrBuilder>
+        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> 
         getMutationRecordFieldBuilder() {
       if (mutationRecordBuilder_ == null) {
-        mutationRecordBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.MutationRecord,
-                com.google.monitoring.v3.MutationRecord.Builder,
-                com.google.monitoring.v3.MutationRecordOrBuilder>(
-                getMutationRecord(), getParentForChildren(), isClean());
+        mutationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>(
+                getMutationRecord(),
+                getParentForChildren(),
+                isClean());
         mutationRecord_ = null;
       }
       return mutationRecordBuilder_;
@@ -19892,47 +23532,34 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
 
     private com.google.monitoring.v3.AlertPolicy.AlertStrategy alertStrategy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.AlertStrategy,
-            com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder,
-            com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>
-        alertStrategyBuilder_;
+        com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> alertStrategyBuilder_;
     /**
-     *
-     *
      * 
      * Control over how this alert policy's notification channels are notified.
      * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return Whether the alertStrategy field is set. */ public boolean hasAlertStrategy() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return The alertStrategy. */ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { if (alertStrategyBuilder_ == null) { - return alertStrategy_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() - : alertStrategy_; + return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; } else { return alertStrategyBuilder_.getMessage(); } } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -19953,8 +23580,6 @@ public Builder setAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrate return this; } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -19973,8 +23598,6 @@ public Builder setAlertStrategy( return this; } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -19983,10 +23606,9 @@ public Builder setAlertStrategy( */ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy value) { if (alertStrategyBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && alertStrategy_ != null - && alertStrategy_ - != com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + alertStrategy_ != null && + alertStrategy_ != com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) { getAlertStrategyBuilder().mergeFrom(value); } else { alertStrategy_ = value; @@ -19999,8 +23621,6 @@ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStra return this; } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -20018,8 +23638,6 @@ public Builder clearAlertStrategy() { return this; } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -20032,8 +23650,6 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder getAlertStrate return getAlertStrategyFieldBuilder().getBuilder(); } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -20044,14 +23660,11 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat if (alertStrategyBuilder_ != null) { return alertStrategyBuilder_.getMessageOrBuilder(); } else { - return alertStrategy_ == null - ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() - : alertStrategy_; + return alertStrategy_ == null ? + com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; } } /** - * - * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -20059,24 +23672,21 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, - com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> + com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> getAlertStrategyFieldBuilder() { if (alertStrategyBuilder_ == null) { - alertStrategyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy, - com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, - com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>( - getAlertStrategy(), getParentForChildren(), isClean()); + alertStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>( + getAlertStrategy(), + getParentForChildren(), + isClean()); alertStrategy_ = null; } return alertStrategyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -20086,12 +23696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) private static final com.google.monitoring.v3.AlertPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy(); } @@ -20100,27 +23710,27 @@ public static com.google.monitoring.v3.AlertPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -20135,4 +23745,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java similarity index 80% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java index de3b2ce2b183..a62b3693a031 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert.proto package com.google.monitoring.v3; -public interface AlertPolicyOrBuilder - extends +public interface AlertPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -40,13 +22,10 @@ public interface AlertPolicyOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -61,45 +40,50 @@ public interface AlertPolicyOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
    * display name for multiple policies in the same project. The name is
    * limited to 512 Unicode characters.
+   *
+   * The convention for the display_name of a PrometheusQueryLanguageCondition
+   * is "{rule group name}/{alert name}", where the {rule group name} and
+   * {alert name} should be taken from the corresponding Prometheus
+   * configuration file. This convention is not enforced.
+   * In any case the display_name is not a unique key of the AlertPolicy.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
    * display name for multiple policies in the same project. The name is
    * limited to 512 Unicode characters.
+   *
+   * The convention for the display_name of a PrometheusQueryLanguageCondition
+   * is "{rule group name}/{alert name}", where the {rule group name} and
+   * {alert name} should be taken from the corresponding Prometheus
+   * configuration file. This convention is not enforced.
+   * In any case the display_name is not a unique key of the AlertPolicy.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -109,13 +93,10 @@ public interface AlertPolicyOrBuilder
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return Whether the documentation field is set. */ boolean hasDocumentation(); /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -125,13 +106,10 @@ public interface AlertPolicyOrBuilder
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; - * * @return The documentation. */ com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation(); /** - * - * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -145,8 +123,6 @@ public interface AlertPolicyOrBuilder
   com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentationOrBuilder();
 
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -155,14 +131,19 @@ public interface AlertPolicyOrBuilder
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ int getUserLabelsCount(); /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -171,17 +152,26 @@ public interface AlertPolicyOrBuilder
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ - boolean containsUserLabels(java.lang.String key); - /** Use {@link #getUserLabelsMap()} instead. */ + boolean containsUserLabels( + java.lang.String key); + /** + * Use {@link #getUserLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getUserLabels(); + java.util.Map + getUserLabels(); /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -190,14 +180,20 @@ public interface AlertPolicyOrBuilder
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ - java.util.Map getUserLabelsMap(); + java.util.Map + getUserLabelsMap(); /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -206,18 +202,23 @@ public interface AlertPolicyOrBuilder
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ /* nullable */ - java.lang.String getUserLabelsOrDefault( +java.lang.String getUserLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -226,15 +227,21 @@ java.lang.String getUserLabelsOrDefault(
    * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
    * values can contain only lowercase letters, numerals, underscores, and
    * dashes. Keys must begin with a letter.
+   *
+   * Note that Prometheus {alert name} is a
+   * [valid Prometheus label
+   * names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+   * whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+   * This means that they cannot be stored as-is in user labels, because
+   * they may contain characters that are not allowed in user-label values.
    * 
* * map<string, string> user_labels = 16; */ - java.lang.String getUserLabelsOrThrow(java.lang.String key); + java.lang.String getUserLabelsOrThrow( + java.lang.String key); /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -242,14 +249,15 @@ java.lang.String getUserLabelsOrDefault(
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -257,14 +265,14 @@ java.lang.String getUserLabelsOrDefault(
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index); /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -272,14 +280,14 @@ java.lang.String getUserLabelsOrDefault(
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ int getConditionsCount(); /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -287,15 +295,15 @@ java.lang.String getUserLabelsOrDefault(
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - java.util.List + java.util.List getConditionsOrBuilderList(); /** - * - * *
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -303,15 +311,16 @@ java.lang.String getUserLabelsOrDefault(
    * conditions.
    * If `condition_time_series_query_language` is present, it must be the only
    * `condition`.
+   * If `condition_monitoring_query_language` is present, it must be the only
+   * `condition`.
    * 
* * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12; */ - com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(int index); + com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -320,13 +329,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The enum numeric value on the wire for combiner. */ int getCombinerValue(); /** - * - * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -335,14 +341,11 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; - * * @return The combiner. */ com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner(); /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -352,13 +355,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return Whether the enabled field is set. */ boolean hasEnabled(); /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -368,13 +368,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.protobuf.BoolValue enabled = 17; - * * @return The enabled. */ com.google.protobuf.BoolValue getEnabled(); /** - * - * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -388,37 +385,32 @@ java.lang.String getUserLabelsOrDefault(
   com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder();
 
   /**
-   *
-   *
    * 
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; - * * @return Whether the validity field is set. */ boolean hasValidity(); /** - * - * *
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; - * * @return The validity. */ com.google.rpc.Status getValidity(); /** - * - * *
-   * Read-only description of how the alert policy is invalid. OK if the alert
-   * policy is valid. If not OK, the alert policy will not generate incidents.
+   * Read-only description of how the alert policy is invalid. This field is
+   * only set when the alert policy is invalid. An invalid alert policy will not
+   * generate incidents.
    * 
* * .google.rpc.Status validity = 18; @@ -426,8 +418,6 @@ java.lang.String getUserLabelsOrDefault( com.google.rpc.StatusOrBuilder getValidityOrBuilder(); /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -442,13 +432,11 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * repeated string notification_channels = 14; - * * @return A list containing the notificationChannels. */ - java.util.List getNotificationChannelsList(); + java.util.List + getNotificationChannelsList(); /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -463,13 +451,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * repeated string notification_channels = 14; - * * @return The count of notificationChannels. */ int getNotificationChannelsCount(); /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -484,14 +469,11 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * repeated string notification_channels = 14; - * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ java.lang.String getNotificationChannels(int index); /** - * - * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -506,41 +488,33 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * repeated string notification_channels = 14; - * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - com.google.protobuf.ByteString getNotificationChannelsBytes(int index); + com.google.protobuf.ByteString + getNotificationChannelsBytes(int index); /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return Whether the creationRecord field is set. */ boolean hasCreationRecord(); /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; - * * @return The creationRecord. */ com.google.monitoring.v3.MutationRecord getCreationRecord(); /** - * - * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
@@ -551,34 +525,26 @@ java.lang.String getUserLabelsOrDefault(
   com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder();
 
   /**
-   *
-   *
    * 
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return Whether the mutationRecord field is set. */ boolean hasMutationRecord(); /** - * - * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; - * * @return The mutationRecord. */ com.google.monitoring.v3.MutationRecord getMutationRecord(); /** - * - * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
@@ -589,32 +555,24 @@ java.lang.String getUserLabelsOrDefault(
   com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuilder();
 
   /**
-   *
-   *
    * 
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return Whether the alertStrategy field is set. */ boolean hasAlertStrategy(); /** - * - * *
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; - * * @return The alertStrategy. */ com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy(); /** - * - * *
    * Control over how this alert policy's notification channels are notified.
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java new file mode 100644 index 000000000000..c014ea132245 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java @@ -0,0 +1,352 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert.proto + +package com.google.monitoring.v3; + +public final class AlertProto { + private AlertProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n google/monitoring/v3/alert.proto\022\024goog" + + "le.monitoring.v3\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032!go" + + "ogle/monitoring/v3/common.proto\032*google/" + + "monitoring/v3/mutation_record.proto\032\036goo" + + "gle/protobuf/duration.proto\032\036google/prot" + + "obuf/wrappers.proto\032\027google/rpc/status.p" + + "roto\"\222\"\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" + + "/.google.monitoring.v3.AlertPolicy.Docum" + + "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" + + "onitoring.v3.AlertPolicy.UserLabelsEntry" + + "\022?\n\nconditions\030\014 \003(\0132+.google.monitoring" + + ".v3.AlertPolicy.Condition\022I\n\010combiner\030\006 " + + "\001(\01627.google.monitoring.v3.AlertPolicy.C" + + "onditionCombinerType\022+\n\007enabled\030\021 \001(\0132\032." + + "google.protobuf.BoolValue\022$\n\010validity\030\022 " + + "\001(\0132\022.google.rpc.Status\022\035\n\025notification_" + + "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132" + + "$.google.monitoring.v3.MutationRecord\022=\n" + + "\017mutation_record\030\013 \001(\0132$.google.monitori" + + "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025" + + " \001(\0132/.google.monitoring.v3.AlertPolicy." + + "AlertStrategy\032J\n\rDocumentation\022\017\n\007conten" + + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\025\n\007subject\030\003 " + + "\001(\tB\004\342A\001\001\032\201\026\n\tCondition\022\014\n\004name\030\014 \001(\t\022\024\n" + + "\014display_name\030\006 \001(\t\022Z\n\023condition_thresho" + + "ld\030\001 \001(\0132;.google.monitoring.v3.AlertPol" + + "icy.Condition.MetricThresholdH\000\022U\n\020condi" + + "tion_absent\030\002 \001(\01329.google.monitoring.v3" + + ".AlertPolicy.Condition.MetricAbsenceH\000\022U" + + "\n\025condition_matched_log\030\024 \001(\01324.google.m" + + "onitoring.v3.AlertPolicy.Condition.LogMa" + + "tchH\000\022{\n#condition_monitoring_query_lang" + + "uage\030\023 \001(\0132L.google.monitoring.v3.AlertP" + + "olicy.Condition.MonitoringQueryLanguageC" + + "onditionH\000\022{\n#condition_prometheus_query" + + "_language\030\025 \001(\0132L.google.monitoring.v3.A" + + "lertPolicy.Condition.PrometheusQueryLang" + + "uageConditionH\000\0325\n\007Trigger\022\017\n\005count\030\001 \001(" + + "\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004type\032\240\005\n\017Metri" + + "cThreshold\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\0227\n\014aggr" + + "egations\030\010 \003(\0132!.google.monitoring.v3.Ag" + + "gregation\022\032\n\022denominator_filter\030\t \001(\t\022C\n" + + "\030denominator_aggregations\030\n \003(\0132!.google" + + ".monitoring.v3.Aggregation\022e\n\020forecast_o" + + "ptions\030\014 \001(\0132K.google.monitoring.v3.Aler" + + "tPolicy.Condition.MetricThreshold.Foreca" + + "stOptions\0228\n\ncomparison\030\004 \001(\0162$.google.m" + + "onitoring.v3.ComparisonType\022\027\n\017threshold" + + "_value\030\005 \001(\001\022+\n\010duration\030\006 \001(\0132\031.google." + + "protobuf.Duration\022D\n\007trigger\030\007 \001(\01323.goo" + + "gle.monitoring.v3.AlertPolicy.Condition." + + "Trigger\022b\n\027evaluation_missing_data\030\013 \001(\016" + + "2A.google.monitoring.v3.AlertPolicy.Cond" + + "ition.EvaluationMissingData\032L\n\017ForecastO" + + "ptions\0229\n\020forecast_horizon\030\001 \001(\0132\031.googl" + + "e.protobuf.DurationB\004\342A\001\002\032\321\001\n\rMetricAbse" + + "nce\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\0227\n\014aggregation" + + "s\030\005 \003(\0132!.google.monitoring.v3.Aggregati" + + "on\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.D" + + "uration\022D\n\007trigger\030\003 \001(\01323.google.monito" + + "ring.v3.AlertPolicy.Condition.Trigger\032\275\001" + + "\n\010LogMatch\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022c\n\020labe" + + "l_extractors\030\002 \003(\0132I.google.monitoring.v" + + "3.AlertPolicy.Condition.LogMatch.LabelEx" + + "tractorsEntry\0326\n\024LabelExtractorsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\210\002\n Monito" + + "ringQueryLanguageCondition\022\r\n\005query\030\001 \001(" + + "\t\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\022D\n\007trigger\030\003 \001(\01323.google.monitor" + + "ing.v3.AlertPolicy.Condition.Trigger\022b\n\027" + + "evaluation_missing_data\030\004 \001(\0162A.google.m" + + "onitoring.v3.AlertPolicy.Condition.Evalu" + + "ationMissingData\032\373\002\n PrometheusQueryLang" + + "uageCondition\022\023\n\005query\030\001 \001(\tB\004\342A\001\002\0221\n\010du" + + "ration\030\002 \001(\0132\031.google.protobuf.DurationB" + + "\004\342A\001\001\022<\n\023evaluation_interval\030\003 \001(\0132\031.goo" + + "gle.protobuf.DurationB\004\342A\001\001\022n\n\006labels\030\004 " + + "\003(\0132X.google.monitoring.v3.AlertPolicy.C" + + "ondition.PrometheusQueryLanguageConditio" + + "n.LabelsEntryB\004\342A\001\001\022\030\n\nrule_group\030\005 \001(\tB" + + "\004\342A\001\001\022\030\n\nalert_rule\030\006 \001(\tB\004\342A\001\001\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\255" + + "\001\n\025EvaluationMissingData\022\'\n#EVALUATION_M" + + "ISSING_DATA_UNSPECIFIED\020\000\022$\n EVALUATION_" + + "MISSING_DATA_INACTIVE\020\001\022\"\n\036EVALUATION_MI" + + "SSING_DATA_ACTIVE\020\002\022!\n\035EVALUATION_MISSIN" + + "G_DATA_NO_OP\020\003:\227\002\352A\223\002\n.monitoring.google" + + "apis.com/AlertPolicyCondition\022Fprojects/" + + "{project}/alertPolicies/{alert_policy}/c" + + "onditions/{condition}\022Porganizations/{or" + + "ganization}/alertPolicies/{alert_policy}" + + "/conditions/{condition}\022Dfolders/{folder" + + "}/alertPolicies/{alert_policy}/condition" + + "s/{condition}\022\001*B\013\n\tcondition\032\327\003\n\rAlertS" + + "trategy\022f\n\027notification_rate_limit\030\001 \001(\013" + + "2E.google.monitoring.v3.AlertPolicy.Aler" + + "tStrategy.NotificationRateLimit\022-\n\nauto_" + + "close\030\003 \001(\0132\031.google.protobuf.Duration\022r" + + "\n\035notification_channel_strategy\030\004 \003(\0132K." + + "google.monitoring.v3.AlertPolicy.AlertSt" + + "rategy.NotificationChannelStrategy\032B\n\025No" + + "tificationRateLimit\022)\n\006period\030\001 \001(\0132\031.go" + + "ogle.protobuf.Duration\032w\n\033NotificationCh" + + "annelStrategy\022\"\n\032notification_channel_na" + + "mes\030\001 \003(\t\0224\n\021renotify_interval\030\002 \001(\0132\031.g" + + "oogle.protobuf.Duration\0321\n\017UserLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025Co" + + "nditionCombinerType\022\027\n\023COMBINE_UNSPECIFI" + + "ED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHI" + + "NG_RESOURCE\020\003:\311\001\352A\305\001\n%monitoring.googlea" + + "pis.com/AlertPolicy\022/projects/{project}/" + + "alertPolicies/{alert_policy}\0229organizati" + + "ons/{organization}/alertPolicies/{alert_" + + "policy}\022-folders/{folder}/alertPolicies/" + + "{alert_policy}\022\001*B\305\001\n\030com.google.monitor" + + "ing.v3B\nAlertProtoP\001ZAcloud.google.com/g" + + "o/monitoring/apiv3/v2/monitoringpb;monit" + + "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + + "d::Monitoring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.MutationRecordProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_AlertPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Documentation", "UserLabels", "Conditions", "Combiner", "Enabled", "Validity", "NotificationChannels", "CreationRecord", "MutationRecord", "AlertStrategy", }); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor, + new java.lang.String[] { "Content", "MimeType", "Subject", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor, + new java.lang.String[] { "Name", "DisplayName", "ConditionThreshold", "ConditionAbsent", "ConditionMatchedLog", "ConditionMonitoringQueryLanguage", "ConditionPrometheusQueryLanguage", "Condition", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor, + new java.lang.String[] { "Count", "Percent", "Type", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor, + new java.lang.String[] { "Filter", "Aggregations", "DenominatorFilter", "DenominatorAggregations", "ForecastOptions", "Comparison", "ThresholdValue", "Duration", "Trigger", "EvaluationMissingData", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor, + new java.lang.String[] { "ForecastHorizon", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(2); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor, + new java.lang.String[] { "Filter", "Aggregations", "Duration", "Trigger", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(3); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor, + new java.lang.String[] { "Filter", "LabelExtractors", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(4); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor, + new java.lang.String[] { "Query", "Duration", "Trigger", "EvaluationMissingData", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(5); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor, + new java.lang.String[] { "Query", "Duration", "EvaluationInterval", "Labels", "RuleGroup", "AlertRule", }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor, + new java.lang.String[] { "NotificationRateLimit", "AutoClose", "NotificationChannelStrategy", }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor, + new java.lang.String[] { "Period", }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor, + new java.lang.String[] { "NotificationChannelNames", "RenotifyInterval", }); + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(3); + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.MutationRecordProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java new file mode 100644 index 000000000000..a7a5167a5ce3 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public final class AlertServiceProto { + private AlertServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/alert_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032 google/monitoring/v" + + "3/alert.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\"\227\001\n" + + "\030CreateAlertPolicyRequest\022<\n\004name\030\003 \001(\tB" + + ".\342A\001\002\372A\'\022%monitoring.googleapis.com/Aler" + + "tPolicy\022=\n\014alert_policy\030\002 \001(\0132!.google.m" + + "onitoring.v3.AlertPolicyB\004\342A\001\002\"U\n\025GetAle" + + "rtPolicyRequest\022<\n\004name\030\003 \001(\tB.\342A\001\002\372A\'\n%" + + "monitoring.googleapis.com/AlertPolicy\"\241\001" + + "\n\030ListAlertPoliciesRequest\022<\n\004name\030\004 \001(\t" + + "B.\342A\001\002\372A\'\022%monitoring.googleapis.com/Ale" + + "rtPolicy\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001" + + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\203\001\n\031ListAlertPoliciesResponse\0229\n\016alert" + + "_policies\030\003 \003(\0132!.google.monitoring.v3.A" + + "lertPolicy\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + + "otal_size\030\004 \001(\005\"\212\001\n\030UpdateAlertPolicyReq" + + "uest\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\022=\n\014alert_policy\030\003 \001(\0132!.go" + + "ogle.monitoring.v3.AlertPolicyB\004\342A\001\002\"X\n\030" + + "DeleteAlertPolicyRequest\022<\n\004name\030\003 \001(\tB." + + "\342A\001\002\372A\'\n%monitoring.googleapis.com/Alert" + + "Policy2\236\010\n\022AlertPolicyService\022\250\001\n\021ListAl" + + "ertPolicies\022..google.monitoring.v3.ListA" + + "lertPoliciesRequest\032/.google.monitoring." + + "v3.ListAlertPoliciesResponse\"2\332A\004name\202\323\344" + + "\223\002%\022#/v3/{name=projects/*}/alertPolicies" + + "\022\226\001\n\016GetAlertPolicy\022+.google.monitoring." + + "v3.GetAlertPolicyRequest\032!.google.monito" + + "ring.v3.AlertPolicy\"4\332A\004name\202\323\344\223\002\'\022%/v3/" + + "{name=projects/*/alertPolicies/*}\022\265\001\n\021Cr" + + "eateAlertPolicy\022..google.monitoring.v3.C" + + "reateAlertPolicyRequest\032!.google.monitor" + + "ing.v3.AlertPolicy\"M\332A\021name,alert_policy" + + "\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolic" + + "ies:\014alert_policy\022\221\001\n\021DeleteAlertPolicy\022" + + "..google.monitoring.v3.DeleteAlertPolicy" + + "Request\032\026.google.protobuf.Empty\"4\332A\004name" + + "\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolici" + + "es/*}\022\313\001\n\021UpdateAlertPolicy\022..google.mon" + + "itoring.v3.UpdateAlertPolicyRequest\032!.go" + + "ogle.monitoring.v3.AlertPolicy\"c\332A\030updat" + + "e_mask,alert_policy\202\323\344\223\002B22/v3/{alert_po" + + "licy.name=projects/*/alertPolicies/*}:\014a" + + "lert_policy\032\251\001\312A\031monitoring.googleapis.c" + + "om\322A\211\001https://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/monitoring,https://www.googleapis.c" + + "om/auth/monitoring.readB\314\001\n\030com.google.m" + + "onitoring.v3B\021AlertServiceProtoP\001ZAcloud" + + ".google.com/go/monitoring/apiv3/v2/monit" + + "oringpb;monitoringpb\252\002\032Google.Cloud.Moni" + + "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002" + + "\035Google::Cloud::Monitoring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.AlertProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor, + new java.lang.String[] { "Name", "AlertPolicy", }); + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor, + new java.lang.String[] { "Name", "Filter", "OrderBy", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor, + new java.lang.String[] { "AlertPolicies", "NextPageToken", "TotalSize", }); + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor, + new java.lang.String[] { "UpdateMask", "AlertPolicy", }); + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.AlertProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java index 37f75c01be85..f87a8f20c1be 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * An SLI measuring performance on a well-known service type. Performance will
  * be computed on the basis of pre-defined metrics. The type of the
@@ -32,91 +15,88 @@
  *
  * Protobuf type {@code google.monitoring.v3.BasicSli}
  */
-public final class BasicSli extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BasicSli extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli)
     BasicSliOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BasicSli.newBuilder() to construct.
   private BasicSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BasicSli() {
-    method_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    location_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    version_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    method_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    location_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    version_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BasicSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_BasicSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.BasicSli.class,
-            com.google.monitoring.v3.BasicSli.Builder.class);
+            com.google.monitoring.v3.BasicSli.class, com.google.monitoring.v3.BasicSli.Builder.class);
   }
 
-  public interface AvailabilityCriteriaOrBuilder
-      extends
+  public interface AvailabilityCriteriaOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli.AvailabilityCriteria)
-      com.google.protobuf.MessageOrBuilder {}
+      com.google.protobuf.MessageOrBuilder {
+  }
   /**
-   *
-   *
    * 
    * Future parameters for the availability SLI.
    * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.AvailabilityCriteria} */ - public static final class AvailabilityCriteria extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AvailabilityCriteria extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli.AvailabilityCriteria) AvailabilityCriteriaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvailabilityCriteria.newBuilder() to construct. private AvailabilityCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AvailabilityCriteria() {} + private AvailabilityCriteria() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvailabilityCriteria(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -146,13 +127,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.BasicSli.AvailabilityCriteria)) { return super.equals(obj); } - com.google.monitoring.v3.BasicSli.AvailabilityCriteria other = - (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) obj; + com.google.monitoring.v3.BasicSli.AvailabilityCriteria other = (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -171,94 +151,89 @@ public int hashCode() { } public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.BasicSli.AvailabilityCriteria prototype) { + public static Builder newBuilder(com.google.monitoring.v3.BasicSli.AvailabilityCriteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -268,41 +243,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Future parameters for the availability SLI.
      * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.AvailabilityCriteria} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli.AvailabilityCriteria) com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); } // Construct using com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +283,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override @@ -331,8 +304,7 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria build() { @java.lang.Override public com.google.monitoring.v3.BasicSli.AvailabilityCriteria buildPartial() { - com.google.monitoring.v3.BasicSli.AvailabilityCriteria result = - new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(this); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria result = new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(this); onBuilt(); return result; } @@ -341,41 +313,38 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.BasicSli.AvailabilityCriteria) { - return mergeFrom((com.google.monitoring.v3.BasicSli.AvailabilityCriteria) other); + return mergeFrom((com.google.monitoring.v3.BasicSli.AvailabilityCriteria)other); } else { super.mergeFrom(other); return this; @@ -383,8 +352,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.BasicSli.AvailabilityCriteria other) { - if (other == com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -411,13 +379,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -427,7 +394,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -440,12 +406,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) private static final com.google.monitoring.v3.BasicSli.AvailabilityCriteria DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(); } @@ -454,28 +420,27 @@ public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvailabilityCriteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvailabilityCriteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -490,42 +455,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LatencyCriteriaOrBuilder - extends + public interface LatencyCriteriaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli.LatencyCriteria) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; - * * @return Whether the threshold field is set. */ boolean hasThreshold(); /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; - * * @return The threshold. */ com.google.protobuf.Duration getThreshold(); /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
@@ -536,59 +493,53 @@ public interface LatencyCriteriaOrBuilder
     com.google.protobuf.DurationOrBuilder getThresholdOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Parameters for a latency threshold SLI.
    * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.LatencyCriteria} */ - public static final class LatencyCriteria extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LatencyCriteria extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli.LatencyCriteria) LatencyCriteriaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatencyCriteria.newBuilder() to construct. private LatencyCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LatencyCriteria() {} + private LatencyCriteria() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LatencyCriteria(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.LatencyCriteria.class, - com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.LatencyCriteria.class, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); } public static final int THRESHOLD_FIELD_NUMBER = 3; private com.google.protobuf.Duration threshold_; /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; - * * @return Whether the threshold field is set. */ @java.lang.Override @@ -596,15 +547,12 @@ public boolean hasThreshold() { return threshold_ != null; } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; - * * @return The threshold. */ @java.lang.Override @@ -612,8 +560,6 @@ public com.google.protobuf.Duration getThreshold() { return threshold_ == null ? com.google.protobuf.Duration.getDefaultInstance() : threshold_; } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
@@ -627,7 +573,6 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -639,7 +584,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (threshold_ != null) {
         output.writeMessage(3, getThreshold());
       }
@@ -653,7 +599,8 @@ public int getSerializedSize() {
 
       size = 0;
       if (threshold_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getThreshold());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, getThreshold());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -663,17 +610,17 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.BasicSli.LatencyCriteria)) {
         return super.equals(obj);
       }
-      com.google.monitoring.v3.BasicSli.LatencyCriteria other =
-          (com.google.monitoring.v3.BasicSli.LatencyCriteria) obj;
+      com.google.monitoring.v3.BasicSli.LatencyCriteria other = (com.google.monitoring.v3.BasicSli.LatencyCriteria) obj;
 
       if (hasThreshold() != other.hasThreshold()) return false;
       if (hasThreshold()) {
-        if (!getThreshold().equals(other.getThreshold())) return false;
+        if (!getThreshold()
+            .equals(other.getThreshold())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -696,93 +643,89 @@ public int hashCode() {
     }
 
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
     public static Builder newBuilder(com.google.monitoring.v3.BasicSli.LatencyCriteria prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -792,41 +735,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Parameters for a latency threshold SLI.
      * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.LatencyCriteria} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli.LatencyCriteria) com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.LatencyCriteria.class, - com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.LatencyCriteria.class, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); } // Construct using com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -840,9 +781,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override @@ -861,11 +802,8 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria build() { @java.lang.Override public com.google.monitoring.v3.BasicSli.LatencyCriteria buildPartial() { - com.google.monitoring.v3.BasicSli.LatencyCriteria result = - new com.google.monitoring.v3.BasicSli.LatencyCriteria(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.BasicSli.LatencyCriteria result = new com.google.monitoring.v3.BasicSli.LatencyCriteria(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -873,7 +811,9 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria buildPartial() { private void buildPartial0(com.google.monitoring.v3.BasicSli.LatencyCriteria result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.threshold_ = thresholdBuilder_ == null ? threshold_ : thresholdBuilder_.build(); + result.threshold_ = thresholdBuilder_ == null + ? threshold_ + : thresholdBuilder_.build(); } } @@ -881,41 +821,38 @@ private void buildPartial0(com.google.monitoring.v3.BasicSli.LatencyCriteria res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.BasicSli.LatencyCriteria) { - return mergeFrom((com.google.monitoring.v3.BasicSli.LatencyCriteria) other); + return mergeFrom((com.google.monitoring.v3.BasicSli.LatencyCriteria)other); } else { super.mergeFrom(other); return this; @@ -923,8 +860,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.BasicSli.LatencyCriteria other) { - if (other == com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) return this; if (other.hasThreshold()) { mergeThreshold(other.getThreshold()); } @@ -954,19 +890,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - input.readMessage(getThresholdFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + input.readMessage( + getThresholdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -976,54 +912,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration threshold_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - thresholdBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> thresholdBuilder_; /** - * - * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
        * 
* * .google.protobuf.Duration threshold = 3; - * * @return Whether the threshold field is set. */ public boolean hasThreshold() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
        * 
* * .google.protobuf.Duration threshold = 3; - * * @return The threshold. */ public com.google.protobuf.Duration getThreshold() { if (thresholdBuilder_ == null) { - return threshold_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : threshold_; + return threshold_ == null ? com.google.protobuf.Duration.getDefaultInstance() : threshold_; } else { return thresholdBuilder_.getMessage(); } } /** - * - * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1045,8 +967,6 @@ public Builder setThreshold(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1054,7 +974,8 @@ public Builder setThreshold(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration threshold = 3;
        */
-      public Builder setThreshold(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setThreshold(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (thresholdBuilder_ == null) {
           threshold_ = builderForValue.build();
         } else {
@@ -1065,8 +986,6 @@ public Builder setThreshold(com.google.protobuf.Duration.Builder builderForValue
         return this;
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1076,9 +995,9 @@ public Builder setThreshold(com.google.protobuf.Duration.Builder builderForValue
        */
       public Builder mergeThreshold(com.google.protobuf.Duration value) {
         if (thresholdBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && threshold_ != null
-              && threshold_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            threshold_ != null &&
+            threshold_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getThresholdBuilder().mergeFrom(value);
           } else {
             threshold_ = value;
@@ -1091,8 +1010,6 @@ public Builder mergeThreshold(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1111,8 +1028,6 @@ public Builder clearThreshold() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1126,8 +1041,6 @@ public com.google.protobuf.Duration.Builder getThresholdBuilder() {
         return getThresholdFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1139,14 +1052,11 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
         if (thresholdBuilder_ != null) {
           return thresholdBuilder_.getMessageOrBuilder();
         } else {
-          return threshold_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : threshold_;
+          return threshold_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : threshold_;
         }
       }
       /**
-       *
-       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1155,22 +1065,18 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
        * .google.protobuf.Duration threshold = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getThresholdFieldBuilder() {
         if (thresholdBuilder_ == null) {
-          thresholdBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getThreshold(), getParentForChildren(), isClean());
+          thresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getThreshold(),
+                  getParentForChildren(),
+                  isClean());
           threshold_ = null;
         }
         return thresholdBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1183,12 +1089,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli.LatencyCriteria)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.LatencyCriteria)
     private static final com.google.monitoring.v3.BasicSli.LatencyCriteria DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli.LatencyCriteria();
     }
@@ -1197,28 +1103,27 @@ public static com.google.monitoring.v3.BasicSli.LatencyCriteria getDefaultInstan
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public LatencyCriteria parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public LatencyCriteria parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1233,22 +1138,19 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.BasicSli.LatencyCriteria getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int sliCriteriaCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object sliCriteria_;
-
   public enum SliCriteriaCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVAILABILITY(2),
     LATENCY(3),
     SLICRITERIA_NOT_SET(0);
     private final int value;
-
     private SliCriteriaCase(int value) {
       this.value = value;
     }
@@ -1264,34 +1166,28 @@ public static SliCriteriaCase valueOf(int value) {
 
     public static SliCriteriaCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return AVAILABILITY;
-        case 3:
-          return LATENCY;
-        case 0:
-          return SLICRITERIA_NOT_SET;
-        default:
-          return null;
+        case 2: return AVAILABILITY;
+        case 3: return LATENCY;
+        case 0: return SLICRITERIA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SliCriteriaCase getSliCriteriaCase() {
-    return SliCriteriaCase.forNumber(sliCriteriaCase_);
+  public SliCriteriaCase
+  getSliCriteriaCase() {
+    return SliCriteriaCase.forNumber(
+        sliCriteriaCase_);
   }
 
   public static final int METHOD_FIELD_NUMBER = 7;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList method_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1301,15 +1197,13 @@ public SliCriteriaCase getSliCriteriaCase() {
    * 
* * repeated string method = 7; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { return method_; } /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1319,15 +1213,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
    * 
* * repeated string method = 7; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1337,7 +1228,6 @@ public int getMethodCount() {
    * 
* * repeated string method = 7; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1345,8 +1235,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1356,22 +1244,19 @@ public java.lang.String getMethod(int index) {
    * 
* * repeated string method = 7; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } public static final int LOCATION_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList location_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1381,15 +1266,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
    * 
* * repeated string location = 8; - * * @return A list containing the location. */ - public com.google.protobuf.ProtocolStringList getLocationList() { + public com.google.protobuf.ProtocolStringList + getLocationList() { return location_; } /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1399,15 +1282,12 @@ public com.google.protobuf.ProtocolStringList getLocationList() {
    * 
* * repeated string location = 8; - * * @return The count of location. */ public int getLocationCount() { return location_.size(); } /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1417,7 +1297,6 @@ public int getLocationCount() {
    * 
* * repeated string location = 8; - * * @param index The index of the element to return. * @return The location at the given index. */ @@ -1425,8 +1304,6 @@ public java.lang.String getLocation(int index) { return location_.get(index); } /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1436,22 +1313,19 @@ public java.lang.String getLocation(int index) {
    * 
* * repeated string location = 8; - * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - public com.google.protobuf.ByteString getLocationBytes(int index) { + public com.google.protobuf.ByteString + getLocationBytes(int index) { return location_.getByteString(index); } public static final int VERSION_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList version_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1461,15 +1335,13 @@ public com.google.protobuf.ByteString getLocationBytes(int index) {
    * 
* * repeated string version = 9; - * * @return A list containing the version. */ - public com.google.protobuf.ProtocolStringList getVersionList() { + public com.google.protobuf.ProtocolStringList + getVersionList() { return version_; } /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1479,15 +1351,12 @@ public com.google.protobuf.ProtocolStringList getVersionList() {
    * 
* * repeated string version = 9; - * * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1497,7 +1366,6 @@ public int getVersionCount() {
    * 
* * repeated string version = 9; - * * @param index The index of the element to return. * @return The version at the given index. */ @@ -1505,8 +1373,6 @@ public java.lang.String getVersion(int index) { return version_.get(index); } /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1516,25 +1382,22 @@ public java.lang.String getVersion(int index) {
    * 
* * repeated string version = 9; - * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - public com.google.protobuf.ByteString getVersionBytes(int index) { + public com.google.protobuf.ByteString + getVersionBytes(int index) { return version_.getByteString(index); } public static final int AVAILABILITY_FIELD_NUMBER = 2; /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return Whether the availability field is set. */ @java.lang.Override @@ -1542,27 +1405,22 @@ public boolean hasAvailability() { return sliCriteriaCase_ == 2; } /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return The availability. */ @java.lang.Override public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability() { if (sliCriteriaCase_ == 2) { - return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_; + return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_; } return com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance(); } /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
@@ -1571,25 +1429,21 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability()
    * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder
-      getAvailabilityOrBuilder() {
+  public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder() {
     if (sliCriteriaCase_ == 2) {
-      return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_;
+       return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_;
     }
     return com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
   }
 
   public static final int LATENCY_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return Whether the latency field is set. */ @java.lang.Override @@ -1597,27 +1451,22 @@ public boolean hasLatency() { return sliCriteriaCase_ == 3; } /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return The latency. */ @java.lang.Override public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() { if (sliCriteriaCase_ == 3) { - return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_; + return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_; } return com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance(); } /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
@@ -1628,13 +1477,12 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() {
   @java.lang.Override
   public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBuilder() {
     if (sliCriteriaCase_ == 3) {
-      return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_;
+       return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_;
     }
     return com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1646,7 +1494,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sliCriteriaCase_ == 2) {
       output.writeMessage(2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
     }
@@ -1672,14 +1521,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (sliCriteriaCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
     }
     if (sliCriteriaCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_);
     }
     {
       int dataSize = 0;
@@ -1713,23 +1560,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.BasicSli)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.BasicSli other = (com.google.monitoring.v3.BasicSli) obj;
 
-    if (!getMethodList().equals(other.getMethodList())) return false;
-    if (!getLocationList().equals(other.getLocationList())) return false;
-    if (!getVersionList().equals(other.getVersionList())) return false;
+    if (!getMethodList()
+        .equals(other.getMethodList())) return false;
+    if (!getLocationList()
+        .equals(other.getLocationList())) return false;
+    if (!getVersionList()
+        .equals(other.getVersionList())) return false;
     if (!getSliCriteriaCase().equals(other.getSliCriteriaCase())) return false;
     switch (sliCriteriaCase_) {
       case 2:
-        if (!getAvailability().equals(other.getAvailability())) return false;
+        if (!getAvailability()
+            .equals(other.getAvailability())) return false;
         break;
       case 3:
-        if (!getLatency().equals(other.getLatency())) return false;
+        if (!getLatency()
+            .equals(other.getLatency())) return false;
         break;
       case 0:
       default:
@@ -1774,103 +1626,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.BasicSli parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.BasicSli parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.BasicSli parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.monitoring.v3.BasicSli parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.BasicSli parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.BasicSli parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.BasicSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.BasicSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * An SLI measuring performance on a well-known service type. Performance will
    * be computed on the basis of pre-defined metrics. The type of the
@@ -1882,39 +1730,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.BasicSli}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli)
       com.google.monitoring.v3.BasicSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_BasicSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.BasicSli.class,
-              com.google.monitoring.v3.BasicSli.Builder.class);
+              com.google.monitoring.v3.BasicSli.class, com.google.monitoring.v3.BasicSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.BasicSli.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      method_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      location_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      version_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      method_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      location_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      version_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       if (availabilityBuilder_ != null) {
         availabilityBuilder_.clear();
       }
@@ -1927,9 +1779,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_BasicSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
     }
 
     @java.lang.Override
@@ -1949,9 +1801,7 @@ public com.google.monitoring.v3.BasicSli build() {
     @java.lang.Override
     public com.google.monitoring.v3.BasicSli buildPartial() {
       com.google.monitoring.v3.BasicSli result = new com.google.monitoring.v3.BasicSli(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1976,10 +1826,12 @@ private void buildPartial0(com.google.monitoring.v3.BasicSli result) {
     private void buildPartialOneofs(com.google.monitoring.v3.BasicSli result) {
       result.sliCriteriaCase_ = sliCriteriaCase_;
       result.sliCriteria_ = this.sliCriteria_;
-      if (sliCriteriaCase_ == 2 && availabilityBuilder_ != null) {
+      if (sliCriteriaCase_ == 2 &&
+          availabilityBuilder_ != null) {
         result.sliCriteria_ = availabilityBuilder_.build();
       }
-      if (sliCriteriaCase_ == 3 && latencyBuilder_ != null) {
+      if (sliCriteriaCase_ == 3 &&
+          latencyBuilder_ != null) {
         result.sliCriteria_ = latencyBuilder_.build();
       }
     }
@@ -1988,39 +1840,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.BasicSli result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.BasicSli) {
-        return mergeFrom((com.google.monitoring.v3.BasicSli) other);
+        return mergeFrom((com.google.monitoring.v3.BasicSli)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2060,20 +1911,17 @@ public Builder mergeFrom(com.google.monitoring.v3.BasicSli other) {
         onChanged();
       }
       switch (other.getSliCriteriaCase()) {
-        case AVAILABILITY:
-          {
-            mergeAvailability(other.getAvailability());
-            break;
-          }
-        case LATENCY:
-          {
-            mergeLatency(other.getLatency());
-            break;
-          }
-        case SLICRITERIA_NOT_SET:
-          {
-            break;
-          }
+        case AVAILABILITY: {
+          mergeAvailability(other.getAvailability());
+          break;
+        }
+        case LATENCY: {
+          mergeLatency(other.getLatency());
+          break;
+        }
+        case SLICRITERIA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2101,46 +1949,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getAvailabilityFieldBuilder().getBuilder(), extensionRegistry);
-                sliCriteriaCase_ = 2;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getLatencyFieldBuilder().getBuilder(), extensionRegistry);
-                sliCriteriaCase_ = 3;
-                break;
-              } // case 26
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureMethodIsMutable();
-                method_.add(s);
-                break;
-              } // case 58
-            case 66:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLocationIsMutable();
-                location_.add(s);
-                break;
-              } // case 66
-            case 74:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureVersionIsMutable();
-                version_.add(s);
-                break;
-              } // case 74
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getAvailabilityFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              sliCriteriaCase_ = 2;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getLatencyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              sliCriteriaCase_ = 3;
+              break;
+            } // case 26
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureMethodIsMutable();
+              method_.add(s);
+              break;
+            } // case 58
+            case 66: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLocationIsMutable();
+              location_.add(s);
+              break;
+            } // case 66
+            case 74: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureVersionIsMutable();
+              version_.add(s);
+              break;
+            } // case 74
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2150,12 +1996,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int sliCriteriaCase_ = 0;
     private java.lang.Object sliCriteria_;
-
-    public SliCriteriaCase getSliCriteriaCase() {
-      return SliCriteriaCase.forNumber(sliCriteriaCase_);
+    public SliCriteriaCase
+        getSliCriteriaCase() {
+      return SliCriteriaCase.forNumber(
+          sliCriteriaCase_);
     }
 
     public Builder clearSliCriteria() {
@@ -2169,7 +2015,6 @@ public Builder clearSliCriteria() {
 
     private com.google.protobuf.LazyStringArrayList method_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureMethodIsMutable() {
       if (!method_.isModifiable()) {
         method_ = new com.google.protobuf.LazyStringArrayList(method_);
@@ -2177,8 +2022,6 @@ private void ensureMethodIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2188,16 +2031,14 @@ private void ensureMethodIsMutable() {
      * 
* * repeated string method = 7; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { method_.makeImmutable(); return method_; } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2207,15 +2048,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
      * 
* * repeated string method = 7; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2225,7 +2063,6 @@ public int getMethodCount() {
      * 
* * repeated string method = 7; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -2233,8 +2070,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2244,16 +2079,14 @@ public java.lang.String getMethod(int index) {
      * 
* * repeated string method = 7; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2263,15 +2096,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
      * 
* * repeated string method = 7; - * * @param index The index to set the value at. * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethod( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.set(index, value); bitField0_ |= 0x00000001; @@ -2279,8 +2110,6 @@ public Builder setMethod(int index, java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2290,14 +2119,12 @@ public Builder setMethod(int index, java.lang.String value) {
      * 
* * repeated string method = 7; - * * @param value The method to add. * @return This builder for chaining. */ - public Builder addMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.add(value); bitField0_ |= 0x00000001; @@ -2305,8 +2132,6 @@ public Builder addMethod(java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2316,20 +2141,19 @@ public Builder addMethod(java.lang.String value) {
      * 
* * repeated string method = 7; - * * @param values The method to add. * @return This builder for chaining. */ - public Builder addAllMethod(java.lang.Iterable values) { + public Builder addAllMethod( + java.lang.Iterable values) { ensureMethodIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, method_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, method_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2339,19 +2163,16 @@ public Builder addAllMethod(java.lang.Iterable values) {
      * 
* * repeated string method = 7; - * * @return This builder for chaining. */ public Builder clearMethod() { - method_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + method_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2361,14 +2182,12 @@ public Builder clearMethod() {
      * 
* * repeated string method = 7; - * * @param value The bytes of the method to add. * @return This builder for chaining. */ - public Builder addMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMethodIsMutable(); method_.add(value); @@ -2379,7 +2198,6 @@ public Builder addMethodBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList location_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLocationIsMutable() { if (!location_.isModifiable()) { location_ = new com.google.protobuf.LazyStringArrayList(location_); @@ -2387,8 +2205,6 @@ private void ensureLocationIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2398,16 +2214,14 @@ private void ensureLocationIsMutable() {
      * 
* * repeated string location = 8; - * * @return A list containing the location. */ - public com.google.protobuf.ProtocolStringList getLocationList() { + public com.google.protobuf.ProtocolStringList + getLocationList() { location_.makeImmutable(); return location_; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2417,15 +2231,12 @@ public com.google.protobuf.ProtocolStringList getLocationList() {
      * 
* * repeated string location = 8; - * * @return The count of location. */ public int getLocationCount() { return location_.size(); } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2435,7 +2246,6 @@ public int getLocationCount() {
      * 
* * repeated string location = 8; - * * @param index The index of the element to return. * @return The location at the given index. */ @@ -2443,8 +2253,6 @@ public java.lang.String getLocation(int index) { return location_.get(index); } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2454,16 +2262,14 @@ public java.lang.String getLocation(int index) {
      * 
* * repeated string location = 8; - * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - public com.google.protobuf.ByteString getLocationBytes(int index) { + public com.google.protobuf.ByteString + getLocationBytes(int index) { return location_.getByteString(index); } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2473,15 +2279,13 @@ public com.google.protobuf.ByteString getLocationBytes(int index) {
      * 
* * repeated string location = 8; - * * @param index The index to set the value at. * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.set(index, value); bitField0_ |= 0x00000002; @@ -2489,8 +2293,6 @@ public Builder setLocation(int index, java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2500,14 +2302,12 @@ public Builder setLocation(int index, java.lang.String value) {
      * 
* * repeated string location = 8; - * * @param value The location to add. * @return This builder for chaining. */ - public Builder addLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(value); bitField0_ |= 0x00000002; @@ -2515,8 +2315,6 @@ public Builder addLocation(java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2526,20 +2324,19 @@ public Builder addLocation(java.lang.String value) {
      * 
* * repeated string location = 8; - * * @param values The location to add. * @return This builder for chaining. */ - public Builder addAllLocation(java.lang.Iterable values) { + public Builder addAllLocation( + java.lang.Iterable values) { ensureLocationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, location_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, location_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2549,19 +2346,16 @@ public Builder addAllLocation(java.lang.Iterable values) {
      * 
* * repeated string location = 8; - * * @return This builder for chaining. */ public Builder clearLocation() { - location_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + location_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2571,14 +2365,12 @@ public Builder clearLocation() {
      * 
* * repeated string location = 8; - * * @param value The bytes of the location to add. * @return This builder for chaining. */ - public Builder addLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLocationIsMutable(); location_.add(value); @@ -2589,7 +2381,6 @@ public Builder addLocationBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList version_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureVersionIsMutable() { if (!version_.isModifiable()) { version_ = new com.google.protobuf.LazyStringArrayList(version_); @@ -2597,8 +2388,6 @@ private void ensureVersionIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2608,16 +2397,14 @@ private void ensureVersionIsMutable() {
      * 
* * repeated string version = 9; - * * @return A list containing the version. */ - public com.google.protobuf.ProtocolStringList getVersionList() { + public com.google.protobuf.ProtocolStringList + getVersionList() { version_.makeImmutable(); return version_; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2627,15 +2414,12 @@ public com.google.protobuf.ProtocolStringList getVersionList() {
      * 
* * repeated string version = 9; - * * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2645,7 +2429,6 @@ public int getVersionCount() {
      * 
* * repeated string version = 9; - * * @param index The index of the element to return. * @return The version at the given index. */ @@ -2653,8 +2436,6 @@ public java.lang.String getVersion(int index) { return version_.get(index); } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2664,16 +2445,14 @@ public java.lang.String getVersion(int index) {
      * 
* * repeated string version = 9; - * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - public com.google.protobuf.ByteString getVersionBytes(int index) { + public com.google.protobuf.ByteString + getVersionBytes(int index) { return version_.getByteString(index); } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2683,15 +2462,13 @@ public com.google.protobuf.ByteString getVersionBytes(int index) {
      * 
* * repeated string version = 9; - * * @param index The index to set the value at. * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersion( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVersionIsMutable(); version_.set(index, value); bitField0_ |= 0x00000004; @@ -2699,8 +2476,6 @@ public Builder setVersion(int index, java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2710,14 +2485,12 @@ public Builder setVersion(int index, java.lang.String value) {
      * 
* * repeated string version = 9; - * * @param value The version to add. * @return This builder for chaining. */ - public Builder addVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVersionIsMutable(); version_.add(value); bitField0_ |= 0x00000004; @@ -2725,8 +2498,6 @@ public Builder addVersion(java.lang.String value) { return this; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2736,20 +2507,19 @@ public Builder addVersion(java.lang.String value) {
      * 
* * repeated string version = 9; - * * @param values The version to add. * @return This builder for chaining. */ - public Builder addAllVersion(java.lang.Iterable values) { + public Builder addAllVersion( + java.lang.Iterable values) { ensureVersionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, version_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, version_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2759,19 +2529,16 @@ public Builder addAllVersion(java.lang.Iterable values) {
      * 
* * repeated string version = 9; - * * @return This builder for chaining. */ public Builder clearVersion() { - version_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + version_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2781,14 +2548,12 @@ public Builder clearVersion() {
      * 
* * repeated string version = 9; - * * @param value The bytes of the version to add. * @return This builder for chaining. */ - public Builder addVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureVersionIsMutable(); version_.add(value); @@ -2798,20 +2563,14 @@ public Builder addVersionBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli.AvailabilityCriteria, - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, - com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> - availabilityBuilder_; + com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> availabilityBuilder_; /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
      * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return Whether the availability field is set. */ @java.lang.Override @@ -2819,15 +2578,12 @@ public boolean hasAvailability() { return sliCriteriaCase_ == 2; } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
      * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return The availability. */ @java.lang.Override @@ -2845,8 +2601,6 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability() } } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2868,8 +2622,6 @@ public Builder setAvailability(com.google.monitoring.v3.BasicSli.AvailabilityCri
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2889,8 +2641,6 @@ public Builder setAvailability(
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2900,14 +2650,10 @@ public Builder setAvailability(
      */
     public Builder mergeAvailability(com.google.monitoring.v3.BasicSli.AvailabilityCriteria value) {
       if (availabilityBuilder_ == null) {
-        if (sliCriteriaCase_ == 2
-            && sliCriteria_
-                != com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) {
-          sliCriteria_ =
-              com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder(
-                      (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sliCriteriaCase_ == 2 &&
+            sliCriteria_ != com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) {
+          sliCriteria_ = com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder((com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_)
+              .mergeFrom(value).buildPartial();
         } else {
           sliCriteria_ = value;
         }
@@ -2923,8 +2669,6 @@ public Builder mergeAvailability(com.google.monitoring.v3.BasicSli.AvailabilityC
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2949,8 +2693,6 @@ public Builder clearAvailability() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2962,8 +2704,6 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
       return getAvailabilityFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2972,8 +2712,7 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
      * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder
-        getAvailabilityOrBuilder() {
+    public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder() {
       if ((sliCriteriaCase_ == 2) && (availabilityBuilder_ != null)) {
         return availabilityBuilder_.getMessageOrBuilder();
       } else {
@@ -2984,8 +2723,6 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
       }
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2994,20 +2731,14 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
      * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli.AvailabilityCriteria,
-            com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder,
-            com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>
+        com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> 
         getAvailabilityFieldBuilder() {
       if (availabilityBuilder_ == null) {
         if (!(sliCriteriaCase_ == 2)) {
-          sliCriteria_ =
-              com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
+          sliCriteria_ = com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
         }
-        availabilityBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.BasicSli.AvailabilityCriteria,
-                com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder,
-                com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>(
+        availabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>(
                 (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_,
                 getParentForChildren(),
                 isClean());
@@ -3019,20 +2750,14 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli.LatencyCriteria,
-            com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
-            com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>
-        latencyBuilder_;
+        com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder> latencyBuilder_;
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
      * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return Whether the latency field is set. */ @java.lang.Override @@ -3040,15 +2765,12 @@ public boolean hasLatency() { return sliCriteriaCase_ == 3; } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
      * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return The latency. */ @java.lang.Override @@ -3066,8 +2788,6 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() { } } /** - * - * *
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3089,8 +2809,6 @@ public Builder setLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3110,8 +2828,6 @@ public Builder setLatency(
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3121,14 +2837,10 @@ public Builder setLatency(
      */
     public Builder mergeLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria value) {
       if (latencyBuilder_ == null) {
-        if (sliCriteriaCase_ == 3
-            && sliCriteria_
-                != com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) {
-          sliCriteria_ =
-              com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder(
-                      (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sliCriteriaCase_ == 3 &&
+            sliCriteria_ != com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) {
+          sliCriteria_ = com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder((com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_)
+              .mergeFrom(value).buildPartial();
         } else {
           sliCriteria_ = value;
         }
@@ -3144,8 +2856,6 @@ public Builder mergeLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria va
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3170,8 +2880,6 @@ public Builder clearLatency() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3183,8 +2891,6 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder getLatencyBuild
       return getLatencyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3204,8 +2910,6 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
       }
     }
     /**
-     *
-     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -3214,19 +2918,14 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
      * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli.LatencyCriteria,
-            com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
-            com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>
+        com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder> 
         getLatencyFieldBuilder() {
       if (latencyBuilder_ == null) {
         if (!(sliCriteriaCase_ == 3)) {
           sliCriteria_ = com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance();
         }
-        latencyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.BasicSli.LatencyCriteria,
-                com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
-                com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>(
+        latencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>(
                 (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_,
                 getParentForChildren(),
                 isClean());
@@ -3236,9 +2935,9 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
       onChanged();
       return latencyBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3248,12 +2947,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli)
   private static final com.google.monitoring.v3.BasicSli DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli();
   }
@@ -3262,27 +2961,27 @@ public static com.google.monitoring.v3.BasicSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BasicSli parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BasicSli parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3297,4 +2996,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.BasicSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
similarity index 87%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
index 8cad5753c8c8..80a31e19bc6d 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface BasicSliOrBuilder
-    extends
+public interface BasicSliOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -35,13 +17,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string method = 7; - * * @return A list containing the method. */ - java.util.List getMethodList(); + java.util.List + getMethodList(); /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -51,13 +31,10 @@ public interface BasicSliOrBuilder
    * 
* * repeated string method = 7; - * * @return The count of method. */ int getMethodCount(); /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -67,14 +44,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string method = 7; - * * @param index The index of the element to return. * @return The method at the given index. */ java.lang.String getMethod(int index); /** - * - * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -84,15 +58,13 @@ public interface BasicSliOrBuilder
    * 
* * repeated string method = 7; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - com.google.protobuf.ByteString getMethodBytes(int index); + com.google.protobuf.ByteString + getMethodBytes(int index); /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -102,13 +74,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string location = 8; - * * @return A list containing the location. */ - java.util.List getLocationList(); + java.util.List + getLocationList(); /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -118,13 +88,10 @@ public interface BasicSliOrBuilder
    * 
* * repeated string location = 8; - * * @return The count of location. */ int getLocationCount(); /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -134,14 +101,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string location = 8; - * * @param index The index of the element to return. * @return The location at the given index. */ java.lang.String getLocation(int index); /** - * - * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -151,15 +115,13 @@ public interface BasicSliOrBuilder
    * 
* * repeated string location = 8; - * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - com.google.protobuf.ByteString getLocationBytes(int index); + com.google.protobuf.ByteString + getLocationBytes(int index); /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -169,13 +131,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string version = 9; - * * @return A list containing the version. */ - java.util.List getVersionList(); + java.util.List + getVersionList(); /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -185,13 +145,10 @@ public interface BasicSliOrBuilder
    * 
* * repeated string version = 9; - * * @return The count of version. */ int getVersionCount(); /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -201,14 +158,11 @@ public interface BasicSliOrBuilder
    * 
* * repeated string version = 9; - * * @param index The index of the element to return. * @return The version at the given index. */ java.lang.String getVersion(int index); /** - * - * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -218,41 +172,33 @@ public interface BasicSliOrBuilder
    * 
* * repeated string version = 9; - * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - com.google.protobuf.ByteString getVersionBytes(int index); + com.google.protobuf.ByteString + getVersionBytes(int index); /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return Whether the availability field is set. */ boolean hasAvailability(); /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; - * * @return The availability. */ com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability(); /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
@@ -263,34 +209,26 @@ public interface BasicSliOrBuilder
   com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder();
 
   /**
-   *
-   *
    * 
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return Whether the latency field is set. */ boolean hasLatency(); /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; - * * @return The latency. */ com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency(); /** - * - * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
new file mode 100644
index 000000000000..6eb26cfe5c39
--- /dev/null
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
@@ -0,0 +1,120 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/common.proto
+
+package com.google.monitoring.v3;
+
+public final class CommonProto {
+  private CommonProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_TypedValue_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_TimeInterval_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Aggregation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/monitoring/v3/common.proto\022\024goo" +
+      "gle.monitoring.v3\032\035google/api/distributi" +
+      "on.proto\032\036google/protobuf/duration.proto" +
+      "\032\037google/protobuf/timestamp.proto\"\252\001\n\nTy" +
+      "pedValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_" +
+      "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n" +
+      "\014string_value\030\004 \001(\tH\000\0226\n\022distribution_va" +
+      "lue\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n" +
+      "\005value\"l\n\014TimeInterval\022,\n\010end_time\030\002 \001(\013" +
+      "2\032.google.protobuf.Timestamp\022.\n\nstart_ti" +
+      "me\030\001 \001(\0132\032.google.protobuf.Timestamp\"\255\007\n" +
+      "\013Aggregation\0223\n\020alignment_period\030\001 \001(\0132\031" +
+      ".google.protobuf.Duration\022E\n\022per_series_" +
+      "aligner\030\002 \001(\0162).google.monitoring.v3.Agg" +
+      "regation.Aligner\022G\n\024cross_series_reducer" +
+      "\030\004 \001(\0162).google.monitoring.v3.Aggregatio" +
+      "n.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007A" +
+      "ligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001\022" +
+      "\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022\024" +
+      "\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\tA" +
+      "LIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COUN" +
+      "T\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n\020" +
+      "ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE\020" +
+      "\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PERC" +
+      "ENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n\023" +
+      "ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTIL" +
+      "E_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Red" +
+      "ucer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022\016" +
+      "\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUCE" +
+      "_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COUN" +
+      "T\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_COU" +
+      "NT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n\024" +
+      "REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCENT" +
+      "ILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024RE" +
+      "DUCE_PERCENTILE_05\020\014*\236\001\n\016ComparisonType\022" +
+      "\032\n\026COMPARISON_UNSPECIFIED\020\000\022\021\n\rCOMPARISO" +
+      "N_GT\020\001\022\021\n\rCOMPARISON_GE\020\002\022\021\n\rCOMPARISON_" +
+      "LT\020\003\022\021\n\rCOMPARISON_LE\020\004\022\021\n\rCOMPARISON_EQ" +
+      "\020\005\022\021\n\rCOMPARISON_NE\020\006*a\n\013ServiceTier\022\034\n\030" +
+      "SERVICE_TIER_UNSPECIFIED\020\000\022\026\n\022SERVICE_TI" +
+      "ER_BASIC\020\001\022\030\n\024SERVICE_TIER_PREMIUM\020\002\032\002\030\001" +
+      "B\306\001\n\030com.google.monitoring.v3B\013CommonPro" +
+      "toP\001ZAcloud.google.com/go/monitoring/api" +
+      "v3/v2/monitoringpb;monitoringpb\252\002\032Google" +
+      ".Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Moni" +
+      "toring\\V3\352\002\035Google::Cloud::Monitoring::V" +
+      "3b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.DistributionProto.getDescriptor(),
+          com.google.protobuf.DurationProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_monitoring_v3_TypedValue_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_TypedValue_descriptor,
+        new java.lang.String[] { "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", });
+    internal_static_google_monitoring_v3_TimeInterval_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_TimeInterval_descriptor,
+        new java.lang.String[] { "EndTime", "StartTime", });
+    internal_static_google_monitoring_v3_Aggregation_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Aggregation_descriptor,
+        new java.lang.String[] { "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", });
+    com.google.api.DistributionProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
similarity index 72%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
index 26085a2c6797..98216500c51e 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * Specifies an ordering relationship on two arguments, called `left` and
  * `right`.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.monitoring.v3.ComparisonType}
  */
-public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum {
+public enum ComparisonType
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No ordering relationship is specified.
    * 
@@ -40,8 +22,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_UNSPECIFIED(0), /** - * - * *
    * True if the left argument is greater than the right argument.
    * 
@@ -50,8 +30,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_GT(1), /** - * - * *
    * True if the left argument is greater than or equal to the right argument.
    * 
@@ -60,8 +38,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_GE(2), /** - * - * *
    * True if the left argument is less than the right argument.
    * 
@@ -70,8 +46,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_LT(3), /** - * - * *
    * True if the left argument is less than or equal to the right argument.
    * 
@@ -80,8 +54,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_LE(4), /** - * - * *
    * True if the left argument is equal to the right argument.
    * 
@@ -90,8 +62,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ COMPARISON_EQ(5), /** - * - * *
    * True if the left argument is not equal to the right argument.
    * 
@@ -103,8 +73,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No ordering relationship is specified.
    * 
@@ -113,8 +81,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_UNSPECIFIED_VALUE = 0; /** - * - * *
    * True if the left argument is greater than the right argument.
    * 
@@ -123,8 +89,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_GT_VALUE = 1; /** - * - * *
    * True if the left argument is greater than or equal to the right argument.
    * 
@@ -133,8 +97,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_GE_VALUE = 2; /** - * - * *
    * True if the left argument is less than the right argument.
    * 
@@ -143,8 +105,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_LT_VALUE = 3; /** - * - * *
    * True if the left argument is less than or equal to the right argument.
    * 
@@ -153,8 +113,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_LE_VALUE = 4; /** - * - * *
    * True if the left argument is equal to the right argument.
    * 
@@ -163,8 +121,6 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_EQ_VALUE = 5; /** - * - * *
    * True if the left argument is not equal to the right argument.
    * 
@@ -173,6 +129,7 @@ public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPARISON_NE_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -197,57 +154,53 @@ public static ComparisonType valueOf(int value) { */ public static ComparisonType forNumber(int value) { switch (value) { - case 0: - return COMPARISON_UNSPECIFIED; - case 1: - return COMPARISON_GT; - case 2: - return COMPARISON_GE; - case 3: - return COMPARISON_LT; - case 4: - return COMPARISON_LE; - case 5: - return COMPARISON_EQ; - case 6: - return COMPARISON_NE; - default: - return null; + case 0: return COMPARISON_UNSPECIFIED; + case 1: return COMPARISON_GT; + case 2: return COMPARISON_GE; + case 3: return COMPARISON_LT; + case 4: return COMPARISON_LE; + case 5: return COMPARISON_EQ; + case 6: return COMPARISON_NE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComparisonType findValueByNumber(int number) { - return ComparisonType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ComparisonType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonType findValueByNumber(int number) { + return ComparisonType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.v3.CommonProto.getDescriptor().getEnumTypes().get(0); } private static final ComparisonType[] VALUES = values(); - public static ComparisonType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ComparisonType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -263,3 +216,4 @@ private ComparisonType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.ComparisonType) } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java similarity index 59% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java index 3709956e2ae2..273f4ac38d27 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `CreateAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateAlertPolicyRequest} */ -public final class CreateAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAlertPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateAlertPolicyRequest) CreateAlertPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAlertPolicyRequest.newBuilder() to construct. private CreateAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateAlertPolicyRequest.class, - com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.CreateAlertPolicyRequest.class, com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-   * which to create the alerting policy. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the alerting policy. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * container.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -96,18 +72,18 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-   * which to create the alerting policy. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the alerting policy. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -120,18 +96,17 @@ public java.lang.String getName() {
    * container.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -142,18 +117,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ALERT_POLICY_FIELD_NUMBER = 2; private com.google.monitoring.v3.AlertPolicy alertPolicy_; /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ @java.lang.Override @@ -161,48 +131,34 @@ public boolean hasAlertPolicy() { return alertPolicy_ != null; } /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (alertPolicy_ != null) { output.writeMessage(2, getAlertPolicy()); } @@ -231,7 +188,8 @@ public int getSerializedSize() { size = 0; if (alertPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlertPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAlertPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -244,18 +202,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateAlertPolicyRequest other = - (com.google.monitoring.v3.CreateAlertPolicyRequest) obj; + com.google.monitoring.v3.CreateAlertPolicyRequest other = (com.google.monitoring.v3.CreateAlertPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasAlertPolicy() != other.hasAlertPolicy()) return false; if (hasAlertPolicy()) { - if (!getAlertPolicy().equals(other.getAlertPolicy())) return false; + if (!getAlertPolicy() + .equals(other.getAlertPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -280,135 +239,131 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `CreateAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateAlertPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateAlertPolicyRequest) com.google.monitoring.v3.CreateAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateAlertPolicyRequest.class, - com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.CreateAlertPolicyRequest.class, com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateAlertPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override @@ -444,11 +399,8 @@ public com.google.monitoring.v3.CreateAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.CreateAlertPolicyRequest result = - new com.google.monitoring.v3.CreateAlertPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateAlertPolicyRequest result = new com.google.monitoring.v3.CreateAlertPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -459,8 +411,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateAlertPolicyRequest res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.alertPolicy_ = - alertPolicyBuilder_ == null ? alertPolicy_ : alertPolicyBuilder_.build(); + result.alertPolicy_ = alertPolicyBuilder_ == null + ? alertPolicy_ + : alertPolicyBuilder_.build(); } } @@ -468,39 +421,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateAlertPolicyRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.CreateAlertPolicyRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateAlertPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -508,8 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -544,25 +495,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getAlertPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getAlertPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -572,16 +522,14 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-     * which to create the alerting policy. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+     * to create the alerting policy. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -594,16 +542,14 @@ public Builder mergeFrom(
      * container.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,11 +558,10 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-     * which to create the alerting policy. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+     * to create the alerting policy. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -629,17 +574,16 @@ public java.lang.String getName() {
      * container.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -647,11 +591,10 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-     * which to create the alerting policy. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+     * to create the alerting policy. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -664,28 +607,23 @@ public com.google.protobuf.ByteString getNameBytes() {
      * container.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-     * which to create the alerting policy. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+     * to create the alerting policy. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -698,10 +636,7 @@ public Builder setName(java.lang.String value) {
      * container.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -711,11 +646,10 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-     * which to create the alerting policy. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+     * to create the alerting policy. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -728,17 +662,13 @@ public Builder clearName() {
      * container.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -748,64 +678,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.AlertPolicy alertPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder> - alertPolicyBuilder_; + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPolicyBuilder_; /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ public boolean hasAlertPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { @@ -821,19 +732,16 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder setAlertPolicy( + com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPolicyBuilder_ == null) { alertPolicy_ = builderForValue.build(); } else { @@ -844,23 +752,19 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder build return this; } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && alertPolicy_ != null - && alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + alertPolicy_ != null && + alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { getAlertPolicyBuilder().mergeFrom(value); } else { alertPolicy_ = value; @@ -873,17 +777,13 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAlertPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -896,17 +796,13 @@ public Builder clearAlertPolicy() { return this; } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { bitField0_ |= 0x00000002; @@ -914,59 +810,47 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { return getAlertPolicyFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? + com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } } /** - * - * *
-     * Required. The requested alerting policy. You should omit the `name` field in this
-     * policy. The name will be returned in the new policy, including
-     * a new `[ALERT_POLICY_ID]` value.
+     * Required. The requested alerting policy. You should omit the `name` field
+     * in this policy. The name will be returned in the new policy, including a
+     * new `[ALERT_POLICY_ID]` value.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPolicyFieldBuilder() { if (alertPolicyBuilder_ == null) { - alertPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder>( - getAlertPolicy(), getParentForChildren(), isClean()); + alertPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( + getAlertPolicy(), + getParentForChildren(), + isClean()); alertPolicy_ = null; } return alertPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) private static final com.google.monitoring.v3.CreateAlertPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateAlertPolicyRequest(); } @@ -990,27 +874,27 @@ public static com.google.monitoring.v3.CreateAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java similarity index 50% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java index b7287b6dcc01..4725f5771403 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java @@ -1,34 +1,17 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface CreateAlertPolicyRequestOrBuilder - extends +public interface CreateAlertPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateAlertPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-   * which to create the alerting policy. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the alerting policy. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -41,19 +24,15 @@ public interface CreateAlertPolicyRequestOrBuilder
    * container.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-   * which to create the alerting policy. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the alerting policy. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -66,58 +45,42 @@ public interface CreateAlertPolicyRequestOrBuilder
    * container.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ boolean hasAlertPolicy(); /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ com.google.monitoring.v3.AlertPolicy getAlertPolicy(); /** - * - * *
-   * Required. The requested alerting policy. You should omit the `name` field in this
-   * policy. The name will be returned in the new policy, including
-   * a new `[ALERT_POLICY_ID]` value.
+   * Required. The requested alerting policy. You should omit the `name` field
+   * in this policy. The name will be returned in the new policy, including a
+   * new `[ALERT_POLICY_ID]` value.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java similarity index 69% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java index 8a81cf365dbf..e8ad7be7cb4c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateGroupRequest} */ -public final class CreateGroupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateGroupRequest) CreateGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGroupRequest.newBuilder() to construct. private CreateGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGroupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateGroupRequest.class, - com.google.monitoring.v3.CreateGroupRequest.Builder.class); + com.google.monitoring.v3.CreateGroupRequest.class, com.google.monitoring.v3.CreateGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -76,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -104,18 +78,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int GROUP_FIELD_NUMBER = 2; private com.google.monitoring.v3.Group group_; /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ @java.lang.Override @@ -142,15 +112,12 @@ public boolean hasGroup() { return group_ != null; } /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ @java.lang.Override @@ -158,8 +125,6 @@ public com.google.monitoring.v3.Group getGroup() { return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_; } /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
@@ -175,14 +140,11 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If true, validate this request but do not create the group.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -191,7 +153,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (group_ != null) { output.writeMessage(2, getGroup()); } @@ -223,10 +185,12 @@ public int getSerializedSize() { size = 0; if (group_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGroup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGroup()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); @@ -239,20 +203,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateGroupRequest other = - (com.google.monitoring.v3.CreateGroupRequest) obj; + com.google.monitoring.v3.CreateGroupRequest other = (com.google.monitoring.v3.CreateGroupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasGroup() != other.hasGroup()) return false; if (hasGroup()) { - if (!getGroup().equals(other.getGroup())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,142 +237,139 @@ public int hashCode() { hash = (53 * hash) + getGroup().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateGroupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateGroupRequest) com.google.monitoring.v3.CreateGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateGroupRequest.class, - com.google.monitoring.v3.CreateGroupRequest.Builder.class); + com.google.monitoring.v3.CreateGroupRequest.class, com.google.monitoring.v3.CreateGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateGroupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override @@ -443,11 +406,8 @@ public com.google.monitoring.v3.CreateGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateGroupRequest buildPartial() { - com.google.monitoring.v3.CreateGroupRequest result = - new com.google.monitoring.v3.CreateGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateGroupRequest result = new com.google.monitoring.v3.CreateGroupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -458,7 +418,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateGroupRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.group_ = groupBuilder_ == null ? group_ : groupBuilder_.build(); + result.group_ = groupBuilder_ == null + ? group_ + : groupBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -469,39 +431,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateGroupRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateGroupRequest) { - return mergeFrom((com.google.monitoring.v3.CreateGroupRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateGroupRequest)other); } else { super.mergeFrom(other); return this; @@ -547,31 +508,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,13 +540,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -595,16 +551,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,8 +567,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -622,17 +574,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -640,8 +591,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -649,25 +598,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -675,10 +618,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -688,8 +628,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -697,17 +635,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -717,35 +651,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.Group group_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Group, - com.google.monitoring.v3.Group.Builder, - com.google.monitoring.v3.GroupOrBuilder> - groupBuilder_; + com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; /** - * - * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ public boolean hasGroup() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ public com.google.monitoring.v3.Group getGroup() { @@ -756,8 +681,6 @@ public com.google.monitoring.v3.Group getGroup() { } } /** - * - * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -779,8 +702,6 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -788,7 +709,8 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
      *
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue) {
+    public Builder setGroup(
+        com.google.monitoring.v3.Group.Builder builderForValue) {
       if (groupBuilder_ == null) {
         group_ = builderForValue.build();
       } else {
@@ -799,8 +721,6 @@ public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -810,9 +730,9 @@ public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue)
      */
     public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       if (groupBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && group_ != null
-            && group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          group_ != null &&
+          group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
           getGroupBuilder().mergeFrom(value);
         } else {
           group_ = value;
@@ -825,8 +745,6 @@ public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -845,8 +763,6 @@ public Builder clearGroup() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -860,8 +776,6 @@ public com.google.monitoring.v3.Group.Builder getGroupBuilder() {
       return getGroupFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -873,12 +787,11 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
       if (groupBuilder_ != null) {
         return groupBuilder_.getMessageOrBuilder();
       } else {
-        return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_;
+        return group_ == null ?
+            com.google.monitoring.v3.Group.getDefaultInstance() : group_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -887,32 +800,26 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Group,
-            com.google.monitoring.v3.Group.Builder,
-            com.google.monitoring.v3.GroupOrBuilder>
+        com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> 
         getGroupFieldBuilder() {
       if (groupBuilder_ == null) {
-        groupBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.Group,
-                com.google.monitoring.v3.Group.Builder,
-                com.google.monitoring.v3.GroupOrBuilder>(
-                getGroup(), getParentForChildren(), isClean());
+        groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>(
+                getGroup(),
+                getParentForChildren(),
+                isClean());
         group_ = null;
       }
       return groupBuilder_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -920,14 +827,11 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -939,14 +843,11 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -955,9 +856,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +868,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) private static final com.google.monitoring.v3.CreateGroupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateGroupRequest(); } @@ -981,27 +882,27 @@ public static com.google.monitoring.v3.CreateGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +917,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java index 6aae1d400947..0039340400a7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface CreateGroupRequestOrBuilder - extends +public interface CreateGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateGroupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -33,16 +15,11 @@ public interface CreateGroupRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -50,43 +27,33 @@ public interface CreateGroupRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ boolean hasGroup(); /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ com.google.monitoring.v3.Group getGroup(); /** - * - * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
@@ -97,14 +64,11 @@ public interface CreateGroupRequestOrBuilder
   com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder();
 
   /**
-   *
-   *
    * 
    * If true, validate this request but do not create the group.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java index 94fdf30f5d2b..59836467b395 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateMetricDescriptorRequest} */ -public final class CreateMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateMetricDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateMetricDescriptorRequest) CreateMetricDescriptorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateMetricDescriptorRequest.newBuilder() to construct. private CreateMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateMetricDescriptorRequest.class, - com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.CreateMetricDescriptorRequest.class, com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -76,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -104,18 +78,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,17 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int METRIC_DESCRIPTOR_FIELD_NUMBER = 2; private com.google.api.MetricDescriptor metricDescriptor_; /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the metricDescriptor field is set. */ @java.lang.Override @@ -144,46 +112,32 @@ public boolean hasMetricDescriptor() { return metricDescriptor_ != null; } /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metricDescriptor. */ @java.lang.Override public com.google.api.MetricDescriptor getMetricDescriptor() { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (metricDescriptor_ != null) { output.writeMessage(2, getMetricDescriptor()); } @@ -212,7 +167,8 @@ public int getSerializedSize() { size = 0; if (metricDescriptor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetricDescriptor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetricDescriptor()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -225,18 +181,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateMetricDescriptorRequest other = - (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; + com.google.monitoring.v3.CreateMetricDescriptorRequest other = (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { - if (!getMetricDescriptor().equals(other.getMetricDescriptor())) return false; + if (!getMetricDescriptor() + .equals(other.getMetricDescriptor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,136 +218,131 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.CreateMetricDescriptorRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.CreateMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateMetricDescriptorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateMetricDescriptorRequest) com.google.monitoring.v3.CreateMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateMetricDescriptorRequest.class, - com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.CreateMetricDescriptorRequest.class, com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateMetricDescriptorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -426,11 +378,8 @@ public com.google.monitoring.v3.CreateMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.CreateMetricDescriptorRequest result = - new com.google.monitoring.v3.CreateMetricDescriptorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateMetricDescriptorRequest result = new com.google.monitoring.v3.CreateMetricDescriptorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -441,8 +390,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateMetricDescriptorReques result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metricDescriptor_ = - metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build(); + result.metricDescriptor_ = metricDescriptorBuilder_ == null + ? metricDescriptor_ + : metricDescriptorBuilder_.build(); } } @@ -450,39 +400,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateMetricDescriptorReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.CreateMetricDescriptorRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateMetricDescriptorRequest)other); } else { super.mergeFrom(other); return this; @@ -490,8 +439,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -526,26 +474,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage( - getMetricDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getMetricDescriptorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,13 +501,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -569,16 +512,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -587,8 +528,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -596,17 +535,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,8 +552,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -623,25 +559,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -649,10 +579,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -662,8 +589,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -671,17 +596,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -691,61 +612,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.api.MetricDescriptor metricDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder> - metricDescriptorBuilder_; + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorBuilder_; /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metricDescriptor. */ public com.google.api.MetricDescriptor getMetricDescriptor() { if (metricDescriptorBuilder_ == null) { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } else { return metricDescriptorBuilder_.getMessage(); } } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { @@ -761,18 +663,15 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder setMetricDescriptor( + com.google.api.MetricDescriptor.Builder builderForValue) { if (metricDescriptorBuilder_ == null) { metricDescriptor_ = builderForValue.build(); } else { @@ -783,22 +682,18 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build return this; } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && metricDescriptor_ != null - && metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + metricDescriptor_ != null && + metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { getMetricDescriptorBuilder().mergeFrom(value); } else { metricDescriptor_ = value; @@ -811,16 +706,12 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetricDescriptor() { bitField0_ = (bitField0_ & ~0x00000002); @@ -833,16 +724,12 @@ public Builder clearMetricDescriptor() { return this; } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { bitField0_ |= 0x00000002; @@ -850,57 +737,45 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { return getMetricDescriptorFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { if (metricDescriptorBuilder_ != null) { return metricDescriptorBuilder_.getMessageOrBuilder(); } else { - return metricDescriptor_ == null - ? com.google.api.MetricDescriptor.getDefaultInstance() - : metricDescriptor_; + return metricDescriptor_ == null ? + com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; } } /** - * - * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder> + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> getMetricDescriptorFieldBuilder() { if (metricDescriptorBuilder_ == null) { - metricDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder>( - getMetricDescriptor(), getParentForChildren(), isClean()); + metricDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( + getMetricDescriptor(), + getParentForChildren(), + isClean()); metricDescriptor_ = null; } return metricDescriptorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +785,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) private static final com.google.monitoring.v3.CreateMetricDescriptorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateMetricDescriptorRequest(); } @@ -924,27 +799,27 @@ public static com.google.monitoring.v3.CreateMetricDescriptorRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,4 +834,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.CreateMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java similarity index 52% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java index bf607413f81b..817cca68d50b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateMetricDescriptorRequestOrBuilder - extends +public interface CreateMetricDescriptorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateMetricDescriptorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -33,16 +15,11 @@ public interface CreateMetricDescriptorRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -50,55 +27,39 @@ public interface CreateMetricDescriptorRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the metricDescriptor field is set. */ boolean hasMetricDescriptor(); /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metricDescriptor. */ com.google.api.MetricDescriptor getMetricDescriptor(); /** - * - * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java similarity index 60% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java index 7feea07dc235..94f703479807 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateNotificationChannelRequest} */ -public final class CreateNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateNotificationChannelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateNotificationChannelRequest) CreateNotificationChannelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateNotificationChannelRequest.newBuilder() to construct. - private CreateNotificationChannelRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateNotificationChannelRequest.class, - com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.CreateNotificationChannelRequest.class, com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -94,18 +69,18 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -115,18 +90,17 @@ public java.lang.String getName() {
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,16 +111,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NOTIFICATION_CHANNEL_FIELD_NUMBER = 2; private com.google.monitoring.v3.NotificationChannel notificationChannel_; /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ @java.lang.Override @@ -154,44 +123,30 @@ public boolean hasNotificationChannel() { return notificationChannel_ != null; } /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (notificationChannel_ != null) { output.writeMessage(2, getNotificationChannel()); } @@ -220,7 +176,8 @@ public int getSerializedSize() { size = 0; if (notificationChannel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationChannel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotificationChannel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -233,18 +190,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateNotificationChannelRequest other = - (com.google.monitoring.v3.CreateNotificationChannelRequest) obj; + com.google.monitoring.v3.CreateNotificationChannelRequest other = (com.google.monitoring.v3.CreateNotificationChannelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasNotificationChannel() != other.hasNotificationChannel()) return false; if (hasNotificationChannel()) { - if (!getNotificationChannel().equals(other.getNotificationChannel())) return false; + if (!getNotificationChannel() + .equals(other.getNotificationChannel())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -269,136 +227,131 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.CreateNotificationChannelRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.CreateNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateNotificationChannelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateNotificationChannelRequest) com.google.monitoring.v3.CreateNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateNotificationChannelRequest.class, - com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.CreateNotificationChannelRequest.class, com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateNotificationChannelRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override @@ -434,11 +387,8 @@ public com.google.monitoring.v3.CreateNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.CreateNotificationChannelRequest result = - new com.google.monitoring.v3.CreateNotificationChannelRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateNotificationChannelRequest result = new com.google.monitoring.v3.CreateNotificationChannelRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -449,10 +399,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateNotificationChannelReq result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationChannel_ = - notificationChannelBuilder_ == null - ? notificationChannel_ - : notificationChannelBuilder_.build(); + result.notificationChannel_ = notificationChannelBuilder_ == null + ? notificationChannel_ + : notificationChannelBuilder_.build(); } } @@ -460,39 +409,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateNotificationChannelReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.CreateNotificationChannelRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateNotificationChannelRequest)other); } else { super.mergeFrom(other); return this; @@ -500,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -536,26 +483,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage( - getNotificationChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getNotificationChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,16 +510,14 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -584,16 +527,14 @@ public Builder mergeFrom(
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -602,11 +543,10 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -616,17 +556,16 @@ public java.lang.String getName() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -634,11 +573,10 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -648,28 +586,23 @@ public com.google.protobuf.ByteString getNameBytes() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -679,10 +612,7 @@ public Builder setName(java.lang.String value) {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -692,11 +622,10 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -706,17 +635,13 @@ public Builder clearName() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -726,58 +651,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.NotificationChannel notificationChannel_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> - notificationChannelBuilder_; + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelBuilder_; /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ public boolean hasNotificationChannel() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { if (notificationChannelBuilder_ == null) { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { @@ -793,15 +699,11 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann return this; } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationChannel( com.google.monitoring.v3.NotificationChannel.Builder builderForValue) { @@ -815,22 +717,17 @@ public Builder setNotificationChannel( return this; } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && notificationChannel_ != null - && notificationChannel_ - != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + notificationChannel_ != null && + notificationChannel_ != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { getNotificationChannelBuilder().mergeFrom(value); } else { notificationChannel_ = value; @@ -843,15 +740,11 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha return this; } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationChannel() { bitField0_ = (bitField0_ & ~0x00000002); @@ -864,15 +757,11 @@ public Builder clearNotificationChannel() { return this; } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { bitField0_ |= 0x00000002; @@ -880,55 +769,43 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? + com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } } /** - * - * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelFieldBuilder() { if (notificationChannelBuilder_ == null) { - notificationChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder>( - getNotificationChannel(), getParentForChildren(), isClean()); + notificationChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( + getNotificationChannel(), + getParentForChildren(), + isClean()); notificationChannel_ = null; } return notificationChannelBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) private static final com.google.monitoring.v3.CreateNotificationChannelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateNotificationChannelRequest(); } @@ -952,27 +829,27 @@ public static com.google.monitoring.v3.CreateNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,4 +864,6 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.CreateNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java similarity index 50% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java index 0855819151f3..3d502450272e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java @@ -1,34 +1,17 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface CreateNotificationChannelRequestOrBuilder - extends +public interface CreateNotificationChannelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -38,19 +21,15 @@ public interface CreateNotificationChannelRequestOrBuilder
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -60,52 +39,36 @@ public interface CreateNotificationChannelRequestOrBuilder
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ boolean hasNotificationChannel(); /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ com.google.monitoring.v3.NotificationChannel getNotificationChannel(); /** - * - * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java index eafe69ed8cef..e29703f9ed68 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceLevelObjectiveRequest} */ -public final class CreateServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateServiceLevelObjectiveRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateServiceLevelObjectiveRequest) CreateServiceLevelObjectiveRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateServiceLevelObjectiveRequest.newBuilder() to construct. - private CreateServiceLevelObjectiveRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateServiceLevelObjectiveRequest() { parent_ = ""; serviceLevelObjectiveId_ = ""; @@ -45,42 +26,35 @@ private CreateServiceLevelObjectiveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,33 +63,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SERVICE_LEVEL_OBJECTIVE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceLevelObjectiveId_ = ""; /** - * - * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -137,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string service_level_objective_id = 3; - * * @return The serviceLevelObjectiveId. */ @java.lang.Override @@ -146,15 +114,14 @@ public java.lang.String getServiceLevelObjectiveId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceLevelObjectiveId_ = s; return s; } } /** - * - * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -162,15 +129,16 @@ public java.lang.String getServiceLevelObjectiveId() {
    * 
* * string service_level_objective_id = 3; - * * @return The bytes for serviceLevelObjectiveId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { + public com.google.protobuf.ByteString + getServiceLevelObjectiveIdBytes() { java.lang.Object ref = serviceLevelObjectiveId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceLevelObjectiveId_ = b; return b; } else { @@ -181,18 +149,13 @@ public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { public static final int SERVICE_LEVEL_OBJECTIVE_FIELD_NUMBER = 2; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ @java.lang.Override @@ -200,49 +163,34 @@ public boolean hasServiceLevelObjective() { return serviceLevelObjective_ != null; } /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder - getServiceLevelObjectiveOrBuilder() { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,8 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (serviceLevelObjective_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceLevelObjective()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getServiceLevelObjective()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLevelObjectiveId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceLevelObjectiveId_); @@ -291,19 +240,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other = - (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other = (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getServiceLevelObjectiveId().equals(other.getServiceLevelObjectiveId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getServiceLevelObjectiveId() + .equals(other.getServiceLevelObjectiveId())) return false; if (hasServiceLevelObjective() != other.hasServiceLevelObjective()) return false; if (hasServiceLevelObjective()) { - if (!getServiceLevelObjective().equals(other.getServiceLevelObjective())) return false; + if (!getServiceLevelObjective() + .equals(other.getServiceLevelObjective())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -330,136 +281,131 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceLevelObjectiveRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateServiceLevelObjectiveRequest) com.google.monitoring.v3.CreateServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -496,11 +442,8 @@ public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest result = - new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest result = new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -514,10 +457,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceLevelObjectiveR result.serviceLevelObjectiveId_ = serviceLevelObjectiveId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.serviceLevelObjective_ = - serviceLevelObjectiveBuilder_ == null - ? serviceLevelObjective_ - : serviceLevelObjectiveBuilder_.build(); + result.serviceLevelObjective_ = serviceLevelObjectiveBuilder_ == null + ? serviceLevelObjective_ + : serviceLevelObjectiveBuilder_.build(); } } @@ -525,39 +467,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceLevelObjectiveR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest)other); } else { super.mergeFrom(other); return this; @@ -565,8 +506,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -606,32 +546,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getServiceLevelObjectiveFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - serviceLevelObjectiveId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getServiceLevelObjectiveFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + serviceLevelObjectiveId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,29 +578,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -672,25 +604,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -698,43 +627,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -744,25 +662,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -772,8 +684,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceLevelObjectiveId_ = ""; /** - * - * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -781,13 +691,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string service_level_objective_id = 3; - * * @return The serviceLevelObjectiveId. */ public java.lang.String getServiceLevelObjectiveId() { java.lang.Object ref = serviceLevelObjectiveId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceLevelObjectiveId_ = s; return s; @@ -796,8 +706,6 @@ public java.lang.String getServiceLevelObjectiveId() { } } /** - * - * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -805,14 +713,15 @@ public java.lang.String getServiceLevelObjectiveId() {
      * 
* * string service_level_objective_id = 3; - * * @return The bytes for serviceLevelObjectiveId. */ - public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { + public com.google.protobuf.ByteString + getServiceLevelObjectiveIdBytes() { java.lang.Object ref = serviceLevelObjectiveId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceLevelObjectiveId_ = b; return b; } else { @@ -820,8 +729,6 @@ public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { } } /** - * - * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -829,22 +736,18 @@ public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() {
      * 
* * string service_level_objective_id = 3; - * * @param value The serviceLevelObjectiveId to set. * @return This builder for chaining. */ - public Builder setServiceLevelObjectiveId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceLevelObjectiveId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceLevelObjectiveId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -852,7 +755,6 @@ public Builder setServiceLevelObjectiveId(java.lang.String value) {
      * 
* * string service_level_objective_id = 3; - * * @return This builder for chaining. */ public Builder clearServiceLevelObjectiveId() { @@ -862,8 +764,6 @@ public Builder clearServiceLevelObjectiveId() { return this; } /** - * - * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -871,14 +771,12 @@ public Builder clearServiceLevelObjectiveId() {
      * 
* * string service_level_objective_id = 3; - * * @param value The bytes for serviceLevelObjectiveId to set. * @return This builder for chaining. */ - public Builder setServiceLevelObjectiveIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceLevelObjectiveIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceLevelObjectiveId_ = value; bitField0_ |= 0x00000002; @@ -888,64 +786,45 @@ public Builder setServiceLevelObjectiveIdBytes(com.google.protobuf.ByteString va private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> - serviceLevelObjectiveBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectiveBuilder_; /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ public boolean hasServiceLevelObjective() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { if (serviceLevelObjectiveBuilder_ == null) { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } else { return serviceLevelObjectiveBuilder_.getMessage(); } } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { @@ -961,17 +840,13 @@ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObj return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServiceLevelObjective( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -985,25 +860,19 @@ public Builder setServiceLevelObjective( return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeServiceLevelObjective( - com.google.monitoring.v3.ServiceLevelObjective value) { + public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && serviceLevelObjective_ != null - && serviceLevelObjective_ - != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + serviceLevelObjective_ != null && + serviceLevelObjective_ != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { getServiceLevelObjectiveBuilder().mergeFrom(value); } else { serviceLevelObjective_ = value; @@ -1016,17 +885,13 @@ public Builder mergeServiceLevelObjective( return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServiceLevelObjective() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1039,79 +904,61 @@ public Builder clearServiceLevelObjective() { return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder - getServiceLevelObjectiveBuilder() { + public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectiveBuilder() { bitField0_ |= 0x00000004; onChanged(); return getServiceLevelObjectiveFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder - getServiceLevelObjectiveOrBuilder() { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { if (serviceLevelObjectiveBuilder_ != null) { return serviceLevelObjectiveBuilder_.getMessageOrBuilder(); } else { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } } /** - * - * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectiveFieldBuilder() { if (serviceLevelObjectiveBuilder_ == null) { - serviceLevelObjectiveBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( - getServiceLevelObjective(), getParentForChildren(), isClean()); + serviceLevelObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + getServiceLevelObjective(), + getParentForChildren(), + isClean()); serviceLevelObjective_ = null; } return serviceLevelObjectiveBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.CreateServiceLevelObjectiveRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(); } @@ -1135,27 +982,27 @@ public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,4 +1017,6 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java similarity index 59% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java index c7660d89f05e..6c37fb2c61d4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface CreateServiceLevelObjectiveRequestOrBuilder - extends +public interface CreateServiceLevelObjectiveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -66,13 +39,10 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
    * 
* * string service_level_objective_id = 3; - * * @return The serviceLevelObjectiveId. */ java.lang.String getServiceLevelObjectiveId(); /** - * - * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -80,55 +50,41 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder
    * 
* * string service_level_objective_id = 3; - * * @return The bytes for serviceLevelObjectiveId. */ - com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes(); + com.google.protobuf.ByteString + getServiceLevelObjectiveIdBytes(); /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ boolean hasServiceLevelObjective(); /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(); /** - * - * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java index 7022cc8d448f..df9529471003 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceRequest} */ -public final class CreateServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateServiceRequest) CreateServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateServiceRequest.newBuilder() to construct. private CreateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateServiceRequest() { parent_ = ""; serviceId_ = ""; @@ -44,32 +26,28 @@ private CreateServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceRequest.class, - com.google.monitoring.v3.CreateServiceRequest.Builder.class); + com.google.monitoring.v3.CreateServiceRequest.class, com.google.monitoring.v3.CreateServiceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,15 +64,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -105,18 +79,17 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,19 +98,15 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SERVICE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceId_ = ""; /** - * - * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; - * * @return The serviceId. */ @java.lang.Override @@ -146,30 +115,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** - * - * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; - * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -180,15 +149,11 @@ public com.google.protobuf.ByteString getServiceIdBytes() { public static final int SERVICE_FIELD_NUMBER = 2; private com.google.monitoring.v3.Service service_; /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ @java.lang.Override @@ -196,15 +161,11 @@ public boolean hasService() { return service_ != null; } /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ @java.lang.Override @@ -212,14 +173,11 @@ public com.google.monitoring.v3.Service getService() { return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { @@ -227,7 +185,6 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +196,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,7 +220,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (service_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getService()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceId_); @@ -275,19 +234,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateServiceRequest other = - (com.google.monitoring.v3.CreateServiceRequest) obj; + com.google.monitoring.v3.CreateServiceRequest other = (com.google.monitoring.v3.CreateServiceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getServiceId().equals(other.getServiceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getServiceId() + .equals(other.getServiceId())) return false; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -313,136 +274,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateServiceRequest) com.google.monitoring.v3.CreateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceRequest.class, - com.google.monitoring.v3.CreateServiceRequest.Builder.class); + com.google.monitoring.v3.CreateServiceRequest.class, com.google.monitoring.v3.CreateServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateServiceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override @@ -479,11 +436,8 @@ public com.google.monitoring.v3.CreateServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateServiceRequest buildPartial() { - com.google.monitoring.v3.CreateServiceRequest result = - new com.google.monitoring.v3.CreateServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateServiceRequest result = new com.google.monitoring.v3.CreateServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -497,7 +451,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceRequest result) result.serviceId_ = serviceId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + result.service_ = serviceBuilder_ == null + ? service_ + : serviceBuilder_.build(); } } @@ -505,39 +461,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateServiceRequest) { - return mergeFrom((com.google.monitoring.v3.CreateServiceRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -585,31 +540,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - serviceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getServiceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + serviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,13 +572,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -633,16 +583,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -651,8 +599,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -660,17 +606,16 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -678,8 +623,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -687,25 +630,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -713,10 +650,7 @@ public Builder setParent(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -726,8 +660,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -735,17 +667,13 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,21 +683,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceId_ = ""; /** - * - * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; - * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -778,22 +704,21 @@ public java.lang.String getServiceId() { } } /** - * - * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; - * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -801,37 +726,30 @@ public com.google.protobuf.ByteString getServiceIdBytes() { } } /** - * - * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; - * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; - * * @return This builder for chaining. */ public Builder clearServiceId() { @@ -841,22 +759,18 @@ public Builder clearServiceId() { return this; } /** - * - * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; - * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceId_ = value; bitField0_ |= 0x00000002; @@ -866,35 +780,24 @@ public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> - serviceBuilder_; + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> serviceBuilder_; /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ public boolean hasService() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ public com.google.monitoring.v3.Service getService() { @@ -905,14 +808,11 @@ public com.google.monitoring.v3.Service getService() { } } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { @@ -928,16 +828,14 @@ public Builder setService(com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setService(com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder setService( + com.google.monitoring.v3.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); } else { @@ -948,20 +846,17 @@ public Builder setService(com.google.monitoring.v3.Service.Builder builderForVal return this; } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && service_ != null - && service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + service_ != null && + service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { getServiceBuilder().mergeFrom(value); } else { service_ = value; @@ -974,14 +869,11 @@ public Builder mergeService(com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000004); @@ -994,14 +886,11 @@ public Builder clearService() { return this; } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { bitField0_ |= 0x00000004; @@ -1009,51 +898,43 @@ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { return getServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; + return service_ == null ? + com.google.monitoring.v3.Service.getDefaultInstance() : service_; } } /** - * - * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( + getService(), + getParentForChildren(), + isClean()); service_ = null; } return serviceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceRequest) private static final com.google.monitoring.v3.CreateServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateServiceRequest(); } @@ -1077,27 +958,27 @@ public static com.google.monitoring.v3.CreateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,4 +993,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java similarity index 61% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java index 0bdccbd6b012..8fab79c043fa 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface CreateServiceRequestOrBuilder - extends +public interface CreateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -33,16 +15,11 @@ public interface CreateServiceRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -50,76 +27,58 @@ public interface CreateServiceRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; - * * @return The serviceId. */ java.lang.String getServiceId(); /** - * - * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; - * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString getServiceIdBytes(); + com.google.protobuf.ByteString + getServiceIdBytes(); /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ boolean hasService(); /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ com.google.monitoring.v3.Service getService(); /** - * - * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java index bc22d682aebe..a73efe878dc9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** - * - * *
  * The message definition for creating a `Snooze`. Users must provide the body
  * of the `Snooze` to be created but must omit the `Snooze` field, `name`.
@@ -28,48 +11,43 @@
  *
  * Protobuf type {@code google.monitoring.v3.CreateSnoozeRequest}
  */
-public final class CreateSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateSnoozeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateSnoozeRequest)
     CreateSnoozeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateSnoozeRequest.newBuilder() to construct.
   private CreateSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateSnoozeRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.CreateSnoozeRequest.class,
-            com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.CreateSnoozeRequest.class, com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,15 +65,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -107,18 +81,17 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SNOOZE_FIELD_NUMBER = 2; private com.google.monitoring.v3.Snooze snooze_; /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snooze field is set. */ @java.lang.Override @@ -145,15 +115,12 @@ public boolean hasSnooze() { return snooze_ != null; } /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snooze. */ @java.lang.Override @@ -161,8 +128,6 @@ public com.google.monitoring.v3.Snooze getSnooze() { return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
@@ -176,7 +141,6 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -188,7 +152,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -208,7 +173,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (snooze_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnooze());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSnooze());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -218,18 +184,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.CreateSnoozeRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.CreateSnoozeRequest other =
-        (com.google.monitoring.v3.CreateSnoozeRequest) obj;
+    com.google.monitoring.v3.CreateSnoozeRequest other = (com.google.monitoring.v3.CreateSnoozeRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasSnooze() != other.hasSnooze()) return false;
     if (hasSnooze()) {
-      if (!getSnooze().equals(other.getSnooze())) return false;
+      if (!getSnooze()
+          .equals(other.getSnooze())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -253,104 +220,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.CreateSnoozeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The message definition for creating a `Snooze`. Users must provide the body
    * of the `Snooze` to be created but must omit the `Snooze` field, `name`.
@@ -358,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.CreateSnoozeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateSnoozeRequest)
       com.google.monitoring.v3.CreateSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.CreateSnoozeRequest.class,
-              com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.CreateSnoozeRequest.class, com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.CreateSnoozeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +361,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -419,11 +382,8 @@ public com.google.monitoring.v3.CreateSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.CreateSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.CreateSnoozeRequest result =
-          new com.google.monitoring.v3.CreateSnoozeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.CreateSnoozeRequest result = new com.google.monitoring.v3.CreateSnoozeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -434,7 +394,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateSnoozeRequest result)
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.snooze_ = snoozeBuilder_ == null ? snooze_ : snoozeBuilder_.build();
+        result.snooze_ = snoozeBuilder_ == null
+            ? snooze_
+            : snoozeBuilder_.build();
       }
     }
 
@@ -442,39 +404,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateSnoozeRequest result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.CreateSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.CreateSnoozeRequest) other);
+        return mergeFrom((com.google.monitoring.v3.CreateSnoozeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,25 +478,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSnoozeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSnoozeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -545,13 +505,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -560,16 +517,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -578,8 +533,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -588,17 +541,16 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -606,8 +558,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -616,25 +566,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -643,10 +587,7 @@ public Builder setParent(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -656,8 +597,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -666,17 +605,13 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -686,37 +621,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.Snooze snooze_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder> - snoozeBuilder_; + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozeBuilder_; /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snooze field is set. */ public boolean hasSnooze() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The snooze. */ public com.google.monitoring.v3.Snooze getSnooze() { @@ -727,15 +651,12 @@ public com.google.monitoring.v3.Snooze getSnooze() { } } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { @@ -751,17 +672,15 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnooze( + com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozeBuilder_ == null) { snooze_ = builderForValue.build(); } else { @@ -772,21 +691,18 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue return this; } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && snooze_ != null - && snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + snooze_ != null && + snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { getSnoozeBuilder().mergeFrom(value); } else { snooze_ = value; @@ -799,15 +715,12 @@ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSnooze() { bitField0_ = (bitField0_ & ~0x00000002); @@ -820,15 +733,12 @@ public Builder clearSnooze() { return this; } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { bitField0_ |= 0x00000002; @@ -836,53 +746,45 @@ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { return getSnoozeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { if (snoozeBuilder_ != null) { return snoozeBuilder_.getMessageOrBuilder(); } else { - return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; + return snooze_ == null ? + com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } } /** - * - * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> getSnoozeFieldBuilder() { if (snoozeBuilder_ == null) { - snoozeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder>( - getSnooze(), getParentForChildren(), isClean()); + snoozeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( + getSnooze(), + getParentForChildren(), + isClean()); snooze_ = null; } return snoozeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateSnoozeRequest) private static final com.google.monitoring.v3.CreateSnoozeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateSnoozeRequest(); } @@ -906,27 +808,27 @@ public static com.google.monitoring.v3.CreateSnoozeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java index 2f17f14b653d..ddcc5bb68a53 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface CreateSnoozeRequestOrBuilder - extends +public interface CreateSnoozeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateSnoozeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -34,16 +16,11 @@ public interface CreateSnoozeRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -52,43 +29,33 @@ public interface CreateSnoozeRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snooze field is set. */ boolean hasSnooze(); /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snooze. */ com.google.monitoring.v3.Snooze getSnooze(); /** - * - * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
similarity index 64%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
index aad6b3e69bd9..d32d5a30bd36 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
@@ -1,108 +1,78 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * DEPRECATED. Used to hold per-time-series error status.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesError} */ -public final class CreateTimeSeriesError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTimeSeriesError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesError) CreateTimeSeriesErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTimeSeriesError.newBuilder() to construct. private CreateTimeSeriesError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateTimeSeriesError() {} + private CreateTimeSeriesError() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTimeSeriesError(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesError.class, - com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesError.class, com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); } public static final int TIME_SERIES_FIELD_NUMBER = 1; private com.google.monitoring.v3.TimeSeries timeSeries_; /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasTimeSeries() { + @java.lang.Deprecated public boolean hasTimeSeries() { return timeSeries_ != null; } /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.v3.TimeSeries getTimeSeries() { - return timeSeries_ == null - ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() - : timeSeries_; + @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries getTimeSeries() { + return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; } /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
@@ -110,54 +80,41 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries() { * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { - return timeSeries_ == null - ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() - : timeSeries_; + @java.lang.Deprecated public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { + return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; } public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasStatus() { + @java.lang.Deprecated public boolean hasStatus() { return status_ != null; } /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ @java.lang.Override - @java.lang.Deprecated - public com.google.rpc.Status getStatus() { + @java.lang.Deprecated public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
@@ -165,13 +122,11 @@ public com.google.rpc.Status getStatus() { * .google.rpc.Status status = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + @java.lang.Deprecated public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (timeSeries_ != null) { output.writeMessage(1, getTimeSeries()); } @@ -200,10 +156,12 @@ public int getSerializedSize() { size = 0; if (timeSeries_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeries()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeSeries()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,21 +171,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesError)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesError other = - (com.google.monitoring.v3.CreateTimeSeriesError) obj; + com.google.monitoring.v3.CreateTimeSeriesError other = (com.google.monitoring.v3.CreateTimeSeriesError) obj; if (hasTimeSeries() != other.hasTimeSeries()) return false; if (hasTimeSeries()) { - if (!getTimeSeries().equals(other.getTimeSeries())) return false; + if (!getTimeSeries() + .equals(other.getTimeSeries())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -253,136 +212,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DEPRECATED. Used to hold per-time-series error status.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesError) com.google.monitoring.v3.CreateTimeSeriesErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesError.class, - com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesError.class, com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -401,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override @@ -422,11 +377,8 @@ public com.google.monitoring.v3.CreateTimeSeriesError build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesError buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesError result = - new com.google.monitoring.v3.CreateTimeSeriesError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateTimeSeriesError result = new com.google.monitoring.v3.CreateTimeSeriesError(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -434,10 +386,14 @@ public com.google.monitoring.v3.CreateTimeSeriesError buildPartial() { private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeries_ = timeSeriesBuilder_ == null ? timeSeries_ : timeSeriesBuilder_.build(); + result.timeSeries_ = timeSeriesBuilder_ == null + ? timeSeries_ + : timeSeriesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); } } @@ -445,39 +401,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesError result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesError) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesError) other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesError)other); } else { super.mergeFrom(other); return this; @@ -518,25 +473,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTimeSeriesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,66 +502,49 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.TimeSeries timeSeries_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> - timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ - @java.lang.Deprecated - public boolean hasTimeSeries() { + @java.lang.Deprecated public boolean hasTimeSeries() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ - @java.lang.Deprecated - public com.google.monitoring.v3.TimeSeries getTimeSeries() { + @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries getTimeSeries() { if (timeSeriesBuilder_ == null) { - return timeSeries_ == null - ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() - : timeSeries_; + return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; } else { return timeSeriesBuilder_.getMessage(); } } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries value) { + @java.lang.Deprecated public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -619,16 +558,14 @@ public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + @java.lang.Deprecated public Builder setTimeSeries( + com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { timeSeries_ = builderForValue.build(); } else { @@ -639,20 +576,17 @@ public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builder return this; } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeTimeSeries(com.google.monitoring.v3.TimeSeries value) { + @java.lang.Deprecated public Builder mergeTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeSeries_ != null - && timeSeries_ != com.google.monitoring.v3.TimeSeries.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeries_ != null && + timeSeries_ != com.google.monitoring.v3.TimeSeries.getDefaultInstance()) { getTimeSeriesBuilder().mergeFrom(value); } else { timeSeries_ = value; @@ -665,16 +599,13 @@ public Builder mergeTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearTimeSeries() { + @java.lang.Deprecated public Builder clearTimeSeries() { bitField0_ = (bitField0_ & ~0x00000001); timeSeries_ = null; if (timeSeriesBuilder_ != null) { @@ -685,42 +616,33 @@ public Builder clearTimeSeries() { return this; } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder() { + @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesFieldBuilder().getBuilder(); } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { + @java.lang.Deprecated public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilder(); } else { - return timeSeries_ == null - ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() - : timeSeries_; + return timeSeries_ == null ? + com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; } } /** - * - * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
@@ -728,17 +650,14 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder>( - getTimeSeries(), getParentForChildren(), isClean()); + timeSeriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( + getTimeSeries(), + getParentForChildren(), + isClean()); timeSeries_ = null; } return timeSeriesBuilder_; @@ -746,40 +665,31 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ - @java.lang.Deprecated - public boolean hasStatus() { + @java.lang.Deprecated public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ - @java.lang.Deprecated - public com.google.rpc.Status getStatus() { + @java.lang.Deprecated public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { @@ -787,16 +697,13 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatus(com.google.rpc.Status value) { + @java.lang.Deprecated public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -810,16 +717,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + @java.lang.Deprecated public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -830,20 +735,17 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeStatus(com.google.rpc.Status value) { + @java.lang.Deprecated public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && status_ != null - && status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -856,16 +758,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearStatus() { + @java.lang.Deprecated public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = null; if (statusBuilder_ != null) { @@ -876,40 +775,33 @@ public Builder clearStatus() { return this; } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.rpc.Status.Builder getStatusBuilder() { + @java.lang.Deprecated public com.google.rpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + @java.lang.Deprecated public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
@@ -917,21 +809,21 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -941,12 +833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesError) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) private static final com.google.monitoring.v3.CreateTimeSeriesError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesError(); } @@ -955,27 +847,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesError getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java similarity index 55% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java index 268b232f38b0..0bde619b166a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java @@ -1,109 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesErrorOrBuilder - extends +public interface CreateTimeSeriesErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ - @java.lang.Deprecated - boolean hasTimeSeries(); + @java.lang.Deprecated boolean hasTimeSeries(); /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=445 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. + * See google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ - @java.lang.Deprecated - com.google.monitoring.v3.TimeSeries getTimeSeries(); + @java.lang.Deprecated com.google.monitoring.v3.TimeSeries getTimeSeries(); /** - * - * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated - com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(); + @java.lang.Deprecated com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(); /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ - @java.lang.Deprecated - boolean hasStatus(); + @java.lang.Deprecated boolean hasStatus(); /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=448 + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. + * See google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ - @java.lang.Deprecated - com.google.rpc.Status getStatus(); + @java.lang.Deprecated com.google.rpc.Status getStatus(); /** - * - * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + @java.lang.Deprecated com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java index f1dc8482b82c..718c13b6f711 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `CreateTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesRequest} */ -public final class CreateTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTimeSeriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesRequest) CreateTimeSeriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTimeSeriesRequest.newBuilder() to construct. private CreateTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTimeSeriesRequest() { name_ = ""; timeSeries_ = java.util.Collections.emptyList(); @@ -44,32 +26,28 @@ private CreateTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesRequest.class, - com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesRequest.class, com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,15 +64,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -105,18 +79,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,12 +98,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TIME_SERIES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List timeSeries_; /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -141,17 +111,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getTimeSeriesList() { return timeSeries_; } /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -162,18 +128,14 @@ public java.util.List getTimeSeriesList() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesOrBuilderList() { return timeSeries_; } /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -184,17 +146,13 @@ public java.util.List getTimeSeriesList() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getTimeSeriesCount() { return timeSeries_.size(); } /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -205,17 +163,13 @@ public int getTimeSeriesCount() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { return timeSeries_.get(index); } /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -226,17 +180,15 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index) { return timeSeries_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < timeSeries_.size(); i++) { output.writeMessage(2, timeSeries_.get(i)); } @@ -265,7 +218,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < timeSeries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timeSeries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, timeSeries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -278,16 +232,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesRequest other = - (com.google.monitoring.v3.CreateTimeSeriesRequest) obj; + com.google.monitoring.v3.CreateTimeSeriesRequest other = (com.google.monitoring.v3.CreateTimeSeriesRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getTimeSeriesList().equals(other.getTimeSeriesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTimeSeriesList() + .equals(other.getTimeSeriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,136 +265,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `CreateTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesRequest) com.google.monitoring.v3.CreateTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesRequest.class, - com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesRequest.class, com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override @@ -477,18 +428,14 @@ public com.google.monitoring.v3.CreateTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesRequest result = - new com.google.monitoring.v3.CreateTimeSeriesRequest(this); + com.google.monitoring.v3.CreateTimeSeriesRequest result = new com.google.monitoring.v3.CreateTimeSeriesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.CreateTimeSeriesRequest result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.CreateTimeSeriesRequest result) { if (timeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); @@ -511,39 +458,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesRequest)other); } else { super.mergeFrom(other); return this; @@ -551,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesRequest other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -576,10 +521,9 @@ public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesRequest other) timeSeriesBuilder_ = null; timeSeries_ = other.timeSeries_; bitField0_ = (bitField0_ & ~0x00000002); - timeSeriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeSeriesFieldBuilder() - : null; + timeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeSeriesFieldBuilder() : null; } else { timeSeriesBuilder_.addAllMessages(other.timeSeries_); } @@ -611,32 +555,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - com.google.monitoring.v3.TimeSeries m = - input.readMessage( - com.google.monitoring.v3.TimeSeries.parser(), extensionRegistry); - if (timeSeriesBuilder_ == null) { - ensureTimeSeriesIsMutable(); - timeSeries_.add(m); - } else { - timeSeriesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + com.google.monitoring.v3.TimeSeries m = + input.readMessage( + com.google.monitoring.v3.TimeSeries.parser(), + extensionRegistry); + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(m); + } else { + timeSeriesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -646,13 +588,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -660,16 +599,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -678,8 +615,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -687,17 +622,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -705,8 +639,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -714,25 +646,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -740,10 +666,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -753,8 +676,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -762,17 +683,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -781,24 +698,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List timeSeries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeSeriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { timeSeries_ = new java.util.ArrayList(timeSeries_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> - timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -809,9 +720,7 @@ private void ensureTimeSeriesIsMutable() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getTimeSeriesList() { if (timeSeriesBuilder_ == null) { @@ -821,8 +730,6 @@ public java.util.List getTimeSeriesList() { } } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -833,9 +740,7 @@ public java.util.List getTimeSeriesList() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getTimeSeriesCount() { if (timeSeriesBuilder_ == null) { @@ -845,8 +750,6 @@ public int getTimeSeriesCount() { } } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -857,9 +760,7 @@ public int getTimeSeriesCount() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { if (timeSeriesBuilder_ == null) { @@ -869,8 +770,6 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { } } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -881,11 +780,10 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { + public Builder setTimeSeries( + int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -899,8 +797,6 @@ public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -911,9 +807,7 @@ public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeSeries( int index, com.google.monitoring.v3.TimeSeries.Builder builderForValue) { @@ -927,8 +821,6 @@ public Builder setTimeSeries( return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -939,9 +831,7 @@ public Builder setTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { @@ -957,8 +847,6 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -969,11 +857,10 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { + public Builder addTimeSeries( + int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -987,8 +874,6 @@ public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -999,11 +884,10 @@ public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + public Builder addTimeSeries( + com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); timeSeries_.add(builderForValue.build()); @@ -1014,8 +898,6 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builder return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1026,9 +908,7 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builder
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addTimeSeries( int index, com.google.monitoring.v3.TimeSeries.Builder builderForValue) { @@ -1042,8 +922,6 @@ public Builder addTimeSeries( return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1054,15 +932,14 @@ public Builder addTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllTimeSeries( java.lang.Iterable values) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timeSeries_); onChanged(); } else { timeSeriesBuilder_.addAllMessages(values); @@ -1070,8 +947,6 @@ public Builder addAllTimeSeries( return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1082,9 +957,7 @@ public Builder addAllTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTimeSeries() { if (timeSeriesBuilder_ == null) { @@ -1097,8 +970,6 @@ public Builder clearTimeSeries() { return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1109,9 +980,7 @@ public Builder clearTimeSeries() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeTimeSeries(int index) { if (timeSeriesBuilder_ == null) { @@ -1124,8 +993,6 @@ public Builder removeTimeSeries(int index) { return this; } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1136,16 +1003,13 @@ public Builder removeTimeSeries(int index) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(int index) { + public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder( + int index) { return getTimeSeriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1156,20 +1020,16 @@ public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(int inde
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index) { if (timeSeriesBuilder_ == null) { - return timeSeries_.get(index); - } else { + return timeSeries_.get(index); } else { return timeSeriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1180,12 +1040,10 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getTimeSeriesOrBuilderList() { + public java.util.List + getTimeSeriesOrBuilderList() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilderList(); } else { @@ -1193,8 +1051,6 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i } } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1205,17 +1061,13 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() { - return getTimeSeriesFieldBuilder() - .addBuilder(com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + return getTimeSeriesFieldBuilder().addBuilder( + com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1226,17 +1078,14 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(int index) { - return getTimeSeriesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder( + int index) { + return getTimeSeriesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** - * - * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1247,33 +1096,29 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(int inde
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getTimeSeriesBuilderList() { + public java.util.List + getTimeSeriesBuilderList() { return getTimeSeriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder>( - timeSeries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + timeSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( + timeSeries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); timeSeries_ = null; } return timeSeriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) private static final com.google.monitoring.v3.CreateTimeSeriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesRequest(); } @@ -1297,27 +1142,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,4 +1177,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java similarity index 66% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java index ee3b6536d97f..4efe1f47d42a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesRequestOrBuilder - extends +public interface CreateTimeSeriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -33,16 +15,11 @@ public interface CreateTimeSeriesRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -50,17 +27,13 @@ public interface CreateTimeSeriesRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -71,14 +44,11 @@ public interface CreateTimeSeriesRequestOrBuilder
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getTimeSeriesList(); + java.util.List + getTimeSeriesList(); /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -89,14 +59,10 @@ public interface CreateTimeSeriesRequestOrBuilder
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.TimeSeries getTimeSeries(int index); /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -107,14 +73,10 @@ public interface CreateTimeSeriesRequestOrBuilder
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getTimeSeriesCount(); /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -125,15 +87,11 @@ public interface CreateTimeSeriesRequestOrBuilder
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getTimeSeriesOrBuilderList(); /** - * - * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -144,9 +102,8 @@ public interface CreateTimeSeriesRequestOrBuilder
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index); + com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java index 21c7fd8b597a..5a14a05dc10e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java @@ -1,99 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * Summary of the result of a failed request to write data to a time series.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary} */ -public final class CreateTimeSeriesSummary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTimeSeriesSummary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesSummary) CreateTimeSeriesSummaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTimeSeriesSummary.newBuilder() to construct. private CreateTimeSeriesSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTimeSeriesSummary() { errors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTimeSeriesSummary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.class, - com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); } - public interface ErrorOrBuilder - extends + public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesSummary.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
      * The status of the requested write operation.
      * 
@@ -103,71 +75,62 @@ public interface ErrorOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** - * - * *
      * The number of points that couldn't be written because of `status`.
      * 
* * int32 point_count = 2; - * * @return The pointCount. */ int getPointCount(); } /** - * - * *
    * Detailed information about an error category.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary.Error} */ - public static final class Error extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesSummary.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Error() {} + private Error() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** - * - * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ @java.lang.Override @@ -175,14 +138,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; - * * @return The status. */ @java.lang.Override @@ -190,8 +150,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
      * The status of the requested write operation.
      * 
@@ -206,14 +164,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int POINT_COUNT_FIELD_NUMBER = 2; private int pointCount_ = 0; /** - * - * *
      * The number of points that couldn't be written because of `status`.
      * 
* * int32 point_count = 2; - * * @return The pointCount. */ @java.lang.Override @@ -222,7 +177,6 @@ public int getPointCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (status_ != null) { output.writeMessage(1, getStatus()); } @@ -251,10 +206,12 @@ public int getSerializedSize() { size = 0; if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); } if (pointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pointCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pointCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,19 +221,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesSummary.Error)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesSummary.Error other = - (com.google.monitoring.v3.CreateTimeSeriesSummary.Error) obj; + com.google.monitoring.v3.CreateTimeSeriesSummary.Error other = (com.google.monitoring.v3.CreateTimeSeriesSummary.Error) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } - if (getPointCount() != other.getPointCount()) return false; + if (getPointCount() + != other.getPointCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,94 +258,89 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error prototype) { + public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -397,41 +350,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detailed information about an error category.
      * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary.Error} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesSummary.Error) com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesSummary.Error.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override @@ -467,11 +418,8 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesSummary.Error buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesSummary.Error result = - new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateTimeSeriesSummary.Error result = new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -479,7 +427,9 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error buildPartial() { private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary.Error result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.pointCount_ = pointCount_; @@ -490,41 +440,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary.Erro public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesSummary.Error) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary.Error) other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary.Error)other); } else { super.mergeFrom(other); return this; @@ -532,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary.Error other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -566,25 +512,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pointCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pointCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,36 +539,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -634,8 +571,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -656,15 +591,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -675,8 +609,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -685,9 +617,9 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && status_ != null - && status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -700,8 +632,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -719,8 +649,6 @@ public Builder clearStatus() { return this; } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -733,8 +661,6 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -745,12 +671,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
        * The status of the requested write operation.
        * 
@@ -758,29 +683,26 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } - private int pointCount_; + private int pointCount_ ; /** - * - * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; - * * @return The pointCount. */ @java.lang.Override @@ -788,14 +710,11 @@ public int getPointCount() { return pointCount_; } /** - * - * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; - * * @param value The pointCount to set. * @return This builder for chaining. */ @@ -807,14 +726,11 @@ public Builder setPointCount(int value) { return this; } /** - * - * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; - * * @return This builder for chaining. */ public Builder clearPointCount() { @@ -823,7 +739,6 @@ public Builder clearPointCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -836,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesSummary.Error) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary.Error) private static final com.google.monitoring.v3.CreateTimeSeriesSummary.Error DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(); } @@ -850,28 +765,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -886,19 +800,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int TOTAL_POINT_COUNT_FIELD_NUMBER = 1; private int totalPointCount_ = 0; /** - * - * *
    * The number of points in the request.
    * 
* * int32 total_point_count = 1; - * * @return The totalPointCount. */ @java.lang.Override @@ -909,14 +821,11 @@ public int getTotalPointCount() { public static final int SUCCESS_POINT_COUNT_FIELD_NUMBER = 2; private int successPointCount_ = 0; /** - * - * *
    * The number of points that were successfully written.
    * 
* * int32 success_point_count = 2; - * * @return The successPointCount. */ @java.lang.Override @@ -925,12 +834,9 @@ public int getSuccessPointCount() { } public static final int ERRORS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -942,8 +848,6 @@ public java.util.List ge return errors_; } /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -951,13 +855,11 @@ public java.util.List ge * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -969,8 +871,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -982,8 +882,6 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int inde return errors_.get(index); } /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -997,7 +895,6 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1009,7 +906,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (totalPointCount_ != 0) { output.writeInt32(1, totalPointCount_); } @@ -1029,13 +927,16 @@ public int getSerializedSize() { size = 0; if (totalPointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalPointCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, totalPointCount_); } if (successPointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, successPointCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, successPointCount_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1045,17 +946,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesSummary)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesSummary other = - (com.google.monitoring.v3.CreateTimeSeriesSummary) obj; + com.google.monitoring.v3.CreateTimeSeriesSummary other = (com.google.monitoring.v3.CreateTimeSeriesSummary) obj; - if (getTotalPointCount() != other.getTotalPointCount()) return false; - if (getSuccessPointCount() != other.getSuccessPointCount()) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (getTotalPointCount() + != other.getTotalPointCount()) return false; + if (getSuccessPointCount() + != other.getSuccessPointCount()) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1080,136 +983,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Summary of the result of a failed request to write data to a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesSummary) com.google.monitoring.v3.CreateTimeSeriesSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.class, - com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesSummary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1227,9 +1126,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override @@ -1248,18 +1147,14 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesSummary buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesSummary result = - new com.google.monitoring.v3.CreateTimeSeriesSummary(this); + com.google.monitoring.v3.CreateTimeSeriesSummary result = new com.google.monitoring.v3.CreateTimeSeriesSummary(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.CreateTimeSeriesSummary result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.CreateTimeSeriesSummary result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -1285,39 +1180,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesSummary) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary) other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary)other); } else { super.mergeFrom(other); return this; @@ -1325,8 +1219,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.getDefaultInstance()) return this; if (other.getTotalPointCount() != 0) { setTotalPointCount(other.getTotalPointCount()); } @@ -1351,10 +1244,9 @@ public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary other) errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000004); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1386,39 +1278,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - totalPointCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - successPointCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.monitoring.v3.CreateTimeSeriesSummary.Error m = - input.readMessage( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + totalPointCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + successPointCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.monitoring.v3.CreateTimeSeriesSummary.Error m = + input.readMessage( + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1428,19 +1316,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int totalPointCount_; + private int totalPointCount_ ; /** - * - * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; - * * @return The totalPointCount. */ @java.lang.Override @@ -1448,14 +1332,11 @@ public int getTotalPointCount() { return totalPointCount_; } /** - * - * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; - * * @param value The totalPointCount to set. * @return This builder for chaining. */ @@ -1467,14 +1348,11 @@ public Builder setTotalPointCount(int value) { return this; } /** - * - * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; - * * @return This builder for chaining. */ public Builder clearTotalPointCount() { @@ -1484,16 +1362,13 @@ public Builder clearTotalPointCount() { return this; } - private int successPointCount_; + private int successPointCount_ ; /** - * - * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; - * * @return The successPointCount. */ @java.lang.Override @@ -1501,14 +1376,11 @@ public int getSuccessPointCount() { return successPointCount_; } /** - * - * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; - * * @param value The successPointCount to set. * @return This builder for chaining. */ @@ -1520,14 +1392,11 @@ public Builder setSuccessPointCount(int value) { return this; } /** - * - * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; - * * @return This builder for chaining. */ public Builder clearSuccessPointCount() { @@ -1538,26 +1407,18 @@ public Builder clearSuccessPointCount() { } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, - com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> - errorsBuilder_; + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1572,8 +1433,6 @@ public java.util.List ge } } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1588,8 +1447,6 @@ public int getErrorsCount() { } } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1604,8 +1461,6 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int inde } } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1627,8 +1482,6 @@ public Builder setErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1647,8 +1500,6 @@ public Builder setErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1669,8 +1520,6 @@ public Builder addErrors(com.google.monitoring.v3.CreateTimeSeriesSummary.Error return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1692,8 +1541,6 @@ public Builder addErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1712,8 +1559,6 @@ public Builder addErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1732,8 +1577,6 @@ public Builder addErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1741,11 +1584,11 @@ public Builder addErrors( * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ public Builder addAllErrors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1753,8 +1596,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1772,8 +1613,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1791,8 +1630,6 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1804,8 +1641,6 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder getErrorsB return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1815,22 +1650,19 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder getErrorsB public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1838,8 +1670,6 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors } } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1847,12 +1677,10 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1861,43 +1689,37 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsB */ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder() - .addBuilder( - index, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); } /** - * - * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, - com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, - com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1907,12 +1729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesSummary) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary) private static final com.google.monitoring.v3.CreateTimeSeriesSummary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesSummary(); } @@ -1921,27 +1743,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesSummary getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1956,4 +1778,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java index 3ef4e9333197..8558dcfbc0a0 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java @@ -1,67 +1,42 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesSummaryOrBuilder - extends +public interface CreateTimeSeriesSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesSummary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The number of points in the request.
    * 
* * int32 total_point_count = 1; - * * @return The totalPointCount. */ int getTotalPointCount(); /** - * - * *
    * The number of points that were successfully written.
    * 
* * int32 success_point_count = 2; - * * @return The successPointCount. */ int getSuccessPointCount(); /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -70,8 +45,6 @@ public interface CreateTimeSeriesSummaryOrBuilder */ com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int index); /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -80,24 +53,21 @@ public interface CreateTimeSeriesSummaryOrBuilder */ int getErrorsCount(); /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder( + int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java similarity index 61% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java index e5e6a19b6888..8498f99e9926 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java @@ -1,75 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `CreateUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateUptimeCheckConfigRequest} */ -public final class CreateUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateUptimeCheckConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateUptimeCheckConfigRequest) CreateUptimeCheckConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateUptimeCheckConfigRequest.newBuilder() to construct. - private CreateUptimeCheckConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateUptimeCheckConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -78,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,15 +64,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -107,18 +80,17 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,16 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int UPTIME_CHECK_CONFIG_FIELD_NUMBER = 2; private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_; /** - * - * *
    * Required. The new Uptime check configuration.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the uptimeCheckConfig field is set. */ @java.lang.Override @@ -146,44 +113,30 @@ public boolean hasUptimeCheckConfig() { return uptimeCheckConfig_ != null; } /** - * - * *
    * Required. The new Uptime check configuration.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The uptimeCheckConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } /** - * - * *
    * Required. The new Uptime check configuration.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +148,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -215,7 +169,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (uptimeCheckConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUptimeCheckConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUptimeCheckConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,18 +180,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateUptimeCheckConfigRequest other = - (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.CreateUptimeCheckConfigRequest other = (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasUptimeCheckConfig() != other.hasUptimeCheckConfig()) return false; if (hasUptimeCheckConfig()) { - if (!getUptimeCheckConfig().equals(other.getUptimeCheckConfig())) return false; + if (!getUptimeCheckConfig() + .equals(other.getUptimeCheckConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,136 +217,131 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.CreateUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `CreateUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateUptimeCheckConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateUptimeCheckConfigRequest) com.google.monitoring.v3.CreateUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateUptimeCheckConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -426,11 +377,8 @@ public com.google.monitoring.v3.CreateUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.CreateUptimeCheckConfigRequest result = - new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.CreateUptimeCheckConfigRequest result = new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -441,10 +389,9 @@ private void buildPartial0(com.google.monitoring.v3.CreateUptimeCheckConfigReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.uptimeCheckConfig_ = - uptimeCheckConfigBuilder_ == null - ? uptimeCheckConfig_ - : uptimeCheckConfigBuilder_.build(); + result.uptimeCheckConfig_ = uptimeCheckConfigBuilder_ == null + ? uptimeCheckConfig_ + : uptimeCheckConfigBuilder_.build(); } } @@ -452,39 +399,38 @@ private void buildPartial0(com.google.monitoring.v3.CreateUptimeCheckConfigReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.CreateUptimeCheckConfigRequest) other); + return mergeFrom((com.google.monitoring.v3.CreateUptimeCheckConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -492,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -528,26 +473,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getUptimeCheckConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUptimeCheckConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,13 +500,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -572,16 +512,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -590,8 +528,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -600,17 +536,16 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -618,8 +553,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -628,25 +561,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -655,10 +582,7 @@ public Builder setParent(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -668,8 +592,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -678,17 +600,13 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -698,58 +616,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder> - uptimeCheckConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigBuilder_; /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the uptimeCheckConfig field is set. */ public boolean hasUptimeCheckConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The uptimeCheckConfig. */ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { if (uptimeCheckConfigBuilder_ == null) { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } else { return uptimeCheckConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { @@ -765,15 +664,11 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v return this; } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUptimeCheckConfig( com.google.monitoring.v3.UptimeCheckConfig.Builder builderForValue) { @@ -787,22 +682,17 @@ public Builder setUptimeCheckConfig( return this; } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && uptimeCheckConfig_ != null - && uptimeCheckConfig_ - != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + uptimeCheckConfig_ != null && + uptimeCheckConfig_ != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { getUptimeCheckConfigBuilder().mergeFrom(value); } else { uptimeCheckConfig_ = value; @@ -815,15 +705,11 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig return this; } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUptimeCheckConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -836,15 +722,11 @@ public Builder clearUptimeCheckConfig() { return this; } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBuilder() { bitField0_ |= 0x00000002; @@ -852,55 +734,43 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu return getUptimeCheckConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { if (uptimeCheckConfigBuilder_ != null) { return uptimeCheckConfigBuilder_.getMessageOrBuilder(); } else { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } } /** - * - * *
      * Required. The new Uptime check configuration.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigFieldBuilder() { if (uptimeCheckConfigBuilder_ == null) { - uptimeCheckConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( - getUptimeCheckConfig(), getParentForChildren(), isClean()); + uptimeCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + getUptimeCheckConfig(), + getParentForChildren(), + isClean()); uptimeCheckConfig_ = null; } return uptimeCheckConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) private static final com.google.monitoring.v3.CreateUptimeCheckConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(); } @@ -924,27 +794,27 @@ public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,4 +829,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.CreateUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..17c2a34d0d14 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface CreateUptimeCheckConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the Uptime check. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the Uptime check. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the uptimeCheckConfig field is set. + */ + boolean hasUptimeCheckConfig(); + /** + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The uptimeCheckConfig. + */ + com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); + /** + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java index 3441009f15ab..a594d73590bf 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `DeleteAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteAlertPolicyRequest} */ -public final class DeleteAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAlertPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteAlertPolicyRequest) DeleteAlertPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAlertPolicyRequest.newBuilder() to construct. private DeleteAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteAlertPolicyRequest.class, - com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.DeleteAlertPolicyRequest.class, com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The alerting policy to delete. The format is:
    *
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,15 +64,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The alerting policy to delete. The format is:
    *
@@ -106,18 +80,17 @@ public java.lang.String getName() {
    * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -162,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteAlertPolicyRequest other = - (com.google.monitoring.v3.DeleteAlertPolicyRequest) obj; + com.google.monitoring.v3.DeleteAlertPolicyRequest other = (com.google.monitoring.v3.DeleteAlertPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,135 +163,131 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `DeleteAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteAlertPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteAlertPolicyRequest) com.google.monitoring.v3.DeleteAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteAlertPolicyRequest.class, - com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.DeleteAlertPolicyRequest.class, com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteAlertPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override @@ -349,11 +318,8 @@ public com.google.monitoring.v3.DeleteAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.DeleteAlertPolicyRequest result = - new com.google.monitoring.v3.DeleteAlertPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteAlertPolicyRequest result = new com.google.monitoring.v3.DeleteAlertPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +335,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteAlertPolicyRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteAlertPolicyRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteAlertPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -409,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,19 +406,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,13 +426,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -479,16 +438,14 @@ public Builder mergeFrom(
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -497,8 +454,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -507,17 +462,16 @@ public java.lang.String getName() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -525,8 +479,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -535,25 +487,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -562,10 +508,7 @@ public Builder setName(java.lang.String value) {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -575,8 +518,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -585,26 +526,22 @@ public Builder clearName() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) private static final com.google.monitoring.v3.DeleteAlertPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteAlertPolicyRequest(); } @@ -628,27 +565,27 @@ public static com.google.monitoring.v3.DeleteAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +600,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..37a34fa6c1b6 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public interface DeleteAlertPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteAlertPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The alerting policy to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   *
+   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The alerting policy to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   *
+   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java index dd762250221a..8b6bd1fa2f70 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `DeleteGroup` request. The default behavior is to be able to delete a
  * single group without any descendants.
@@ -28,58 +11,50 @@
  *
  * Protobuf type {@code google.monitoring.v3.DeleteGroupRequest}
  */
-public final class DeleteGroupRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGroupRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteGroupRequest)
     DeleteGroupRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGroupRequest.newBuilder() to construct.
   private DeleteGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGroupRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGroupRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.GroupServiceProto
-        .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.GroupServiceProto
-        .internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
+    return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DeleteGroupRequest.class,
-            com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
+            com.google.monitoring.v3.DeleteGroupRequest.class, com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RECURSIVE_FIELD_NUMBER = 4; private boolean recursive_ = false; /** - * - * *
    * If this field is true, then the request means to delete a group with all
    * its descendants. Otherwise, the request means to delete a group only when
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool recursive = 4; - * * @return The recursive. */ @java.lang.Override @@ -143,7 +113,6 @@ public boolean getRecursive() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -175,7 +145,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (recursive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, recursive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, recursive_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,16 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteGroupRequest other = - (com.google.monitoring.v3.DeleteGroupRequest) obj; + com.google.monitoring.v3.DeleteGroupRequest other = (com.google.monitoring.v3.DeleteGroupRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getRecursive() != other.getRecursive()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getRecursive() + != other.getRecursive()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,110 +181,106 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecursive()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `DeleteGroup` request. The default behavior is to be able to delete a
    * single group without any descendants.
@@ -320,32 +288,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.DeleteGroupRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteGroupRequest)
       com.google.monitoring.v3.DeleteGroupRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.GroupServiceProto
-          .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.GroupServiceProto
-          .internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
+      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DeleteGroupRequest.class,
-              com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
+              com.google.monitoring.v3.DeleteGroupRequest.class, com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DeleteGroupRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +325,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.GroupServiceProto
-          .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
     }
 
     @java.lang.Override
@@ -377,11 +346,8 @@ public com.google.monitoring.v3.DeleteGroupRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DeleteGroupRequest buildPartial() {
-      com.google.monitoring.v3.DeleteGroupRequest result =
-          new com.google.monitoring.v3.DeleteGroupRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.DeleteGroupRequest result = new com.google.monitoring.v3.DeleteGroupRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -400,39 +366,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteGroupRequest result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DeleteGroupRequest) {
-        return mergeFrom((com.google.monitoring.v3.DeleteGroupRequest) other);
+        return mergeFrom((com.google.monitoring.v3.DeleteGroupRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,25 +440,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            case 32:
-              {
-                recursive_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 26: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 26
+            case 32: {
+              recursive_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -503,29 +465,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -534,25 +491,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -560,43 +514,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -606,25 +549,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -632,10 +569,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean recursive_; + private boolean recursive_ ; /** - * - * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -643,7 +578,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool recursive = 4; - * * @return The recursive. */ @java.lang.Override @@ -651,8 +585,6 @@ public boolean getRecursive() { return recursive_; } /** - * - * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -660,7 +592,6 @@ public boolean getRecursive() {
      * 
* * bool recursive = 4; - * * @param value The recursive to set. * @return This builder for chaining. */ @@ -672,8 +603,6 @@ public Builder setRecursive(boolean value) { return this; } /** - * - * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -681,7 +610,6 @@ public Builder setRecursive(boolean value) {
      * 
* * bool recursive = 4; - * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -690,9 +618,9 @@ public Builder clearRecursive() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,12 +630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) private static final com.google.monitoring.v3.DeleteGroupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteGroupRequest(); } @@ -716,27 +644,27 @@ public static com.google.monitoring.v3.DeleteGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,4 +679,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java similarity index 50% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java index 1b5636bd551c..ca0c8118d35d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface DeleteGroupRequestOrBuilder - extends +public interface DeleteGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteGroupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this field is true, then the request means to delete a group with all
    * its descendants. Otherwise, the request means to delete a group only when
@@ -66,7 +39,6 @@ public interface DeleteGroupRequestOrBuilder
    * 
* * bool recursive = 4; - * * @return The recursive. */ boolean getRecursive(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java index ce0ce04a4806..2f0f5d41de86 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `DeleteMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteMetricDescriptorRequest} */ -public final class DeleteMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMetricDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteMetricDescriptorRequest) DeleteMetricDescriptorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMetricDescriptorRequest.newBuilder() to construct. private DeleteMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, - com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `"custom.googleapis.com/my_test_metric"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -108,18 +82,17 @@ public java.lang.String getName() {
    * `"custom.googleapis.com/my_test_metric"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -164,15 +137,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteMetricDescriptorRequest other = - (com.google.monitoring.v3.DeleteMetricDescriptorRequest) obj; + com.google.monitoring.v3.DeleteMetricDescriptorRequest other = (com.google.monitoring.v3.DeleteMetricDescriptorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,136 +165,131 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.DeleteMetricDescriptorRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.DeleteMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `DeleteMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteMetricDescriptorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteMetricDescriptorRequest) com.google.monitoring.v3.DeleteMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, - com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteMetricDescriptorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -331,9 +299,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -352,11 +320,8 @@ public com.google.monitoring.v3.DeleteMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.DeleteMetricDescriptorRequest result = - new com.google.monitoring.v3.DeleteMetricDescriptorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteMetricDescriptorRequest result = new com.google.monitoring.v3.DeleteMetricDescriptorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -372,39 +337,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteMetricDescriptorReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteMetricDescriptorRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteMetricDescriptorRequest)other); } else { super.mergeFrom(other); return this; @@ -412,8 +376,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -445,19 +408,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,13 +428,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -483,16 +441,14 @@ public Builder mergeFrom(
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -501,8 +457,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -512,17 +466,16 @@ public java.lang.String getName() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,8 +483,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -541,25 +492,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -569,10 +514,7 @@ public Builder setName(java.lang.String value) {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -582,8 +524,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -593,26 +533,22 @@ public Builder clearName() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +558,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) private static final com.google.monitoring.v3.DeleteMetricDescriptorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteMetricDescriptorRequest(); } @@ -636,27 +572,27 @@ public static com.google.monitoring.v3.DeleteMetricDescriptorRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +607,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.DeleteMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..d56447729521 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public interface DeleteMetricDescriptorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteMetricDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The metric descriptor on which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
+   *
+   * An example of `[METRIC_ID]` is:
+   * `"custom.googleapis.com/my_test_metric"`.
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The metric descriptor on which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
+   *
+   * An example of `[METRIC_ID]` is:
+   * `"custom.googleapis.com/my_test_metric"`.
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java index f6ce31c22488..950dc57e8088 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java @@ -1,85 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `DeleteNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteNotificationChannelRequest} */ -public final class DeleteNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteNotificationChannelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteNotificationChannelRequest) DeleteNotificationChannelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteNotificationChannelRequest.newBuilder() to construct. - private DeleteNotificationChannelRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteNotificationChannelRequest.class, - com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.DeleteNotificationChannelRequest.class, com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,8 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** - * - * *
    * If true, the notification channel will be deleted regardless of its
    * use in alert policies (the policies will be updated to remove the
@@ -135,7 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool force = 5; - * * @return The force. */ @java.lang.Override @@ -144,7 +113,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -176,7 +145,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,16 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteNotificationChannelRequest other = - (com.google.monitoring.v3.DeleteNotificationChannelRequest) obj; + com.google.monitoring.v3.DeleteNotificationChannelRequest other = (com.google.monitoring.v3.DeleteNotificationChannelRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,143 +181,139 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.DeleteNotificationChannelRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.DeleteNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `DeleteNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteNotificationChannelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteNotificationChannelRequest) com.google.monitoring.v3.DeleteNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteNotificationChannelRequest.class, - com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.DeleteNotificationChannelRequest.class, com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteNotificationChannelRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override @@ -378,11 +345,8 @@ public com.google.monitoring.v3.DeleteNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.DeleteNotificationChannelRequest result = - new com.google.monitoring.v3.DeleteNotificationChannelRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteNotificationChannelRequest result = new com.google.monitoring.v3.DeleteNotificationChannelRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -401,39 +365,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteNotificationChannelReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteNotificationChannelRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteNotificationChannelRequest)other); } else { super.mergeFrom(other); return this; @@ -441,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -477,25 +439,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - case 40: - { - force_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 40: { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,29 +464,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -536,25 +490,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -562,43 +513,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -608,25 +548,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -634,10 +568,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -646,7 +578,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 5; - * * @return The force. */ @java.lang.Override @@ -654,8 +585,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -664,7 +593,6 @@ public boolean getForce() {
      * 
* * bool force = 5; - * * @param value The force to set. * @return This builder for chaining. */ @@ -676,8 +604,6 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -686,7 +612,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 5; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -695,9 +620,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) private static final com.google.monitoring.v3.DeleteNotificationChannelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteNotificationChannelRequest(); } @@ -721,27 +646,27 @@ public static com.google.monitoring.v3.DeleteNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,4 +681,6 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.DeleteNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java similarity index 53% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java index 13822d4f1ac5..d5e3a8e5e71a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface DeleteNotificationChannelRequestOrBuilder - extends +public interface DeleteNotificationChannelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If true, the notification channel will be deleted regardless of its
    * use in alert policies (the policies will be updated to remove the
@@ -67,7 +40,6 @@ public interface DeleteNotificationChannelRequestOrBuilder
    * 
* * bool force = 5; - * * @return The force. */ boolean getForce(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java index 5a467cd3e491..b69b2f438016 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java @@ -1,85 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `DeleteServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceLevelObjectiveRequest} */ -public final class DeleteServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteServiceLevelObjectiveRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) DeleteServiceLevelObjectiveRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteServiceLevelObjectiveRequest.newBuilder() to construct. - private DeleteServiceLevelObjectiveRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteServiceLevelObjectiveRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other = - (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other = (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +159,131 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `DeleteServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceLevelObjectiveRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) com.google.monitoring.v3.DeleteServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -347,11 +314,8 @@ public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest result = - new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest result = new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteServiceLevelObjectiveR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(); } @@ -616,27 +551,27 @@ public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +586,6 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java new file mode 100644 index 000000000000..c903c26340bd --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface DeleteServiceLevelObjectiveRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java index 40e400f76fbe..ad2bd2a88cd7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `DeleteService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceRequest} */ -public final class DeleteServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteServiceRequest) DeleteServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteServiceRequest.newBuilder() to construct. private DeleteServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceRequest.class, - com.google.monitoring.v3.DeleteServiceRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceRequest.class, com.google.monitoring.v3.DeleteServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Resource name of the `Service` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the `Service` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteServiceRequest other = - (com.google.monitoring.v3.DeleteServiceRequest) obj; + com.google.monitoring.v3.DeleteServiceRequest other = (com.google.monitoring.v3.DeleteServiceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +158,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `DeleteService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteServiceRequest) com.google.monitoring.v3.DeleteServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceRequest.class, - com.google.monitoring.v3.DeleteServiceRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceRequest.class, com.google.monitoring.v3.DeleteServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteServiceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override @@ -345,11 +314,8 @@ public com.google.monitoring.v3.DeleteServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteServiceRequest buildPartial() { - com.google.monitoring.v3.DeleteServiceRequest result = - new com.google.monitoring.v3.DeleteServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteServiceRequest result = new com.google.monitoring.v3.DeleteServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteServiceRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteServiceRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteServiceRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -437,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -516,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -562,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceRequest) private static final com.google.monitoring.v3.DeleteServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteServiceRequest(); } @@ -613,27 +551,27 @@ public static com.google.monitoring.v3.DeleteServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java new file mode 100644 index 000000000000..74727840b640 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface DeleteServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the `Service` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the `Service` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java index 0d23002c9ef2..13a9aae68f51 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java @@ -1,85 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `DeleteUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteUptimeCheckConfigRequest} */ -public final class DeleteUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteUptimeCheckConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteUptimeCheckConfigRequest) DeleteUptimeCheckConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteUptimeCheckConfigRequest.newBuilder() to construct. - private DeleteUptimeCheckConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteUptimeCheckConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The Uptime check configuration to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Uptime check configuration to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other = - (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other = (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +159,131 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `DeleteUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteUptimeCheckConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteUptimeCheckConfigRequest) com.google.monitoring.v3.DeleteUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -347,11 +314,8 @@ public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest result = - new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest result = new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.DeleteUptimeCheckConfigReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) other); + return mergeFrom((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) private static final com.google.monitoring.v3.DeleteUptimeCheckConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(); } @@ -616,27 +551,27 @@ public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +586,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..d1e500c511b0 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface DeleteUptimeCheckConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Uptime check configuration to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Uptime check configuration to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java index 4cd796801350..55685895e747 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
  * good service and total service. The `TimeSeries` must have `ValueType =
@@ -31,48 +14,43 @@
  *
  * Protobuf type {@code google.monitoring.v3.DistributionCut}
  */
-public final class DistributionCut extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DistributionCut extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DistributionCut)
     DistributionCutOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DistributionCut.newBuilder() to construct.
   private DistributionCut(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DistributionCut() {
     distributionFilter_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DistributionCut();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_DistributionCut_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DistributionCut.class,
-            com.google.monitoring.v3.DistributionCut.Builder.class);
+            com.google.monitoring.v3.DistributionCut.class, com.google.monitoring.v3.DistributionCut.Builder.class);
   }
 
   public static final int DISTRIBUTION_FILTER_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object distributionFilter_ = "";
   /**
-   *
-   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string distribution_filter = 4; - * * @return The distributionFilter. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getDistributionFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); distributionFilter_ = s; return s; } } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -105,15 +81,16 @@ public java.lang.String getDistributionFilter() {
    * 
* * string distribution_filter = 4; - * * @return The bytes for distributionFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getDistributionFilterBytes() { + public com.google.protobuf.ByteString + getDistributionFilterBytes() { java.lang.Object ref = distributionFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); distributionFilter_ = b; return b; } else { @@ -124,15 +101,12 @@ public com.google.protobuf.ByteString getDistributionFilterBytes() { public static final int RANGE_FIELD_NUMBER = 5; private com.google.monitoring.v3.Range range_; /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; - * * @return Whether the range field is set. */ @java.lang.Override @@ -140,15 +114,12 @@ public boolean hasRange() { return range_ != null; } /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; - * * @return The range. */ @java.lang.Override @@ -156,8 +127,6 @@ public com.google.monitoring.v3.Range getRange() { return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_; } /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
@@ -171,7 +140,6 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -183,7 +151,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distributionFilter_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, distributionFilter_);
     }
@@ -203,7 +172,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, distributionFilter_);
     }
     if (range_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRange());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getRange());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -213,17 +183,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.DistributionCut)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.DistributionCut other = (com.google.monitoring.v3.DistributionCut) obj;
 
-    if (!getDistributionFilter().equals(other.getDistributionFilter())) return false;
+    if (!getDistributionFilter()
+        .equals(other.getDistributionFilter())) return false;
     if (hasRange() != other.hasRange()) return false;
     if (hasRange()) {
-      if (!getRange().equals(other.getRange())) return false;
+      if (!getRange()
+          .equals(other.getRange())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -247,104 +219,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.DistributionCut parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.DistributionCut parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.DistributionCut prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
    * good service and total service. The `TimeSeries` must have `ValueType =
@@ -355,32 +322,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.DistributionCut}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DistributionCut)
       com.google.monitoring.v3.DistributionCutOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_DistributionCut_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DistributionCut.class,
-              com.google.monitoring.v3.DistributionCut.Builder.class);
+              com.google.monitoring.v3.DistributionCut.class, com.google.monitoring.v3.DistributionCut.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DistributionCut.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -395,9 +363,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_DistributionCut_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
     }
 
     @java.lang.Override
@@ -416,11 +384,8 @@ public com.google.monitoring.v3.DistributionCut build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DistributionCut buildPartial() {
-      com.google.monitoring.v3.DistributionCut result =
-          new com.google.monitoring.v3.DistributionCut(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.DistributionCut result = new com.google.monitoring.v3.DistributionCut(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -431,7 +396,9 @@ private void buildPartial0(com.google.monitoring.v3.DistributionCut result) {
         result.distributionFilter_ = distributionFilter_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build();
+        result.range_ = rangeBuilder_ == null
+            ? range_
+            : rangeBuilder_.build();
       }
     }
 
@@ -439,39 +406,38 @@ private void buildPartial0(com.google.monitoring.v3.DistributionCut result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DistributionCut) {
-        return mergeFrom((com.google.monitoring.v3.DistributionCut) other);
+        return mergeFrom((com.google.monitoring.v3.DistributionCut)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,25 +480,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 34:
-              {
-                distributionFilter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 34: {
+              distributionFilter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getRangeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -542,13 +507,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object distributionFilter_ = "";
     /**
-     *
-     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -556,13 +518,13 @@ public Builder mergeFrom(
      * 
* * string distribution_filter = 4; - * * @return The distributionFilter. */ public java.lang.String getDistributionFilter() { java.lang.Object ref = distributionFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); distributionFilter_ = s; return s; @@ -571,8 +533,6 @@ public java.lang.String getDistributionFilter() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -580,14 +540,15 @@ public java.lang.String getDistributionFilter() {
      * 
* * string distribution_filter = 4; - * * @return The bytes for distributionFilter. */ - public com.google.protobuf.ByteString getDistributionFilterBytes() { + public com.google.protobuf.ByteString + getDistributionFilterBytes() { java.lang.Object ref = distributionFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); distributionFilter_ = b; return b; } else { @@ -595,8 +556,6 @@ public com.google.protobuf.ByteString getDistributionFilterBytes() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -604,22 +563,18 @@ public com.google.protobuf.ByteString getDistributionFilterBytes() {
      * 
* * string distribution_filter = 4; - * * @param value The distributionFilter to set. * @return This builder for chaining. */ - public Builder setDistributionFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDistributionFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } distributionFilter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -627,7 +582,6 @@ public Builder setDistributionFilter(java.lang.String value) {
      * 
* * string distribution_filter = 4; - * * @return This builder for chaining. */ public Builder clearDistributionFilter() { @@ -637,8 +591,6 @@ public Builder clearDistributionFilter() { return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -646,14 +598,12 @@ public Builder clearDistributionFilter() {
      * 
* * string distribution_filter = 4; - * * @param value The bytes for distributionFilter to set. * @return This builder for chaining. */ - public Builder setDistributionFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDistributionFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); distributionFilter_ = value; bitField0_ |= 0x00000001; @@ -663,35 +613,26 @@ public Builder setDistributionFilterBytes(com.google.protobuf.ByteString value) private com.google.monitoring.v3.Range range_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Range, - com.google.monitoring.v3.Range.Builder, - com.google.monitoring.v3.RangeOrBuilder> - rangeBuilder_; + com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> rangeBuilder_; /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
      * 
* * .google.monitoring.v3.Range range = 5; - * * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
      * 
* * .google.monitoring.v3.Range range = 5; - * * @return The range. */ public com.google.monitoring.v3.Range getRange() { @@ -702,8 +643,6 @@ public com.google.monitoring.v3.Range getRange() { } } /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -725,8 +664,6 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -734,7 +671,8 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
      *
      * .google.monitoring.v3.Range range = 5;
      */
-    public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue) {
+    public Builder setRange(
+        com.google.monitoring.v3.Range.Builder builderForValue) {
       if (rangeBuilder_ == null) {
         range_ = builderForValue.build();
       } else {
@@ -745,8 +683,6 @@ public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -756,9 +692,9 @@ public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue)
      */
     public Builder mergeRange(com.google.monitoring.v3.Range value) {
       if (rangeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && range_ != null
-            && range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          range_ != null &&
+          range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
           getRangeBuilder().mergeFrom(value);
         } else {
           range_ = value;
@@ -771,8 +707,6 @@ public Builder mergeRange(com.google.monitoring.v3.Range value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -791,8 +725,6 @@ public Builder clearRange() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -806,8 +738,6 @@ public com.google.monitoring.v3.Range.Builder getRangeBuilder() {
       return getRangeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -819,12 +749,11 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
       if (rangeBuilder_ != null) {
         return rangeBuilder_.getMessageOrBuilder();
       } else {
-        return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_;
+        return range_ == null ?
+            com.google.monitoring.v3.Range.getDefaultInstance() : range_;
       }
     }
     /**
-     *
-     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -833,24 +762,21 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
      * .google.monitoring.v3.Range range = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Range,
-            com.google.monitoring.v3.Range.Builder,
-            com.google.monitoring.v3.RangeOrBuilder>
+        com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> 
         getRangeFieldBuilder() {
       if (rangeBuilder_ == null) {
-        rangeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.Range,
-                com.google.monitoring.v3.Range.Builder,
-                com.google.monitoring.v3.RangeOrBuilder>(
-                getRange(), getParentForChildren(), isClean());
+        rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder>(
+                getRange(),
+                getParentForChildren(),
+                isClean());
         range_ = null;
       }
       return rangeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -860,12 +786,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DistributionCut)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.DistributionCut)
   private static final com.google.monitoring.v3.DistributionCut DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.DistributionCut();
   }
@@ -874,27 +800,27 @@ public static com.google.monitoring.v3.DistributionCut getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DistributionCut parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DistributionCut parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -909,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.DistributionCut getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
similarity index 70%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
index 3fb2a8ca948c..bc6dd007ad59 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface DistributionCutOrBuilder
-    extends
+public interface DistributionCutOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DistributionCut)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -33,13 +15,10 @@ public interface DistributionCutOrBuilder
    * 
* * string distribution_filter = 4; - * * @return The distributionFilter. */ java.lang.String getDistributionFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -47,40 +26,32 @@ public interface DistributionCutOrBuilder
    * 
* * string distribution_filter = 4; - * * @return The bytes for distributionFilter. */ - com.google.protobuf.ByteString getDistributionFilterBytes(); + com.google.protobuf.ByteString + getDistributionFilterBytes(); /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; - * * @return Whether the range field is set. */ boolean hasRange(); /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; - * * @return The range. */ com.google.monitoring.v3.Range getRange(); /** - * - * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
similarity index 61%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
index 286ff1590b4c..6f3b0064039d 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/dropped_labels.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * A set of (label, value) pairs that were removed from a Distribution
  * time series during aggregation and then added as an attachment to a
@@ -42,79 +25,77 @@
  *
  * Protobuf type {@code google.monitoring.v3.DroppedLabels}
  */
-public final class DroppedLabels extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DroppedLabels extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DroppedLabels)
     DroppedLabelsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DroppedLabels.newBuilder() to construct.
   private DroppedLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private DroppedLabels() {}
+  private DroppedLabels() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DroppedLabels();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.DroppedLabelsProto
-        .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetLabel();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.DroppedLabelsProto
-        .internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
+    return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DroppedLabels.class,
-            com.google.monitoring.v3.DroppedLabels.Builder.class);
+            com.google.monitoring.v3.DroppedLabels.class, com.google.monitoring.v3.DroppedLabels.Builder.class);
   }
 
   public static final int LABEL_FIELD_NUMBER = 1;
-
   private static final class LabelDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.monitoring.v3.DroppedLabelsProto
-                .internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField label_;
-
-  private com.google.protobuf.MapField internalGetLabel() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> label_;
+  private com.google.protobuf.MapField
+  internalGetLabel() {
     if (label_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(LabelDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          LabelDefaultEntryHolder.defaultEntry);
     }
     return label_;
   }
-
   public int getLabelCount() {
     return internalGetLabel().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -122,21 +103,20 @@ public int getLabelCount() { * map<string, string> label = 1; */ @java.lang.Override - public boolean containsLabel(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabel( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabel().getMap().containsKey(key); } - /** Use {@link #getLabelMap()} instead. */ + /** + * Use {@link #getLabelMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabel() { return getLabelMap(); } /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -148,8 +128,6 @@ public java.util.Map getLabelMap() { return internalGetLabel().getMap(); } /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -157,19 +135,17 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelOrDefault( + public /* nullable */ +java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabel().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -177,11 +153,11 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public java.lang.String getLabelOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabel().getMap(); + public java.lang.String getLabelOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabel().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -189,7 +165,6 @@ public java.lang.String getLabelOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,9 +176,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabel(), LabelDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabel(), + LabelDefaultEntryHolder.defaultEntry, + 1); getUnknownFields().writeTo(output); } @@ -213,15 +193,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetLabel().getMap().entrySet()) { - com.google.protobuf.MapEntry label__ = - LabelDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, label__); + for (java.util.Map.Entry entry + : internalGetLabel().getMap().entrySet()) { + com.google.protobuf.MapEntry + label__ = LabelDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, label__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,14 +211,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DroppedLabels)) { return super.equals(obj); } com.google.monitoring.v3.DroppedLabels other = (com.google.monitoring.v3.DroppedLabels) obj; - if (!internalGetLabel().equals(other.internalGetLabel())) return false; + if (!internalGetLabel().equals( + other.internalGetLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,104 +240,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.DroppedLabels parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DroppedLabels parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DroppedLabels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DroppedLabels parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.DroppedLabels parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DroppedLabels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DroppedLabels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A set of (label, value) pairs that were removed from a Distribution
    * time series during aggregation and then added as an attachment to a
@@ -378,52 +354,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.DroppedLabels}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DroppedLabels)
       com.google.monitoring.v3.DroppedLabelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.DroppedLabelsProto
-          .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetLabel();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableLabel();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.DroppedLabelsProto
-          .internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
+      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DroppedLabels.class,
-              com.google.monitoring.v3.DroppedLabels.Builder.class);
+              com.google.monitoring.v3.DroppedLabels.class, com.google.monitoring.v3.DroppedLabels.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DroppedLabels.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -433,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.DroppedLabelsProto
-          .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
     }
 
     @java.lang.Override
@@ -454,11 +433,8 @@ public com.google.monitoring.v3.DroppedLabels build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DroppedLabels buildPartial() {
-      com.google.monitoring.v3.DroppedLabels result =
-          new com.google.monitoring.v3.DroppedLabels(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.DroppedLabels result = new com.google.monitoring.v3.DroppedLabels(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -475,39 +451,38 @@ private void buildPartial0(com.google.monitoring.v3.DroppedLabels result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DroppedLabels) {
-        return mergeFrom((com.google.monitoring.v3.DroppedLabels) other);
+        return mergeFrom((com.google.monitoring.v3.DroppedLabels)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.monitoring.v3.DroppedLabels other) {
       if (other == com.google.monitoring.v3.DroppedLabels.getDefaultInstance()) return this;
-      internalGetMutableLabel().mergeFrom(other.internalGetLabel());
+      internalGetMutableLabel().mergeFrom(
+          other.internalGetLabel());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -544,22 +520,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry label__ =
-                    input.readMessage(
-                        LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutableLabel().getMutableMap().put(label__.getKey(), label__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              label__ = input.readMessage(
+                  LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabel().getMutableMap().put(
+                  label__.getKey(), label__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -569,22 +544,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.MapField label_;
-
-    private com.google.protobuf.MapField internalGetLabel() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> label_;
+    private com.google.protobuf.MapField
+        internalGetLabel() {
       if (label_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(LabelDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            LabelDefaultEntryHolder.defaultEntry);
       }
       return label_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableLabel() {
       if (label_ == null) {
-        label_ = com.google.protobuf.MapField.newMapField(LabelDefaultEntryHolder.defaultEntry);
+        label_ = com.google.protobuf.MapField.newMapField(
+            LabelDefaultEntryHolder.defaultEntry);
       }
       if (!label_.isMutable()) {
         label_ = label_.copy();
@@ -593,13 +569,10 @@ private com.google.protobuf.MapField interna
       onChanged();
       return label_;
     }
-
     public int getLabelCount() {
       return internalGetLabel().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -607,21 +580,20 @@ public int getLabelCount() { * map<string, string> label = 1; */ @java.lang.Override - public boolean containsLabel(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabel( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabel().getMap().containsKey(key); } - /** Use {@link #getLabelMap()} instead. */ + /** + * Use {@link #getLabelMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabel() { return getLabelMap(); } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -633,8 +605,6 @@ public java.util.Map getLabelMap() { return internalGetLabel().getMap(); } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -642,19 +612,17 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelOrDefault( + public /* nullable */ +java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabel().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -662,81 +630,79 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public java.lang.String getLabelOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabel().getMap(); + public java.lang.String getLabelOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabel().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabel().getMutableMap().clear(); + internalGetMutableLabel().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder removeLabel(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabel().getMutableMap().remove(key); + public Builder removeLabel( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabel().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabel() { + public java.util.Map + getMutableLabel() { bitField0_ |= 0x00000001; return internalGetMutableLabel().getMutableMap(); } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder putLabel(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabel().getMutableMap().put(key, value); + public Builder putLabel( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabel().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder putAllLabel(java.util.Map values) { - internalGetMutableLabel().getMutableMap().putAll(values); + public Builder putAllLabel( + java.util.Map values) { + internalGetMutableLabel().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DroppedLabels) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) private static final com.google.monitoring.v3.DroppedLabels DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DroppedLabels(); } @@ -760,27 +726,27 @@ public static com.google.monitoring.v3.DroppedLabels getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DroppedLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DroppedLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -795,4 +761,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DroppedLabels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java similarity index 54% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java index 9ba956817761..5b8261bfc3ca 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/dropped_labels.proto package com.google.monitoring.v3; -public interface DroppedLabelsOrBuilder - extends +public interface DroppedLabelsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DroppedLabels) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -34,31 +16,30 @@ public interface DroppedLabelsOrBuilder */ int getLabelCount(); /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - boolean containsLabel(java.lang.String key); - /** Use {@link #getLabelMap()} instead. */ + boolean containsLabel( + java.lang.String key); + /** + * Use {@link #getLabelMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabel(); + java.util.Map + getLabel(); /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - java.util.Map getLabelMap(); + java.util.Map + getLabelMap(); /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -66,18 +47,17 @@ public interface DroppedLabelsOrBuilder * map<string, string> label = 1; */ /* nullable */ - java.lang.String getLabelOrDefault( +java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - java.lang.String getLabelOrThrow(java.lang.String key); + java.lang.String getLabelOrThrow( + java.lang.String key); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java new file mode 100644 index 000000000000..62d24159f12e --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/dropped_labels.proto + +package com.google.monitoring.v3; + +public final class DroppedLabelsProto { + private DroppedLabelsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/dropped_labels.pr" + + "oto\022\024google.monitoring.v3\"|\n\rDroppedLabe" + + "ls\022=\n\005label\030\001 \003(\0132..google.monitoring.v3" + + ".DroppedLabels.LabelEntry\032,\n\nLabelEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\315\001\n\030com." + + "google.monitoring.v3B\022DroppedLabelsProto" + + "P\001ZAcloud.google.com/go/monitoring/apiv3" + + "/v2/monitoringpb;monitoringpb\252\002\032Google.C" + + "loud.Monitoring.V3\312\002\032Google\\Cloud\\Monito" + + "ring\\V3\352\002\035Google::Cloud::Monitoring::V3b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_v3_DroppedLabels_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_descriptor, + new java.lang.String[] { "Label", }); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor = + internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java index e411ee113a30..f8a2a2067435 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `GetAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetAlertPolicyRequest} */ -public final class GetAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAlertPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetAlertPolicyRequest) GetAlertPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAlertPolicyRequest.newBuilder() to construct. private GetAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetAlertPolicyRequest.class, - com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.GetAlertPolicyRequest.class, com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The alerting policy to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The alerting policy to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetAlertPolicyRequest other = - (com.google.monitoring.v3.GetAlertPolicyRequest) obj; + com.google.monitoring.v3.GetAlertPolicyRequest other = (com.google.monitoring.v3.GetAlertPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +158,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `GetAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetAlertPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetAlertPolicyRequest) com.google.monitoring.v3.GetAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetAlertPolicyRequest.class, - com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.GetAlertPolicyRequest.class, com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetAlertPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override @@ -345,11 +314,8 @@ public com.google.monitoring.v3.GetAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.GetAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.GetAlertPolicyRequest result = - new com.google.monitoring.v3.GetAlertPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetAlertPolicyRequest result = new com.google.monitoring.v3.GetAlertPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.GetAlertPolicyRequest result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.GetAlertPolicyRequest) other); + return mergeFrom((com.google.monitoring.v3.GetAlertPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -437,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -516,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -562,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) private static final com.google.monitoring.v3.GetAlertPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetAlertPolicyRequest(); } @@ -613,27 +551,27 @@ public static com.google.monitoring.v3.GetAlertPolicyRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..02f5ce610c41 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public interface GetAlertPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetAlertPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The alerting policy to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The alerting policy to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java index 345b89a953d7..29a40f88ff0e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetGroupRequest} */ -public final class GetGroupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetGroupRequest) GetGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGroupRequest.newBuilder() to construct. private GetGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGroupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetGroupRequest.class, - com.google.monitoring.v3.GetGroupRequest.Builder.class); + com.google.monitoring.v3.GetGroupRequest.class, com.google.monitoring.v3.GetGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The group to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The group to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -158,14 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetGroupRequest)) { return super.equals(obj); } com.google.monitoring.v3.GetGroupRequest other = (com.google.monitoring.v3.GetGroupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +158,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetGroupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetGroupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetGroupRequest) com.google.monitoring.v3.GetGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetGroupRequest.class, - com.google.monitoring.v3.GetGroupRequest.Builder.class); + com.google.monitoring.v3.GetGroupRequest.class, com.google.monitoring.v3.GetGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetGroupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override @@ -344,11 +314,8 @@ public com.google.monitoring.v3.GetGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.GetGroupRequest buildPartial() { - com.google.monitoring.v3.GetGroupRequest result = - new com.google.monitoring.v3.GetGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetGroupRequest result = new com.google.monitoring.v3.GetGroupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.GetGroupRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetGroupRequest) { - return mergeFrom((com.google.monitoring.v3.GetGroupRequest) other); + return mergeFrom((com.google.monitoring.v3.GetGroupRequest)other); } else { super.mergeFrom(other); return this; @@ -436,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -561,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) private static final com.google.monitoring.v3.GetGroupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetGroupRequest(); } @@ -612,27 +551,27 @@ public static com.google.monitoring.v3.GetGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java new file mode 100644 index 000000000000..11d3c9b624a5 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group_service.proto + +package com.google.monitoring.v3; + +public interface GetGroupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The group to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The group to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java index 1f78f20adea8..356085150c3d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetMetricDescriptorRequest} */ -public final class GetMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMetricDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetMetricDescriptorRequest) GetMetricDescriptorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMetricDescriptorRequest.newBuilder() to construct. private GetMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMetricDescriptorRequest.class, - com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMetricDescriptorRequest.class, com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -108,18 +82,17 @@ public java.lang.String getName() {
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -164,15 +137,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetMetricDescriptorRequest other = - (com.google.monitoring.v3.GetMetricDescriptorRequest) obj; + com.google.monitoring.v3.GetMetricDescriptorRequest other = (com.google.monitoring.v3.GetMetricDescriptorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,135 +165,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetMetricDescriptorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetMetricDescriptorRequest) com.google.monitoring.v3.GetMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMetricDescriptorRequest.class, - com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMetricDescriptorRequest.class, com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetMetricDescriptorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +299,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -351,11 +320,8 @@ public com.google.monitoring.v3.GetMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.GetMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetMetricDescriptorRequest result = - new com.google.monitoring.v3.GetMetricDescriptorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetMetricDescriptorRequest result = new com.google.monitoring.v3.GetMetricDescriptorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +337,38 @@ private void buildPartial0(com.google.monitoring.v3.GetMetricDescriptorRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetMetricDescriptorRequest) other); + return mergeFrom((com.google.monitoring.v3.GetMetricDescriptorRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +376,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +408,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,13 +428,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -482,16 +441,14 @@ public Builder mergeFrom(
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -500,8 +457,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -511,17 +466,16 @@ public java.lang.String getName() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -529,8 +483,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -540,25 +492,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -568,10 +514,7 @@ public Builder setName(java.lang.String value) {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -581,8 +524,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -592,26 +533,22 @@ public Builder clearName() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -621,12 +558,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) private static final com.google.monitoring.v3.GetMetricDescriptorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetMetricDescriptorRequest(); } @@ -635,27 +572,27 @@ public static com.google.monitoring.v3.GetMetricDescriptorRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -670,4 +607,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.GetMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java similarity index 50% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java index f1942beef16c..89b9cf73c2c7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface GetMetricDescriptorRequestOrBuilder - extends +public interface GetMetricDescriptorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMetricDescriptorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -35,16 +17,11 @@ public interface GetMetricDescriptorRequestOrBuilder
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -54,11 +31,9 @@ public interface GetMetricDescriptorRequestOrBuilder
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java similarity index 61% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java index 0db5af95ad91..c2832cf6c6af 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java @@ -1,76 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetMonitoredResourceDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetMonitoredResourceDescriptorRequest} */ -public final class GetMonitoredResourceDescriptorRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMonitoredResourceDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) GetMonitoredResourceDescriptorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMonitoredResourceDescriptorRequest.newBuilder() to construct. - private GetMonitoredResourceDescriptorRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetMonitoredResourceDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMonitoredResourceDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMonitoredResourceDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The monitored resource descriptor to get.  The format is:
    *
@@ -80,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `cloudsql_database`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The monitored resource descriptor to get.  The format is:
    *
@@ -110,18 +82,17 @@ public java.lang.String getName() {
    * `cloudsql_database`.
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +112,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -166,15 +137,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other = - (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) obj; + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other = (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,136 +165,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetMonitoredResourceDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetMonitoredResourceDescriptorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) com.google.monitoring.v3.GetMonitoredResourceDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -333,14 +299,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstanceForType() { return com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance(); } @@ -355,17 +320,13 @@ public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result = - new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result = new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result) { + private void buildPartial0(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -376,39 +337,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) other); + return mergeFrom((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest)other); } else { super.mergeFrom(other); return this; @@ -416,9 +376,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other) { - if (other - == com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -450,19 +408,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,13 +428,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -488,16 +441,14 @@ public Builder mergeFrom(
      * `cloudsql_database`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -506,8 +457,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -517,17 +466,16 @@ public java.lang.String getName() {
      * `cloudsql_database`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +483,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -546,25 +492,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * `cloudsql_database`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -574,10 +514,7 @@ public Builder setName(java.lang.String value) {
      * `cloudsql_database`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -587,8 +524,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -598,26 +533,22 @@ public Builder clearName() {
      * `cloudsql_database`.
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,43 +558,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - private static final com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest - getDefaultInstance() { + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMonitoredResourceDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMonitoredResourceDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,8 +604,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..b73c5801940f --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public interface GetMonitoredResourceDescriptorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The monitored resource descriptor to get.  The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
+   *
+   * The `[RESOURCE_TYPE]` is a predefined type, such as
+   * `cloudsql_database`.
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The monitored resource descriptor to get.  The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
+   *
+   * The `[RESOURCE_TYPE]` is a predefined type, such as
+   * `cloudsql_database`.
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java similarity index 60% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java index 2e969fb6c6c1..7d4ec8646358 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java @@ -1,86 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetNotificationChannelDescriptor` response.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelDescriptorRequest} */ -public final class GetNotificationChannelDescriptorRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationChannelDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelDescriptorRequest) GetNotificationChannelDescriptorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationChannelDescriptorRequest.newBuilder() to construct. - private GetNotificationChannelDescriptorRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationChannelDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationChannelDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The channel type for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The channel type for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -160,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other = - (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) obj; + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other = (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,136 +159,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetNotificationChannelDescriptor` response.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelDescriptorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelDescriptorRequest) com.google.monitoring.v3.GetNotificationChannelDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstanceForType() { return com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance(); } @@ -349,17 +314,13 @@ public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest build() @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result = - new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result = new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result) { + private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -370,50 +331,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) other); + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other) { - if (other - == com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other) { + if (other == com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -445,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -498,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -524,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -570,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,43 +537,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - private static final com.google.monitoring.v3.GetNotificationChannelDescriptorRequest - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.GetNotificationChannelDescriptorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest - getDefaultInstance() { + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationChannelDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationChannelDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,8 +583,9 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..14db283e2dd5 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface GetNotificationChannelDescriptorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The channel type for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The channel type for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java index dfdb920905ed..21f24294aba7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelRequest} */ -public final class GetNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationChannelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelRequest) GetNotificationChannelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationChannelRequest.newBuilder() to construct. private GetNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelRequest.class, - com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelRequest.class, com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetNotificationChannelRequest other = - (com.google.monitoring.v3.GetNotificationChannelRequest) obj; + com.google.monitoring.v3.GetNotificationChannelRequest other = (com.google.monitoring.v3.GetNotificationChannelRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.GetNotificationChannelRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelRequest) com.google.monitoring.v3.GetNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelRequest.class, - com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelRequest.class, com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetNotificationChannelRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.monitoring.v3.GetNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelRequest result = - new com.google.monitoring.v3.GetNotificationChannelRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetNotificationChannelRequest result = new com.google.monitoring.v3.GetNotificationChannelRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelRequest) other); + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -564,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) private static final com.google.monitoring.v3.GetNotificationChannelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelRequest(); } @@ -615,27 +551,27 @@ public static com.google.monitoring.v3.GetNotificationChannelRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.GetNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java new file mode 100644 index 000000000000..ad7cf831c261 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface GetNotificationChannelRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The channel for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The channel for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+   * 
+ * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java index 0ac5cea3429c..993e4582a2a7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java @@ -1,86 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeRequest} */ -public final class GetNotificationChannelVerificationCodeRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationChannelVerificationCodeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) GetNotificationChannelVerificationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationChannelVerificationCodeRequest.newBuilder() to construct. - private GetNotificationChannelVerificationCodeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelVerificationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationChannelVerificationCodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationChannelVerificationCodeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The notification channel for which a verification code is to be generated
-   * and retrieved. This must name a channel that is already verified; if
-   * the specified channel is not verified, the request will fail.
+   * Required. The notification channel for which a verification code is to be
+   * generated and retrieved. This must name a channel that is already verified;
+   * if the specified channel is not verified, the request will fail.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The notification channel for which a verification code is to be generated
-   * and retrieved. This must name a channel that is already verified; if
-   * the specified channel is not verified, the request will fail.
+   * Required. The notification channel for which a verification code is to be
+   * generated and retrieved. This must name a channel that is already verified;
+   * if the specified channel is not verified, the request will fail.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,8 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -141,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -149,8 +117,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -164,7 +130,6 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -172,8 +137,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -194,7 +157,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,7 +168,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -226,7 +189,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (expireTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getExpireTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -236,18 +200,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other =
-        (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) obj;
+    com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other = (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime().equals(other.getExpireTime())) return false;
+      if (!getExpireTime()
+          .equals(other.getExpireTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -272,138 +237,131 @@ public int hashCode() {
   }
 
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest prototype) {
+  public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The `GetNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); } - // Construct using - // com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,22 +376,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest - getDefaultInstanceForType() { - return com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest - .getDefaultInstance(); + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { + return com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest build() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = - buildPartial(); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -442,23 +397,21 @@ public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest bu @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = - new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result) { + private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -466,51 +419,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) { - return mergeFrom( - (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) other); + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other) { - if (other - == com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other) { + if (other == com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -545,25 +493,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,29 +520,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The notification channel for which a verification code is to be generated
-     * and retrieved. This must name a channel that is already verified; if
-     * the specified channel is not verified, the request will fail.
+     * Required. The notification channel for which a verification code is to be
+     * generated and retrieved. This must name a channel that is already verified;
+     * if the specified channel is not verified, the request will fail.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -604,25 +546,22 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The notification channel for which a verification code is to be generated
-     * and retrieved. This must name a channel that is already verified; if
-     * the specified channel is not verified, the request will fail.
+     * Required. The notification channel for which a verification code is to be
+     * generated and retrieved. This must name a channel that is already verified;
+     * if the specified channel is not verified, the request will fail.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -630,43 +569,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The notification channel for which a verification code is to be generated
-     * and retrieved. This must name a channel that is already verified; if
-     * the specified channel is not verified, the request will fail.
+     * Required. The notification channel for which a verification code is to be
+     * generated and retrieved. This must name a channel that is already verified;
+     * if the specified channel is not verified, the request will fail.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The notification channel for which a verification code is to be generated
-     * and retrieved. This must name a channel that is already verified; if
-     * the specified channel is not verified, the request will fail.
+     * Required. The notification channel for which a verification code is to be
+     * generated and retrieved. This must name a channel that is already verified;
+     * if the specified channel is not verified, the request will fail.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -676,25 +604,19 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The notification channel for which a verification code is to be generated
-     * and retrieved. This must name a channel that is already verified; if
-     * the specified channel is not verified, the request will fail.
+     * Required. The notification channel for which a verification code is to be
+     * generated and retrieved. This must name a channel that is already verified;
+     * if the specified channel is not verified, the request will fail.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -704,13 +626,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -724,15 +641,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -746,21 +660,16 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -789,8 +698,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -805,7 +712,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
       } else {
@@ -816,8 +724,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -834,9 +740,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && expireTime_ != null
-            && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          expireTime_ != null &&
+          expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getExpireTimeBuilder().mergeFrom(value);
         } else {
           expireTime_ = value;
@@ -849,8 +755,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -876,8 +780,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -898,8 +800,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -918,14 +818,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       if (expireTimeBuilder_ != null) {
         return expireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expireTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : expireTime_;
+        return expireTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -941,24 +838,21 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getExpireTime(), getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getExpireTime(),
+                getParentForChildren(),
+                isClean());
         expireTime_ = null;
       }
       return expireTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -968,59 +862,55 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
-  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest();
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
-      getDefaultInstance() {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
   private static final com.google.protobuf.Parser
-      PARSER =
-          new com.google.protobuf.AbstractParser() {
-            @java.lang.Override
-            public GetNotificationChannelVerificationCodeRequest parsePartialFrom(
-                com.google.protobuf.CodedInputStream input,
-                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-                throws com.google.protobuf.InvalidProtocolBufferException {
-              Builder builder = newBuilder();
-              try {
-                builder.mergeFrom(input, extensionRegistry);
-              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-                throw e.setUnfinishedMessage(builder.buildPartial());
-              } catch (com.google.protobuf.UninitializedMessageException e) {
-                throw e.asInvalidProtocolBufferException()
-                    .setUnfinishedMessage(builder.buildPartial());
-              } catch (java.io.IOException e) {
-                throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                    .setUnfinishedMessage(builder.buildPartial());
-              }
-              return builder.buildPartial();
-            }
-          };
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GetNotificationChannelVerificationCodeRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.protobuf.Parser
-      getParserForType() {
+  public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
-      getDefaultInstanceForType() {
+  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
similarity index 70%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
index 3c5973052a9c..1232c45d8372 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
@@ -1,64 +1,37 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
-public interface GetNotificationChannelVerificationCodeRequestOrBuilder
-    extends
+public interface GetNotificationChannelVerificationCodeRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
-   * Required. The notification channel for which a verification code is to be generated
-   * and retrieved. This must name a channel that is already verified; if
-   * the specified channel is not verified, the request will fail.
+   * Required. The notification channel for which a verification code is to be
+   * generated and retrieved. This must name a channel that is already verified;
+   * if the specified channel is not verified, the request will fail.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Required. The notification channel for which a verification code is to be generated
-   * and retrieved. This must name a channel that is already verified; if
-   * the specified channel is not verified, the request will fail.
+   * Required. The notification channel for which a verification code is to be
+   * generated and retrieved. This must name a channel that is already verified;
+   * if the specified channel is not verified, the request will fail.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -72,13 +45,10 @@ public interface GetNotificationChannelVerificationCodeRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -92,13 +62,10 @@ public interface GetNotificationChannelVerificationCodeRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
similarity index 66%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
index d9904d3467f7..ede990520638 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
@@ -1,76 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The `GetNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeResponse} */ -public final class GetNotificationChannelVerificationCodeResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationChannelVerificationCodeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) GetNotificationChannelVerificationCodeResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationChannelVerificationCodeResponse.newBuilder() to construct. - private GetNotificationChannelVerificationCodeResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelVerificationCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationChannelVerificationCodeResponse() { code_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationChannelVerificationCodeResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -79,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string code = 1; - * * @return The code. */ @java.lang.Override @@ -88,15 +63,14 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -105,15 +79,16 @@ public java.lang.String getCode() {
    * 
* * string code = 1; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -124,8 +99,6 @@ public com.google.protobuf.ByteString getCodeBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -133,7 +106,6 @@ public com.google.protobuf.ByteString getCodeBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -141,8 +113,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -150,7 +120,6 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -158,8 +127,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -174,7 +141,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,7 +152,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
     }
@@ -206,7 +173,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
     }
     if (expireTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getExpireTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -216,18 +184,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other =
-        (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) obj;
+    com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other = (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) obj;
 
-    if (!getCode().equals(other.getCode())) return false;
+    if (!getCode()
+        .equals(other.getCode())) return false;
     if (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime().equals(other.getExpireTime())) return false;
+      if (!getExpireTime()
+          .equals(other.getExpireTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -252,139 +221,131 @@ public int hashCode() {
   }
 
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse prototype) {
+  public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The `GetNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder - .class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); } - // Construct using - // com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -399,22 +360,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse - getDefaultInstanceForType() { - return com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse - .getDefaultInstance(); + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstanceForType() { + return com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse build() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = - buildPartial(); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -423,23 +381,21 @@ public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse b @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse buildPartial() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = - new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result) { + private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -447,52 +403,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) { - return mergeFrom( - (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) other); + if (other instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) { + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other) { - if (other - == com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other) { + if (other == com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; bitField0_ |= 0x00000001; @@ -527,25 +477,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,13 +504,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object code_ = ""; /** - * - * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -570,13 +516,13 @@ public Builder mergeFrom(
      * 
* * string code = 1; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -585,8 +531,6 @@ public java.lang.String getCode() { } } /** - * - * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -595,14 +539,15 @@ public java.lang.String getCode() {
      * 
* * string code = 1; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -610,8 +555,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -620,22 +563,18 @@ public com.google.protobuf.ByteString getCodeBytes() {
      * 
* * string code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -644,7 +583,6 @@ public Builder setCode(java.lang.String value) {
      * 
* * string code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -654,8 +592,6 @@ public Builder clearCode() { return this; } /** - * - * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -664,14 +600,12 @@ public Builder clearCode() {
      * 
* * string code = 1; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000001; @@ -681,13 +615,8 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -695,15 +624,12 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -711,21 +637,16 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -748,8 +669,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -758,7 +677,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
       } else {
@@ -769,8 +689,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -781,9 +699,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && expireTime_ != null
-            && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          expireTime_ != null &&
+          expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getExpireTimeBuilder().mergeFrom(value);
         } else {
           expireTime_ = value;
@@ -796,8 +714,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -817,8 +733,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -833,8 +747,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -847,14 +759,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       if (expireTimeBuilder_ != null) {
         return expireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expireTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : expireTime_;
+        return expireTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -864,24 +773,21 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getExpireTime(), getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getExpireTime(),
+                getParentForChildren(),
+                isClean());
         expireTime_ = null;
       }
       return expireTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -891,61 +797,55 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
-  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE =
-        new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse();
+    DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse();
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
-      getDefaultInstance() {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
   private static final com.google.protobuf.Parser
-      PARSER =
-          new com.google.protobuf.AbstractParser() {
-            @java.lang.Override
-            public GetNotificationChannelVerificationCodeResponse parsePartialFrom(
-                com.google.protobuf.CodedInputStream input,
-                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-                throws com.google.protobuf.InvalidProtocolBufferException {
-              Builder builder = newBuilder();
-              try {
-                builder.mergeFrom(input, extensionRegistry);
-              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-                throw e.setUnfinishedMessage(builder.buildPartial());
-              } catch (com.google.protobuf.UninitializedMessageException e) {
-                throw e.asInvalidProtocolBufferException()
-                    .setUnfinishedMessage(builder.buildPartial());
-              } catch (java.io.IOException e) {
-                throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                    .setUnfinishedMessage(builder.buildPartial());
-              }
-              return builder.buildPartial();
-            }
-          };
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GetNotificationChannelVerificationCodeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
-  public static com.google.protobuf.Parser
-      parser() {
+  public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.protobuf.Parser
-      getParserForType() {
+  public com.google.protobuf.Parser getParserForType() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
-      getDefaultInstanceForType() {
+  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
similarity index 76%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
index ac66ab93b0c1..fce8597ea02a 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
-public interface GetNotificationChannelVerificationCodeResponseOrBuilder
-    extends
+public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -34,13 +16,10 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder
    * 
* * string code = 1; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -49,14 +28,12 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder
    * 
* * string code = 1; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -64,13 +41,10 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -78,13 +52,10 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
similarity index 68%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
index 1af372787961..311b455abfb9 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
@@ -1,43 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The `GetServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetServiceLevelObjectiveRequest} */ -public final class GetServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServiceLevelObjectiveRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetServiceLevelObjectiveRequest) GetServiceLevelObjectiveRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServiceLevelObjectiveRequest.newBuilder() to construct. - private GetServiceLevelObjectiveRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServiceLevelObjectiveRequest() { name_ = ""; view_ = 0; @@ -45,42 +26,35 @@ private GetServiceLevelObjectiveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,8 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** - * - * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -136,16 +106,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -154,20 +120,14 @@ public int getViewValue() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The view. */ - @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = - com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { + com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,7 +160,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,15 +171,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetServiceLevelObjectiveRequest other = - (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.GetServiceLevelObjectiveRequest other = (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -240,136 +202,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.GetServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetServiceLevelObjectiveRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetServiceLevelObjectiveRequest) com.google.monitoring.v3.GetServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetServiceLevelObjectiveRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -401,11 +358,8 @@ public com.google.monitoring.v3.GetServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.GetServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.GetServiceLevelObjectiveRequest result = - new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetServiceLevelObjectiveRequest result = new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -424,39 +378,38 @@ private void buildPartial0(com.google.monitoring.v3.GetServiceLevelObjectiveRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.GetServiceLevelObjectiveRequest) other); + return mergeFrom((com.google.monitoring.v3.GetServiceLevelObjectiveRequest)other); } else { super.mergeFrom(other); return this; @@ -464,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -500,25 +452,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,29 +477,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -559,25 +503,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -585,43 +526,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -631,25 +561,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -659,8 +583,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -669,16 +591,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -687,7 +605,6 @@ public int getViewValue() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -698,8 +615,6 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -708,20 +623,14 @@ public Builder setViewValue(int value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = - com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED - : result; + com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; } /** - * - * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -730,7 +639,6 @@ public com.google.monitoring.v3.ServiceLevelObjective.View getView() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @param value The view to set. * @return This builder for chaining. */ @@ -744,8 +652,6 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value return this; } /** - * - * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -754,7 +660,6 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return This builder for chaining. */ public Builder clearView() { @@ -763,9 +668,9 @@ public Builder clearView() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -775,12 +680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.GetServiceLevelObjectiveRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(); } @@ -789,27 +694,27 @@ public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,4 +729,6 @@ public com.google.protobuf.Parser getParserForT public com.google.monitoring.v3.GetServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java index 423c463c2da8..2d62012722ac 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface GetServiceLevelObjectiveRequestOrBuilder - extends +public interface GetServiceLevelObjectiveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -67,13 +40,10 @@ public interface GetServiceLevelObjectiveRequestOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -82,7 +52,6 @@ public interface GetServiceLevelObjectiveRequestOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; - * * @return The view. */ com.google.monitoring.v3.ServiceLevelObjective.View getView(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java index 0650958e91aa..988cbc9f0d5a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `GetService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetServiceRequest} */ -public final class GetServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetServiceRequest) GetServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServiceRequest.newBuilder() to construct. private GetServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceRequest.class, - com.google.monitoring.v3.GetServiceRequest.Builder.class); + com.google.monitoring.v3.GetServiceRequest.class, com.google.monitoring.v3.GetServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Resource name of the `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetServiceRequest other = - (com.google.monitoring.v3.GetServiceRequest) obj; + com.google.monitoring.v3.GetServiceRequest other = (com.google.monitoring.v3.GetServiceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +158,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `GetService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetServiceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetServiceRequest) com.google.monitoring.v3.GetServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceRequest.class, - com.google.monitoring.v3.GetServiceRequest.Builder.class); + com.google.monitoring.v3.GetServiceRequest.class, com.google.monitoring.v3.GetServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetServiceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override @@ -345,11 +314,8 @@ public com.google.monitoring.v3.GetServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.GetServiceRequest buildPartial() { - com.google.monitoring.v3.GetServiceRequest result = - new com.google.monitoring.v3.GetServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetServiceRequest result = new com.google.monitoring.v3.GetServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.GetServiceRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetServiceRequest) { - return mergeFrom((com.google.monitoring.v3.GetServiceRequest) other); + return mergeFrom((com.google.monitoring.v3.GetServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -437,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -516,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -562,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceRequest) private static final com.google.monitoring.v3.GetServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetServiceRequest(); } @@ -613,27 +551,27 @@ public static com.google.monitoring.v3.GetServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java new file mode 100644 index 000000000000..f02935c6461c --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface GetServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the `Service`. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the `Service`. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java index 2b6ca31701bc..e47ad31f2515 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** - * - * *
  * The message definition for retrieving a `Snooze`. Users must specify the
  * field, `name`, which identifies the `Snooze`.
@@ -28,58 +11,50 @@
  *
  * Protobuf type {@code google.monitoring.v3.GetSnoozeRequest}
  */
-public final class GetSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSnoozeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetSnoozeRequest)
     GetSnoozeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSnoozeRequest.newBuilder() to construct.
   private GetSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSnoozeRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.GetSnoozeRequest.class,
-            com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.GetSnoozeRequest.class, com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The ID of the `Snooze` to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The ID of the `Snooze` to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetSnoozeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetSnoozeRequest other = - (com.google.monitoring.v3.GetSnoozeRequest) obj; + com.google.monitoring.v3.GetSnoozeRequest other = (com.google.monitoring.v3.GetSnoozeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +159,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetSnoozeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message definition for retrieving a `Snooze`. Users must specify the
    * field, `name`, which identifies the `Snooze`.
@@ -291,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.GetSnoozeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetSnoozeRequest)
       com.google.monitoring.v3.GetSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.GetSnoozeRequest.class,
-              com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.GetSnoozeRequest.class, com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.GetSnoozeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -347,11 +316,8 @@ public com.google.monitoring.v3.GetSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.GetSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.GetSnoozeRequest result =
-          new com.google.monitoring.v3.GetSnoozeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.GetSnoozeRequest result = new com.google.monitoring.v3.GetSnoozeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -367,39 +333,38 @@ private void buildPartial0(com.google.monitoring.v3.GetSnoozeRequest result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.GetSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.GetSnoozeRequest) other);
+        return mergeFrom((com.google.monitoring.v3.GetSnoozeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -439,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -461,29 +424,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,25 +450,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -518,43 +473,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -564,34 +508,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +539,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetSnoozeRequest) private static final com.google.monitoring.v3.GetSnoozeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetSnoozeRequest(); } @@ -615,27 +553,27 @@ public static com.google.monitoring.v3.GetSnoozeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java new file mode 100644 index 000000000000..00dd01b57914 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze_service.proto + +package com.google.monitoring.v3; + +public interface GetSnoozeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetSnoozeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The ID of the `Snooze` to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The ID of the `Snooze` to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java index 3d7830fcc237..462ba223311a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `GetUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetUptimeCheckConfigRequest} */ -public final class GetUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetUptimeCheckConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetUptimeCheckConfigRequest) GetUptimeCheckConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetUptimeCheckConfigRequest.newBuilder() to construct. private GetUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetUptimeCheckConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, - com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The Uptime check configuration to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Uptime check configuration to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetUptimeCheckConfigRequest other = - (com.google.monitoring.v3.GetUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.GetUptimeCheckConfigRequest other = (com.google.monitoring.v3.GetUptimeCheckConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,135 +159,131 @@ public int hashCode() { } public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `GetUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetUptimeCheckConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetUptimeCheckConfigRequest) com.google.monitoring.v3.GetUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, - com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetUptimeCheckConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -345,11 +314,8 @@ public com.google.monitoring.v3.GetUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.GetUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.GetUptimeCheckConfigRequest result = - new com.google.monitoring.v3.GetUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.GetUptimeCheckConfigRequest result = new com.google.monitoring.v3.GetUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +331,38 @@ private void buildPartial0(com.google.monitoring.v3.GetUptimeCheckConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.GetUptimeCheckConfigRequest) other); + return mergeFrom((com.google.monitoring.v3.GetUptimeCheckConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -405,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -563,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) private static final com.google.monitoring.v3.GetUptimeCheckConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetUptimeCheckConfigRequest(); } @@ -614,27 +551,27 @@ public static com.google.monitoring.v3.GetUptimeCheckConfigRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +586,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.monitoring.v3.GetUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..926d287392ca --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface GetUptimeCheckConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Uptime check configuration to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Uptime check configuration to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java index 99e56a0d1b55..8d9b0bb16cd1 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group.proto package com.google.monitoring.v3; /** - * - * *
  * The description of a dynamic collection of monitored resources. Each group
  * has a filter that is matched against monitored resources and their associated
@@ -52,16 +35,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.Group}
  */
-public final class Group extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Group extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Group)
     GroupOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Group.newBuilder() to construct.
   private Group(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Group() {
     name_ = "";
     displayName_ = "";
@@ -71,31 +53,28 @@ private Group() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Group();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.GroupProto
-        .internal_static_google_monitoring_v3_Group_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.GroupProto
-        .internal_static_google_monitoring_v3_Group_fieldAccessorTable
+    return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Group.class, com.google.monitoring.v3.Group.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The name of this group. The format is:
    *
@@ -107,7 +86,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -116,15 +94,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of this group. The format is:
    *
@@ -136,15 +113,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -153,18 +131,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -173,29 +147,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -204,12 +178,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int PARENT_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object parentName_ = ""; /** - * - * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -219,7 +190,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string parent_name = 3; - * * @return The parentName. */ @java.lang.Override @@ -228,15 +198,14 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** - * - * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -246,15 +215,16 @@ public java.lang.String getParentName() {
    * 
* * string parent_name = 3; - * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -263,19 +233,15 @@ public com.google.protobuf.ByteString getParentNameBytes() { } public static final int FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -284,30 +250,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -318,15 +284,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int IS_CLUSTER_FIELD_NUMBER = 6; private boolean isCluster_ = false; /** - * - * *
    * If true, the members of this group are considered to be a cluster.
    * The system can perform additional analysis on groups that are clusters.
    * 
* * bool is_cluster = 6; - * * @return The isCluster. */ @java.lang.Override @@ -335,7 +298,6 @@ public boolean getIsCluster() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,7 +309,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -385,7 +348,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } if (isCluster_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isCluster_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, isCluster_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -395,18 +359,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Group)) { return super.equals(obj); } com.google.monitoring.v3.Group other = (com.google.monitoring.v3.Group) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getParentName().equals(other.getParentName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getIsCluster() != other.getIsCluster()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getParentName() + .equals(other.getParentName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getIsCluster() + != other.getIsCluster()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -427,109 +396,106 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + IS_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCluster()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.Group parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Group parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Group parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Group parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.Group parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Group parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Group parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Group parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Group parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Group parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.Group parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.monitoring.v3.Group parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Group parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Group prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The description of a dynamic collection of monitored resources. Each group
    * has a filter that is matched against monitored resources and their associated
@@ -561,31 +527,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.Group}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Group)
       com.google.monitoring.v3.GroupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.GroupProto
-          .internal_static_google_monitoring_v3_Group_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.GroupProto
-          .internal_static_google_monitoring_v3_Group_fieldAccessorTable
+      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.monitoring.v3.Group.class, com.google.monitoring.v3.Group.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Group.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -599,9 +567,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.GroupProto
-          .internal_static_google_monitoring_v3_Group_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
     }
 
     @java.lang.Override
@@ -621,9 +589,7 @@ public com.google.monitoring.v3.Group build() {
     @java.lang.Override
     public com.google.monitoring.v3.Group buildPartial() {
       com.google.monitoring.v3.Group result = new com.google.monitoring.v3.Group(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -651,39 +617,38 @@ private void buildPartial0(com.google.monitoring.v3.Group result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Group) {
-        return mergeFrom((com.google.monitoring.v3.Group) other);
+        return mergeFrom((com.google.monitoring.v3.Group)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -741,43 +706,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                parentName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 42:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 48:
-              {
-                isCluster_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 48
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              parentName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 42: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 48: {
+              isCluster_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 48
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -787,13 +746,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The name of this group. The format is:
      *
@@ -805,13 +761,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -820,8 +776,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of this group. The format is:
      *
@@ -833,14 +787,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -848,8 +803,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of this group. The format is:
      *
@@ -861,22 +814,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of this group. The format is:
      *
@@ -888,7 +837,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -898,8 +846,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The name of this group. The format is:
      *
@@ -911,14 +857,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -928,20 +872,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -950,21 +892,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -972,35 +913,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1010,21 +944,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1034,8 +964,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentName_ = ""; /** - * - * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1045,13 +973,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent_name = 3; - * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -1060,8 +988,6 @@ public java.lang.String getParentName() { } } /** - * - * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1071,14 +997,15 @@ public java.lang.String getParentName() {
      * 
* * string parent_name = 3; - * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -1086,8 +1013,6 @@ public com.google.protobuf.ByteString getParentNameBytes() { } } /** - * - * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1097,22 +1022,18 @@ public com.google.protobuf.ByteString getParentNameBytes() {
      * 
* * string parent_name = 3; - * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parentName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1122,7 +1043,6 @@ public Builder setParentName(java.lang.String value) {
      * 
* * string parent_name = 3; - * * @return This builder for chaining. */ public Builder clearParentName() { @@ -1132,8 +1052,6 @@ public Builder clearParentName() { return this; } /** - * - * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1143,14 +1061,12 @@ public Builder clearParentName() {
      * 
* * string parent_name = 3; - * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentName_ = value; bitField0_ |= 0x00000004; @@ -1160,21 +1076,19 @@ public Builder setParentNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1183,22 +1097,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1206,37 +1119,30 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1246,22 +1152,18 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1269,17 +1171,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isCluster_; + private boolean isCluster_ ; /** - * - * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; - * * @return The isCluster. */ @java.lang.Override @@ -1287,15 +1186,12 @@ public boolean getIsCluster() { return isCluster_; } /** - * - * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; - * * @param value The isCluster to set. * @return This builder for chaining. */ @@ -1307,15 +1203,12 @@ public Builder setIsCluster(boolean value) { return this; } /** - * - * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; - * * @return This builder for chaining. */ public Builder clearIsCluster() { @@ -1324,9 +1217,9 @@ public Builder clearIsCluster() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1336,12 +1229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Group) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) private static final com.google.monitoring.v3.Group DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Group(); } @@ -1350,27 +1243,27 @@ public static com.google.monitoring.v3.Group getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Group parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Group parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1385,4 +1278,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Group getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java index 31a886707b39..be95a7bc151f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group.proto package com.google.monitoring.v3; -public interface GroupOrBuilder - extends +public interface GroupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Group) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of this group. The format is:
    *
@@ -37,13 +19,10 @@ public interface GroupOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of this group. The format is:
    *
@@ -55,39 +34,32 @@ public interface GroupOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -97,13 +69,10 @@ public interface GroupOrBuilder
    * 
* * string parent_name = 3; - * * @return The parentName. */ java.lang.String getParentName(); /** - * - * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -113,48 +82,40 @@ public interface GroupOrBuilder
    * 
* * string parent_name = 3; - * * @return The bytes for parentName. */ - com.google.protobuf.ByteString getParentNameBytes(); + com.google.protobuf.ByteString + getParentNameBytes(); /** - * - * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * If true, the members of this group are considered to be a cluster.
    * The system can perform additional analysis on groups that are clusters.
    * 
* * bool is_cluster = 6; - * * @return The isCluster. */ boolean getIsCluster(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java new file mode 100644 index 000000000000..34a1adf14574 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group.proto + +package com.google.monitoring.v3; + +public final class GroupProto { + private GroupProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Group_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Group_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n google/monitoring/v3/group.proto\022\024goog" + + "le.monitoring.v3\032\031google/api/resource.pr" + + "oto\"\200\002\n\005Group\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + + "ame\030\002 \001(\t\022\023\n\013parent_name\030\003 \001(\t\022\016\n\006filter" + + "\030\005 \001(\t\022\022\n\nis_cluster\030\006 \001(\010:\231\001\352A\225\001\n\037monit" + + "oring.googleapis.com/Group\022!projects/{pr" + + "oject}/groups/{group}\022+organizations/{or" + + "ganization}/groups/{group}\022\037folders/{fol" + + "der}/groups/{group}\022\001*B\305\001\n\030com.google.mo" + + "nitoring.v3B\nGroupProtoP\001ZAcloud.google." + + "com/go/monitoring/apiv3/v2/monitoringpb;" + + "monitoringpb\252\002\032Google.Cloud.Monitoring.V" + + "3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google:" + + ":Cloud::Monitoring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Group_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Group_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Group_descriptor, + new java.lang.String[] { "Name", "DisplayName", "ParentName", "Filter", "IsCluster", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java index d24ca7ec53b3..0b0d242b1720 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** - * - * *
  * The supported resource types that can be used as values of
  * `group_resource.resource_type`.
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.monitoring.v3.GroupResourceType}
  */
-public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum {
+public enum GroupResourceType
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Default value (not valid).
    * 
@@ -43,8 +25,6 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum */ RESOURCE_TYPE_UNSPECIFIED(0), /** - * - * *
    * A group of instances from Google Cloud Platform (GCP) or
    * Amazon Web Services (AWS).
@@ -54,8 +34,6 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum
    */
   INSTANCE(1),
   /**
-   *
-   *
    * 
    * A group of Amazon ELB load balancers.
    * 
@@ -67,8 +45,6 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * Default value (not valid).
    * 
@@ -77,8 +53,6 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * A group of instances from Google Cloud Platform (GCP) or
    * Amazon Web Services (AWS).
@@ -88,8 +62,6 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int INSTANCE_VALUE = 1;
   /**
-   *
-   *
    * 
    * A group of Amazon ELB load balancers.
    * 
@@ -98,6 +70,7 @@ public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AWS_ELB_LOAD_BALANCER_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,42 +95,39 @@ public static GroupResourceType valueOf(int value) { */ public static GroupResourceType forNumber(int value) { switch (value) { - case 0: - return RESOURCE_TYPE_UNSPECIFIED; - case 1: - return INSTANCE; - case 2: - return AWS_ELB_LOAD_BALANCER; - default: - return null; + case 0: return RESOURCE_TYPE_UNSPECIFIED; + case 1: return INSTANCE; + case 2: return AWS_ELB_LOAD_BALANCER; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GroupResourceType findValueByNumber(int number) { - return GroupResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + GroupResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroupResourceType findValueByNumber(int number) { + return GroupResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.monitoring.v3.UptimeProto.getDescriptor().getEnumTypes().get(1); } @@ -166,7 +136,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static GroupResourceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -182,3 +153,4 @@ private GroupResourceType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.GroupResourceType) } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java new file mode 100644 index 000000000000..b5ae7dff2c6c --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java @@ -0,0 +1,217 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group_service.proto + +package com.google.monitoring.v3; + +public final class GroupServiceProto { + private GroupServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/group_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032#google" + + "/api/monitored_resource.proto\032\031google/ap" + + "i/resource.proto\032!google/monitoring/v3/c" + + "ommon.proto\032 google/monitoring/v3/group." + + "proto\032\033google/protobuf/empty.proto\"\311\002\n\021L" + + "istGroupsRequest\0226\n\004name\030\007 \001(\tB(\342A\001\002\372A!\022" + + "\037monitoring.googleapis.com/Group\022A\n\021chil" + + "dren_of_group\030\002 \001(\tB$\372A!\n\037monitoring.goo" + + "gleapis.com/GroupH\000\022B\n\022ancestors_of_grou" + + "p\030\003 \001(\tB$\372A!\n\037monitoring.googleapis.com/" + + "GroupH\000\022D\n\024descendants_of_group\030\004 \001(\tB$\372" + + "A!\n\037monitoring.googleapis.com/GroupH\000\022\021\n" + + "\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\tB\010\n\006" + + "filter\"Y\n\022ListGroupsResponse\022*\n\005group\030\001 " + + "\003(\0132\033.google.monitoring.v3.Group\022\027\n\017next" + + "_page_token\030\002 \001(\t\"I\n\017GetGroupRequest\0226\n\004" + + "name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.googleap" + + "is.com/Group\"\225\001\n\022CreateGroupRequest\0226\n\004n" + + "ame\030\004 \001(\tB(\342A\001\002\372A!\022\037monitoring.googleapi" + + "s.com/Group\0220\n\005group\030\002 \001(\0132\033.google.moni" + + "toring.v3.GroupB\004\342A\001\002\022\025\n\rvalidate_only\030\003" + + " \001(\010\"]\n\022UpdateGroupRequest\0220\n\005group\030\002 \001(" + + "\0132\033.google.monitoring.v3.GroupB\004\342A\001\002\022\025\n\r" + + "validate_only\030\003 \001(\010\"_\n\022DeleteGroupReques" + + "t\0226\n\004name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.goo" + + "gleapis.com/Group\022\021\n\trecursive\030\004 \001(\010\"\276\001\n" + + "\027ListGroupMembersRequest\0226\n\004name\030\007 \001(\tB(" + + "\342A\001\002\372A!\n\037monitoring.googleapis.com/Group" + + "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" + + "\016\n\006filter\030\005 \001(\t\0224\n\010interval\030\006 \001(\0132\".goog" + + "le.monitoring.v3.TimeInterval\"w\n\030ListGro" + + "upMembersResponse\022.\n\007members\030\001 \003(\0132\035.goo" + + "gle.api.MonitoredResource\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\230\010\n\014Group" + + "Service\022\214\001\n\nListGroups\022\'.google.monitori" + + "ng.v3.ListGroupsRequest\032(.google.monitor" + + "ing.v3.ListGroupsResponse\"+\332A\004name\202\323\344\223\002\036" + + "\022\034/v3/{name=projects/*}/groups\022}\n\010GetGro" + + "up\022%.google.monitoring.v3.GetGroupReques" + + "t\032\033.google.monitoring.v3.Group\"-\332A\004name\202" + + "\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\022\216\001" + + "\n\013CreateGroup\022(.google.monitoring.v3.Cre" + + "ateGroupRequest\032\033.google.monitoring.v3.G" + + "roup\"8\332A\nname,group\202\323\344\223\002%\"\034/v3/{name=pro" + + "jects/*}/groups:\005group\022\221\001\n\013UpdateGroup\022(" + + ".google.monitoring.v3.UpdateGroupRequest" + + "\032\033.google.monitoring.v3.Group\";\332A\005group\202" + + "\323\344\223\002-\032$/v3/{group.name=projects/*/groups" + + "/*}:\005group\022~\n\013DeleteGroup\022(.google.monit" + + "oring.v3.DeleteGroupRequest\032\026.google.pro" + + "tobuf.Empty\"-\332A\004name\202\323\344\223\002 *\036/v3/{name=pr" + + "ojects/*/groups/*}\022\250\001\n\020ListGroupMembers\022" + + "-.google.monitoring.v3.ListGroupMembersR" + + "equest\032..google.monitoring.v3.ListGroupM" + + "embersResponse\"5\332A\004name\202\323\344\223\002(\022&/v3/{name" + + "=projects/*/groups/*}/members\032\251\001\312A\031monit" + + "oring.googleapis.com\322A\211\001https://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/monitoring,https:" + + "//www.googleapis.com/auth/monitoring.rea" + + "dB\314\001\n\030com.google.monitoring.v3B\021GroupSer" + + "viceProtoP\001ZAcloud.google.com/go/monitor" + + "ing/apiv3/v2/monitoringpb;monitoringpb\252\002" + + "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" + + "ud\\Monitoring\\V3\352\002\035Google::Cloud::Monito" + + "ring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.GroupProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor, + new java.lang.String[] { "Name", "ChildrenOfGroup", "AncestorsOfGroup", "DescendantsOfGroup", "PageSize", "PageToken", "Filter", }); + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor, + new java.lang.String[] { "Group", "NextPageToken", }); + internal_static_google_monitoring_v3_GetGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetGroupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor, + new java.lang.String[] { "Name", "Group", "ValidateOnly", }); + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor, + new java.lang.String[] { "Group", "ValidateOnly", }); + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor, + new java.lang.String[] { "Name", "Recursive", }); + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", "Filter", "Interval", }); + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor, + new java.lang.String[] { "Members", "NextPageToken", "TotalSize", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.GroupProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java index cd233622cc33..1c3131180914 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** - * - * *
  * An internal checker allows Uptime checks to run on private/internal GCP
  * resources.
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.InternalChecker}
  */
-@java.lang.Deprecated
-public final class InternalChecker extends com.google.protobuf.GeneratedMessageV3
-    implements
+@java.lang.Deprecated public final class InternalChecker extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.InternalChecker)
     InternalCheckerOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InternalChecker.newBuilder() to construct.
   private InternalChecker(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InternalChecker() {
     name_ = "";
     displayName_ = "";
@@ -50,38 +31,34 @@ private InternalChecker() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InternalChecker();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_InternalChecker_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.InternalChecker.class,
-            com.google.monitoring.v3.InternalChecker.Builder.class);
+            com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Operational states for an internal checker.
    * 
* * Protobuf enum {@code google.monitoring.v3.InternalChecker.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * An internal checker should never be in the unspecified state.
      * 
@@ -90,8 +67,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNSPECIFIED(0), /** - * - * *
      * The checker is being created, provisioned, and configured. A checker in
      * this state can be returned by `ListInternalCheckers` or
@@ -104,8 +79,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CREATING(1),
     /**
-     *
-     *
      * 
      * The checker is running and available for use. A checker in this state
      * can be returned by `ListInternalCheckers` or `GetInternalChecker` as
@@ -123,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * An internal checker should never be in the unspecified state.
      * 
@@ -133,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSPECIFIED_VALUE = 0; /** - * - * *
      * The checker is being created, provisioned, and configured. A checker in
      * this state can be returned by `ListInternalCheckers` or
@@ -147,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CREATING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The checker is running and available for use. A checker in this state
      * can be returned by `ListInternalCheckers` or `GetInternalChecker` as
@@ -163,6 +130,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RUNNING_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -187,49 +155,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return RUNNING;
-        default:
-          return null;
+        case 0: return UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return RUNNING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.InternalChecker.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -247,12 +215,9 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -263,7 +228,6 @@ private State(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -272,15 +236,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -291,15 +254,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -308,12 +272,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -321,7 +282,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -330,15 +290,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -346,15 +305,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -363,19 +323,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int NETWORK_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** - * - * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; - * * @return The network. */ @java.lang.Override @@ -384,30 +340,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -416,19 +372,15 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int GCP_ZONE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object gcpZone_ = ""; /** - * - * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; - * * @return The gcpZone. */ @java.lang.Override @@ -437,30 +389,30 @@ public java.lang.String getGcpZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpZone_ = s; return s; } } /** - * - * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; - * * @return The bytes for gcpZone. */ @java.lang.Override - public com.google.protobuf.ByteString getGcpZoneBytes() { + public com.google.protobuf.ByteString + getGcpZoneBytes() { java.lang.Object ref = gcpZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpZone_ = b; return b; } else { @@ -469,19 +421,15 @@ public com.google.protobuf.ByteString getGcpZoneBytes() { } public static final int PEER_PROJECT_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object peerProjectId_ = ""; /** - * - * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; - * * @return The peerProjectId. */ @java.lang.Override @@ -490,30 +438,30 @@ public java.lang.String getPeerProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerProjectId_ = s; return s; } } /** - * - * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; - * * @return The bytes for peerProjectId. */ @java.lang.Override - public com.google.protobuf.ByteString getPeerProjectIdBytes() { + public com.google.protobuf.ByteString + getPeerProjectIdBytes() { java.lang.Object ref = peerProjectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerProjectId_ = b; return b; } else { @@ -524,40 +472,30 @@ public com.google.protobuf.ByteString getPeerProjectIdBytes() { public static final int STATE_FIELD_NUMBER = 7; private int state_ = 0; /** - * - * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The state. */ - @java.lang.Override - public com.google.monitoring.v3.InternalChecker.State getState() { - com.google.monitoring.v3.InternalChecker.State result = - com.google.monitoring.v3.InternalChecker.State.forNumber(state_); + @java.lang.Override public com.google.monitoring.v3.InternalChecker.State getState() { + com.google.monitoring.v3.InternalChecker.State result = com.google.monitoring.v3.InternalChecker.State.forNumber(state_); return result == null ? com.google.monitoring.v3.InternalChecker.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -569,7 +507,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -613,7 +552,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, peerProjectId_); } if (state_ != com.google.monitoring.v3.InternalChecker.State.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -623,18 +563,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.InternalChecker)) { return super.equals(obj); } com.google.monitoring.v3.InternalChecker other = (com.google.monitoring.v3.InternalChecker) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getGcpZone().equals(other.getGcpZone())) return false; - if (!getPeerProjectId().equals(other.getPeerProjectId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getGcpZone() + .equals(other.getGcpZone())) return false; + if (!getPeerProjectId() + .equals(other.getPeerProjectId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -664,104 +609,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.InternalChecker parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.InternalChecker parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.InternalChecker parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.InternalChecker parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.InternalChecker parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.InternalChecker prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An internal checker allows Uptime checks to run on private/internal GCP
    * resources.
@@ -769,32 +709,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.InternalChecker}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.InternalChecker)
       com.google.monitoring.v3.InternalCheckerOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_InternalChecker_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.InternalChecker.class,
-              com.google.monitoring.v3.InternalChecker.Builder.class);
+              com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.InternalChecker.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -809,9 +750,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_InternalChecker_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
     }
 
     @java.lang.Override
@@ -830,11 +771,8 @@ public com.google.monitoring.v3.InternalChecker build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.InternalChecker buildPartial() {
-      com.google.monitoring.v3.InternalChecker result =
-          new com.google.monitoring.v3.InternalChecker(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.InternalChecker result = new com.google.monitoring.v3.InternalChecker(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -865,39 +803,38 @@ private void buildPartial0(com.google.monitoring.v3.InternalChecker result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.InternalChecker) {
-        return mergeFrom((com.google.monitoring.v3.InternalChecker) other);
+        return mergeFrom((com.google.monitoring.v3.InternalChecker)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -960,49 +897,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                network_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                gcpZone_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 50:
-              {
-                peerProjectId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 50
-            case 56:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 56
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              network_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              gcpZone_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 50: {
+              peerProjectId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 50
+            case 56: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 56
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1012,13 +942,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1029,13 +956,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1044,8 +971,6 @@ public java.lang.String getName() { } } /** - * - * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1056,14 +981,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1071,8 +997,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1083,22 +1007,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1109,7 +1029,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1119,8 +1038,6 @@ public Builder clearName() { return this; } /** - * - * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1131,14 +1048,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1148,8 +1063,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1157,13 +1070,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1172,8 +1085,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1181,14 +1092,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1196,8 +1108,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1205,22 +1115,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1228,7 +1134,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1238,8 +1143,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1247,14 +1150,12 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1264,21 +1165,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object network_ = ""; /** - * - * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1287,22 +1186,21 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1310,37 +1208,30 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; - * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -1350,22 +1241,18 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000004; @@ -1375,21 +1262,19 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcpZone_ = ""; /** - * - * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; - * * @return The gcpZone. */ public java.lang.String getGcpZone() { java.lang.Object ref = gcpZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpZone_ = s; return s; @@ -1398,22 +1283,21 @@ public java.lang.String getGcpZone() { } } /** - * - * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; - * * @return The bytes for gcpZone. */ - public com.google.protobuf.ByteString getGcpZoneBytes() { + public com.google.protobuf.ByteString + getGcpZoneBytes() { java.lang.Object ref = gcpZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpZone_ = b; return b; } else { @@ -1421,37 +1305,30 @@ public com.google.protobuf.ByteString getGcpZoneBytes() { } } /** - * - * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; - * * @param value The gcpZone to set. * @return This builder for chaining. */ - public Builder setGcpZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcpZone( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } gcpZone_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; - * * @return This builder for chaining. */ public Builder clearGcpZone() { @@ -1461,22 +1338,18 @@ public Builder clearGcpZone() { return this; } /** - * - * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; - * * @param value The bytes for gcpZone to set. * @return This builder for chaining. */ - public Builder setGcpZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcpZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gcpZone_ = value; bitField0_ |= 0x00000008; @@ -1486,21 +1359,19 @@ public Builder setGcpZoneBytes(com.google.protobuf.ByteString value) { private java.lang.Object peerProjectId_ = ""; /** - * - * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; - * * @return The peerProjectId. */ public java.lang.String getPeerProjectId() { java.lang.Object ref = peerProjectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerProjectId_ = s; return s; @@ -1509,22 +1380,21 @@ public java.lang.String getPeerProjectId() { } } /** - * - * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; - * * @return The bytes for peerProjectId. */ - public com.google.protobuf.ByteString getPeerProjectIdBytes() { + public com.google.protobuf.ByteString + getPeerProjectIdBytes() { java.lang.Object ref = peerProjectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerProjectId_ = b; return b; } else { @@ -1532,37 +1402,30 @@ public com.google.protobuf.ByteString getPeerProjectIdBytes() { } } /** - * - * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; - * * @param value The peerProjectId to set. * @return This builder for chaining. */ - public Builder setPeerProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPeerProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } peerProjectId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; - * * @return This builder for chaining. */ public Builder clearPeerProjectId() { @@ -1572,22 +1435,18 @@ public Builder clearPeerProjectId() { return this; } /** - * - * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; - * * @param value The bytes for peerProjectId to set. * @return This builder for chaining. */ - public Builder setPeerProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPeerProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); peerProjectId_ = value; bitField0_ |= 0x00000010; @@ -1597,29 +1456,22 @@ public Builder setPeerProjectIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1630,31 +1482,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The state. */ @java.lang.Override public com.google.monitoring.v3.InternalChecker.State getState() { - com.google.monitoring.v3.InternalChecker.State result = - com.google.monitoring.v3.InternalChecker.State.forNumber(state_); + com.google.monitoring.v3.InternalChecker.State result = com.google.monitoring.v3.InternalChecker.State.forNumber(state_); return result == null ? com.google.monitoring.v3.InternalChecker.State.UNRECOGNIZED : result; } /** - * - * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1668,14 +1513,11 @@ public Builder setState(com.google.monitoring.v3.InternalChecker.State value) { return this; } /** - * - * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1684,9 +1526,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1696,12 +1538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.InternalChecker) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) private static final com.google.monitoring.v3.InternalChecker DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.InternalChecker(); } @@ -1710,27 +1552,27 @@ public static com.google.monitoring.v3.InternalChecker getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InternalChecker parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalChecker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1745,4 +1587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.InternalChecker getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java similarity index 77% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java index 8695267d0439..be951103e8de 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java @@ -1,32 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; -@java.lang.Deprecated -public interface InternalCheckerOrBuilder - extends +@java.lang.Deprecated public interface InternalCheckerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.InternalChecker) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -37,13 +18,10 @@ public interface InternalCheckerOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -54,14 +32,12 @@ public interface InternalCheckerOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -69,13 +45,10 @@ public interface InternalCheckerOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -83,113 +56,92 @@ public interface InternalCheckerOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; - * * @return The gcpZone. */ java.lang.String getGcpZone(); /** - * - * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; - * * @return The bytes for gcpZone. */ - com.google.protobuf.ByteString getGcpZoneBytes(); + com.google.protobuf.ByteString + getGcpZoneBytes(); /** - * - * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; - * * @return The peerProjectId. */ java.lang.String getPeerProjectId(); /** - * - * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; - * * @return The bytes for peerProjectId. */ - com.google.protobuf.ByteString getPeerProjectIdBytes(); + com.google.protobuf.ByteString + getPeerProjectIdBytes(); /** - * - * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; - * * @return The state. */ com.google.monitoring.v3.InternalChecker.State getState(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java index 78c90309a93d..e18130a0b328 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java @@ -1,80 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** - * - * *
  * A label value.
  * 
* * Protobuf type {@code google.monitoring.v3.LabelValue} */ -public final class LabelValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.LabelValue) LabelValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelValue.newBuilder() to construct. private LabelValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelValue() {} + private LabelValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_LabelValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.LabelValue.class, - com.google.monitoring.v3.LabelValue.Builder.class); + com.google.monitoring.v3.LabelValue.class, com.google.monitoring.v3.LabelValue.Builder.class); } private int valueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object value_; - public enum ValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), STRING_VALUE(3), VALUE_NOT_SET(0); private final int value; - private ValueCase(int value) { this.value = value; } @@ -90,38 +68,31 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: - return BOOL_VALUE; - case 2: - return INT64_VALUE; - case 3: - return STRING_VALUE; - case 0: - return VALUE_NOT_SET; - default: - return null; + case 1: return BOOL_VALUE; + case 2: return INT64_VALUE; + case 3: return STRING_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** - * - * *
    * A bool label value.
    * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -129,14 +100,11 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** - * - * *
    * A bool label value.
    * 
* * bool bool_value = 1; - * * @return The boolValue. */ @java.lang.Override @@ -149,14 +117,11 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** - * - * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -164,14 +129,11 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** - * - * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; - * * @return The int64Value. */ @java.lang.Override @@ -184,28 +146,22 @@ public long getInt64Value() { public static final int STRING_VALUE_FIELD_NUMBER = 3; /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 3; } /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -216,7 +172,8 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; @@ -225,24 +182,23 @@ public java.lang.String getStringValue() { } } /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } @@ -253,7 +209,6 @@ public com.google.protobuf.ByteString getStringValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,12 +220,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); + output.writeBool( + 1, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) value_)); + output.writeInt64( + 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); @@ -285,14 +243,14 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, (boolean) ((java.lang.Boolean) value_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 2, (long) ((java.lang.Long) value_)); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); @@ -305,7 +263,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.LabelValue)) { return super.equals(obj); @@ -315,13 +273,16 @@ public boolean equals(final java.lang.Object obj) { if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() != other.getBoolValue()) return false; + if (getBoolValue() + != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() != other.getInt64Value()) return false; + if (getInt64Value() + != other.getInt64Value()) return false; break; case 3: - if (!getStringValue().equals(other.getStringValue())) return false; + if (!getStringValue() + .equals(other.getStringValue())) return false; break; case 0: default: @@ -340,11 +301,13 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Value()); break; case 3: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -358,135 +321,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.LabelValue parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.LabelValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.LabelValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.LabelValue parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.LabelValue parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.LabelValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.LabelValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.LabelValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.LabelValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.LabelValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.LabelValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.LabelValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.LabelValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.LabelValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.LabelValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A label value.
    * 
* * Protobuf type {@code google.monitoring.v3.LabelValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.LabelValue) com.google.monitoring.v3.LabelValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_LabelValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.LabelValue.class, - com.google.monitoring.v3.LabelValue.Builder.class); + com.google.monitoring.v3.LabelValue.class, com.google.monitoring.v3.LabelValue.Builder.class); } // Construct using com.google.monitoring.v3.LabelValue.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_LabelValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override @@ -519,9 +479,7 @@ public com.google.monitoring.v3.LabelValue build() { @java.lang.Override public com.google.monitoring.v3.LabelValue buildPartial() { com.google.monitoring.v3.LabelValue result = new com.google.monitoring.v3.LabelValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -540,39 +498,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.LabelValue result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.LabelValue) { - return mergeFrom((com.google.monitoring.v3.LabelValue) other); + return mergeFrom((com.google.monitoring.v3.LabelValue)other); } else { super.mergeFrom(other); return this; @@ -582,27 +539,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.monitoring.v3.LabelValue other) { if (other == com.google.monitoring.v3.LabelValue.getDefaultInstance()) return this; switch (other.getValueCase()) { - case BOOL_VALUE: - { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: - { - setInt64Value(other.getInt64Value()); - break; - } - case STRING_VALUE: - { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: - { - break; - } + case BOOL_VALUE: { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: { + setInt64Value(other.getInt64Value()); + break; + } + case STRING_VALUE: { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -630,32 +583,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: - { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,12 +614,12 @@ public Builder mergeFrom( } // finally return this; } - private int valueCase_ = 0; private java.lang.Object value_; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public Builder clearValue() { @@ -683,28 +632,22 @@ public Builder clearValue() { private int bitField0_; /** - * - * *
      * A bool label value.
      * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** - * - * *
      * A bool label value.
      * 
* * bool bool_value = 1; - * * @return The boolValue. */ public boolean getBoolValue() { @@ -714,14 +657,11 @@ public boolean getBoolValue() { return false; } /** - * - * *
      * A bool label value.
      * 
* * bool bool_value = 1; - * * @param value The boolValue to set. * @return This builder for chaining. */ @@ -733,14 +673,11 @@ public Builder setBoolValue(boolean value) { return this; } /** - * - * *
      * A bool label value.
      * 
* * bool bool_value = 1; - * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -753,28 +690,22 @@ public Builder clearBoolValue() { } /** - * - * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** - * - * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; - * * @return The int64Value. */ public long getInt64Value() { @@ -784,14 +715,11 @@ public long getInt64Value() { return 0L; } /** - * - * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; - * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -803,14 +731,11 @@ public Builder setInt64Value(long value) { return this; } /** - * - * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; - * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -823,14 +748,11 @@ public Builder clearInt64Value() { } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -838,14 +760,11 @@ public boolean hasStringValue() { return valueCase_ == 3; } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @return The stringValue. */ @java.lang.Override @@ -855,7 +774,8 @@ public java.lang.String getStringValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; @@ -866,25 +786,24 @@ public java.lang.String getStringValue() { } } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } @@ -894,35 +813,28 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCase_ = 3; value_ = value; onChanged(); return this; } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -934,30 +846,26 @@ public Builder clearStringValue() { return this; } /** - * - * *
      * A string label value.
      * 
* * string string_value = 3; - * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 3; value_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.LabelValue) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.LabelValue) private static final com.google.monitoring.v3.LabelValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.LabelValue(); } @@ -981,27 +889,27 @@ public static com.google.monitoring.v3.LabelValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.LabelValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java index 915ca8be0eee..beba9aec51b1 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java @@ -1,114 +1,78 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface LabelValueOrBuilder - extends +public interface LabelValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.LabelValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A bool label value.
    * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** - * - * *
    * A bool label value.
    * 
* * bool bool_value = 1; - * * @return The boolValue. */ boolean getBoolValue(); /** - * - * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** - * - * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; - * * @return The int64Value. */ long getInt64Value(); /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return The stringValue. */ java.lang.String getStringValue(); /** - * - * *
    * A string label value.
    * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString getStringValueBytes(); + com.google.protobuf.ByteString + getStringValueBytes(); com.google.monitoring.v3.LabelValue.ValueCase getValueCase(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java index 66072d0cb72a..9fd5e4e63012 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListAlertPolicies` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesRequest} */ -public final class ListAlertPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAlertPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListAlertPoliciesRequest) ListAlertPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAlertPoliciesRequest.newBuilder() to construct. private ListAlertPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAlertPoliciesRequest() { name_ = ""; filter_ = ""; @@ -46,35 +28,32 @@ private ListAlertPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAlertPoliciesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesRequest.class, - com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesRequest.class, com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-   * whose alert policies are to be listed. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+   * alert policies are to be listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -85,10 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -97,18 +73,18 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-   * whose alert policies are to be listed. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+   * alert policies are to be listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -119,18 +95,17 @@ public java.lang.String getName() {
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -139,12 +114,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -154,7 +126,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -163,15 +134,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -181,15 +151,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -198,12 +169,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 6; - * * @return The orderBy. */ @java.lang.Override @@ -223,15 +190,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -242,15 +208,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -261,14 +228,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results to return in a single response.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -277,12 +241,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -290,7 +251,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -299,15 +259,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -315,15 +274,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -332,7 +292,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +303,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -370,7 +330,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,19 +353,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListAlertPoliciesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListAlertPoliciesRequest other = - (com.google.monitoring.v3.ListAlertPoliciesRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListAlertPoliciesRequest other = (com.google.monitoring.v3.ListAlertPoliciesRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -432,135 +397,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListAlertPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListAlertPolicies` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListAlertPoliciesRequest) com.google.monitoring.v3.ListAlertPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesRequest.class, - com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesRequest.class, com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListAlertPoliciesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -574,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override @@ -595,11 +556,8 @@ public com.google.monitoring.v3.ListAlertPoliciesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListAlertPoliciesRequest buildPartial() { - com.google.monitoring.v3.ListAlertPoliciesRequest result = - new com.google.monitoring.v3.ListAlertPoliciesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListAlertPoliciesRequest result = new com.google.monitoring.v3.ListAlertPoliciesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -627,39 +585,38 @@ private void buildPartial0(com.google.monitoring.v3.ListAlertPoliciesRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListAlertPoliciesRequest) { - return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesRequest) other); + return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -667,8 +624,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesRequest other) { - if (other == com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -718,43 +674,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -764,16 +714,14 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * whose alert policies are to be listed. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+     * alert policies are to be listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -784,16 +732,14 @@ public Builder mergeFrom(
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -802,11 +748,10 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * whose alert policies are to be listed. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+     * alert policies are to be listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -817,17 +762,16 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -835,11 +779,10 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * whose alert policies are to be listed. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+     * alert policies are to be listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -850,28 +793,23 @@ public com.google.protobuf.ByteString getNameBytes() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * whose alert policies are to be listed. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+     * alert policies are to be listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -882,10 +820,7 @@ public Builder setName(java.lang.String value) {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -895,11 +830,10 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-     * whose alert policies are to be listed. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+     * alert policies are to be listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -910,17 +844,13 @@ public Builder clearName() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -930,8 +860,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -941,13 +869,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -956,8 +884,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -967,14 +893,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -982,8 +909,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -993,22 +918,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -1018,7 +939,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1028,8 +948,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -1039,14 +957,12 @@ public Builder clearFilter() {
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1056,8 +972,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1068,13 +982,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 6; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1083,8 +997,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1095,14 +1007,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1110,8 +1023,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1122,22 +1033,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 6; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1148,7 +1055,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 6; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1158,8 +1064,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1170,14 +1074,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1185,16 +1087,13 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1202,14 +1101,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1221,14 +1117,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1240,8 +1133,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1249,13 +1140,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1264,8 +1155,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1273,14 +1162,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1288,8 +1178,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1297,22 +1185,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1320,7 +1204,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1330,8 +1213,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1339,23 +1220,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1365,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListAlertPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) private static final com.google.monitoring.v3.ListAlertPoliciesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListAlertPoliciesRequest(); } @@ -1379,27 +1258,27 @@ public static com.google.monitoring.v3.ListAlertPoliciesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAlertPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAlertPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1414,4 +1293,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListAlertPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java index d0028ffdfe2b..82f33c5ecdf8 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java @@ -1,34 +1,17 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface ListAlertPoliciesRequestOrBuilder - extends +public interface ListAlertPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListAlertPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-   * whose alert policies are to be listed. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+   * alert policies are to be listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -39,19 +22,15 @@ public interface ListAlertPoliciesRequestOrBuilder
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-   * whose alert policies are to be listed. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+   * alert policies are to be listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -62,17 +41,13 @@ public interface ListAlertPoliciesRequestOrBuilder
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -82,13 +57,10 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -98,14 +70,12 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -116,13 +86,10 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string order_by = 6; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -133,27 +100,22 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * The maximum number of results to return in a single response.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -161,13 +123,10 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -175,8 +134,8 @@ public interface ListAlertPoliciesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java index 9b4824971c5d..22f801f89a9d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListAlertPolicies` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesResponse} */ -public final class ListAlertPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAlertPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListAlertPoliciesResponse) ListAlertPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAlertPoliciesResponse.newBuilder() to construct. private ListAlertPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAlertPoliciesResponse() { alertPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListAlertPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAlertPoliciesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesResponse.class, - com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesResponse.class, com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); } public static final int ALERT_POLICIES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List alertPolicies_; /** - * - * *
    * The returned alert policies.
    * 
@@ -81,8 +59,6 @@ public java.util.List getAlertPoliciesList return alertPolicies_; } /** - * - * *
    * The returned alert policies.
    * 
@@ -90,13 +66,11 @@ public java.util.List getAlertPoliciesList * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ @java.lang.Override - public java.util.List + public java.util.List getAlertPoliciesOrBuilderList() { return alertPolicies_; } /** - * - * *
    * The returned alert policies.
    * 
@@ -108,8 +82,6 @@ public int getAlertPoliciesCount() { return alertPolicies_.size(); } /** - * - * *
    * The returned alert policies.
    * 
@@ -121,8 +93,6 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { return alertPolicies_.get(index); } /** - * - * *
    * The returned alert policies.
    * 
@@ -130,17 +100,15 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index) { + public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( + int index) { return alertPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -148,7 +116,6 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(i
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,15 +159,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** - * - * *
    * The total number of alert policies in all pages. This number is only an
    * estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -209,7 +173,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +184,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -244,10 +208,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < alertPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, alertPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, alertPolicies_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,17 +223,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListAlertPoliciesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListAlertPoliciesResponse other = - (com.google.monitoring.v3.ListAlertPoliciesResponse) obj; - - if (!getAlertPoliciesList().equals(other.getAlertPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.monitoring.v3.ListAlertPoliciesResponse other = (com.google.monitoring.v3.ListAlertPoliciesResponse) obj; + + if (!getAlertPoliciesList() + .equals(other.getAlertPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,135 +261,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListAlertPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListAlertPolicies` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListAlertPoliciesResponse) com.google.monitoring.v3.ListAlertPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesResponse.class, - com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesResponse.class, com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListAlertPoliciesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override @@ -460,18 +424,14 @@ public com.google.monitoring.v3.ListAlertPoliciesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListAlertPoliciesResponse buildPartial() { - com.google.monitoring.v3.ListAlertPoliciesResponse result = - new com.google.monitoring.v3.ListAlertPoliciesResponse(this); + com.google.monitoring.v3.ListAlertPoliciesResponse result = new com.google.monitoring.v3.ListAlertPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListAlertPoliciesResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListAlertPoliciesResponse result) { if (alertPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alertPolicies_ = java.util.Collections.unmodifiableList(alertPolicies_); @@ -497,39 +457,38 @@ private void buildPartial0(com.google.monitoring.v3.ListAlertPoliciesResponse re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListAlertPoliciesResponse) { - return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesResponse) other); + return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -537,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesResponse other) { - if (other == com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()) return this; if (alertPoliciesBuilder_ == null) { if (!other.alertPolicies_.isEmpty()) { if (alertPolicies_.isEmpty()) { @@ -557,10 +515,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesResponse othe alertPoliciesBuilder_ = null; alertPolicies_ = other.alertPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - alertPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAlertPoliciesFieldBuilder() - : null; + alertPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAlertPoliciesFieldBuilder() : null; } else { alertPoliciesBuilder_.addAllMessages(other.alertPolicies_); } @@ -600,38 +557,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.monitoring.v3.AlertPolicy m = - input.readMessage( - com.google.monitoring.v3.AlertPolicy.parser(), extensionRegistry); - if (alertPoliciesBuilder_ == null) { - ensureAlertPoliciesIsMutable(); - alertPolicies_.add(m); - } else { - alertPoliciesBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.monitoring.v3.AlertPolicy m = + input.readMessage( + com.google.monitoring.v3.AlertPolicy.parser(), + extensionRegistry); + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(m); + } else { + alertPoliciesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,29 +595,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List alertPolicies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAlertPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alertPolicies_ = - new java.util.ArrayList(alertPolicies_); + alertPolicies_ = new java.util.ArrayList(alertPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder> - alertPoliciesBuilder_; + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPoliciesBuilder_; /** - * - * *
      * The returned alert policies.
      * 
@@ -678,8 +624,6 @@ public java.util.List getAlertPoliciesList } } /** - * - * *
      * The returned alert policies.
      * 
@@ -694,8 +638,6 @@ public int getAlertPoliciesCount() { } } /** - * - * *
      * The returned alert policies.
      * 
@@ -710,15 +652,14 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { } } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder setAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy value) { + public Builder setAlertPolicies( + int index, com.google.monitoring.v3.AlertPolicy value) { if (alertPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -732,8 +673,6 @@ public Builder setAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -752,8 +691,6 @@ public Builder setAlertPolicies( return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -774,15 +711,14 @@ public Builder addAlertPolicies(com.google.monitoring.v3.AlertPolicy value) { return this; } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder addAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy value) { + public Builder addAlertPolicies( + int index, com.google.monitoring.v3.AlertPolicy value) { if (alertPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -796,15 +732,14 @@ public Builder addAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy return this; } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder addAlertPolicies(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder addAlertPolicies( + com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPoliciesBuilder_ == null) { ensureAlertPoliciesIsMutable(); alertPolicies_.add(builderForValue.build()); @@ -815,8 +750,6 @@ public Builder addAlertPolicies(com.google.monitoring.v3.AlertPolicy.Builder bui return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -835,8 +768,6 @@ public Builder addAlertPolicies( return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -847,7 +778,8 @@ public Builder addAllAlertPolicies( java.lang.Iterable values) { if (alertPoliciesBuilder_ == null) { ensureAlertPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alertPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alertPolicies_); onChanged(); } else { alertPoliciesBuilder_.addAllMessages(values); @@ -855,8 +787,6 @@ public Builder addAllAlertPolicies( return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -874,8 +804,6 @@ public Builder clearAlertPolicies() { return this; } /** - * - * *
      * The returned alert policies.
      * 
@@ -893,44 +821,39 @@ public Builder removeAlertPolicies(int index) { return this; } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicy.Builder getAlertPoliciesBuilder(int index) { + public com.google.monitoring.v3.AlertPolicy.Builder getAlertPoliciesBuilder( + int index) { return getAlertPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index) { + public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( + int index) { if (alertPoliciesBuilder_ == null) { - return alertPolicies_.get(index); - } else { + return alertPolicies_.get(index); } else { return alertPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public java.util.List - getAlertPoliciesOrBuilderList() { + public java.util.List + getAlertPoliciesOrBuilderList() { if (alertPoliciesBuilder_ != null) { return alertPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -938,8 +861,6 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(i } } /** - * - * *
      * The returned alert policies.
      * 
@@ -947,47 +868,38 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(i * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder() { - return getAlertPoliciesFieldBuilder() - .addBuilder(com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); + return getAlertPoliciesFieldBuilder().addBuilder( + com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(int index) { - return getAlertPoliciesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); + public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder( + int index) { + return getAlertPoliciesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /** - * - * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public java.util.List - getAlertPoliciesBuilderList() { + public java.util.List + getAlertPoliciesBuilderList() { return getAlertPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPoliciesFieldBuilder() { if (alertPoliciesBuilder_ == null) { - alertPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder>( + alertPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( alertPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -999,8 +911,6 @@ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -1008,13 +918,13 @@ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(int
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1023,8 +933,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -1032,14 +940,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,8 +956,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -1056,22 +963,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -1079,7 +982,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1089,8 +991,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -1098,14 +998,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1113,17 +1011,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1131,15 +1026,12 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1151,15 +1043,12 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1168,9 +1057,9 @@ public Builder clearTotalSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1180,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListAlertPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) private static final com.google.monitoring.v3.ListAlertPoliciesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListAlertPoliciesResponse(); } @@ -1194,27 +1083,27 @@ public static com.google.monitoring.v3.ListAlertPoliciesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAlertPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAlertPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1229,4 +1118,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListAlertPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java index f205191f08d4..88d4ac61d656 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface ListAlertPoliciesResponseOrBuilder - extends +public interface ListAlertPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListAlertPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - java.util.List getAlertPoliciesList(); + java.util.List + getAlertPoliciesList(); /** - * - * *
    * The returned alert policies.
    * 
@@ -44,8 +25,6 @@ public interface ListAlertPoliciesResponseOrBuilder */ com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index); /** - * - * *
    * The returned alert policies.
    * 
@@ -54,30 +33,25 @@ public interface ListAlertPoliciesResponseOrBuilder */ int getAlertPoliciesCount(); /** - * - * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - java.util.List + java.util.List getAlertPoliciesOrBuilderList(); /** - * - * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index); + com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( + int index); /** - * - * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -85,13 +59,10 @@ public interface ListAlertPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -99,21 +70,18 @@ public interface ListAlertPoliciesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of alert policies in all pages. This number is only an
    * estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java index 9499005d62c4..d4a22dcd206d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListGroupMembers` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersRequest} */ -public final class ListGroupMembersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGroupMembersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupMembersRequest) ListGroupMembersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGroupMembersRequest.newBuilder() to construct. private ListGroupMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGroupMembersRequest() { name_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListGroupMembersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGroupMembersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersRequest.class, - com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); + com.google.monitoring.v3.ListGroupMembersRequest.class, com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,14 +99,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -155,7 +122,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -164,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -180,15 +145,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,12 +163,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -215,7 +178,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -224,15 +186,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -245,15 +206,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -264,8 +226,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int INTERVAL_FIELD_NUMBER = 6; private com.google.monitoring.v3.TimeInterval interval_; /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -274,7 +234,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -282,8 +241,6 @@ public boolean hasInterval() { return interval_ != null; } /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -292,18 +249,13 @@ public boolean hasInterval() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -315,13 +267,10 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null
-        ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
-        : interval_;
+    return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -333,7 +282,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (pageSize_ != 0) {
       output.writeInt32(3, pageSize_);
     }
@@ -359,7 +309,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
@@ -368,7 +319,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_);
     }
     if (interval_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInterval());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getInterval());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
@@ -381,21 +333,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.ListGroupMembersRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.ListGroupMembersRequest other =
-        (com.google.monitoring.v3.ListGroupMembersRequest) obj;
+    com.google.monitoring.v3.ListGroupMembersRequest other = (com.google.monitoring.v3.ListGroupMembersRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getPageToken().equals(other.getPageToken())) return false;
-    if (!getFilter().equals(other.getFilter())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getPageToken()
+        .equals(other.getPageToken())) return false;
+    if (!getFilter()
+        .equals(other.getFilter())) return false;
     if (hasInterval() != other.hasInterval()) return false;
     if (hasInterval()) {
-      if (!getInterval().equals(other.getInterval())) return false;
+      if (!getInterval()
+          .equals(other.getInterval())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -425,136 +381,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.ListGroupMembersRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The `ListGroupMembers` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupMembersRequest) com.google.monitoring.v3.ListGroupMembersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersRequest.class, - com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); + com.google.monitoring.v3.ListGroupMembersRequest.class, com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupMembersRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +524,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override @@ -593,11 +545,8 @@ public com.google.monitoring.v3.ListGroupMembersRequest build() { @java.lang.Override public com.google.monitoring.v3.ListGroupMembersRequest buildPartial() { - com.google.monitoring.v3.ListGroupMembersRequest result = - new com.google.monitoring.v3.ListGroupMembersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListGroupMembersRequest result = new com.google.monitoring.v3.ListGroupMembersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -617,7 +566,9 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersRequest resu result.filter_ = filter_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null + ? interval_ + : intervalBuilder_.build(); } } @@ -625,39 +576,38 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupMembersRequest) { - return mergeFrom((com.google.monitoring.v3.ListGroupMembersRequest) other); + return mergeFrom((com.google.monitoring.v3.ListGroupMembersRequest)other); } else { super.mergeFrom(other); return this; @@ -665,8 +615,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersRequest other) { - if (other == com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -714,43 +663,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,29 +705,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -791,25 +731,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -817,43 +754,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -863,25 +789,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -889,16 +809,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -906,14 +823,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -925,14 +839,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -944,8 +855,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -953,13 +862,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -968,8 +877,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -977,14 +884,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -992,8 +900,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1001,22 +907,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1024,7 +926,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1034,8 +935,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1043,14 +942,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1060,8 +957,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1074,13 +969,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1089,8 +984,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1103,14 +996,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1118,8 +1012,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1132,22 +1024,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1160,7 +1048,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1170,8 +1057,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1184,14 +1069,12 @@ public Builder clearFilter() {
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1201,13 +1084,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> - intervalBuilder_; + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; /** - * - * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1216,15 +1094,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1233,21 +1108,16 @@ public boolean hasInterval() {
      * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** - * - * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1271,8 +1141,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1282,7 +1150,8 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      *
      * .google.monitoring.v3.TimeInterval interval = 6;
      */
-    public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
+    public Builder setInterval(
+        com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
       if (intervalBuilder_ == null) {
         interval_ = builderForValue.build();
       } else {
@@ -1293,8 +1162,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1306,9 +1173,9 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder
      */
     public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && interval_ != null
-            && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          interval_ != null &&
+          interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -1321,8 +1188,6 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1343,8 +1208,6 @@ public Builder clearInterval() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1360,8 +1223,6 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1375,14 +1236,11 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null
-            ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
-            : interval_;
+        return interval_ == null ?
+            com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
       }
     }
     /**
-     *
-     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1393,24 +1251,21 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * .google.monitoring.v3.TimeInterval interval = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeInterval,
-            com.google.monitoring.v3.TimeInterval.Builder,
-            com.google.monitoring.v3.TimeIntervalOrBuilder>
+        com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> 
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.TimeInterval,
-                com.google.monitoring.v3.TimeInterval.Builder,
-                com.google.monitoring.v3.TimeIntervalOrBuilder>(
-                getInterval(), getParentForChildren(), isClean());
+        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>(
+                getInterval(),
+                getParentForChildren(),
+                isClean());
         interval_ = null;
       }
       return intervalBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1420,12 +1275,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupMembersRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest)
   private static final com.google.monitoring.v3.ListGroupMembersRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupMembersRequest();
   }
@@ -1434,27 +1289,27 @@ public static com.google.monitoring.v3.ListGroupMembersRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListGroupMembersRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ListGroupMembersRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1469,4 +1324,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.ListGroupMembersRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
similarity index 76%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
index db21a64daa91..13d69f6ffbe8 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
@@ -1,77 +1,47 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/group_service.proto
 
 package com.google.monitoring.v3;
 
-public interface ListGroupMembersRequestOrBuilder
-    extends
+public interface ListGroupMembersRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupMembersRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -79,13 +49,10 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -93,14 +60,12 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -113,13 +78,10 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -132,14 +94,12 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -148,13 +108,10 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -163,13 +120,10 @@ public interface ListGroupMembersRequestOrBuilder
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; - * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** - * - * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
similarity index 72%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
index 6ea9815c5a18..48da564450dd 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/group_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The `ListGroupMembers` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersResponse} */ -public final class ListGroupMembersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGroupMembersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupMembersResponse) ListGroupMembersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGroupMembersResponse.newBuilder() to construct. private ListGroupMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGroupMembersResponse() { members_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGroupMembersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGroupMembersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersResponse.class, - com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); + com.google.monitoring.v3.ListGroupMembersResponse.class, com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); } public static final int MEMBERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List members_; /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -81,8 +59,6 @@ public java.util.List getMembersList() { return members_; } /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -90,13 +66,11 @@ public java.util.List getMembersList() { * repeated .google.api.MonitoredResource members = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMembersOrBuilderList() { return members_; } /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -108,8 +82,6 @@ public int getMembersCount() { return members_.size(); } /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -121,8 +93,6 @@ public com.google.api.MonitoredResource getMembers(int index) { return members_.get(index); } /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -130,17 +100,15 @@ public com.google.api.MonitoredResource getMembers(int index) { * repeated .google.api.MonitoredResource members = 1; */ @java.lang.Override - public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) { + public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( + int index) { return members_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -148,7 +116,6 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index)
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,14 +159,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * The total number of elements matching this request.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -208,7 +172,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +183,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < members_.size(); i++) { output.writeMessage(1, members_.get(i)); } @@ -240,13 +204,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < members_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, members_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, members_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -256,17 +222,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupMembersResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupMembersResponse other = - (com.google.monitoring.v3.ListGroupMembersResponse) obj; - - if (!getMembersList().equals(other.getMembersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.monitoring.v3.ListGroupMembersResponse other = (com.google.monitoring.v3.ListGroupMembersResponse) obj; + + if (!getMembersList() + .equals(other.getMembersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,135 +260,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListGroupMembersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListGroupMembers` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupMembersResponse) com.google.monitoring.v3.ListGroupMembersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersResponse.class, - com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); + com.google.monitoring.v3.ListGroupMembersResponse.class, com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupMembersResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -438,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override @@ -459,18 +423,14 @@ public com.google.monitoring.v3.ListGroupMembersResponse build() { @java.lang.Override public com.google.monitoring.v3.ListGroupMembersResponse buildPartial() { - com.google.monitoring.v3.ListGroupMembersResponse result = - new com.google.monitoring.v3.ListGroupMembersResponse(this); + com.google.monitoring.v3.ListGroupMembersResponse result = new com.google.monitoring.v3.ListGroupMembersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListGroupMembersResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListGroupMembersResponse result) { if (membersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { members_ = java.util.Collections.unmodifiableList(members_); @@ -496,39 +456,38 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersResponse res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupMembersResponse) { - return mergeFrom((com.google.monitoring.v3.ListGroupMembersResponse) other); + return mergeFrom((com.google.monitoring.v3.ListGroupMembersResponse)other); } else { super.mergeFrom(other); return this; @@ -536,8 +495,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersResponse other) { - if (other == com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()) return this; if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { @@ -556,10 +514,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersResponse other membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000001); - membersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMembersFieldBuilder() - : null; + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } @@ -599,37 +556,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.MonitoredResource m = - input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); - if (membersBuilder_ == null) { - ensureMembersIsMutable(); - members_.add(m); - } else { - membersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.MonitoredResource m = + input.readMessage( + com.google.api.MonitoredResource.parser(), + extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,28 +594,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List members_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> - membersBuilder_; + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> membersBuilder_; /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -675,8 +623,6 @@ public java.util.List getMembersList() { } } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -691,8 +637,6 @@ public int getMembersCount() { } } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -707,15 +651,14 @@ public com.google.api.MonitoredResource getMembers(int index) { } } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder setMembers(int index, com.google.api.MonitoredResource value) { + public Builder setMembers( + int index, com.google.api.MonitoredResource value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,15 +672,14 @@ public Builder setMembers(int index, com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder setMembers(int index, com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setMembers( + int index, com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); @@ -748,8 +690,6 @@ public Builder setMembers(int index, com.google.api.MonitoredResource.Builder bu return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -770,15 +710,14 @@ public Builder addMembers(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers(int index, com.google.api.MonitoredResource value) { + public Builder addMembers( + int index, com.google.api.MonitoredResource value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -792,15 +731,14 @@ public Builder addMembers(int index, com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers(com.google.api.MonitoredResource.Builder builderForValue) { + public Builder addMembers( + com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); @@ -811,15 +749,14 @@ public Builder addMembers(com.google.api.MonitoredResource.Builder builderForVal return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers(int index, com.google.api.MonitoredResource.Builder builderForValue) { + public Builder addMembers( + int index, com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); @@ -830,8 +767,6 @@ public Builder addMembers(int index, com.google.api.MonitoredResource.Builder bu return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -842,7 +777,8 @@ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); @@ -850,8 +786,6 @@ public Builder addAllMembers( return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -869,8 +803,6 @@ public Builder clearMembers() { return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -888,44 +820,39 @@ public Builder removeMembers(int index) { return this; } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResource.Builder getMembersBuilder(int index) { + public com.google.api.MonitoredResource.Builder getMembersBuilder( + int index) { return getMembersFieldBuilder().getBuilder(index); } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) { + public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( + int index) { if (membersBuilder_ == null) { - return members_.get(index); - } else { + return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public java.util.List - getMembersOrBuilderList() { + public java.util.List + getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { @@ -933,8 +860,6 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) } } /** - * - * *
      * A set of monitored resources in the group.
      * 
@@ -942,47 +867,42 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) * repeated .google.api.MonitoredResource members = 1; */ public com.google.api.MonitoredResource.Builder addMembersBuilder() { - return getMembersFieldBuilder() - .addBuilder(com.google.api.MonitoredResource.getDefaultInstance()); + return getMembersFieldBuilder().addBuilder( + com.google.api.MonitoredResource.getDefaultInstance()); } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResource.Builder addMembersBuilder(int index) { - return getMembersFieldBuilder() - .addBuilder(index, com.google.api.MonitoredResource.getDefaultInstance()); + public com.google.api.MonitoredResource.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, com.google.api.MonitoredResource.getDefaultInstance()); } /** - * - * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public java.util.List getMembersBuilderList() { + public java.util.List + getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { - membersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder>( - members_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); members_ = null; } return membersBuilder_; @@ -990,8 +910,6 @@ public java.util.List getMembersBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -999,13 +917,13 @@ public java.util.List getMembersBuilde
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1014,8 +932,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -1023,14 +939,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,8 +955,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -1047,22 +962,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -1070,7 +981,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1080,8 +990,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -1089,14 +997,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1104,16 +1010,13 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1121,14 +1024,11 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1140,14 +1040,11 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1156,9 +1053,9 @@ public Builder clearTotalSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1168,12 +1065,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupMembersResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) private static final com.google.monitoring.v3.ListGroupMembersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupMembersResponse(); } @@ -1182,27 +1079,27 @@ public static com.google.monitoring.v3.ListGroupMembersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupMembersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,4 +1114,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupMembersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java index af58da4c9275..a149da475575 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupMembersResponseOrBuilder - extends +public interface ListGroupMembersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupMembersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - java.util.List getMembersList(); + java.util.List + getMembersList(); /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -44,8 +25,6 @@ public interface ListGroupMembersResponseOrBuilder */ com.google.api.MonitoredResource getMembers(int index); /** - * - * *
    * A set of monitored resources in the group.
    * 
@@ -54,29 +33,25 @@ public interface ListGroupMembersResponseOrBuilder */ int getMembersCount(); /** - * - * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - java.util.List getMembersOrBuilderList(); + java.util.List + getMembersOrBuilderList(); /** - * - * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index); + com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( + int index); /** - * - * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -84,13 +59,10 @@ public interface ListGroupMembersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -98,20 +70,17 @@ public interface ListGroupMembersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of elements matching this request.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java index 03d5e77308a7..419dc4372348 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsRequest} */ -public final class ListGroupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGroupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupsRequest) ListGroupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGroupsRequest.newBuilder() to construct. private ListGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGroupsRequest() { name_ = ""; pageToken_ = ""; @@ -44,40 +26,35 @@ private ListGroupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGroupsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsRequest.class, - com.google.monitoring.v3.ListGroupsRequest.Builder.class); + com.google.monitoring.v3.ListGroupsRequest.class, com.google.monitoring.v3.ListGroupsRequest.Builder.class); } private int filterCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object filter_; - public enum FilterCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHILDREN_OF_GROUP(2), ANCESTORS_OF_GROUP(3), DESCENDANTS_OF_GROUP(4), FILTER_NOT_SET(0); private final int value; - private FilterCase(int value) { this.value = value; } @@ -93,35 +70,28 @@ public static FilterCase valueOf(int value) { public static FilterCase forNumber(int value) { switch (value) { - case 2: - return CHILDREN_OF_GROUP; - case 3: - return ANCESTORS_OF_GROUP; - case 4: - return DESCENDANTS_OF_GROUP; - case 0: - return FILTER_NOT_SET; - default: - return null; + case 2: return CHILDREN_OF_GROUP; + case 3: return ANCESTORS_OF_GROUP; + case 4: return DESCENDANTS_OF_GROUP; + case 0: return FILTER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FilterCase getFilterCase() { - return FilterCase.forNumber(filterCase_); + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); } public static final int NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -129,10 +99,7 @@ public FilterCase getFilterCase() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,15 +108,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -157,18 +123,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,8 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CHILDREN_OF_GROUP_FIELD_NUMBER = 2; /** - * - * *
    * A group name. The format is:
    *
@@ -190,15 +153,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the childrenOfGroup field is set. */ public boolean hasChildrenOfGroup() { return filterCase_ == 2; } /** - * - * *
    * A group name. The format is:
    *
@@ -209,7 +169,6 @@ public boolean hasChildrenOfGroup() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The childrenOfGroup. */ public java.lang.String getChildrenOfGroup() { @@ -220,7 +179,8 @@ public java.lang.String getChildrenOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -229,8 +189,6 @@ public java.lang.String getChildrenOfGroup() { } } /** - * - * *
    * A group name. The format is:
    *
@@ -241,17 +199,18 @@ public java.lang.String getChildrenOfGroup() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for childrenOfGroup. */ - public com.google.protobuf.ByteString getChildrenOfGroupBytes() { + public com.google.protobuf.ByteString + getChildrenOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 2) { filter_ = b; } @@ -263,8 +222,6 @@ public com.google.protobuf.ByteString getChildrenOfGroupBytes() { public static final int ANCESTORS_OF_GROUP_FIELD_NUMBER = 3; /** - * - * *
    * A group name. The format is:
    *
@@ -277,15 +234,12 @@ public com.google.protobuf.ByteString getChildrenOfGroupBytes() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the ancestorsOfGroup field is set. */ public boolean hasAncestorsOfGroup() { return filterCase_ == 3; } /** - * - * *
    * A group name. The format is:
    *
@@ -298,7 +252,6 @@ public boolean hasAncestorsOfGroup() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The ancestorsOfGroup. */ public java.lang.String getAncestorsOfGroup() { @@ -309,7 +262,8 @@ public java.lang.String getAncestorsOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -318,8 +272,6 @@ public java.lang.String getAncestorsOfGroup() { } } /** - * - * *
    * A group name. The format is:
    *
@@ -332,17 +284,18 @@ public java.lang.String getAncestorsOfGroup() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for ancestorsOfGroup. */ - public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { + public com.google.protobuf.ByteString + getAncestorsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 3) { filter_ = b; } @@ -354,8 +307,6 @@ public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { public static final int DESCENDANTS_OF_GROUP_FIELD_NUMBER = 4; /** - * - * *
    * A group name. The format is:
    *
@@ -367,15 +318,12 @@ public com.google.protobuf.ByteString getAncestorsOfGroupBytes() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the descendantsOfGroup field is set. */ public boolean hasDescendantsOfGroup() { return filterCase_ == 4; } /** - * - * *
    * A group name. The format is:
    *
@@ -387,7 +335,6 @@ public boolean hasDescendantsOfGroup() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The descendantsOfGroup. */ public java.lang.String getDescendantsOfGroup() { @@ -398,7 +345,8 @@ public java.lang.String getDescendantsOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 4) { filter_ = s; @@ -407,8 +355,6 @@ public java.lang.String getDescendantsOfGroup() { } } /** - * - * *
    * A group name. The format is:
    *
@@ -420,17 +366,18 @@ public java.lang.String getDescendantsOfGroup() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for descendantsOfGroup. */ - public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { + public com.google.protobuf.ByteString + getDescendantsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 4) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 4) { filter_ = b; } @@ -443,14 +390,11 @@ public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -459,12 +403,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -472,7 +413,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -481,15 +421,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -497,15 +436,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -514,7 +454,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -526,7 +465,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (filterCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -564,7 +504,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -580,27 +521,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupsRequest other = - (com.google.monitoring.v3.ListGroupsRequest) obj; + com.google.monitoring.v3.ListGroupsRequest other = (com.google.monitoring.v3.ListGroupsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getFilterCase().equals(other.getFilterCase())) return false; switch (filterCase_) { case 2: - if (!getChildrenOfGroup().equals(other.getChildrenOfGroup())) return false; + if (!getChildrenOfGroup() + .equals(other.getChildrenOfGroup())) return false; break; case 3: - if (!getAncestorsOfGroup().equals(other.getAncestorsOfGroup())) return false; + if (!getAncestorsOfGroup() + .equals(other.getAncestorsOfGroup())) return false; break; case 4: - if (!getDescendantsOfGroup().equals(other.getDescendantsOfGroup())) return false; + if (!getDescendantsOfGroup() + .equals(other.getDescendantsOfGroup())) return false; break; case 0: default: @@ -643,136 +589,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListGroupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupsRequest) com.google.monitoring.v3.ListGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsRequest.class, - com.google.monitoring.v3.ListGroupsRequest.Builder.class); + com.google.monitoring.v3.ListGroupsRequest.class, com.google.monitoring.v3.ListGroupsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -786,9 +728,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override @@ -807,11 +749,8 @@ public com.google.monitoring.v3.ListGroupsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListGroupsRequest buildPartial() { - com.google.monitoring.v3.ListGroupsRequest result = - new com.google.monitoring.v3.ListGroupsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListGroupsRequest result = new com.google.monitoring.v3.ListGroupsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -839,39 +778,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.ListGroupsRequest resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupsRequest) { - return mergeFrom((com.google.monitoring.v3.ListGroupsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListGroupsRequest)other); } else { super.mergeFrom(other); return this; @@ -894,31 +832,27 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupsRequest other) { onChanged(); } switch (other.getFilterCase()) { - case CHILDREN_OF_GROUP: - { - filterCase_ = 2; - filter_ = other.filter_; - onChanged(); - break; - } - case ANCESTORS_OF_GROUP: - { - filterCase_ = 3; - filter_ = other.filter_; - onChanged(); - break; - } - case DESCENDANTS_OF_GROUP: - { - filterCase_ = 4; - filter_ = other.filter_; - onChanged(); - break; - } - case FILTER_NOT_SET: - { - break; - } + case CHILDREN_OF_GROUP: { + filterCase_ = 2; + filter_ = other.filter_; + onChanged(); + break; + } + case ANCESTORS_OF_GROUP: { + filterCase_ = 3; + filter_ = other.filter_; + onChanged(); + break; + } + case DESCENDANTS_OF_GROUP: { + filterCase_ = 4; + filter_ = other.filter_; + onChanged(); + break; + } + case FILTER_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -946,52 +880,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 2; - filter_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 3; - filter_ = s; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 4; - filter_ = s; - break; - } // case 34 - case 40: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 2; + filter_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 3; + filter_ = s; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 4; + filter_ = s; + break; + } // case 34 + case 40: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1001,12 +928,12 @@ public Builder mergeFrom( } // finally return this; } - private int filterCase_ = 0; private java.lang.Object filter_; - - public FilterCase getFilterCase() { - return FilterCase.forNumber(filterCase_); + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); } public Builder clearFilter() { @@ -1020,8 +947,6 @@ public Builder clearFilter() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1029,16 +954,14 @@ public Builder clearFilter() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1047,8 +970,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1056,17 +977,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1074,8 +994,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1083,25 +1001,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1109,10 +1021,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -1122,8 +1031,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1131,17 +1038,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1150,8 +1053,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * A group name. The format is:
      *
@@ -1162,7 +1063,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the childrenOfGroup field is set. */ @java.lang.Override @@ -1170,8 +1070,6 @@ public boolean hasChildrenOfGroup() { return filterCase_ == 2; } /** - * - * *
      * A group name. The format is:
      *
@@ -1182,7 +1080,6 @@ public boolean hasChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The childrenOfGroup. */ @java.lang.Override @@ -1192,7 +1089,8 @@ public java.lang.String getChildrenOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -1203,8 +1101,6 @@ public java.lang.String getChildrenOfGroup() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1215,18 +1111,19 @@ public java.lang.String getChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for childrenOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getChildrenOfGroupBytes() { + public com.google.protobuf.ByteString + getChildrenOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 2) { filter_ = b; } @@ -1236,8 +1133,6 @@ public com.google.protobuf.ByteString getChildrenOfGroupBytes() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1248,22 +1143,18 @@ public com.google.protobuf.ByteString getChildrenOfGroupBytes() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @param value The childrenOfGroup to set. * @return This builder for chaining. */ - public Builder setChildrenOfGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setChildrenOfGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filterCase_ = 2; filter_ = value; onChanged(); return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1274,7 +1165,6 @@ public Builder setChildrenOfGroup(java.lang.String value) {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearChildrenOfGroup() { @@ -1286,8 +1176,6 @@ public Builder clearChildrenOfGroup() { return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1298,14 +1186,12 @@ public Builder clearChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for childrenOfGroup to set. * @return This builder for chaining. */ - public Builder setChildrenOfGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setChildrenOfGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filterCase_ = 2; filter_ = value; @@ -1314,8 +1200,6 @@ public Builder setChildrenOfGroupBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * A group name. The format is:
      *
@@ -1328,7 +1212,6 @@ public Builder setChildrenOfGroupBytes(com.google.protobuf.ByteString value) {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the ancestorsOfGroup field is set. */ @java.lang.Override @@ -1336,8 +1219,6 @@ public boolean hasAncestorsOfGroup() { return filterCase_ == 3; } /** - * - * *
      * A group name. The format is:
      *
@@ -1350,7 +1231,6 @@ public boolean hasAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The ancestorsOfGroup. */ @java.lang.Override @@ -1360,7 +1240,8 @@ public java.lang.String getAncestorsOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -1371,8 +1252,6 @@ public java.lang.String getAncestorsOfGroup() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1385,18 +1264,19 @@ public java.lang.String getAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for ancestorsOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { + public com.google.protobuf.ByteString + getAncestorsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 3) { filter_ = b; } @@ -1406,8 +1286,6 @@ public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1420,22 +1298,18 @@ public com.google.protobuf.ByteString getAncestorsOfGroupBytes() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @param value The ancestorsOfGroup to set. * @return This builder for chaining. */ - public Builder setAncestorsOfGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorsOfGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filterCase_ = 3; filter_ = value; onChanged(); return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1448,7 +1322,6 @@ public Builder setAncestorsOfGroup(java.lang.String value) {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearAncestorsOfGroup() { @@ -1460,8 +1333,6 @@ public Builder clearAncestorsOfGroup() { return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1474,14 +1345,12 @@ public Builder clearAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for ancestorsOfGroup to set. * @return This builder for chaining. */ - public Builder setAncestorsOfGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAncestorsOfGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filterCase_ = 3; filter_ = value; @@ -1490,8 +1359,6 @@ public Builder setAncestorsOfGroupBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * A group name. The format is:
      *
@@ -1503,7 +1370,6 @@ public Builder setAncestorsOfGroupBytes(com.google.protobuf.ByteString value) {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the descendantsOfGroup field is set. */ @java.lang.Override @@ -1511,8 +1377,6 @@ public boolean hasDescendantsOfGroup() { return filterCase_ == 4; } /** - * - * *
      * A group name. The format is:
      *
@@ -1524,7 +1388,6 @@ public boolean hasDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The descendantsOfGroup. */ @java.lang.Override @@ -1534,7 +1397,8 @@ public java.lang.String getDescendantsOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 4) { filter_ = s; @@ -1545,8 +1409,6 @@ public java.lang.String getDescendantsOfGroup() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1558,18 +1420,19 @@ public java.lang.String getDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for descendantsOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { + public com.google.protobuf.ByteString + getDescendantsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 4) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (filterCase_ == 4) { filter_ = b; } @@ -1579,8 +1442,6 @@ public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { } } /** - * - * *
      * A group name. The format is:
      *
@@ -1592,22 +1453,18 @@ public com.google.protobuf.ByteString getDescendantsOfGroupBytes() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @param value The descendantsOfGroup to set. * @return This builder for chaining. */ - public Builder setDescendantsOfGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescendantsOfGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filterCase_ = 4; filter_ = value; onChanged(); return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1619,7 +1476,6 @@ public Builder setDescendantsOfGroup(java.lang.String value) {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDescendantsOfGroup() { @@ -1631,8 +1487,6 @@ public Builder clearDescendantsOfGroup() { return this; } /** - * - * *
      * A group name. The format is:
      *
@@ -1644,14 +1498,12 @@ public Builder clearDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for descendantsOfGroup to set. * @return This builder for chaining. */ - public Builder setDescendantsOfGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescendantsOfGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filterCase_ = 4; filter_ = value; @@ -1659,16 +1511,13 @@ public Builder setDescendantsOfGroupBytes(com.google.protobuf.ByteString value) return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1676,14 +1525,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1695,14 +1541,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1714,8 +1557,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1723,13 +1564,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1738,8 +1579,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1747,14 +1586,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1762,8 +1602,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1771,22 +1609,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1794,7 +1628,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1804,8 +1637,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1813,23 +1644,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1839,12 +1668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) private static final com.google.monitoring.v3.ListGroupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupsRequest(); } @@ -1853,27 +1682,27 @@ public static com.google.monitoring.v3.ListGroupsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,4 +1717,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java similarity index 81% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java index c490a4dc67a3..4ed805c0e2a9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupsRequestOrBuilder - extends +public interface ListGroupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -33,16 +15,11 @@ public interface ListGroupsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -50,17 +27,13 @@ public interface ListGroupsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A group name. The format is:
    *
@@ -71,13 +44,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the childrenOfGroup field is set. */ boolean hasChildrenOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -88,13 +58,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The childrenOfGroup. */ java.lang.String getChildrenOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -105,14 +72,12 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for childrenOfGroup. */ - com.google.protobuf.ByteString getChildrenOfGroupBytes(); + com.google.protobuf.ByteString + getChildrenOfGroupBytes(); /** - * - * *
    * A group name. The format is:
    *
@@ -125,13 +90,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the ancestorsOfGroup field is set. */ boolean hasAncestorsOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -144,13 +106,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The ancestorsOfGroup. */ java.lang.String getAncestorsOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -163,14 +122,12 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for ancestorsOfGroup. */ - com.google.protobuf.ByteString getAncestorsOfGroupBytes(); + com.google.protobuf.ByteString + getAncestorsOfGroupBytes(); /** - * - * *
    * A group name. The format is:
    *
@@ -182,13 +139,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the descendantsOfGroup field is set. */ boolean hasDescendantsOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -200,13 +154,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The descendantsOfGroup. */ java.lang.String getDescendantsOfGroup(); /** - * - * *
    * A group name. The format is:
    *
@@ -218,27 +169,22 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for descendantsOfGroup. */ - com.google.protobuf.ByteString getDescendantsOfGroupBytes(); + com.google.protobuf.ByteString + getDescendantsOfGroupBytes(); /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -246,13 +192,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -260,10 +203,10 @@ public interface ListGroupsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); com.google.monitoring.v3.ListGroupsRequest.FilterCase getFilterCase(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java index 60c22e62e9ec..2f8a6aa2f237 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListGroups` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsResponse} */ -public final class ListGroupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGroupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupsResponse) ListGroupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGroupsResponse.newBuilder() to construct. private ListGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGroupsResponse() { group_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGroupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGroupsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsResponse.class, - com.google.monitoring.v3.ListGroupsResponse.Builder.class); + com.google.monitoring.v3.ListGroupsResponse.class, com.google.monitoring.v3.ListGroupsResponse.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List group_; /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -81,8 +59,6 @@ public java.util.List getGroupList() { return group_; } /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -90,12 +66,11 @@ public java.util.List getGroupList() { * repeated .google.monitoring.v3.Group group = 1; */ @java.lang.Override - public java.util.List getGroupOrBuilderList() { + public java.util.List + getGroupOrBuilderList() { return group_; } /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -107,8 +82,6 @@ public int getGroupCount() { return group_.size(); } /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -120,8 +93,6 @@ public com.google.monitoring.v3.Group getGroup(int index) { return group_.get(index); } /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -129,17 +100,15 @@ public com.google.monitoring.v3.Group getGroup(int index) { * repeated .google.monitoring.v3.Group group = 1; */ @java.lang.Override - public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { + public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( + int index) { return group_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -147,7 +116,6 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -172,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < group_.size(); i++) { output.writeMessage(1, group_.get(i)); } @@ -218,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < group_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, group_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, group_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupsResponse other = - (com.google.monitoring.v3.ListGroupsResponse) obj; + com.google.monitoring.v3.ListGroupsResponse other = (com.google.monitoring.v3.ListGroupsResponse) obj; - if (!getGroupList().equals(other.getGroupList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGroupList() + .equals(other.getGroupList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +233,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListGroups` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupsResponse) com.google.monitoring.v3.ListGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsResponse.class, - com.google.monitoring.v3.ListGroupsResponse.Builder.class); + com.google.monitoring.v3.ListGroupsResponse.class, com.google.monitoring.v3.ListGroupsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override @@ -430,12 +396,9 @@ public com.google.monitoring.v3.ListGroupsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListGroupsResponse buildPartial() { - com.google.monitoring.v3.ListGroupsResponse result = - new com.google.monitoring.v3.ListGroupsResponse(this); + com.google.monitoring.v3.ListGroupsResponse result = new com.google.monitoring.v3.ListGroupsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +426,38 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupsResponse) { - return mergeFrom((com.google.monitoring.v3.ListGroupsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListGroupsResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +484,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupsResponse other) { groupBuilder_ = null; group_ = other.group_; bitField0_ = (bitField0_ & ~0x00000001); - groupBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupFieldBuilder() - : null; + groupBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupFieldBuilder() : null; } else { groupBuilder_.addAllMessages(other.group_); } @@ -562,31 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.Group m = - input.readMessage(com.google.monitoring.v3.Group.parser(), extensionRegistry); - if (groupBuilder_ == null) { - ensureGroupIsMutable(); - group_.add(m); - } else { - groupBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.Group m = + input.readMessage( + com.google.monitoring.v3.Group.parser(), + extensionRegistry); + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(m); + } else { + groupBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List group_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { group_ = new java.util.ArrayList(group_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, - com.google.monitoring.v3.Group.Builder, - com.google.monitoring.v3.GroupOrBuilder> - groupBuilder_; + com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -632,8 +585,6 @@ public java.util.List getGroupList() { } } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -648,8 +599,6 @@ public int getGroupCount() { } } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -664,15 +613,14 @@ public com.google.monitoring.v3.Group getGroup(int index) { } } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder setGroup(int index, com.google.monitoring.v3.Group value) { + public Builder setGroup( + int index, com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,15 +634,14 @@ public Builder setGroup(int index, com.google.monitoring.v3.Group value) { return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder setGroup(int index, com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder setGroup( + int index, com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.set(index, builderForValue.build()); @@ -705,8 +652,6 @@ public Builder setGroup(int index, com.google.monitoring.v3.Group.Builder builde return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -727,15 +672,14 @@ public Builder addGroup(com.google.monitoring.v3.Group value) { return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup(int index, com.google.monitoring.v3.Group value) { + public Builder addGroup( + int index, com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -749,15 +693,14 @@ public Builder addGroup(int index, com.google.monitoring.v3.Group value) { return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup(com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder addGroup( + com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.add(builderForValue.build()); @@ -768,15 +711,14 @@ public Builder addGroup(com.google.monitoring.v3.Group.Builder builderForValue) return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup(int index, com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder addGroup( + int index, com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.add(index, builderForValue.build()); @@ -787,8 +729,6 @@ public Builder addGroup(int index, com.google.monitoring.v3.Group.Builder builde return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -799,7 +739,8 @@ public Builder addAllGroup( java.lang.Iterable values) { if (groupBuilder_ == null) { ensureGroupIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, group_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, group_); onChanged(); } else { groupBuilder_.addAllMessages(values); @@ -807,8 +748,6 @@ public Builder addAllGroup( return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -826,8 +765,6 @@ public Builder clearGroup() { return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -845,44 +782,39 @@ public Builder removeGroup(int index) { return this; } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.Group.Builder getGroupBuilder(int index) { + public com.google.monitoring.v3.Group.Builder getGroupBuilder( + int index) { return getGroupFieldBuilder().getBuilder(index); } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { + public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( + int index) { if (groupBuilder_ == null) { - return group_.get(index); - } else { + return group_.get(index); } else { return groupBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public java.util.List - getGroupOrBuilderList() { + public java.util.List + getGroupOrBuilderList() { if (groupBuilder_ != null) { return groupBuilder_.getMessageOrBuilderList(); } else { @@ -890,8 +822,6 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { } } /** - * - * *
      * The groups that match the specified filters.
      * 
@@ -899,46 +829,42 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { * repeated .google.monitoring.v3.Group group = 1; */ public com.google.monitoring.v3.Group.Builder addGroupBuilder() { - return getGroupFieldBuilder().addBuilder(com.google.monitoring.v3.Group.getDefaultInstance()); + return getGroupFieldBuilder().addBuilder( + com.google.monitoring.v3.Group.getDefaultInstance()); } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.Group.Builder addGroupBuilder(int index) { - return getGroupFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.Group.getDefaultInstance()); + public com.google.monitoring.v3.Group.Builder addGroupBuilder( + int index) { + return getGroupFieldBuilder().addBuilder( + index, com.google.monitoring.v3.Group.getDefaultInstance()); } /** - * - * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public java.util.List getGroupBuilderList() { + public java.util.List + getGroupBuilderList() { return getGroupFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, - com.google.monitoring.v3.Group.Builder, - com.google.monitoring.v3.GroupOrBuilder> + com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> getGroupFieldBuilder() { if (groupBuilder_ == null) { - groupBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, - com.google.monitoring.v3.Group.Builder, - com.google.monitoring.v3.GroupOrBuilder>( - group_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>( + group_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); group_ = null; } return groupBuilder_; @@ -946,8 +872,6 @@ public java.util.List getGroupBuilderLis private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -955,13 +879,13 @@ public java.util.List getGroupBuilderLis
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -979,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -994,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1003,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1026,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1036,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1045,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) private static final com.google.monitoring.v3.ListGroupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupsResponse(); } @@ -1085,27 +997,27 @@ public static com.google.monitoring.v3.ListGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java similarity index 66% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java index 4d1de690d188..c6f8c82383d1 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupsResponseOrBuilder - extends +public interface ListGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - java.util.List getGroupList(); + java.util.List + getGroupList(); /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -44,8 +25,6 @@ public interface ListGroupsResponseOrBuilder */ com.google.monitoring.v3.Group getGroup(int index); /** - * - * *
    * The groups that match the specified filters.
    * 
@@ -54,29 +33,25 @@ public interface ListGroupsResponseOrBuilder */ int getGroupCount(); /** - * - * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - java.util.List getGroupOrBuilderList(); + java.util.List + getGroupOrBuilderList(); /** - * - * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index); + com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( + int index); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -84,13 +59,10 @@ public interface ListGroupsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -98,8 +70,8 @@ public interface ListGroupsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java index cd36f4aae891..685473429da1 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListMetricDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsRequest} */ -public final class ListMetricDescriptorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMetricDescriptorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMetricDescriptorsRequest) ListMetricDescriptorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMetricDescriptorsRequest.newBuilder() to construct. private ListMetricDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMetricDescriptorsRequest() { name_ = ""; filter_ = ""; @@ -45,32 +27,28 @@ private ListMetricDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMetricDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsRequest.class, - com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsRequest.class, com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -106,18 +80,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,12 +99,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -144,7 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -153,15 +122,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -174,15 +142,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -193,14 +162,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -209,12 +175,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -222,7 +185,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -231,15 +193,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -247,15 +208,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -264,7 +226,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -302,7 +264,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -318,18 +281,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMetricDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListMetricDescriptorsRequest other = - (com.google.monitoring.v3.ListMetricDescriptorsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListMetricDescriptorsRequest other = (com.google.monitoring.v3.ListMetricDescriptorsRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,136 +321,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListMetricDescriptorsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListMetricDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListMetricDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMetricDescriptorsRequest) com.google.monitoring.v3.ListMetricDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsRequest.class, - com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsRequest.class, com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListMetricDescriptorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override @@ -518,11 +479,8 @@ public com.google.monitoring.v3.ListMetricDescriptorsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListMetricDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListMetricDescriptorsRequest result = - new com.google.monitoring.v3.ListMetricDescriptorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListMetricDescriptorsRequest result = new com.google.monitoring.v3.ListMetricDescriptorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -547,39 +505,38 @@ private void buildPartial0(com.google.monitoring.v3.ListMetricDescriptorsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMetricDescriptorsRequest) { - return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsRequest)other); } else { super.mergeFrom(other); return this; @@ -587,8 +544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsRequest other) { - if (other == com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -633,37 +589,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -673,13 +624,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -687,16 +635,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -705,8 +651,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -714,17 +658,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -732,8 +675,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -741,25 +682,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -767,10 +702,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -780,8 +712,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -789,17 +719,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -809,8 +735,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -823,13 +747,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -838,8 +762,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -852,14 +774,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -867,8 +790,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -881,22 +802,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -909,7 +826,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -919,8 +835,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -933,14 +847,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -948,16 +860,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -965,14 +874,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -984,14 +890,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1003,8 +906,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1012,13 +913,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1027,8 +928,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1036,14 +935,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1051,8 +951,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1060,22 +958,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1083,7 +977,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1093,8 +986,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1102,23 +993,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMetricDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) private static final com.google.monitoring.v3.ListMetricDescriptorsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMetricDescriptorsRequest(); } @@ -1142,27 +1031,27 @@ public static com.google.monitoring.v3.ListMetricDescriptorsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMetricDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetricDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1177,4 +1066,6 @@ public com.google.protobuf.Parser getParserForType public com.google.monitoring.v3.ListMetricDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java index 04ae36280d15..6a580feff661 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMetricDescriptorsRequestOrBuilder - extends +public interface ListMetricDescriptorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMetricDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -33,16 +15,11 @@ public interface ListMetricDescriptorsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -50,17 +27,13 @@ public interface ListMetricDescriptorsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -73,13 +46,10 @@ public interface ListMetricDescriptorsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -92,27 +62,22 @@ public interface ListMetricDescriptorsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -120,13 +85,10 @@ public interface ListMetricDescriptorsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -134,8 +96,8 @@ public interface ListMetricDescriptorsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java index 0eb5bd2df1dd..037d17524b56 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListMetricDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsResponse} */ -public final class ListMetricDescriptorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMetricDescriptorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMetricDescriptorsResponse) ListMetricDescriptorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMetricDescriptorsResponse.newBuilder() to construct. private ListMetricDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMetricDescriptorsResponse() { metricDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListMetricDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMetricDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsResponse.class, - com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsResponse.class, com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); } public static final int METRIC_DESCRIPTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List metricDescriptors_; /** - * - * *
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -82,8 +60,6 @@ public java.util.List getMetricDescriptorsList(
     return metricDescriptors_;
   }
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -92,13 +68,11 @@ public java.util.List getMetricDescriptorsList(
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMetricDescriptorsOrBuilderList() {
     return metricDescriptors_;
   }
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -111,8 +85,6 @@ public int getMetricDescriptorsCount() {
     return metricDescriptors_.size();
   }
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -125,8 +97,6 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
     return metricDescriptors_.get(index);
   }
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -135,17 +105,15 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
   @java.lang.Override
-  public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index) {
+  public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
+      int index) {
     return metricDescriptors_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -153,7 +121,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,15 +129,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -178,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < metricDescriptors_.size(); i++) { output.writeMessage(1, metricDescriptors_.get(i)); } @@ -224,8 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metricDescriptors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, metricDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, metricDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -238,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMetricDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListMetricDescriptorsResponse other = - (com.google.monitoring.v3.ListMetricDescriptorsResponse) obj; + com.google.monitoring.v3.ListMetricDescriptorsResponse other = (com.google.monitoring.v3.ListMetricDescriptorsResponse) obj; - if (!getMetricDescriptorsList().equals(other.getMetricDescriptorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getMetricDescriptorsList() + .equals(other.getMetricDescriptorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,136 +239,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListMetricDescriptorsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListMetricDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListMetricDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMetricDescriptorsResponse) com.google.monitoring.v3.ListMetricDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsResponse.class, - com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsResponse.class, com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListMetricDescriptorsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override @@ -438,18 +401,14 @@ public com.google.monitoring.v3.ListMetricDescriptorsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListMetricDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListMetricDescriptorsResponse result = - new com.google.monitoring.v3.ListMetricDescriptorsResponse(this); + com.google.monitoring.v3.ListMetricDescriptorsResponse result = new com.google.monitoring.v3.ListMetricDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListMetricDescriptorsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListMetricDescriptorsResponse result) { if (metricDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metricDescriptors_ = java.util.Collections.unmodifiableList(metricDescriptors_); @@ -472,39 +431,38 @@ private void buildPartial0(com.google.monitoring.v3.ListMetricDescriptorsRespons public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMetricDescriptorsResponse) { - return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsResponse)other); } else { super.mergeFrom(other); return this; @@ -512,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsResponse other) { - if (other == com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance()) return this; if (metricDescriptorsBuilder_ == null) { if (!other.metricDescriptors_.isEmpty()) { if (metricDescriptors_.isEmpty()) { @@ -532,10 +489,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsResponse metricDescriptorsBuilder_ = null; metricDescriptors_ = other.metricDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - metricDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricDescriptorsFieldBuilder() - : null; + metricDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDescriptorsFieldBuilder() : null; } else { metricDescriptorsBuilder_.addAllMessages(other.metricDescriptors_); } @@ -572,31 +528,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.MetricDescriptor m = - input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry); - if (metricDescriptorsBuilder_ == null) { - ensureMetricDescriptorsIsMutable(); - metricDescriptors_.add(m); - } else { - metricDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.MetricDescriptor m = + input.readMessage( + com.google.api.MetricDescriptor.parser(), + extensionRegistry); + if (metricDescriptorsBuilder_ == null) { + ensureMetricDescriptorsIsMutable(); + metricDescriptors_.add(m); + } else { + metricDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,29 +561,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List metricDescriptors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMetricDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - metricDescriptors_ = - new java.util.ArrayList(metricDescriptors_); + metricDescriptors_ = new java.util.ArrayList(metricDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricDescriptor, - com.google.api.MetricDescriptor.Builder, - com.google.api.MetricDescriptorOrBuilder> - metricDescriptorsBuilder_; + com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorsBuilder_; /** - * - * *
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -644,8 +591,6 @@ public java.util.List getMetricDescriptorsList(
       }
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -661,8 +606,6 @@ public int getMetricDescriptorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -678,8 +621,6 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -687,7 +628,8 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder setMetricDescriptors(int index, com.google.api.MetricDescriptor value) {
+    public Builder setMetricDescriptors(
+        int index, com.google.api.MetricDescriptor value) {
       if (metricDescriptorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -701,8 +643,6 @@ public Builder setMetricDescriptors(int index, com.google.api.MetricDescriptor v
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -722,8 +662,6 @@ public Builder setMetricDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -745,8 +683,6 @@ public Builder addMetricDescriptors(com.google.api.MetricDescriptor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -754,7 +690,8 @@ public Builder addMetricDescriptors(com.google.api.MetricDescriptor value) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder addMetricDescriptors(int index, com.google.api.MetricDescriptor value) {
+    public Builder addMetricDescriptors(
+        int index, com.google.api.MetricDescriptor value) {
       if (metricDescriptorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -768,8 +705,6 @@ public Builder addMetricDescriptors(int index, com.google.api.MetricDescriptor v
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -777,7 +712,8 @@ public Builder addMetricDescriptors(int index, com.google.api.MetricDescriptor v
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder addMetricDescriptors(com.google.api.MetricDescriptor.Builder builderForValue) {
+    public Builder addMetricDescriptors(
+        com.google.api.MetricDescriptor.Builder builderForValue) {
       if (metricDescriptorsBuilder_ == null) {
         ensureMetricDescriptorsIsMutable();
         metricDescriptors_.add(builderForValue.build());
@@ -788,8 +724,6 @@ public Builder addMetricDescriptors(com.google.api.MetricDescriptor.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -809,8 +743,6 @@ public Builder addMetricDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -822,7 +754,8 @@ public Builder addAllMetricDescriptors(
         java.lang.Iterable values) {
       if (metricDescriptorsBuilder_ == null) {
         ensureMetricDescriptorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricDescriptors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, metricDescriptors_);
         onChanged();
       } else {
         metricDescriptorsBuilder_.addAllMessages(values);
@@ -830,8 +763,6 @@ public Builder addAllMetricDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -850,8 +781,6 @@ public Builder clearMetricDescriptors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -870,8 +799,6 @@ public Builder removeMetricDescriptors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -879,12 +806,11 @@ public Builder removeMetricDescriptors(int index) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(int index) {
+    public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(
+        int index) {
       return getMetricDescriptorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -892,16 +818,14 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(int i
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index) {
+    public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
+        int index) {
       if (metricDescriptorsBuilder_ == null) {
-        return metricDescriptors_.get(index);
-      } else {
+        return metricDescriptors_.get(index);  } else {
         return metricDescriptorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -909,8 +833,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(in
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public java.util.List
-        getMetricDescriptorsOrBuilderList() {
+    public java.util.List 
+         getMetricDescriptorsOrBuilderList() {
       if (metricDescriptorsBuilder_ != null) {
         return metricDescriptorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -918,8 +842,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -928,12 +850,10 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(in
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
     public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder() {
-      return getMetricDescriptorsFieldBuilder()
-          .addBuilder(com.google.api.MetricDescriptor.getDefaultInstance());
+      return getMetricDescriptorsFieldBuilder().addBuilder(
+          com.google.api.MetricDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -941,13 +861,12 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder() {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(int index) {
-      return getMetricDescriptorsFieldBuilder()
-          .addBuilder(index, com.google.api.MetricDescriptor.getDefaultInstance());
+    public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(
+        int index) {
+      return getMetricDescriptorsFieldBuilder().addBuilder(
+          index, com.google.api.MetricDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -955,22 +874,16 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(int i
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public java.util.List
-        getMetricDescriptorsBuilderList() {
+    public java.util.List 
+         getMetricDescriptorsBuilderList() {
       return getMetricDescriptorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MetricDescriptor,
-            com.google.api.MetricDescriptor.Builder,
-            com.google.api.MetricDescriptorOrBuilder>
+        com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> 
         getMetricDescriptorsFieldBuilder() {
       if (metricDescriptorsBuilder_ == null) {
-        metricDescriptorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.api.MetricDescriptor,
-                com.google.api.MetricDescriptor.Builder,
-                com.google.api.MetricDescriptorOrBuilder>(
+        metricDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>(
                 metricDescriptors_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -982,8 +895,6 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(int i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -991,13 +902,13 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(int i
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1006,8 +917,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1015,14 +924,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1030,8 +940,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1039,22 +947,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1062,7 +966,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1072,8 +975,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1081,23 +982,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1107,12 +1006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMetricDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) private static final com.google.monitoring.v3.ListMetricDescriptorsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMetricDescriptorsResponse(); } @@ -1121,27 +1020,27 @@ public static com.google.monitoring.v3.ListMetricDescriptorsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMetricDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetricDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,4 +1055,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.ListMetricDescriptorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java index dccf2129e7db..9572d805a413 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMetricDescriptorsResponseOrBuilder - extends +public interface ListMetricDescriptorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMetricDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -33,10 +15,9 @@ public interface ListMetricDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  java.util.List getMetricDescriptorsList();
+  java.util.List 
+      getMetricDescriptorsList();
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -46,8 +27,6 @@ public interface ListMetricDescriptorsResponseOrBuilder
    */
   com.google.api.MetricDescriptor getMetricDescriptors(int index);
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -57,8 +36,6 @@ public interface ListMetricDescriptorsResponseOrBuilder
    */
   int getMetricDescriptorsCount();
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -66,11 +43,9 @@ public interface ListMetricDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  java.util.List
+  java.util.List 
       getMetricDescriptorsOrBuilderList();
   /**
-   *
-   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -78,11 +53,10 @@ public interface ListMetricDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index);
+  com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -90,13 +64,10 @@ public interface ListMetricDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -104,8 +75,8 @@ public interface ListMetricDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java index 6c374332fc8a..e47ee20ab84d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListMonitoredResourceDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsRequest} */ -public final class ListMonitoredResourceDescriptorsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMonitoredResourceDescriptorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) ListMonitoredResourceDescriptorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsRequest.newBuilder() to construct. - private ListMonitoredResourceDescriptorsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMonitoredResourceDescriptorsRequest() { name_ = ""; filter_ = ""; @@ -47,32 +27,28 @@ private ListMonitoredResourceDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -80,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -108,18 +80,17 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,12 +99,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -144,7 +112,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -153,15 +120,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -172,15 +138,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -191,14 +158,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -207,12 +171,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -220,7 +181,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -229,15 +189,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -245,15 +204,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -262,7 +222,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -300,7 +260,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -316,18 +277,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other = - (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other = (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,136 +317,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListMonitoredResourceDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,14 +454,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance(); } @@ -517,17 +475,13 @@ public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest build() @java.lang.Override public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result = - new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result) { + private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -547,50 +501,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) { - return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other) { - if (other - == com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other) { + if (other == com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -635,37 +585,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,13 +620,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -689,16 +631,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -707,8 +647,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -716,17 +654,16 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -734,8 +671,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -743,25 +678,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -769,10 +698,7 @@ public Builder setName(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -782,8 +708,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -791,17 +715,13 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -811,8 +731,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -823,13 +741,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -838,8 +756,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -850,14 +766,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -865,8 +782,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -877,22 +792,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -903,7 +814,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -913,8 +823,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -925,14 +833,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -940,16 +846,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -957,14 +860,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -976,14 +876,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -995,8 +892,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1004,13 +899,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1019,8 +914,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1028,14 +921,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1043,8 +937,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1052,22 +944,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1075,7 +963,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1085,8 +972,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1094,23 +979,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1120,43 +1003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) - private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest - getDefaultInstance() { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,8 +1049,9 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java index b50e61f81634..6bb1aa226e7b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMonitoredResourceDescriptorsRequestOrBuilder - extends +public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -33,16 +15,11 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -50,17 +27,13 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -71,13 +44,10 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -88,27 +58,22 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -116,13 +81,10 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -130,8 +92,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java index 88853a6c71d9..33b83dc607af 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListMonitoredResourceDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} */ -public final class ListMonitoredResourceDescriptorsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMonitoredResourceDescriptorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) ListMonitoredResourceDescriptorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsResponse.newBuilder() to construct. - private ListMonitoredResourceDescriptorsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMonitoredResourceDescriptorsResponse() { resourceDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,32 +26,28 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); } public static final int RESOURCE_DESCRIPTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List resourceDescriptors_; /** - * - * *
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -84,8 +60,6 @@ public java.util.List getResourceDes
     return resourceDescriptors_;
   }
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -94,13 +68,11 @@ public java.util.List getResourceDes
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResourceDescriptorsOrBuilderList() {
     return resourceDescriptors_;
   }
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -113,8 +85,6 @@ public int getResourceDescriptorsCount() {
     return resourceDescriptors_.size();
   }
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -127,8 +97,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind
     return resourceDescriptors_.get(index);
   }
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -143,12 +111,9 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -156,7 +121,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -165,15 +129,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -181,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -198,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -227,8 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resourceDescriptors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resourceDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -241,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other = - (com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) obj; + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other = (com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) obj; - if (!getResourceDescriptorsList().equals(other.getResourceDescriptorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getResourceDescriptorsList() + .equals(other.getResourceDescriptorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,138 +239,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListMonitoredResourceDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); } - // Construct using - // com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,14 +380,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { return com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance(); } @@ -444,18 +401,14 @@ public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse build() @java.lang.Override public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result = - new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(this); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -467,8 +420,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -479,50 +431,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) { - return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other) { - if (other - == com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other) { + if (other == com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) return this; if (resourceDescriptorsBuilder_ == null) { if (!other.resourceDescriptors_.isEmpty()) { if (resourceDescriptors_.isEmpty()) { @@ -541,10 +489,9 @@ public Builder mergeFrom( resourceDescriptorsBuilder_ = null; resourceDescriptors_ = other.resourceDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - resourceDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceDescriptorsFieldBuilder() - : null; + resourceDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceDescriptorsFieldBuilder() : null; } else { resourceDescriptorsBuilder_.addAllMessages(other.resourceDescriptors_); } @@ -581,32 +528,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.MonitoredResourceDescriptor m = - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry); - if (resourceDescriptorsBuilder_ == null) { - ensureResourceDescriptorsIsMutable(); - resourceDescriptors_.add(m); - } else { - resourceDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.MonitoredResourceDescriptor m = + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), + extensionRegistry); + if (resourceDescriptorsBuilder_ == null) { + ensureResourceDescriptorsIsMutable(); + resourceDescriptors_.add(m); + } else { + resourceDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,30 +561,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List resourceDescriptors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourceDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = - new java.util.ArrayList( - resourceDescriptors_); + resourceDescriptors_ = new java.util.ArrayList(resourceDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, - com.google.api.MonitoredResourceDescriptor.Builder, - com.google.api.MonitoredResourceDescriptorOrBuilder> - resourceDescriptorsBuilder_; + com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> resourceDescriptorsBuilder_; /** - * - * *
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -655,8 +591,6 @@ public java.util.List getResourceDes
       }
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -672,8 +606,6 @@ public int getResourceDescriptorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -689,8 +621,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -713,8 +643,6 @@ public Builder setResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -734,8 +662,6 @@ public Builder setResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -757,8 +683,6 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -781,8 +705,6 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -802,8 +724,6 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -823,8 +743,6 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -836,7 +754,8 @@ public Builder addAllResourceDescriptors(
         java.lang.Iterable values) {
       if (resourceDescriptorsBuilder_ == null) {
         ensureResourceDescriptorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDescriptors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, resourceDescriptors_);
         onChanged();
       } else {
         resourceDescriptorsBuilder_.addAllMessages(values);
@@ -844,8 +763,6 @@ public Builder addAllResourceDescriptors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -864,8 +781,6 @@ public Builder clearResourceDescriptors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -884,8 +799,6 @@ public Builder removeResourceDescriptors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -898,8 +811,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors
       return getResourceDescriptorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -910,14 +821,11 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors
     public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(
         int index) {
       if (resourceDescriptorsBuilder_ == null) {
-        return resourceDescriptors_.get(index);
-      } else {
+        return resourceDescriptors_.get(index);  } else {
         return resourceDescriptorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -925,8 +833,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
      *
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
-    public java.util.List
-        getResourceDescriptorsOrBuilderList() {
+    public java.util.List 
+         getResourceDescriptorsOrBuilderList() {
       if (resourceDescriptorsBuilder_ != null) {
         return resourceDescriptorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -934,8 +842,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
       }
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -944,12 +850,10 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder() {
-      return getResourceDescriptorsFieldBuilder()
-          .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getResourceDescriptorsFieldBuilder().addBuilder(
+          com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -959,12 +863,10 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder(
         int index) {
-      return getResourceDescriptorsFieldBuilder()
-          .addBuilder(index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getResourceDescriptorsFieldBuilder().addBuilder(
+          index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -972,22 +874,16 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      *
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
-    public java.util.List
-        getResourceDescriptorsBuilderList() {
+    public java.util.List 
+         getResourceDescriptorsBuilderList() {
       return getResourceDescriptorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MonitoredResourceDescriptor,
-            com.google.api.MonitoredResourceDescriptor.Builder,
-            com.google.api.MonitoredResourceDescriptorOrBuilder>
+        com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> 
         getResourceDescriptorsFieldBuilder() {
       if (resourceDescriptorsBuilder_ == null) {
-        resourceDescriptorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.api.MonitoredResourceDescriptor,
-                com.google.api.MonitoredResourceDescriptor.Builder,
-                com.google.api.MonitoredResourceDescriptorOrBuilder>(
+        resourceDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>(
                 resourceDescriptors_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -999,8 +895,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1008,13 +902,13 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1023,8 +917,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1032,14 +924,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,8 +940,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1056,22 +947,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1079,7 +966,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1089,8 +975,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1098,23 +982,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1124,43 +1006,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) - private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - getDefaultInstance() { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,8 +1052,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java index 9d222b02412e..09db6c9522d6 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMonitoredResourceDescriptorsResponseOrBuilder - extends +public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -33,10 +15,9 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  java.util.List getResourceDescriptorsList();
+  java.util.List 
+      getResourceDescriptorsList();
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -46,8 +27,6 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    */
   com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index);
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -57,8 +36,6 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    */
   int getResourceDescriptorsCount();
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -66,11 +43,9 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  java.util.List
+  java.util.List 
       getResourceDescriptorsOrBuilderList();
   /**
-   *
-   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -78,11 +53,10 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(int index);
+  com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -90,13 +64,10 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -104,8 +75,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java index 752d76a55d9e..be08fe044917 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListNotificationChannelDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsRequest} */ -public final class ListNotificationChannelDescriptorsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationChannelDescriptorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) ListNotificationChannelDescriptorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationChannelDescriptorsRequest.newBuilder() to construct. - private ListNotificationChannelDescriptorsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationChannelDescriptorsRequest() { name_ = ""; pageToken_ = ""; @@ -46,32 +26,28 @@ private ListNotificationChannelDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationChannelDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -86,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -98,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -121,18 +93,17 @@ public java.lang.String getName() {
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -143,8 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -152,7 +121,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -161,12 +129,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -174,7 +139,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -183,15 +147,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -199,15 +162,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -216,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -248,7 +212,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -264,17 +229,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other = - (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) obj; + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other = (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,138 +265,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListNotificationChannelDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) com.google.monitoring.v3.ListNotificationChannelDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); } - // Construct using - // com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,16 +401,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - getDefaultInstanceForType() { - return com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - .getDefaultInstance(); + public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstanceForType() { + return com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance(); } @java.lang.Override @@ -464,17 +422,13 @@ public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest build( @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result = - new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result = new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result) { + private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -491,51 +445,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) { - return mergeFrom( - (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other) { - if (other - == com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other) { + if (other == com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -575,31 +524,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,13 +554,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -630,16 +572,14 @@ public Builder mergeFrom(
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -648,8 +588,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -664,17 +602,16 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -682,8 +619,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -698,25 +633,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -731,10 +660,7 @@ public Builder setName(java.lang.String value) {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -744,8 +670,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -760,17 +684,13 @@ public Builder clearName() {
      * operation, instead.
      * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -778,10 +698,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -789,7 +707,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -797,8 +714,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -806,7 +721,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -818,8 +732,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -827,7 +739,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -839,8 +750,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -848,13 +757,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -863,8 +772,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -872,14 +779,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -887,8 +795,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -896,22 +802,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -919,7 +821,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -929,8 +830,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -938,23 +837,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -964,45 +861,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) - private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - getDefaultInstance() { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1014,8 +907,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java index bbaf967876fc..b9ac99139f1d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelDescriptorsRequestOrBuilder - extends +public interface ListNotificationChannelDescriptorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -40,16 +22,11 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -64,17 +41,13 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
    * operation, instead.
    * 
* - * - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -82,14 +55,11 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -97,13 +67,10 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -111,8 +78,8 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java index ee0c3be344fd..94f86bb82f20 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListNotificationChannelDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsResponse} */ -public final class ListNotificationChannelDescriptorsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationChannelDescriptorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) ListNotificationChannelDescriptorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationChannelDescriptorsResponse.newBuilder() to construct. - private ListNotificationChannelDescriptorsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationChannelDescriptorsResponse() { channelDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,116 +26,94 @@ private ListNotificationChannelDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationChannelDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); } public static final int CHANNEL_DESCRIPTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - channelDescriptors_; + private java.util.List channelDescriptors_; /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ @java.lang.Override - public java.util.List - getChannelDescriptorsList() { + public java.util.List getChannelDescriptorsList() { return channelDescriptors_; } /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getChannelDescriptorsOrBuilderList() { return channelDescriptors_; } /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ @java.lang.Override public int getChannelDescriptorsCount() { return channelDescriptors_.size(); } /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index) { return channelDescriptors_.get(index); } /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ @java.lang.Override - public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder - getChannelDescriptorsOrBuilder(int index) { + public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( + int index) { return channelDescriptors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -164,7 +122,6 @@ public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescript
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -173,15 +130,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -190,15 +146,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -207,7 +164,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < channelDescriptors_.size(); i++) { output.writeMessage(1, channelDescriptors_.get(i)); } @@ -236,8 +193,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < channelDescriptors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, channelDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, channelDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -250,16 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other = - (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) obj; + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other = (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) obj; - if (!getChannelDescriptorsList().equals(other.getChannelDescriptorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getChannelDescriptorsList() + .equals(other.getChannelDescriptorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,138 +241,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListNotificationChannelDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) com.google.monitoring.v3.ListNotificationChannelDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); } - // Construct using - // com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -431,16 +382,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - getDefaultInstanceForType() { - return com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - .getDefaultInstance(); + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstanceForType() { + return com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance(); } @java.lang.Override @@ -454,18 +403,14 @@ public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse build @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result = - new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(this); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result = new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { if (channelDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { channelDescriptors_ = java.util.Collections.unmodifiableList(channelDescriptors_); @@ -477,8 +422,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { + private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -489,51 +433,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) { - return mergeFrom( - (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other) { - if (other - == com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other) { + if (other == com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance()) return this; if (channelDescriptorsBuilder_ == null) { if (!other.channelDescriptors_.isEmpty()) { if (channelDescriptors_.isEmpty()) { @@ -552,10 +491,9 @@ public Builder mergeFrom( channelDescriptorsBuilder_ = null; channelDescriptors_ = other.channelDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - channelDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChannelDescriptorsFieldBuilder() - : null; + channelDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChannelDescriptorsFieldBuilder() : null; } else { channelDescriptorsBuilder_.addAllMessages(other.channelDescriptors_); } @@ -592,33 +530,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.NotificationChannelDescriptor m = - input.readMessage( - com.google.monitoring.v3.NotificationChannelDescriptor.parser(), - extensionRegistry); - if (channelDescriptorsBuilder_ == null) { - ensureChannelDescriptorsIsMutable(); - channelDescriptors_.add(m); - } else { - channelDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.NotificationChannelDescriptor m = + input.readMessage( + com.google.monitoring.v3.NotificationChannelDescriptor.parser(), + extensionRegistry); + if (channelDescriptorsBuilder_ == null) { + ensureChannelDescriptorsIsMutable(); + channelDescriptors_.add(m); + } else { + channelDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -628,40 +563,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - channelDescriptors_ = java.util.Collections.emptyList(); - + private java.util.List channelDescriptors_ = + java.util.Collections.emptyList(); private void ensureChannelDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - channelDescriptors_ = - new java.util.ArrayList( - channelDescriptors_); + channelDescriptors_ = new java.util.ArrayList(channelDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, - com.google.monitoring.v3.NotificationChannelDescriptor.Builder, - com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> - channelDescriptorsBuilder_; + com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> channelDescriptorsBuilder_; /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public java.util.List - getChannelDescriptorsList() { + public java.util.List getChannelDescriptorsList() { if (channelDescriptorsBuilder_ == null) { return java.util.Collections.unmodifiableList(channelDescriptors_); } else { @@ -669,15 +593,12 @@ private void ensureChannelDescriptorsIsMutable() { } } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public int getChannelDescriptorsCount() { if (channelDescriptorsBuilder_ == null) { @@ -687,15 +608,12 @@ public int getChannelDescriptorsCount() { } } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index) { if (channelDescriptorsBuilder_ == null) { @@ -705,15 +623,12 @@ public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescript } } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder setChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor value) { @@ -730,15 +645,12 @@ public Builder setChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder setChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -752,18 +664,14 @@ public Builder setChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public Builder addChannelDescriptors( - com.google.monitoring.v3.NotificationChannelDescriptor value) { + public Builder addChannelDescriptors(com.google.monitoring.v3.NotificationChannelDescriptor value) { if (channelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +685,12 @@ public Builder addChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder addChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor value) { @@ -802,15 +707,12 @@ public Builder addChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder addChannelDescriptors( com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -824,15 +726,12 @@ public Builder addChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder addChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -846,22 +745,19 @@ public Builder addChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder addAllChannelDescriptors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (channelDescriptorsBuilder_ == null) { ensureChannelDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channelDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, channelDescriptors_); onChanged(); } else { channelDescriptorsBuilder_.addAllMessages(values); @@ -869,15 +765,12 @@ public Builder addAllChannelDescriptors( return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder clearChannelDescriptors() { if (channelDescriptorsBuilder_ == null) { @@ -890,15 +783,12 @@ public Builder clearChannelDescriptors() { return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ public Builder removeChannelDescriptors(int index) { if (channelDescriptorsBuilder_ == null) { @@ -911,52 +801,42 @@ public Builder removeChannelDescriptors(int index) { return this; } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder - getChannelDescriptorsBuilder(int index) { + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder getChannelDescriptorsBuilder( + int index) { return getChannelDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder - getChannelDescriptorsOrBuilder(int index) { + public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( + int index) { if (channelDescriptorsBuilder_ == null) { - return channelDescriptors_.get(index); - } else { + return channelDescriptors_.get(index); } else { return channelDescriptorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public java.util.List - getChannelDescriptorsOrBuilderList() { + public java.util.List + getChannelDescriptorsOrBuilderList() { if (channelDescriptorsBuilder_ != null) { return channelDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -964,65 +844,48 @@ public Builder removeChannelDescriptors(int index) { } } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder - addChannelDescriptorsBuilder() { - return getChannelDescriptorsFieldBuilder() - .addBuilder(com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannelDescriptorsBuilder() { + return getChannelDescriptorsFieldBuilder().addBuilder( + com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder - addChannelDescriptorsBuilder(int index) { - return getChannelDescriptorsFieldBuilder() - .addBuilder( - index, com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannelDescriptorsBuilder( + int index) { + return getChannelDescriptorsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); } /** - * - * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - public java.util.List - getChannelDescriptorsBuilderList() { + public java.util.List + getChannelDescriptorsBuilderList() { return getChannelDescriptorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, - com.google.monitoring.v3.NotificationChannelDescriptor.Builder, - com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> + com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> getChannelDescriptorsFieldBuilder() { if (channelDescriptorsBuilder_ == null) { - channelDescriptorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, - com.google.monitoring.v3.NotificationChannelDescriptor.Builder, - com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder>( + channelDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder>( channelDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1034,8 +897,6 @@ public Builder removeChannelDescriptors(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1044,13 +905,13 @@ public Builder removeChannelDescriptors(int index) {
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1059,8 +920,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1069,14 +928,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1084,8 +944,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1094,22 +952,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1118,7 +972,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1128,8 +981,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1138,23 +989,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,45 +1013,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) - private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - getDefaultInstance() { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1214,8 +1059,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse - getDefaultInstanceForType() { + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java index 8cd5e6b6c9e5..b18dff7674ba 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelDescriptorsResponseOrBuilder - extends +public interface ListNotificationChannelDescriptorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - java.util.List + java.util.List getChannelDescriptorsList(); /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index); /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ int getChannelDescriptorsCount(); /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ - java.util.List + java.util.List getChannelDescriptorsOrBuilderList(); /** - * - * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; - * + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; */ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( int index); /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -98,13 +65,10 @@ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescri
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -113,8 +77,8 @@ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescri
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java index a9e946bff224..3121f0999496 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListNotificationChannels` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsRequest} */ -public final class ListNotificationChannelsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationChannelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelsRequest) ListNotificationChannelsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationChannelsRequest.newBuilder() to construct. - private ListNotificationChannelsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationChannelsRequest() { name_ = ""; filter_ = ""; @@ -47,35 +28,32 @@ private ListNotificationChannelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationChannelsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsRequest.class, - com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsRequest.class, com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -87,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * operation.
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -99,18 +74,18 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -122,18 +97,17 @@ public java.lang.String getName() {
    * operation.
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -142,12 +116,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -157,7 +128,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 6; - * * @return The filter. */ @java.lang.Override @@ -166,15 +136,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -184,15 +153,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 6; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -201,12 +171,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -217,7 +184,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 7; - * * @return The orderBy. */ @java.lang.Override @@ -226,15 +192,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -245,15 +210,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -264,8 +230,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -273,7 +237,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -282,12 +245,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -295,7 +255,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -304,15 +263,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -320,15 +278,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -337,7 +296,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +307,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } @@ -375,7 +334,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -397,19 +357,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelsRequest other = - (com.google.monitoring.v3.ListNotificationChannelsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListNotificationChannelsRequest other = (com.google.monitoring.v3.ListNotificationChannelsRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,136 +401,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListNotificationChannelsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListNotificationChannels` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelsRequest) com.google.monitoring.v3.ListNotificationChannelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsRequest.class, - com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsRequest.class, com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListNotificationChannelsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override @@ -601,11 +560,8 @@ public com.google.monitoring.v3.ListNotificationChannelsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelsRequest buildPartial() { - com.google.monitoring.v3.ListNotificationChannelsRequest result = - new com.google.monitoring.v3.ListNotificationChannelsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListNotificationChannelsRequest result = new com.google.monitoring.v3.ListNotificationChannelsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -633,39 +589,38 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelsRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelsRequest) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsRequest)other); } else { super.mergeFrom(other); return this; @@ -673,8 +628,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsRequest other) { - if (other == com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -724,43 +678,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 50 - case 58: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 50 + case 58: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,16 +718,14 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -791,16 +737,14 @@ public Builder mergeFrom(
      * operation.
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -809,11 +753,10 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -825,17 +768,16 @@ public java.lang.String getName() {
      * operation.
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -843,11 +785,10 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -859,28 +800,23 @@ public com.google.protobuf.ByteString getNameBytes() {
      * operation.
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -892,10 +828,7 @@ public Builder setName(java.lang.String value) {
      * operation.
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -905,11 +838,10 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-     * which to execute the request. The format is:
+     * Required. The
+     * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+     * to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]
      *
@@ -921,17 +853,13 @@ public Builder clearName() {
      * operation.
      * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -941,8 +869,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -952,13 +878,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 6; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -967,8 +893,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -978,14 +902,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 6; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,8 +918,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -1004,22 +927,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 6; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -1029,7 +948,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 6; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1039,8 +957,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -1050,14 +966,12 @@ public Builder clearFilter() {
      * 
* * string filter = 6; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1067,8 +981,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1079,13 +991,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 7; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1094,8 +1006,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1106,14 +1016,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1121,8 +1032,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1133,22 +1042,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 7; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1159,7 +1064,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 7; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1169,8 +1073,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1181,14 +1083,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 7; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1196,10 +1096,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1207,7 +1105,6 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -1215,8 +1112,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1224,7 +1119,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1236,8 +1130,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1245,7 +1137,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1257,8 +1148,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1266,13 +1155,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1281,8 +1170,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1290,14 +1177,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1305,8 +1193,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1314,22 +1200,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1337,7 +1219,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1347,8 +1228,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1356,23 +1235,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1382,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) private static final com.google.monitoring.v3.ListNotificationChannelsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelsRequest(); } @@ -1396,27 +1273,27 @@ public static com.google.monitoring.v3.ListNotificationChannelsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1431,4 +1308,6 @@ public com.google.protobuf.Parser getParserForT public com.google.monitoring.v3.ListNotificationChannelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java index 7d631f45ec8e..93e92683ee2c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java @@ -1,34 +1,17 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelsRequestOrBuilder - extends +public interface ListNotificationChannelsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -40,19 +23,15 @@ public interface ListNotificationChannelsRequestOrBuilder
    * operation.
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-   * which to execute the request. The format is:
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+   * to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]
    *
@@ -64,17 +43,13 @@ public interface ListNotificationChannelsRequestOrBuilder
    * operation.
    * 
* - * - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -84,13 +59,10 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string filter = 6; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -100,14 +72,12 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string filter = 6; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -118,13 +88,10 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string order_by = 7; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -135,14 +102,12 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -150,14 +115,11 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -165,13 +127,10 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -179,8 +138,8 @@ public interface ListNotificationChannelsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java index 05d1a6224539..661bffa174b4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListNotificationChannels` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsResponse} */ -public final class ListNotificationChannelsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationChannelsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelsResponse) ListNotificationChannelsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationChannelsResponse.newBuilder() to construct. - private ListNotificationChannelsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationChannelsResponse() { notificationChannels_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +26,28 @@ private ListNotificationChannelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationChannelsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsResponse.class, - com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsResponse.class, com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); } public static final int NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List notificationChannels_; /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -78,13 +55,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ @java.lang.Override - public java.util.List - getNotificationChannelsList() { + public java.util.List getNotificationChannelsList() { return notificationChannels_; } /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -92,13 +66,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationChannelsOrBuilderList() { return notificationChannels_; } /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -110,8 +82,6 @@ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -123,8 +93,6 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannels(int return notificationChannels_.get(index); } /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -138,12 +106,9 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -152,7 +117,6 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -161,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -178,15 +141,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -197,15 +161,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** - * - * *
    * The total number of notification channels in all pages. This number is only
    * an estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -214,7 +175,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -249,11 +210,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < notificationChannels_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, notificationChannels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, notificationChannels_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,17 +225,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelsResponse other = - (com.google.monitoring.v3.ListNotificationChannelsResponse) obj; - - if (!getNotificationChannelsList().equals(other.getNotificationChannelsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.monitoring.v3.ListNotificationChannelsResponse other = (com.google.monitoring.v3.ListNotificationChannelsResponse) obj; + + if (!getNotificationChannelsList() + .equals(other.getNotificationChannelsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,136 +263,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListNotificationChannelsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListNotificationChannels` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelsResponse) com.google.monitoring.v3.ListNotificationChannelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsResponse.class, - com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsResponse.class, com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListNotificationChannelsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override @@ -467,18 +426,14 @@ public com.google.monitoring.v3.ListNotificationChannelsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelsResponse buildPartial() { - com.google.monitoring.v3.ListNotificationChannelsResponse result = - new com.google.monitoring.v3.ListNotificationChannelsResponse(this); + com.google.monitoring.v3.ListNotificationChannelsResponse result = new com.google.monitoring.v3.ListNotificationChannelsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListNotificationChannelsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListNotificationChannelsResponse result) { if (notificationChannelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notificationChannels_ = java.util.Collections.unmodifiableList(notificationChannels_); @@ -504,39 +459,38 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelsResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelsResponse) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsResponse)other); } else { super.mergeFrom(other); return this; @@ -544,8 +498,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsResponse other) { - if (other == com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance()) return this; if (notificationChannelsBuilder_ == null) { if (!other.notificationChannels_.isEmpty()) { if (notificationChannels_.isEmpty()) { @@ -564,10 +517,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsRespon notificationChannelsBuilder_ = null; notificationChannels_ = other.notificationChannels_; bitField0_ = (bitField0_ & ~0x00000001); - notificationChannelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationChannelsFieldBuilder() - : null; + notificationChannelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationChannelsFieldBuilder() : null; } else { notificationChannelsBuilder_.addAllMessages(other.notificationChannels_); } @@ -607,38 +559,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.monitoring.v3.NotificationChannel m = - input.readMessage( - com.google.monitoring.v3.NotificationChannel.parser(), extensionRegistry); - if (notificationChannelsBuilder_ == null) { - ensureNotificationChannelsIsMutable(); - notificationChannels_.add(m); - } else { - notificationChannelsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.monitoring.v3.NotificationChannel m = + input.readMessage( + com.google.monitoring.v3.NotificationChannel.parser(), + extensionRegistry); + if (notificationChannelsBuilder_ == null) { + ensureNotificationChannelsIsMutable(); + notificationChannels_.add(m); + } else { + notificationChannelsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,38 +597,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List notificationChannels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationChannelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationChannels_ = - new java.util.ArrayList( - notificationChannels_); + notificationChannels_ = new java.util.ArrayList(notificationChannels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> - notificationChannelsBuilder_; + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelsBuilder_; /** - * - * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List - getNotificationChannelsList() { + public java.util.List getNotificationChannelsList() { if (notificationChannelsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationChannels_); } else { @@ -687,8 +626,6 @@ private void ensureNotificationChannelsIsMutable() { } } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -703,8 +640,6 @@ public int getNotificationChannelsCount() { } } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -719,8 +654,6 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannels(int } } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -742,8 +675,6 @@ public Builder setNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -762,8 +693,6 @@ public Builder setNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -784,8 +713,6 @@ public Builder addNotificationChannels(com.google.monitoring.v3.NotificationChan return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -807,8 +734,6 @@ public Builder addNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -827,8 +752,6 @@ public Builder addNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -847,8 +770,6 @@ public Builder addNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -859,7 +780,8 @@ public Builder addAllNotificationChannels( java.lang.Iterable values) { if (notificationChannelsBuilder_ == null) { ensureNotificationChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationChannels_); onChanged(); } else { notificationChannelsBuilder_.addAllMessages(values); @@ -867,8 +789,6 @@ public Builder addAllNotificationChannels( return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -886,8 +806,6 @@ public Builder clearNotificationChannels() { return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -905,8 +823,6 @@ public Builder removeNotificationChannels(int index) { return this; } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -918,8 +834,6 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelsFieldBuilder().getBuilder(index); } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -929,22 +843,19 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder( int index) { if (notificationChannelsBuilder_ == null) { - return notificationChannels_.get(index); - } else { + return notificationChannels_.get(index); } else { return notificationChannelsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List - getNotificationChannelsOrBuilderList() { + public java.util.List + getNotificationChannelsOrBuilderList() { if (notificationChannelsBuilder_ != null) { return notificationChannelsBuilder_.getMessageOrBuilderList(); } else { @@ -952,8 +863,6 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan } } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -961,12 +870,10 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder() { - return getNotificationChannelsFieldBuilder() - .addBuilder(com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); + return getNotificationChannelsFieldBuilder().addBuilder( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /** - * - * *
      * The notification channels defined for the specified project.
      * 
@@ -975,34 +882,26 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder( int index) { - return getNotificationChannelsFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); + return getNotificationChannelsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /** - * - * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List - getNotificationChannelsBuilderList() { + public java.util.List + getNotificationChannelsBuilderList() { return getNotificationChannelsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelsFieldBuilder() { if (notificationChannelsBuilder_ == null) { - notificationChannelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder>( + notificationChannelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( notificationChannels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1014,8 +913,6 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1024,13 +921,13 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1039,8 +936,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1049,14 +944,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1064,8 +960,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1074,22 +968,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1098,7 +988,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1108,8 +997,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1118,14 +1005,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1133,17 +1018,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1151,15 +1033,12 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1171,15 +1050,12 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1188,9 +1064,9 @@ public Builder clearTotalSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) private static final com.google.monitoring.v3.ListNotificationChannelsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelsResponse(); } @@ -1214,27 +1090,27 @@ public static com.google.monitoring.v3.ListNotificationChannelsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,4 +1125,6 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.ListNotificationChannelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java index ce894ac50bf1..273b5d371f12 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelsResponseOrBuilder - extends +public interface ListNotificationChannelsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - java.util.List getNotificationChannelsList(); + java.util.List + getNotificationChannelsList(); /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -44,8 +25,6 @@ public interface ListNotificationChannelsResponseOrBuilder */ com.google.monitoring.v3.NotificationChannel getNotificationChannels(int index); /** - * - * *
    * The notification channels defined for the specified project.
    * 
@@ -54,30 +33,25 @@ public interface ListNotificationChannelsResponseOrBuilder */ int getNotificationChannelsCount(); /** - * - * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - java.util.List + java.util.List getNotificationChannelsOrBuilderList(); /** - * - * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder(int index); + com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -86,13 +60,10 @@ public interface ListNotificationChannelsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -101,21 +72,18 @@ public interface ListNotificationChannelsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of notification channels in all pages. This number is only
    * an estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java index 38ce326631cc..f487d74f5bd6 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListServiceLevelObjectives` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesRequest} */ -public final class ListServiceLevelObjectivesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServiceLevelObjectivesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServiceLevelObjectivesRequest) ListServiceLevelObjectivesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServiceLevelObjectivesRequest.newBuilder() to construct. - private ListServiceLevelObjectivesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListServiceLevelObjectivesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServiceLevelObjectivesRequest() { parent_ = ""; filter_ = ""; @@ -47,32 +28,28 @@ private ListServiceLevelObjectivesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServiceLevelObjectivesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -81,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -110,18 +83,17 @@ public java.lang.String getParent() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,18 +102,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -150,29 +118,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -183,15 +151,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -200,12 +165,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -213,7 +175,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -222,15 +183,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -238,15 +198,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -257,8 +218,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VIEW_FIELD_NUMBER = 5; private int view_ = 0; /** - * - * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -267,16 +226,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -285,20 +240,14 @@ public int getViewValue() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The view. */ - @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = - com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { + com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,13 +292,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -358,18 +310,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServiceLevelObjectivesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListServiceLevelObjectivesRequest other = - (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListServiceLevelObjectivesRequest other = (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -398,136 +353,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListServiceLevelObjectivesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListServiceLevelObjectives` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServiceLevelObjectivesRequest) com.google.monitoring.v3.ListServiceLevelObjectivesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListServiceLevelObjectivesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -541,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override @@ -562,11 +512,8 @@ public com.google.monitoring.v3.ListServiceLevelObjectivesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListServiceLevelObjectivesRequest buildPartial() { - com.google.monitoring.v3.ListServiceLevelObjectivesRequest result = - new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListServiceLevelObjectivesRequest result = new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -594,39 +541,38 @@ private void buildPartial0(com.google.monitoring.v3.ListServiceLevelObjectivesRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServiceLevelObjectivesRequest) { - return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesRequest) other); + return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesRequest)other); } else { super.mergeFrom(other); return this; @@ -634,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesRequest other) { - if (other == com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -683,43 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -729,13 +668,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -744,16 +680,14 @@ public Builder mergeFrom(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -762,8 +696,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -772,17 +704,16 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -790,8 +721,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -800,25 +729,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -827,10 +750,7 @@ public Builder setParent(java.lang.String value) {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -840,8 +760,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -850,17 +768,13 @@ public Builder clearParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -870,20 +784,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -892,21 +804,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -914,35 +825,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -952,21 +856,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -974,17 +874,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -992,15 +889,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1012,15 +906,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1032,8 +923,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1041,13 +930,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1056,8 +945,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1065,14 +952,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1080,8 +968,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1089,22 +975,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1112,7 +994,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1122,8 +1003,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1131,14 +1010,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; @@ -1148,8 +1025,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1158,16 +1033,12 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1176,7 +1047,6 @@ public int getViewValue() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1187,8 +1057,6 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1197,20 +1065,14 @@ public Builder setViewValue(int value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = - com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED - : result; + com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; } /** - * - * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1219,7 +1081,6 @@ public com.google.monitoring.v3.ServiceLevelObjective.View getView() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @param value The view to set. * @return This builder for chaining. */ @@ -1233,8 +1094,6 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value return this; } /** - * - * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1243,7 +1102,6 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return This builder for chaining. */ public Builder clearView() { @@ -1252,9 +1110,9 @@ public Builder clearView() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,12 +1122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServiceLevelObjectivesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesRequest) private static final com.google.monitoring.v3.ListServiceLevelObjectivesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(); } @@ -1278,27 +1136,27 @@ public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceLevelObjectivesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServiceLevelObjectivesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,4 +1171,6 @@ public com.google.protobuf.Parser getParserFo public com.google.monitoring.v3.ListServiceLevelObjectivesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java index e63d45af24e8..e52d370dbe44 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServiceLevelObjectivesRequestOrBuilder - extends +public interface ListServiceLevelObjectivesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServiceLevelObjectivesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -34,16 +16,11 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -52,56 +29,44 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -109,13 +74,10 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -123,14 +85,12 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -139,13 +99,10 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -154,7 +111,6 @@ public interface ListServiceLevelObjectivesRequestOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; - * * @return The view. */ com.google.monitoring.v3.ServiceLevelObjective.View getView(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java index 5568cc3f7d5e..a10225eaf010 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListServiceLevelObjectives` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesResponse} */ -public final class ListServiceLevelObjectivesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServiceLevelObjectivesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServiceLevelObjectivesResponse) ListServiceLevelObjectivesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServiceLevelObjectivesResponse.newBuilder() to construct. - private ListServiceLevelObjectivesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListServiceLevelObjectivesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServiceLevelObjectivesResponse() { serviceLevelObjectives_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +26,28 @@ private ListServiceLevelObjectivesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServiceLevelObjectivesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); } public static final int SERVICE_LEVEL_OBJECTIVES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List serviceLevelObjectives_; /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -78,13 +55,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ @java.lang.Override - public java.util.List - getServiceLevelObjectivesList() { + public java.util.List getServiceLevelObjectivesList() { return serviceLevelObjectives_; } /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -92,13 +66,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServiceLevelObjectivesOrBuilderList() { return serviceLevelObjectives_; } /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -110,8 +82,6 @@ public int getServiceLevelObjectivesCount() { return serviceLevelObjectives_.size(); } /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -123,8 +93,6 @@ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives( return serviceLevelObjectives_.get(index); } /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -138,12 +106,9 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -151,7 +116,6 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -176,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -193,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < serviceLevelObjectives_.size(); i++) { output.writeMessage(1, serviceLevelObjectives_.get(i)); } @@ -222,9 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < serviceLevelObjectives_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, serviceLevelObjectives_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, serviceLevelObjectives_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,17 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServiceLevelObjectivesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListServiceLevelObjectivesResponse other = - (com.google.monitoring.v3.ListServiceLevelObjectivesResponse) obj; + com.google.monitoring.v3.ListServiceLevelObjectivesResponse other = (com.google.monitoring.v3.ListServiceLevelObjectivesResponse) obj; - if (!getServiceLevelObjectivesList().equals(other.getServiceLevelObjectivesList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServiceLevelObjectivesList() + .equals(other.getServiceLevelObjectivesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,136 +234,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListServiceLevelObjectivesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListServiceLevelObjectives` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServiceLevelObjectivesResponse) com.google.monitoring.v3.ListServiceLevelObjectivesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListServiceLevelObjectivesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override @@ -438,18 +396,14 @@ public com.google.monitoring.v3.ListServiceLevelObjectivesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListServiceLevelObjectivesResponse buildPartial() { - com.google.monitoring.v3.ListServiceLevelObjectivesResponse result = - new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(this); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse result = new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListServiceLevelObjectivesResponse result) { if (serviceLevelObjectivesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { serviceLevelObjectives_ = java.util.Collections.unmodifiableList(serviceLevelObjectives_); @@ -472,39 +426,38 @@ private void buildPartial0(com.google.monitoring.v3.ListServiceLevelObjectivesRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServiceLevelObjectivesResponse) { - return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesResponse) other); + return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesResponse)other); } else { super.mergeFrom(other); return this; @@ -512,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesResponse other) { - if (other == com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance()) return this; if (serviceLevelObjectivesBuilder_ == null) { if (!other.serviceLevelObjectives_.isEmpty()) { if (serviceLevelObjectives_.isEmpty()) { @@ -532,10 +484,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesResp serviceLevelObjectivesBuilder_ = null; serviceLevelObjectives_ = other.serviceLevelObjectives_; bitField0_ = (bitField0_ & ~0x00000001); - serviceLevelObjectivesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServiceLevelObjectivesFieldBuilder() - : null; + serviceLevelObjectivesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServiceLevelObjectivesFieldBuilder() : null; } else { serviceLevelObjectivesBuilder_.addAllMessages(other.serviceLevelObjectives_); } @@ -572,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.ServiceLevelObjective m = - input.readMessage( - com.google.monitoring.v3.ServiceLevelObjective.parser(), extensionRegistry); - if (serviceLevelObjectivesBuilder_ == null) { - ensureServiceLevelObjectivesIsMutable(); - serviceLevelObjectives_.add(m); - } else { - serviceLevelObjectivesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.ServiceLevelObjective m = + input.readMessage( + com.google.monitoring.v3.ServiceLevelObjective.parser(), + extensionRegistry); + if (serviceLevelObjectivesBuilder_ == null) { + ensureServiceLevelObjectivesIsMutable(); + serviceLevelObjectives_.add(m); + } else { + serviceLevelObjectivesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -607,39 +556,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List serviceLevelObjectives_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServiceLevelObjectivesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serviceLevelObjectives_ = - new java.util.ArrayList( - serviceLevelObjectives_); + serviceLevelObjectives_ = new java.util.ArrayList(serviceLevelObjectives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> - serviceLevelObjectivesBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectivesBuilder_; /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - public java.util.List - getServiceLevelObjectivesList() { + public java.util.List getServiceLevelObjectivesList() { if (serviceLevelObjectivesBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceLevelObjectives_); } else { @@ -647,14 +585,11 @@ private void ensureServiceLevelObjectivesIsMutable() { } } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public int getServiceLevelObjectivesCount() { if (serviceLevelObjectivesBuilder_ == null) { @@ -664,14 +599,11 @@ public int getServiceLevelObjectivesCount() { } } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives(int index) { if (serviceLevelObjectivesBuilder_ == null) { @@ -681,14 +613,11 @@ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives( } } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder setServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective value) { @@ -705,14 +634,11 @@ public Builder setServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder setServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -726,14 +652,11 @@ public Builder setServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder addServiceLevelObjectives(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectivesBuilder_ == null) { @@ -749,14 +672,11 @@ public Builder addServiceLevelObjectives(com.google.monitoring.v3.ServiceLevelOb return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder addServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective value) { @@ -773,14 +693,11 @@ public Builder addServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder addServiceLevelObjectives( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -794,14 +711,11 @@ public Builder addServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder addServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -815,20 +729,18 @@ public Builder addServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder addAllServiceLevelObjectives( java.lang.Iterable values) { if (serviceLevelObjectivesBuilder_ == null) { ensureServiceLevelObjectivesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceLevelObjectives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceLevelObjectives_); onChanged(); } else { serviceLevelObjectivesBuilder_.addAllMessages(values); @@ -836,14 +748,11 @@ public Builder addAllServiceLevelObjectives( return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder clearServiceLevelObjectives() { if (serviceLevelObjectivesBuilder_ == null) { @@ -856,14 +765,11 @@ public Builder clearServiceLevelObjectives() { return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public Builder removeServiceLevelObjectives(int index) { if (serviceLevelObjectivesBuilder_ == null) { @@ -876,49 +782,39 @@ public Builder removeServiceLevelObjectives(int index) { return this; } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectivesBuilder( int index) { return getServiceLevelObjectivesFieldBuilder().getBuilder(index); } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder - getServiceLevelObjectivesOrBuilder(int index) { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectivesOrBuilder( + int index) { if (serviceLevelObjectivesBuilder_ == null) { - return serviceLevelObjectives_.get(index); - } else { + return serviceLevelObjectives_.get(index); } else { return serviceLevelObjectivesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - public java.util.List - getServiceLevelObjectivesOrBuilderList() { + public java.util.List + getServiceLevelObjectivesOrBuilderList() { if (serviceLevelObjectivesBuilder_ != null) { return serviceLevelObjectivesBuilder_.getMessageOrBuilderList(); } else { @@ -926,61 +822,45 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObj } } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder - addServiceLevelObjectivesBuilder() { - return getServiceLevelObjectivesFieldBuilder() - .addBuilder(com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); + public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObjectivesBuilder() { + return getServiceLevelObjectivesFieldBuilder().addBuilder( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObjectivesBuilder( int index) { - return getServiceLevelObjectivesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); + return getServiceLevelObjectivesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); } /** - * - * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; - * + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - public java.util.List - getServiceLevelObjectivesBuilderList() { + public java.util.List + getServiceLevelObjectivesBuilderList() { return getServiceLevelObjectivesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectivesFieldBuilder() { if (serviceLevelObjectivesBuilder_ == null) { - serviceLevelObjectivesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + serviceLevelObjectivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( serviceLevelObjectives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -992,8 +872,6 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObj private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1001,13 +879,13 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObj
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1025,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1040,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1049,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1072,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1082,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1091,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServiceLevelObjectivesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesResponse) private static final com.google.monitoring.v3.ListServiceLevelObjectivesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(); } @@ -1131,27 +997,27 @@ public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceLevelObjectivesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServiceLevelObjectivesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1166,4 +1032,6 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.ListServiceLevelObjectivesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java index d458abd95f95..8e3b46098492 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServiceLevelObjectivesResponseOrBuilder - extends +public interface ListServiceLevelObjectivesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServiceLevelObjectivesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - java.util.List getServiceLevelObjectivesList(); + java.util.List + getServiceLevelObjectivesList(); /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -44,8 +25,6 @@ public interface ListServiceLevelObjectivesResponseOrBuilder */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives(int index); /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -54,19 +33,15 @@ public interface ListServiceLevelObjectivesResponseOrBuilder */ int getServiceLevelObjectivesCount(); /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - java.util.List + java.util.List getServiceLevelObjectivesOrBuilderList(); /** - * - * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -77,8 +52,6 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective int index); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -86,13 +59,10 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -100,8 +70,8 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java index 5b242d097b72..263bad4be21f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListServices` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServicesRequest} */ -public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServicesRequest) ListServicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesRequest() { parent_ = ""; filter_ = ""; @@ -45,32 +27,28 @@ private ListServicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesRequest.class, - com.google.monitoring.v3.ListServicesRequest.Builder.class); + com.google.monitoring.v3.ListServicesRequest.class, com.google.monitoring.v3.ListServicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -110,18 +84,17 @@ public java.lang.String getParent() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,12 +103,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -159,7 +129,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -168,15 +137,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -200,15 +168,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -219,15 +188,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -236,12 +202,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -249,7 +212,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -258,15 +220,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -274,15 +235,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -291,7 +253,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -332,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -345,18 +308,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServicesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListServicesRequest other = - (com.google.monitoring.v3.ListServicesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListServicesRequest other = (com.google.monitoring.v3.ListServicesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,136 +347,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListServicesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListServicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListServicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListServices` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServicesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServicesRequest) com.google.monitoring.v3.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesRequest.class, - com.google.monitoring.v3.ListServicesRequest.Builder.class); + com.google.monitoring.v3.ListServicesRequest.class, com.google.monitoring.v3.ListServicesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListServicesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +485,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override @@ -544,11 +506,8 @@ public com.google.monitoring.v3.ListServicesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListServicesRequest buildPartial() { - com.google.monitoring.v3.ListServicesRequest result = - new com.google.monitoring.v3.ListServicesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListServicesRequest result = new com.google.monitoring.v3.ListServicesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -573,39 +532,38 @@ private void buildPartial0(com.google.monitoring.v3.ListServicesRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServicesRequest) { - return mergeFrom((com.google.monitoring.v3.ListServicesRequest) other); + return mergeFrom((com.google.monitoring.v3.ListServicesRequest)other); } else { super.mergeFrom(other); return this; @@ -658,37 +616,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,13 +651,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -714,16 +664,14 @@ public Builder mergeFrom(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -732,8 +680,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -743,17 +689,16 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -761,8 +706,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -772,25 +715,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -800,10 +737,7 @@ public Builder setParent(java.lang.String value) {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -813,8 +747,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -824,17 +756,13 @@ public Builder clearParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -844,8 +772,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -869,13 +795,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -884,8 +810,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -909,14 +833,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -924,8 +849,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -949,22 +872,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -988,7 +907,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -998,8 +916,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -1023,14 +939,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1038,17 +952,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -1056,15 +967,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1076,15 +984,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1096,8 +1001,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1105,13 +1008,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1120,8 +1023,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1129,14 +1030,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1144,8 +1046,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1153,22 +1053,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1176,7 +1072,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1186,8 +1081,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1195,23 +1088,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1221,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesRequest) private static final com.google.monitoring.v3.ListServicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServicesRequest(); } @@ -1235,27 +1126,27 @@ public static com.google.monitoring.v3.ListServicesRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1270,4 +1161,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java similarity index 77% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java index e9fde051fc24..0c19e4782b3b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServicesRequestOrBuilder - extends +public interface ListServicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -35,16 +17,11 @@ public interface ListServicesRequestOrBuilder
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -54,17 +31,13 @@ public interface ListServicesRequestOrBuilder
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -88,13 +61,10 @@ public interface ListServicesRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -118,28 +88,23 @@ public interface ListServicesRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -147,13 +112,10 @@ public interface ListServicesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -161,8 +123,8 @@ public interface ListServicesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java index 33e74211ed6c..db1e2ba4ab5d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListServices` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServicesResponse} */ -public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServicesResponse) ListServicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesResponse.class, - com.google.monitoring.v3.ListServicesResponse.Builder.class); + com.google.monitoring.v3.ListServicesResponse.class, com.google.monitoring.v3.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List services_; /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -81,8 +59,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -90,13 +66,11 @@ public java.util.List getServicesList() { * repeated .google.monitoring.v3.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -108,8 +82,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -121,8 +93,6 @@ public com.google.monitoring.v3.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -130,17 +100,15 @@ public com.google.monitoring.v3.Service getServices(int index) { * repeated .google.monitoring.v3.Service services = 1; */ @java.lang.Override - public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( + int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -148,7 +116,6 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index)
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServicesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListServicesResponse other = - (com.google.monitoring.v3.ListServicesResponse) obj; + com.google.monitoring.v3.ListServicesResponse other = (com.google.monitoring.v3.ListServicesResponse) obj; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +233,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListServicesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListServicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListServicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListServices` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServicesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServicesResponse) com.google.monitoring.v3.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesResponse.class, - com.google.monitoring.v3.ListServicesResponse.Builder.class); + com.google.monitoring.v3.ListServicesResponse.class, com.google.monitoring.v3.ListServicesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListServicesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override @@ -431,12 +396,9 @@ public com.google.monitoring.v3.ListServicesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListServicesResponse buildPartial() { - com.google.monitoring.v3.ListServicesResponse result = - new com.google.monitoring.v3.ListServicesResponse(this); + com.google.monitoring.v3.ListServicesResponse result = new com.google.monitoring.v3.ListServicesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -464,39 +426,38 @@ private void buildPartial0(com.google.monitoring.v3.ListServicesResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServicesResponse) { - return mergeFrom((com.google.monitoring.v3.ListServicesResponse) other); + return mergeFrom((com.google.monitoring.v3.ListServicesResponse)other); } else { super.mergeFrom(other); return this; @@ -523,10 +484,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListServicesResponse other) { servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServicesFieldBuilder() - : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServicesFieldBuilder() : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -563,31 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.Service m = - input.readMessage(com.google.monitoring.v3.Service.parser(), extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.Service m = + input.readMessage( + com.google.monitoring.v3.Service.parser(), + extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> - servicesBuilder_; + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> servicesBuilder_; /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -633,8 +585,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -649,8 +599,6 @@ public int getServicesCount() { } } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -665,15 +613,14 @@ public com.google.monitoring.v3.Service getServices(int index) { } } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder setServices(int index, com.google.monitoring.v3.Service value) { + public Builder setServices( + int index, com.google.monitoring.v3.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -687,8 +634,6 @@ public Builder setServices(int index, com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -707,8 +652,6 @@ public Builder setServices( return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -729,15 +672,14 @@ public Builder addServices(com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder addServices(int index, com.google.monitoring.v3.Service value) { + public Builder addServices( + int index, com.google.monitoring.v3.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,15 +693,14 @@ public Builder addServices(int index, com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder addServices(com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder addServices( + com.google.monitoring.v3.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -770,8 +711,6 @@ public Builder addServices(com.google.monitoring.v3.Service.Builder builderForVa return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -790,8 +729,6 @@ public Builder addServices( return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -802,7 +739,8 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -810,8 +748,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -829,8 +765,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -848,44 +782,39 @@ public Builder removeServices(int index) { return this; } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.Service.Builder getServicesBuilder(int index) { + public com.google.monitoring.v3.Service.Builder getServicesBuilder( + int index) { return getServicesFieldBuilder().getBuilder(index); } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( + int index) { if (servicesBuilder_ == null) { - return services_.get(index); - } else { + return services_.get(index); } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -893,8 +822,6 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) } } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
@@ -902,47 +829,42 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) * repeated .google.monitoring.v3.Service services = 1; */ public com.google.monitoring.v3.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder() - .addBuilder(com.google.monitoring.v3.Service.getDefaultInstance()); + return getServicesFieldBuilder().addBuilder( + com.google.monitoring.v3.Service.getDefaultInstance()); } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.Service.Builder addServicesBuilder(int index) { - return getServicesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.Service.getDefaultInstance()); + public com.google.monitoring.v3.Service.Builder addServicesBuilder( + int index) { + return getServicesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.Service.getDefaultInstance()); } /** - * - * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public java.util.List getServicesBuilderList() { + public java.util.List + getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder>( - services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( + services_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); services_ = null; } return servicesBuilder_; @@ -950,8 +872,6 @@ public java.util.List getServicesBuild private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -959,13 +879,13 @@ public java.util.List getServicesBuild
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -974,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -983,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -998,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1007,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1030,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1040,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1049,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesResponse) private static final com.google.monitoring.v3.ListServicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServicesResponse(); } @@ -1089,27 +997,27 @@ public static com.google.monitoring.v3.ListServicesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java index 4e0e57e634ad..c5573ae93f28 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServicesResponseOrBuilder - extends +public interface ListServicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -44,8 +25,6 @@ public interface ListServicesResponseOrBuilder */ com.google.monitoring.v3.Service getServices(int index); /** - * - * *
    * The `Service`s matching the specified filter.
    * 
@@ -54,29 +33,25 @@ public interface ListServicesResponseOrBuilder */ int getServicesCount(); /** - * - * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - java.util.List getServicesOrBuilderList(); + java.util.List + getServicesOrBuilderList(); /** - * - * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index); + com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( + int index); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -84,13 +59,10 @@ public interface ListServicesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -98,8 +70,8 @@ public interface ListServicesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java index fa700099591d..3e23e3f90da9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** - * - * *
  * The message definition for listing `Snooze`s associated with the given
  * `parent`, satisfying the optional `filter`.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.ListSnoozesRequest}
  */
-public final class ListSnoozesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSnoozesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListSnoozesRequest)
     ListSnoozesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSnoozesRequest.newBuilder() to construct.
   private ListSnoozesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSnoozesRequest() {
     parent_ = "";
     filter_ = "";
@@ -46,32 +28,28 @@ private ListSnoozesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSnoozesRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ListSnoozesRequest.class,
-            com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
+            com.google.monitoring.v3.ListSnoozesRequest.class, com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -109,18 +83,17 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +102,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -151,7 +121,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -160,15 +129,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -185,15 +153,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -204,8 +173,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return for a single query. The
    * server may further constrain the maximum number of results returned in a
@@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -224,19 +190,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -245,30 +207,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -277,7 +239,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -318,7 +280,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -331,18 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListSnoozesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListSnoozesRequest other = - (com.google.monitoring.v3.ListSnoozesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListSnoozesRequest other = (com.google.monitoring.v3.ListSnoozesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,104 +333,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListSnoozesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message definition for listing `Snooze`s associated with the given
    * `parent`, satisfying the optional `filter`.
@@ -472,32 +433,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.ListSnoozesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListSnoozesRequest)
       com.google.monitoring.v3.ListSnoozesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ListSnoozesRequest.class,
-              com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
+              com.google.monitoring.v3.ListSnoozesRequest.class, com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ListSnoozesRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -510,9 +472,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -531,11 +493,8 @@ public com.google.monitoring.v3.ListSnoozesRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ListSnoozesRequest buildPartial() {
-      com.google.monitoring.v3.ListSnoozesRequest result =
-          new com.google.monitoring.v3.ListSnoozesRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.ListSnoozesRequest result = new com.google.monitoring.v3.ListSnoozesRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -560,39 +519,38 @@ private void buildPartial0(com.google.monitoring.v3.ListSnoozesRequest result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ListSnoozesRequest) {
-        return mergeFrom((com.google.monitoring.v3.ListSnoozesRequest) other);
+        return mergeFrom((com.google.monitoring.v3.ListSnoozesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -645,37 +603,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -685,13 +638,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -700,16 +650,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -718,8 +666,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -728,17 +674,16 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -746,8 +691,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -756,25 +699,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -783,10 +720,7 @@ public Builder setParent(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -796,8 +730,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -806,17 +738,13 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -826,8 +754,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -844,13 +770,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -859,8 +785,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -877,14 +801,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -892,8 +817,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -910,22 +833,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -942,7 +861,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -952,8 +870,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -970,14 +886,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -985,10 +899,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -998,7 +910,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1006,8 +917,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -1017,7 +926,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1029,8 +937,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -1040,7 +946,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1052,21 +957,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1075,22 +978,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1098,37 +1000,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1138,31 +1033,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1172,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListSnoozesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListSnoozesRequest) private static final com.google.monitoring.v3.ListSnoozesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListSnoozesRequest(); } @@ -1186,27 +1077,27 @@ public static com.google.monitoring.v3.ListSnoozesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnoozesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnoozesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1221,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListSnoozesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java index 5b77047b3374..384b6b1526e9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface ListSnoozesRequestOrBuilder - extends +public interface ListSnoozesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListSnoozesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -34,16 +16,11 @@ public interface ListSnoozesRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -52,17 +29,13 @@ public interface ListSnoozesRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -79,13 +52,10 @@ public interface ListSnoozesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -102,14 +72,12 @@ public interface ListSnoozesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The maximum number of results to return for a single query. The
    * server may further constrain the maximum number of results returned in a
@@ -119,35 +87,29 @@ public interface ListSnoozesRequestOrBuilder
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java index 036a712b78f8..e4f4ccd2e842 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** - * - * *
  * The results of a successful `ListSnoozes` call, containing the matching
  * `Snooze`s.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.ListSnoozesResponse}
  */
-public final class ListSnoozesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSnoozesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListSnoozesResponse)
     ListSnoozesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSnoozesResponse.newBuilder() to construct.
   private ListSnoozesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSnoozesResponse() {
     snoozes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,32 +27,28 @@ private ListSnoozesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSnoozesResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ListSnoozesResponse.class,
-            com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
+            com.google.monitoring.v3.ListSnoozesResponse.class, com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
   }
 
   public static final int SNOOZES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List snoozes_;
   /**
-   *
-   *
    * 
    * `Snooze`s matching this list call.
    * 
@@ -82,8 +60,6 @@ public java.util.List getSnoozesList() { return snoozes_; } /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -91,13 +67,11 @@ public java.util.List getSnoozesList() { * repeated .google.monitoring.v3.Snooze snoozes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnoozesOrBuilderList() { return snoozes_; } /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -109,8 +83,6 @@ public int getSnoozesCount() { return snoozes_.size(); } /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -122,8 +94,6 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { return snoozes_.get(index); } /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -131,24 +101,21 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { * repeated .google.monitoring.v3.Snooze snoozes = 1; */ @java.lang.Override - public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { + public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( + int index) { return snoozes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < snoozes_.size(); i++) { output.writeMessage(1, snoozes_.get(i)); } @@ -218,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snoozes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snoozes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, snoozes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListSnoozesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListSnoozesResponse other = - (com.google.monitoring.v3.ListSnoozesResponse) obj; + com.google.monitoring.v3.ListSnoozesResponse other = (com.google.monitoring.v3.ListSnoozesResponse) obj; - if (!getSnoozesList().equals(other.getSnoozesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSnoozesList() + .equals(other.getSnoozesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,104 +232,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListSnoozesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The results of a successful `ListSnoozes` call, containing the matching
    * `Snooze`s.
@@ -368,32 +332,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.ListSnoozesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListSnoozesResponse)
       com.google.monitoring.v3.ListSnoozesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ListSnoozesResponse.class,
-              com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
+              com.google.monitoring.v3.ListSnoozesResponse.class, com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ListSnoozesResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -431,12 +396,9 @@ public com.google.monitoring.v3.ListSnoozesResponse build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ListSnoozesResponse buildPartial() {
-      com.google.monitoring.v3.ListSnoozesResponse result =
-          new com.google.monitoring.v3.ListSnoozesResponse(this);
+      com.google.monitoring.v3.ListSnoozesResponse result = new com.google.monitoring.v3.ListSnoozesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -464,39 +426,38 @@ private void buildPartial0(com.google.monitoring.v3.ListSnoozesResponse result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ListSnoozesResponse) {
-        return mergeFrom((com.google.monitoring.v3.ListSnoozesResponse) other);
+        return mergeFrom((com.google.monitoring.v3.ListSnoozesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -523,10 +484,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListSnoozesResponse other) {
             snoozesBuilder_ = null;
             snoozes_ = other.snoozes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            snoozesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSnoozesFieldBuilder()
-                    : null;
+            snoozesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSnoozesFieldBuilder() : null;
           } else {
             snoozesBuilder_.addAllMessages(other.snoozes_);
           }
@@ -563,31 +523,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.monitoring.v3.Snooze m =
-                    input.readMessage(com.google.monitoring.v3.Snooze.parser(), extensionRegistry);
-                if (snoozesBuilder_ == null) {
-                  ensureSnoozesIsMutable();
-                  snoozes_.add(m);
-                } else {
-                  snoozesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.monitoring.v3.Snooze m =
+                  input.readMessage(
+                      com.google.monitoring.v3.Snooze.parser(),
+                      extensionRegistry);
+              if (snoozesBuilder_ == null) {
+                ensureSnoozesIsMutable();
+                snoozes_.add(m);
+              } else {
+                snoozesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -597,28 +556,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List snoozes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSnoozesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         snoozes_ = new java.util.ArrayList(snoozes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Snooze,
-            com.google.monitoring.v3.Snooze.Builder,
-            com.google.monitoring.v3.SnoozeOrBuilder>
-        snoozesBuilder_;
+        com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozesBuilder_;
 
     /**
-     *
-     *
      * 
      * `Snooze`s matching this list call.
      * 
@@ -633,8 +585,6 @@ public java.util.List getSnoozesList() { } } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -649,8 +599,6 @@ public int getSnoozesCount() { } } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -665,15 +613,14 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { } } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze value) { + public Builder setSnoozes( + int index, com.google.monitoring.v3.Snooze value) { if (snoozesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -687,15 +634,14 @@ public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnoozes( + int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.set(index, builderForValue.build()); @@ -706,8 +652,6 @@ public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze.Builder bui return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -728,15 +672,14 @@ public Builder addSnoozes(com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze value) { + public Builder addSnoozes( + int index, com.google.monitoring.v3.Snooze value) { if (snoozesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,15 +693,14 @@ public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes(com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder addSnoozes( + com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.add(builderForValue.build()); @@ -769,15 +711,14 @@ public Builder addSnoozes(com.google.monitoring.v3.Snooze.Builder builderForValu return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder addSnoozes( + int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.add(index, builderForValue.build()); @@ -788,8 +729,6 @@ public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze.Builder bui return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -800,7 +739,8 @@ public Builder addAllSnoozes( java.lang.Iterable values) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snoozes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snoozes_); onChanged(); } else { snoozesBuilder_.addAllMessages(values); @@ -808,8 +748,6 @@ public Builder addAllSnoozes( return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -827,8 +765,6 @@ public Builder clearSnoozes() { return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -846,44 +782,39 @@ public Builder removeSnoozes(int index) { return this; } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.Snooze.Builder getSnoozesBuilder(int index) { + public com.google.monitoring.v3.Snooze.Builder getSnoozesBuilder( + int index) { return getSnoozesFieldBuilder().getBuilder(index); } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { + public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( + int index) { if (snoozesBuilder_ == null) { - return snoozes_.get(index); - } else { + return snoozes_.get(index); } else { return snoozesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public java.util.List - getSnoozesOrBuilderList() { + public java.util.List + getSnoozesOrBuilderList() { if (snoozesBuilder_ != null) { return snoozesBuilder_.getMessageOrBuilderList(); } else { @@ -891,8 +822,6 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { } } /** - * - * *
      * `Snooze`s matching this list call.
      * 
@@ -900,47 +829,42 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { * repeated .google.monitoring.v3.Snooze snoozes = 1; */ public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder() { - return getSnoozesFieldBuilder() - .addBuilder(com.google.monitoring.v3.Snooze.getDefaultInstance()); + return getSnoozesFieldBuilder().addBuilder( + com.google.monitoring.v3.Snooze.getDefaultInstance()); } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder(int index) { - return getSnoozesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.Snooze.getDefaultInstance()); + public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder( + int index) { + return getSnoozesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.Snooze.getDefaultInstance()); } /** - * - * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public java.util.List getSnoozesBuilderList() { + public java.util.List + getSnoozesBuilderList() { return getSnoozesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> getSnoozesFieldBuilder() { if (snoozesBuilder_ == null) { - snoozesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder>( - snoozes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snoozesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( + snoozes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); snoozes_ = null; } return snoozesBuilder_; @@ -948,21 +872,19 @@ public java.util.List getSnoozesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -971,22 +893,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -994,37 +915,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,31 +948,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1068,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListSnoozesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListSnoozesResponse) private static final com.google.monitoring.v3.ListSnoozesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListSnoozesResponse(); } @@ -1082,27 +992,27 @@ public static com.google.monitoring.v3.ListSnoozesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnoozesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnoozesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1117,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListSnoozesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java index b2f6ef49de07..6ba1453bfe73 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface ListSnoozesResponseOrBuilder - extends +public interface ListSnoozesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListSnoozesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - java.util.List getSnoozesList(); + java.util.List + getSnoozesList(); /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -44,8 +25,6 @@ public interface ListSnoozesResponseOrBuilder */ com.google.monitoring.v3.Snooze getSnoozes(int index); /** - * - * *
    * `Snooze`s matching this list call.
    * 
@@ -54,50 +33,43 @@ public interface ListSnoozesResponseOrBuilder */ int getSnoozesCount(); /** - * - * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - java.util.List getSnoozesOrBuilderList(); + java.util.List + getSnoozesOrBuilderList(); /** - * - * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index); + com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( + int index); /** - * - * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java index e9928a46d78e..d63aeaad73ca 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesRequest} */ -public final class ListTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTimeSeriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListTimeSeriesRequest) ListTimeSeriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTimeSeriesRequest.newBuilder() to construct. private ListTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTimeSeriesRequest() { name_ = ""; filter_ = ""; @@ -47,38 +29,34 @@ private ListTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesRequest.class, - com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.ListTimeSeriesRequest.class, com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); } /** - * - * *
    * Controls which fields are returned by `ListTimeSeries`.
    * 
* * Protobuf enum {@code google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView} */ - public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum { + public enum TimeSeriesView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Returns the identity of the metric(s), the time series,
      * and the time series data.
@@ -88,8 +66,6 @@ public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum {
      */
     FULL(0),
     /**
-     *
-     *
      * 
      * Returns the identity of the metric and the time series resource,
      * but not the time series data.
@@ -102,8 +78,6 @@ public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Returns the identity of the metric(s), the time series,
      * and the time series data.
@@ -113,8 +87,6 @@ public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FULL_VALUE = 0;
     /**
-     *
-     *
      * 
      * Returns the identity of the metric and the time series resource,
      * but not the time series data.
@@ -124,6 +96,7 @@ public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEADERS_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -148,47 +121,48 @@ public static TimeSeriesView valueOf(int value) {
      */
     public static TimeSeriesView forNumber(int value) {
       switch (value) {
-        case 0:
-          return FULL;
-        case 1:
-          return HEADERS;
-        default:
-          return null;
+        case 0: return FULL;
+        case 1: return HEADERS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        TimeSeriesView> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public TimeSeriesView findValueByNumber(int number) {
+              return TimeSeriesView.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public TimeSeriesView findValueByNumber(int number) {
-            return TimeSeriesView.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.ListTimeSeriesRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final TimeSeriesView[] VALUES = values();
 
-    public static TimeSeriesView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static TimeSeriesView valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -206,12 +180,9 @@ private TimeSeriesView(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -221,10 +192,7 @@ private TimeSeriesView(int value) {
    *     folders/[FOLDER_ID]
    * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -233,15 +201,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -251,18 +218,17 @@ public java.lang.String getName() {
    *     folders/[FOLDER_ID]
    * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -271,12 +237,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -288,7 +251,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -297,15 +259,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -317,15 +278,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -336,18 +298,13 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int INTERVAL_FIELD_NUMBER = 4; private com.google.monitoring.v3.TimeInterval interval_; /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ @java.lang.Override @@ -355,51 +312,36 @@ public boolean hasInterval() { return interval_ != null; } /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } public static final int AGGREGATION_FIELD_NUMBER = 5; private com.google.monitoring.v3.Aggregation aggregation_; /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -409,7 +351,6 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -417,8 +358,6 @@ public boolean hasAggregation() { return aggregation_ != null; } /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -428,18 +367,13 @@ public boolean hasAggregation() {
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.v3.Aggregation getAggregation() { - return aggregation_ == null - ? com.google.monitoring.v3.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; } /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -452,23 +386,18 @@ public com.google.monitoring.v3.Aggregation getAggregation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
-    return aggregation_ == null
-        ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
-        : aggregation_;
+    return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_;
   }
 
   public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 11;
   private com.google.monitoring.v3.Aggregation secondaryAggregation_;
   /**
-   *
-   *
    * 
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -476,26 +405,19 @@ public boolean hasSecondaryAggregation() { return secondaryAggregation_ != null; } /** - * - * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.v3.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null - ? com.google.monitoring.v3.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_; } /** - * - * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
@@ -505,25 +427,19 @@ public com.google.monitoring.v3.Aggregation getSecondaryAggregation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBuilder() {
-    return secondaryAggregation_ == null
-        ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
-        : secondaryAggregation_;
+    return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_;
   }
 
   public static final int ORDER_BY_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object orderBy_ = "";
   /**
-   *
-   *
    * 
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; - * * @return The orderBy. */ @java.lang.Override @@ -532,30 +448,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -566,49 +482,32 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int VIEW_FIELD_NUMBER = 7; private int view_ = 0; /** - * - * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The view. */ - @java.lang.Override - public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); + return result == null ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of results to return. If
    * `page_size` is empty or more than 100,000 results, the effective
@@ -618,7 +517,6 @@ public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() {
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -627,12 +525,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -640,7 +535,6 @@ public int getPageSize() {
    * 
* * string page_token = 9; - * * @return The pageToken. */ @java.lang.Override @@ -649,15 +543,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -665,15 +558,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 9; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -682,7 +576,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -694,7 +587,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -735,19 +629,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterval()); } if (aggregation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAggregation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); } if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, view_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); @@ -756,8 +654,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, name_); } if (secondaryAggregation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSecondaryAggregation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getSecondaryAggregation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -767,32 +665,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListTimeSeriesRequest other = - (com.google.monitoring.v3.ListTimeSeriesRequest) obj; + com.google.monitoring.v3.ListTimeSeriesRequest other = (com.google.monitoring.v3.ListTimeSeriesRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval().equals(other.getInterval())) return false; + if (!getInterval() + .equals(other.getInterval())) return false; } if (hasAggregation() != other.hasAggregation()) return false; if (hasAggregation()) { - if (!getAggregation().equals(other.getAggregation())) return false; + if (!getAggregation() + .equals(other.getAggregation())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation() + .equals(other.getSecondaryAggregation())) return false; } - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (view_ != other.view_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -833,136 +738,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListTimeSeriesRequest) com.google.monitoring.v3.ListTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesRequest.class, - com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.ListTimeSeriesRequest.class, com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListTimeSeriesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -992,9 +893,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override @@ -1013,11 +914,8 @@ public com.google.monitoring.v3.ListTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.ListTimeSeriesRequest result = - new com.google.monitoring.v3.ListTimeSeriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListTimeSeriesRequest result = new com.google.monitoring.v3.ListTimeSeriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1031,17 +929,19 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesRequest result result.filter_ = filter_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null + ? interval_ + : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.aggregation_ = - aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build(); + result.aggregation_ = aggregationBuilder_ == null + ? aggregation_ + : aggregationBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.secondaryAggregation_ = - secondaryAggregationBuilder_ == null - ? secondaryAggregation_ - : secondaryAggregationBuilder_.build(); + result.secondaryAggregation_ = secondaryAggregationBuilder_ == null + ? secondaryAggregation_ + : secondaryAggregationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.orderBy_ = orderBy_; @@ -1061,39 +961,38 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesRequest result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.ListTimeSeriesRequest) other); + return mergeFrom((com.google.monitoring.v3.ListTimeSeriesRequest)other); } else { super.mergeFrom(other); return this; @@ -1163,68 +1062,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 82 - case 90: - { - input.readMessage( - getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getAggregationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + view_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 82 + case 90: { + input.readMessage( + getSecondaryAggregationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1234,13 +1128,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1250,16 +1141,14 @@ public Builder mergeFrom(
      *     folders/[FOLDER_ID]
      * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1268,8 +1157,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1279,17 +1166,16 @@ public java.lang.String getName() {
      *     folders/[FOLDER_ID]
      * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1297,8 +1183,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1308,25 +1192,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *     folders/[FOLDER_ID]
      * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1336,10 +1214,7 @@ public Builder setName(java.lang.String value) {
      *     folders/[FOLDER_ID]
      * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -1349,8 +1224,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1360,17 +1233,13 @@ public Builder clearName() {
      *     folders/[FOLDER_ID]
      * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1380,8 +1249,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1393,13 +1260,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1408,8 +1275,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1421,14 +1286,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1436,8 +1302,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1449,22 +1313,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1476,7 +1336,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1486,8 +1345,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1499,14 +1356,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1516,64 +1371,45 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> - intervalBuilder_; + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { @@ -1589,19 +1425,16 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) { + public Builder setInterval( + com.google.monitoring.v3.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); } else { @@ -1612,23 +1445,19 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder return this; } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && interval_ != null - && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + interval_ != null && + interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getIntervalBuilder().mergeFrom(value); } else { interval_ = value; @@ -1641,17 +1470,13 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInterval() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1664,17 +1489,13 @@ public Builder clearInterval() { return this; } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { bitField0_ |= 0x00000004; @@ -1682,52 +1503,40 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { return getIntervalFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? + com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } } /** - * - * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { - intervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder>( - getInterval(), getParentForChildren(), isClean()); + intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( + getInterval(), + getParentForChildren(), + isClean()); interval_ = null; } return intervalBuilder_; @@ -1735,13 +1544,8 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { private com.google.monitoring.v3.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Aggregation, - com.google.monitoring.v3.Aggregation.Builder, - com.google.monitoring.v3.AggregationOrBuilder> - aggregationBuilder_; + com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationBuilder_; /** - * - * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1751,15 +1555,12 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1769,21 +1570,16 @@ public boolean hasAggregation() {
      * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return The aggregation. */ public com.google.monitoring.v3.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null - ? com.google.monitoring.v3.Aggregation.getDefaultInstance() - : aggregation_; + return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** - * - * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1808,8 +1604,6 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1820,7 +1614,8 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation value) {
      *
      * .google.monitoring.v3.Aggregation aggregation = 5;
      */
-    public Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder builderForValue) {
+    public Builder setAggregation(
+        com.google.monitoring.v3.Aggregation.Builder builderForValue) {
       if (aggregationBuilder_ == null) {
         aggregation_ = builderForValue.build();
       } else {
@@ -1831,8 +1626,6 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1845,9 +1638,9 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder build
      */
     public Builder mergeAggregation(com.google.monitoring.v3.Aggregation value) {
       if (aggregationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && aggregation_ != null
-            && aggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          aggregation_ != null &&
+          aggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
           getAggregationBuilder().mergeFrom(value);
         } else {
           aggregation_ = value;
@@ -1860,8 +1653,6 @@ public Builder mergeAggregation(com.google.monitoring.v3.Aggregation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1883,8 +1674,6 @@ public Builder clearAggregation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1901,8 +1690,6 @@ public com.google.monitoring.v3.Aggregation.Builder getAggregationBuilder() {
       return getAggregationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1917,14 +1704,11 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
       if (aggregationBuilder_ != null) {
         return aggregationBuilder_.getMessageOrBuilder();
       } else {
-        return aggregation_ == null
-            ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
-            : aggregation_;
+        return aggregation_ == null ?
+            com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1936,17 +1720,14 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
      * .google.monitoring.v3.Aggregation aggregation = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation,
-            com.google.monitoring.v3.Aggregation.Builder,
-            com.google.monitoring.v3.AggregationOrBuilder>
+        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
         getAggregationFieldBuilder() {
       if (aggregationBuilder_ == null) {
-        aggregationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation,
-                com.google.monitoring.v3.Aggregation.Builder,
-                com.google.monitoring.v3.AggregationOrBuilder>(
-                getAggregation(), getParentForChildren(), isClean());
+        aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
+                getAggregation(),
+                getParentForChildren(),
+                isClean());
         aggregation_ = null;
       }
       return aggregationBuilder_;
@@ -1954,49 +1735,36 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
 
     private com.google.monitoring.v3.Aggregation secondaryAggregation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation,
-            com.google.monitoring.v3.Aggregation.Builder,
-            com.google.monitoring.v3.AggregationOrBuilder>
-        secondaryAggregationBuilder_;
+        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> secondaryAggregationBuilder_;
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
      * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
      * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return The secondaryAggregation. */ public com.google.monitoring.v3.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null - ? com.google.monitoring.v3.Aggregation.getDefaultInstance() - : secondaryAggregation_; + return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** - * - * *
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2018,8 +1786,6 @@ public Builder setSecondaryAggregation(com.google.monitoring.v3.Aggregation valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2039,8 +1805,6 @@ public Builder setSecondaryAggregation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2050,9 +1814,9 @@ public Builder setSecondaryAggregation(
      */
     public Builder mergeSecondaryAggregation(com.google.monitoring.v3.Aggregation value) {
       if (secondaryAggregationBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && secondaryAggregation_ != null
-            && secondaryAggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          secondaryAggregation_ != null &&
+          secondaryAggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
           getSecondaryAggregationBuilder().mergeFrom(value);
         } else {
           secondaryAggregation_ = value;
@@ -2065,8 +1829,6 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.v3.Aggregation va
       return this;
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2085,8 +1847,6 @@ public Builder clearSecondaryAggregation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2100,8 +1860,6 @@ public com.google.monitoring.v3.Aggregation.Builder getSecondaryAggregationBuild
       return getSecondaryAggregationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2113,14 +1871,11 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
       if (secondaryAggregationBuilder_ != null) {
         return secondaryAggregationBuilder_.getMessageOrBuilder();
       } else {
-        return secondaryAggregation_ == null
-            ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
-            : secondaryAggregation_;
+        return secondaryAggregation_ == null ?
+            com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_;
       }
     }
     /**
-     *
-     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -2129,17 +1884,14 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
      * .google.monitoring.v3.Aggregation secondary_aggregation = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation,
-            com.google.monitoring.v3.Aggregation.Builder,
-            com.google.monitoring.v3.AggregationOrBuilder>
+        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
         getSecondaryAggregationFieldBuilder() {
       if (secondaryAggregationBuilder_ == null) {
-        secondaryAggregationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation,
-                com.google.monitoring.v3.Aggregation.Builder,
-                com.google.monitoring.v3.AggregationOrBuilder>(
-                getSecondaryAggregation(), getParentForChildren(), isClean());
+        secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
+                getSecondaryAggregation(),
+                getParentForChildren(),
+                isClean());
         secondaryAggregation_ = null;
       }
       return secondaryAggregationBuilder_;
@@ -2147,21 +1899,19 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
 
     private java.lang.Object orderBy_ = "";
     /**
-     *
-     *
      * 
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -2170,22 +1920,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2193,37 +1942,30 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -2233,22 +1975,18 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000020; @@ -2258,33 +1996,22 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -2295,37 +2022,24 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); - return result == null - ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED - : result; + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); + return result == null ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED : result; } /** - * - * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @param value The view to set. * @return This builder for chaining. */ @@ -2339,16 +2053,11 @@ public Builder setView(com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeries return this; } /** - * - * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearView() { @@ -2358,10 +2067,8 @@ public Builder clearView() { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2371,7 +2078,6 @@ public Builder clearView() {
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2379,8 +2085,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2390,7 +2094,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -2402,8 +2105,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2413,7 +2114,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -2425,8 +2125,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2434,13 +2132,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 9; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2449,8 +2147,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2458,14 +2154,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 9; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2473,8 +2170,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2482,22 +2177,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 9; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2505,7 +2196,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 9; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2515,8 +2205,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2524,23 +2212,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 9; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2550,12 +2236,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) private static final com.google.monitoring.v3.ListTimeSeriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListTimeSeriesRequest(); } @@ -2564,27 +2250,27 @@ public static com.google.monitoring.v3.ListTimeSeriesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2599,4 +2285,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java similarity index 78% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java index debe94aa1f23..a305926bc9a8 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListTimeSeriesRequestOrBuilder - extends +public interface ListTimeSeriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -35,16 +17,11 @@ public interface ListTimeSeriesRequestOrBuilder
    *     folders/[FOLDER_ID]
    * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -54,17 +31,13 @@ public interface ListTimeSeriesRequestOrBuilder
    *     folders/[FOLDER_ID]
    * 
* - * - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -76,13 +49,10 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -94,61 +64,45 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** - * - * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder(); /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -158,13 +112,10 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -174,13 +125,10 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; - * * @return The aggregation. */ com.google.monitoring.v3.Aggregation getAggregation(); /** - * - * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -194,34 +142,26 @@ public interface ListTimeSeriesRequestOrBuilder
   com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** - * - * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; - * * @return The secondaryAggregation. */ com.google.monitoring.v3.Aggregation getSecondaryAggregation(); /** - * - * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
@@ -232,64 +172,47 @@ public interface ListTimeSeriesRequestOrBuilder
   com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The view. */ com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView(); /** - * - * *
    * A positive number that is the maximum number of results to return. If
    * `page_size` is empty or more than 100,000 results, the effective
@@ -299,14 +222,11 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -314,13 +234,10 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * string page_token = 9; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -328,8 +245,8 @@ public interface ListTimeSeriesRequestOrBuilder
    * 
* * string page_token = 9; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java index 62734e0bfa06..ac41971f74aa 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `ListTimeSeries` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesResponse} */ -public final class ListTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTimeSeriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListTimeSeriesResponse) ListTimeSeriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTimeSeriesResponse.newBuilder() to construct. private ListTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTimeSeriesResponse() { timeSeries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,32 +28,28 @@ private ListTimeSeriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTimeSeriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesResponse.class, - com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.ListTimeSeriesResponse.class, com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); } public static final int TIME_SERIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List timeSeries_; /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -83,8 +61,6 @@ public java.util.List getTimeSeriesList() { return timeSeries_; } /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -92,13 +68,11 @@ public java.util.List getTimeSeriesList() { * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesOrBuilderList() { return timeSeries_; } /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -110,8 +84,6 @@ public int getTimeSeriesCount() { return timeSeries_.size(); } /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -123,8 +95,6 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { return timeSeries_.get(index); } /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -132,17 +102,15 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index) { return timeSeries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -150,7 +118,6 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +126,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -175,15 +141,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,12 +159,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int EXECUTION_ERRORS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List executionErrors_; /** - * - * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -210,8 +174,6 @@ public java.util.List getExecutionErrorsList() {
     return executionErrors_;
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -220,13 +182,11 @@ public java.util.List getExecutionErrorsList() {
    * repeated .google.rpc.Status execution_errors = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getExecutionErrorsOrBuilderList() {
     return executionErrors_;
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -239,8 +199,6 @@ public int getExecutionErrorsCount() {
     return executionErrors_.size();
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -253,8 +211,6 @@ public com.google.rpc.Status getExecutionErrors(int index) {
     return executionErrors_.get(index);
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -263,17 +219,15 @@ public com.google.rpc.Status getExecutionErrors(int index) {
    * repeated .google.rpc.Status execution_errors = 3;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
+      int index) {
     return executionErrors_.get(index);
   }
 
   public static final int UNIT_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object unit_ = "";
   /**
-   *
-   *
    * 
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -284,7 +238,6 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
    * 
* * string unit = 5; - * * @return The unit. */ @java.lang.Override @@ -293,15 +246,14 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** - * - * *
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -312,15 +264,16 @@ public java.lang.String getUnit() {
    * 
* * string unit = 5; - * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -329,7 +282,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < timeSeries_.size(); i++) { output.writeMessage(1, timeSeries_.get(i)); } @@ -364,13 +317,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < timeSeries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, timeSeries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, timeSeries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < executionErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, executionErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, executionErrors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_); @@ -383,18 +338,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListTimeSeriesResponse other = - (com.google.monitoring.v3.ListTimeSeriesResponse) obj; + com.google.monitoring.v3.ListTimeSeriesResponse other = (com.google.monitoring.v3.ListTimeSeriesResponse) obj; - if (!getTimeSeriesList().equals(other.getTimeSeriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getExecutionErrorsList().equals(other.getExecutionErrorsList())) return false; - if (!getUnit().equals(other.getUnit())) return false; + if (!getTimeSeriesList() + .equals(other.getTimeSeriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getExecutionErrorsList() + .equals(other.getExecutionErrorsList())) return false; + if (!getUnit() + .equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -423,136 +381,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListTimeSeriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `ListTimeSeries` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListTimeSeriesResponse) com.google.monitoring.v3.ListTimeSeriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesResponse.class, - com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.ListTimeSeriesResponse.class, com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListTimeSeriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +531,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override @@ -598,18 +552,14 @@ public com.google.monitoring.v3.ListTimeSeriesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesResponse buildPartial() { - com.google.monitoring.v3.ListTimeSeriesResponse result = - new com.google.monitoring.v3.ListTimeSeriesResponse(this); + com.google.monitoring.v3.ListTimeSeriesResponse result = new com.google.monitoring.v3.ListTimeSeriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListTimeSeriesResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListTimeSeriesResponse result) { if (timeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); @@ -644,39 +594,38 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesResponse resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListTimeSeriesResponse) { - return mergeFrom((com.google.monitoring.v3.ListTimeSeriesResponse) other); + return mergeFrom((com.google.monitoring.v3.ListTimeSeriesResponse)other); } else { super.mergeFrom(other); return this; @@ -684,8 +633,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) { - if (other == com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance()) return this; if (timeSeriesBuilder_ == null) { if (!other.timeSeries_.isEmpty()) { if (timeSeries_.isEmpty()) { @@ -704,10 +652,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) timeSeriesBuilder_ = null; timeSeries_ = other.timeSeries_; bitField0_ = (bitField0_ & ~0x00000001); - timeSeriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeSeriesFieldBuilder() - : null; + timeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeSeriesFieldBuilder() : null; } else { timeSeriesBuilder_.addAllMessages(other.timeSeries_); } @@ -736,10 +683,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) executionErrorsBuilder_ = null; executionErrors_ = other.executionErrors_; bitField0_ = (bitField0_ & ~0x00000004); - executionErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExecutionErrorsFieldBuilder() - : null; + executionErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionErrorsFieldBuilder() : null; } else { executionErrorsBuilder_.addAllMessages(other.executionErrors_); } @@ -776,50 +722,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.TimeSeries m = - input.readMessage( - com.google.monitoring.v3.TimeSeries.parser(), extensionRegistry); - if (timeSeriesBuilder_ == null) { - ensureTimeSeriesIsMutable(); - timeSeries_.add(m); - } else { - timeSeriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.rpc.Status m = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (executionErrorsBuilder_ == null) { - ensureExecutionErrorsIsMutable(); - executionErrors_.add(m); - } else { - executionErrorsBuilder_.addMessage(m); - } - break; - } // case 26 - case 42: - { - unit_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.TimeSeries m = + input.readMessage( + com.google.monitoring.v3.TimeSeries.parser(), + extensionRegistry); + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(m); + } else { + timeSeriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.add(m); + } else { + executionErrorsBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -829,28 +773,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List timeSeries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeSeriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { timeSeries_ = new java.util.ArrayList(timeSeries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> - timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -865,8 +802,6 @@ public java.util.List getTimeSeriesList() { } } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -881,8 +816,6 @@ public int getTimeSeriesCount() { } } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -897,15 +830,14 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { } } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { + public Builder setTimeSeries( + int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -919,8 +851,6 @@ public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -939,8 +869,6 @@ public Builder setTimeSeries( return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -961,15 +889,14 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { + public Builder addTimeSeries( + int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -983,15 +910,14 @@ public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries valu return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + public Builder addTimeSeries( + com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); timeSeries_.add(builderForValue.build()); @@ -1002,8 +928,6 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builder return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1022,8 +946,6 @@ public Builder addTimeSeries( return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1034,7 +956,8 @@ public Builder addAllTimeSeries( java.lang.Iterable values) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timeSeries_); onChanged(); } else { timeSeriesBuilder_.addAllMessages(values); @@ -1042,8 +965,6 @@ public Builder addAllTimeSeries( return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1061,8 +982,6 @@ public Builder clearTimeSeries() { return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1080,44 +999,39 @@ public Builder removeTimeSeries(int index) { return this; } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(int index) { + public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder( + int index) { return getTimeSeriesFieldBuilder().getBuilder(index); } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index) { if (timeSeriesBuilder_ == null) { - return timeSeries_.get(index); - } else { + return timeSeries_.get(index); } else { return timeSeriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public java.util.List - getTimeSeriesOrBuilderList() { + public java.util.List + getTimeSeriesOrBuilderList() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilderList(); } else { @@ -1125,8 +1039,6 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i } } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1134,47 +1046,42 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int i * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() { - return getTimeSeriesFieldBuilder() - .addBuilder(com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + return getTimeSeriesFieldBuilder().addBuilder( + com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(int index) { - return getTimeSeriesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder( + int index) { + return getTimeSeriesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** - * - * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public java.util.List getTimeSeriesBuilderList() { + public java.util.List + getTimeSeriesBuilderList() { return getTimeSeriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, - com.google.monitoring.v3.TimeSeries.Builder, - com.google.monitoring.v3.TimeSeriesOrBuilder>( - timeSeries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + timeSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( + timeSeries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); timeSeries_ = null; } return timeSeriesBuilder_; @@ -1182,8 +1089,6 @@ public java.util.List getTimeSeries private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1191,13 +1096,13 @@ public java.util.List getTimeSeries
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1206,8 +1111,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1215,14 +1118,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1230,8 +1134,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1239,22 +1141,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1262,7 +1160,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1272,8 +1169,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1281,14 +1176,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1297,22 +1190,18 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { } private java.util.List executionErrors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExecutionErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { executionErrors_ = new java.util.ArrayList(executionErrors_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - executionErrorsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> executionErrorsBuilder_; /** - * - * *
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1328,8 +1217,6 @@ public java.util.List getExecutionErrorsList() {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1345,8 +1232,6 @@ public int getExecutionErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1362,8 +1247,6 @@ public com.google.rpc.Status getExecutionErrors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1371,7 +1254,8 @@ public com.google.rpc.Status getExecutionErrors(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder setExecutionErrors(int index, com.google.rpc.Status value) {
+    public Builder setExecutionErrors(
+        int index, com.google.rpc.Status value) {
       if (executionErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1385,8 +1269,6 @@ public Builder setExecutionErrors(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1394,7 +1276,8 @@ public Builder setExecutionErrors(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder setExecutionErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setExecutionErrors(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.set(index, builderForValue.build());
@@ -1405,8 +1288,6 @@ public Builder setExecutionErrors(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1428,8 +1309,6 @@ public Builder addExecutionErrors(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1437,7 +1316,8 @@ public Builder addExecutionErrors(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(int index, com.google.rpc.Status value) {
+    public Builder addExecutionErrors(
+        int index, com.google.rpc.Status value) {
       if (executionErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1451,8 +1331,6 @@ public Builder addExecutionErrors(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1460,7 +1338,8 @@ public Builder addExecutionErrors(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addExecutionErrors(
+        com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.add(builderForValue.build());
@@ -1471,8 +1350,6 @@ public Builder addExecutionErrors(com.google.rpc.Status.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1480,7 +1357,8 @@ public Builder addExecutionErrors(com.google.rpc.Status.Builder builderForValue)
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addExecutionErrors(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.add(index, builderForValue.build());
@@ -1491,8 +1369,6 @@ public Builder addExecutionErrors(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1504,7 +1380,8 @@ public Builder addAllExecutionErrors(
         java.lang.Iterable values) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executionErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, executionErrors_);
         onChanged();
       } else {
         executionErrorsBuilder_.addAllMessages(values);
@@ -1512,8 +1389,6 @@ public Builder addAllExecutionErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1532,8 +1407,6 @@ public Builder clearExecutionErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1552,8 +1425,6 @@ public Builder removeExecutionErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1561,12 +1432,11 @@ public Builder removeExecutionErrors(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.Status.Builder getExecutionErrorsBuilder(int index) {
+    public com.google.rpc.Status.Builder getExecutionErrorsBuilder(
+        int index) {
       return getExecutionErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1574,16 +1444,14 @@ public com.google.rpc.Status.Builder getExecutionErrorsBuilder(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
+        int index) {
       if (executionErrorsBuilder_ == null) {
-        return executionErrors_.get(index);
-      } else {
+        return executionErrors_.get(index);  } else {
         return executionErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1591,8 +1459,8 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public java.util.List
-        getExecutionErrorsOrBuilderList() {
+    public java.util.List 
+         getExecutionErrorsOrBuilderList() {
       if (executionErrorsBuilder_ != null) {
         return executionErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1600,8 +1468,6 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1610,12 +1476,10 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
      * repeated .google.rpc.Status execution_errors = 3;
      */
     public com.google.rpc.Status.Builder addExecutionErrorsBuilder() {
-      return getExecutionErrorsFieldBuilder()
-          .addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getExecutionErrorsFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1623,13 +1487,12 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder() {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.Status.Builder addExecutionErrorsBuilder(int index) {
-      return getExecutionErrorsFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addExecutionErrorsBuilder(
+        int index) {
+      return getExecutionErrorsFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1637,19 +1500,16 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public java.util.List getExecutionErrorsBuilderList() {
+    public java.util.List 
+         getExecutionErrorsBuilderList() {
       return getExecutionErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getExecutionErrorsFieldBuilder() {
       if (executionErrorsBuilder_ == null) {
-        executionErrorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
+        executionErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
                 executionErrors_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1661,8 +1521,6 @@ public java.util.List getExecutionErrorsBuilderLi
 
     private java.lang.Object unit_ = "";
     /**
-     *
-     *
      * 
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1673,13 +1531,13 @@ public java.util.List getExecutionErrorsBuilderLi
      * 
* * string unit = 5; - * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -1688,8 +1546,6 @@ public java.lang.String getUnit() { } } /** - * - * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1700,14 +1556,15 @@ public java.lang.String getUnit() {
      * 
* * string unit = 5; - * * @return The bytes for unit. */ - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -1715,8 +1572,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } } /** - * - * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1727,22 +1582,18 @@ public com.google.protobuf.ByteString getUnitBytes() {
      * 
* * string unit = 5; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1753,7 +1604,6 @@ public Builder setUnit(java.lang.String value) {
      * 
* * string unit = 5; - * * @return This builder for chaining. */ public Builder clearUnit() { @@ -1763,8 +1613,6 @@ public Builder clearUnit() { return this; } /** - * - * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1775,23 +1623,21 @@ public Builder clearUnit() {
      * 
* * string unit = 5; - * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1801,12 +1647,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListTimeSeriesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) private static final com.google.monitoring.v3.ListTimeSeriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListTimeSeriesResponse(); } @@ -1815,27 +1661,27 @@ public static com.google.monitoring.v3.ListTimeSeriesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTimeSeriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTimeSeriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1850,4 +1696,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListTimeSeriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java similarity index 77% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java index a5844fdd69c9..98579fd8a70d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListTimeSeriesResponseOrBuilder - extends +public interface ListTimeSeriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListTimeSeriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - java.util.List getTimeSeriesList(); + java.util.List + getTimeSeriesList(); /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -44,8 +25,6 @@ public interface ListTimeSeriesResponseOrBuilder */ com.google.monitoring.v3.TimeSeries getTimeSeries(int index); /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
@@ -54,30 +33,25 @@ public interface ListTimeSeriesResponseOrBuilder */ int getTimeSeriesCount(); /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - java.util.List + java.util.List getTimeSeriesOrBuilderList(); /** - * - * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index); + com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( + int index); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -85,13 +59,10 @@ public interface ListTimeSeriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -99,14 +70,12 @@ public interface ListTimeSeriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -114,10 +83,9 @@ public interface ListTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  java.util.List getExecutionErrorsList();
+  java.util.List 
+      getExecutionErrorsList();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -127,8 +95,6 @@ public interface ListTimeSeriesResponseOrBuilder
    */
   com.google.rpc.Status getExecutionErrors(int index);
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -138,8 +104,6 @@ public interface ListTimeSeriesResponseOrBuilder
    */
   int getExecutionErrorsCount();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -147,10 +111,9 @@ public interface ListTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  java.util.List getExecutionErrorsOrBuilderList();
+  java.util.List 
+      getExecutionErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -158,11 +121,10 @@ public interface ListTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -173,13 +135,10 @@ public interface ListTimeSeriesResponseOrBuilder
    * 
* * string unit = 5; - * * @return The unit. */ java.lang.String getUnit(); /** - * - * *
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -190,8 +149,8 @@ public interface ListTimeSeriesResponseOrBuilder
    * 
* * string unit = 5; - * * @return The bytes for unit. */ - com.google.protobuf.ByteString getUnitBytes(); + com.google.protobuf.ByteString + getUnitBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java index 824937daf130..570cb04ecb53 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListUptimeCheckConfigs` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsRequest} */ -public final class ListUptimeCheckConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUptimeCheckConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckConfigsRequest) ListUptimeCheckConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUptimeCheckConfigsRequest.newBuilder() to construct. private ListUptimeCheckConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUptimeCheckConfigsRequest() { parent_ = ""; filter_ = ""; @@ -45,32 +27,28 @@ private ListUptimeCheckConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUptimeCheckConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -108,18 +82,17 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,12 +101,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -152,15 +121,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -170,15 +138,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -189,8 +158,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -199,7 +166,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -208,12 +174,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -221,7 +184,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -230,15 +192,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -246,15 +207,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,7 +225,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -304,7 +266,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -317,18 +280,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckConfigsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckConfigsRequest other = - (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListUptimeCheckConfigsRequest other = (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,136 +320,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListUptimeCheckConfigs` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckConfigsRequest) com.google.monitoring.v3.ListUptimeCheckConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckConfigsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override @@ -517,11 +478,8 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckConfigsRequest buildPartial() { - com.google.monitoring.v3.ListUptimeCheckConfigsRequest result = - new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListUptimeCheckConfigsRequest result = new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -546,39 +504,38 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckConfigsReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckConfigsRequest) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -586,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsRequest other) { - if (other == com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -632,37 +588,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,13 +623,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -687,16 +635,14 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,8 +651,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -715,17 +659,16 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -733,8 +676,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -743,25 +684,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -770,10 +705,7 @@ public Builder setParent(java.lang.String value) {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -783,8 +715,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -793,17 +723,13 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -813,8 +739,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -824,13 +748,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -839,8 +763,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -850,14 +772,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -865,8 +788,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -876,22 +797,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -901,7 +818,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -911,8 +827,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -922,14 +836,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -937,10 +849,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -949,7 +859,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -957,8 +866,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -967,7 +874,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -979,8 +885,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -989,7 +893,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1001,8 +904,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1010,13 +911,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1025,8 +926,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1034,14 +933,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1049,8 +949,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1058,22 +956,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1081,7 +975,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1091,8 +984,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1100,23 +991,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) private static final com.google.monitoring.v3.ListUptimeCheckConfigsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(); } @@ -1140,27 +1029,27 @@ public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,4 +1064,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.ListUptimeCheckConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java similarity index 69% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java index 939ddf7fb02d..54738eb48659 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckConfigsRequestOrBuilder - extends +public interface ListUptimeCheckConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -34,16 +16,11 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -52,17 +29,13 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -72,13 +45,10 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -88,14 +58,12 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -104,14 +72,11 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -119,13 +84,10 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -133,8 +95,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java index 39dc1c32c88e..38bfc50e9d08 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListUptimeCheckConfigs` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsResponse} */ -public final class ListUptimeCheckConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUptimeCheckConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckConfigsResponse) ListUptimeCheckConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUptimeCheckConfigsResponse.newBuilder() to construct. - private ListUptimeCheckConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUptimeCheckConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUptimeCheckConfigsResponse() { uptimeCheckConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +26,28 @@ private ListUptimeCheckConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUptimeCheckConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); } public static final int UPTIME_CHECK_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List uptimeCheckConfigs_; /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -82,8 +59,6 @@ public java.util.List getUptimeCheck return uptimeCheckConfigs_; } /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -91,13 +66,11 @@ public java.util.List getUptimeCheck * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getUptimeCheckConfigsOrBuilderList() { return uptimeCheckConfigs_; } /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -109,8 +82,6 @@ public int getUptimeCheckConfigsCount() { return uptimeCheckConfigs_.size(); } /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -122,8 +93,6 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int inde return uptimeCheckConfigs_.get(index); } /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -137,12 +106,9 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -152,7 +118,6 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -161,15 +126,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -179,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -198,15 +163,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * The total number of Uptime check configurations for the project,
    * irrespective of any pagination.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -215,7 +177,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < uptimeCheckConfigs_.size(); i++) { output.writeMessage(1, uptimeCheckConfigs_.get(i)); } @@ -247,14 +209,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < uptimeCheckConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, uptimeCheckConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,17 +227,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckConfigsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckConfigsResponse other = - (com.google.monitoring.v3.ListUptimeCheckConfigsResponse) obj; - - if (!getUptimeCheckConfigsList().equals(other.getUptimeCheckConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.monitoring.v3.ListUptimeCheckConfigsResponse other = (com.google.monitoring.v3.ListUptimeCheckConfigsResponse) obj; + + if (!getUptimeCheckConfigsList() + .equals(other.getUptimeCheckConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +265,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse prototype) { + public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListUptimeCheckConfigs` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckConfigsResponse) com.google.monitoring.v3.ListUptimeCheckConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckConfigsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override @@ -468,18 +428,14 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckConfigsResponse buildPartial() { - com.google.monitoring.v3.ListUptimeCheckConfigsResponse result = - new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(this); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse result = new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListUptimeCheckConfigsResponse result) { if (uptimeCheckConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uptimeCheckConfigs_ = java.util.Collections.unmodifiableList(uptimeCheckConfigs_); @@ -505,39 +461,38 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckConfigsRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckConfigsResponse) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -545,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsResponse other) { - if (other == com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance()) return this; if (uptimeCheckConfigsBuilder_ == null) { if (!other.uptimeCheckConfigs_.isEmpty()) { if (uptimeCheckConfigs_.isEmpty()) { @@ -565,10 +519,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsResponse uptimeCheckConfigsBuilder_ = null; uptimeCheckConfigs_ = other.uptimeCheckConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - uptimeCheckConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUptimeCheckConfigsFieldBuilder() - : null; + uptimeCheckConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUptimeCheckConfigsFieldBuilder() : null; } else { uptimeCheckConfigsBuilder_.addAllMessages(other.uptimeCheckConfigs_); } @@ -608,38 +561,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.UptimeCheckConfig m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckConfig.parser(), extensionRegistry); - if (uptimeCheckConfigsBuilder_ == null) { - ensureUptimeCheckConfigsIsMutable(); - uptimeCheckConfigs_.add(m); - } else { - uptimeCheckConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.UptimeCheckConfig m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckConfig.parser(), + extensionRegistry); + if (uptimeCheckConfigsBuilder_ == null) { + ensureUptimeCheckConfigsIsMutable(); + uptimeCheckConfigs_.add(m); + } else { + uptimeCheckConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -649,30 +599,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List uptimeCheckConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUptimeCheckConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - uptimeCheckConfigs_ = - new java.util.ArrayList( - uptimeCheckConfigs_); + uptimeCheckConfigs_ = new java.util.ArrayList(uptimeCheckConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder> - uptimeCheckConfigsBuilder_; + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigsBuilder_; /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -687,8 +628,6 @@ public java.util.List getUptimeCheck } } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -703,8 +642,6 @@ public int getUptimeCheckConfigsCount() { } } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -719,8 +656,6 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int inde } } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -742,8 +677,6 @@ public Builder setUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -762,8 +695,6 @@ public Builder setUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -784,8 +715,6 @@ public Builder addUptimeCheckConfigs(com.google.monitoring.v3.UptimeCheckConfig return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -807,8 +736,6 @@ public Builder addUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -827,8 +754,6 @@ public Builder addUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -847,8 +772,6 @@ public Builder addUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -859,7 +782,8 @@ public Builder addAllUptimeCheckConfigs( java.lang.Iterable values) { if (uptimeCheckConfigsBuilder_ == null) { ensureUptimeCheckConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uptimeCheckConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uptimeCheckConfigs_); onChanged(); } else { uptimeCheckConfigsBuilder_.addAllMessages(values); @@ -867,8 +791,6 @@ public Builder addAllUptimeCheckConfigs( return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -886,8 +808,6 @@ public Builder clearUptimeCheckConfigs() { return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -905,8 +825,6 @@ public Builder removeUptimeCheckConfigs(int index) { return this; } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -918,8 +836,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigsB return getUptimeCheckConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -929,22 +845,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigsB public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder( int index) { if (uptimeCheckConfigsBuilder_ == null) { - return uptimeCheckConfigs_.get(index); - } else { + return uptimeCheckConfigs_.get(index); } else { return uptimeCheckConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The returned Uptime check configurations.
      * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - public java.util.List - getUptimeCheckConfigsOrBuilderList() { + public java.util.List + getUptimeCheckConfigsOrBuilderList() { if (uptimeCheckConfigsBuilder_ != null) { return uptimeCheckConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -952,8 +865,6 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs } } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -961,12 +872,10 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsBuilder() { - return getUptimeCheckConfigsFieldBuilder() - .addBuilder(com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); + return getUptimeCheckConfigsFieldBuilder().addBuilder( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); } /** - * - * *
      * The returned Uptime check configurations.
      * 
@@ -975,34 +884,26 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB */ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsBuilder( int index) { - return getUptimeCheckConfigsFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); + return getUptimeCheckConfigsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); } /** - * - * *
      * The returned Uptime check configurations.
      * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - public java.util.List - getUptimeCheckConfigsBuilderList() { + public java.util.List + getUptimeCheckConfigsBuilderList() { return getUptimeCheckConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigsFieldBuilder() { if (uptimeCheckConfigsBuilder_ == null) { - uptimeCheckConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + uptimeCheckConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( uptimeCheckConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1014,8 +915,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1025,13 +924,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1040,8 +939,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1051,14 +948,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1066,8 +964,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1077,22 +973,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1102,7 +994,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1112,8 +1003,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1123,14 +1012,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1138,17 +1025,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1156,15 +1040,12 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1176,15 +1057,12 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1193,9 +1071,9 @@ public Builder clearTotalSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1205,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) private static final com.google.monitoring.v3.ListUptimeCheckConfigsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(); } @@ -1219,27 +1097,27 @@ public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,4 +1132,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.ListUptimeCheckConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java index 6279e274e36f..38ec45ad0d1d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckConfigsResponseOrBuilder - extends +public interface ListUptimeCheckConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - java.util.List getUptimeCheckConfigsList(); + java.util.List + getUptimeCheckConfigsList(); /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -44,8 +25,6 @@ public interface ListUptimeCheckConfigsResponseOrBuilder */ com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int index); /** - * - * *
    * The returned Uptime check configurations.
    * 
@@ -54,30 +33,25 @@ public interface ListUptimeCheckConfigsResponseOrBuilder */ int getUptimeCheckConfigsCount(); /** - * - * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - java.util.List + java.util.List getUptimeCheckConfigsOrBuilderList(); /** - * - * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder(int index); + com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder( + int index); /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -87,13 +61,10 @@ public interface ListUptimeCheckConfigsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -103,21 +74,18 @@ public interface ListUptimeCheckConfigsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of Uptime check configurations for the project,
    * irrespective of any pagination.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java index bda1feee4dcf..f18230d42d32 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java @@ -1,72 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListUptimeCheckIps` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsRequest} */ -public final class ListUptimeCheckIpsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUptimeCheckIpsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckIpsRequest) ListUptimeCheckIpsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUptimeCheckIpsRequest.newBuilder() to construct. private ListUptimeCheckIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUptimeCheckIpsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUptimeCheckIpsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, - com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -76,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -85,12 +63,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -99,7 +74,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -108,15 +82,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -125,15 +98,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -142,7 +116,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -171,7 +145,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -184,16 +159,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckIpsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckIpsRequest other = - (com.google.monitoring.v3.ListUptimeCheckIpsRequest) obj; + com.google.monitoring.v3.ListUptimeCheckIpsRequest other = (com.google.monitoring.v3.ListUptimeCheckIpsRequest) obj; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,135 +191,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListUptimeCheckIps` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckIpsRequest) com.google.monitoring.v3.ListUptimeCheckIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, - com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckIpsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override @@ -375,11 +347,8 @@ public com.google.monitoring.v3.ListUptimeCheckIpsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckIpsRequest buildPartial() { - com.google.monitoring.v3.ListUptimeCheckIpsRequest result = - new com.google.monitoring.v3.ListUptimeCheckIpsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.ListUptimeCheckIpsRequest result = new com.google.monitoring.v3.ListUptimeCheckIpsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -398,39 +367,38 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckIpsRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckIpsRequest) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsRequest) other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsRequest)other); } else { super.mergeFrom(other); return this; @@ -438,8 +406,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsRequest other) { - if (other == com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -474,25 +441,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,13 +466,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -518,7 +479,6 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -526,8 +486,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -537,7 +495,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -549,8 +506,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -560,7 +515,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -572,8 +526,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -582,13 +534,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -597,8 +549,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -607,14 +557,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -622,8 +573,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -632,22 +581,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -656,7 +601,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -666,8 +610,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -676,23 +618,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,12 +642,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) private static final com.google.monitoring.v3.ListUptimeCheckIpsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckIpsRequest(); } @@ -716,27 +656,27 @@ public static com.google.monitoring.v3.ListUptimeCheckIpsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,4 +691,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListUptimeCheckIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java similarity index 66% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java index be044e77db83..216662c7310a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckIpsRequestOrBuilder - extends +public interface ListUptimeCheckIpsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckIpsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -35,14 +17,11 @@ public interface ListUptimeCheckIpsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -51,13 +30,10 @@ public interface ListUptimeCheckIpsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -66,8 +42,8 @@ public interface ListUptimeCheckIpsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java index 99f3949e1ded..827d4e038a03 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `ListUptimeCheckIps` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsResponse} */ -public final class ListUptimeCheckIpsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUptimeCheckIpsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckIpsResponse) ListUptimeCheckIpsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUptimeCheckIpsResponse.newBuilder() to construct. private ListUptimeCheckIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUptimeCheckIpsResponse() { uptimeCheckIps_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListUptimeCheckIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUptimeCheckIpsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, - com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); } public static final int UPTIME_CHECK_IPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List uptimeCheckIps_; /** - * - * *
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -82,8 +60,6 @@ public java.util.List getUptimeCheckIpsL
     return uptimeCheckIps_;
   }
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -92,13 +68,11 @@ public java.util.List getUptimeCheckIpsL
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getUptimeCheckIpsOrBuilderList() {
     return uptimeCheckIps_;
   }
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -111,8 +85,6 @@ public int getUptimeCheckIpsCount() {
     return uptimeCheckIps_.size();
   }
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -125,8 +97,6 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
     return uptimeCheckIps_.get(index);
   }
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -135,17 +105,15 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index) {
+  public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
+      int index) {
     return uptimeCheckIps_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -156,7 +124,6 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -165,15 +132,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -184,15 +150,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -201,7 +168,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < uptimeCheckIps_.size(); i++) { output.writeMessage(1, uptimeCheckIps_.get(i)); } @@ -230,7 +197,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < uptimeCheckIps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckIps_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, uptimeCheckIps_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -243,16 +211,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckIpsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckIpsResponse other = - (com.google.monitoring.v3.ListUptimeCheckIpsResponse) obj; + com.google.monitoring.v3.ListUptimeCheckIpsResponse other = (com.google.monitoring.v3.ListUptimeCheckIpsResponse) obj; - if (!getUptimeCheckIpsList().equals(other.getUptimeCheckIpsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUptimeCheckIpsList() + .equals(other.getUptimeCheckIpsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,135 +245,131 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `ListUptimeCheckIps` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckIpsResponse) com.google.monitoring.v3.ListUptimeCheckIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, - com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckIpsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override @@ -442,18 +407,14 @@ public com.google.monitoring.v3.ListUptimeCheckIpsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckIpsResponse buildPartial() { - com.google.monitoring.v3.ListUptimeCheckIpsResponse result = - new com.google.monitoring.v3.ListUptimeCheckIpsResponse(this); + com.google.monitoring.v3.ListUptimeCheckIpsResponse result = new com.google.monitoring.v3.ListUptimeCheckIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.ListUptimeCheckIpsResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.ListUptimeCheckIpsResponse result) { if (uptimeCheckIpsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uptimeCheckIps_ = java.util.Collections.unmodifiableList(uptimeCheckIps_); @@ -476,39 +437,38 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckIpsResponse r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckIpsResponse) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsResponse) other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsResponse)other); } else { super.mergeFrom(other); return this; @@ -516,8 +476,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsResponse other) { - if (other == com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance()) return this; if (uptimeCheckIpsBuilder_ == null) { if (!other.uptimeCheckIps_.isEmpty()) { if (uptimeCheckIps_.isEmpty()) { @@ -536,10 +495,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsResponse oth uptimeCheckIpsBuilder_ = null; uptimeCheckIps_ = other.uptimeCheckIps_; bitField0_ = (bitField0_ & ~0x00000001); - uptimeCheckIpsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUptimeCheckIpsFieldBuilder() - : null; + uptimeCheckIpsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUptimeCheckIpsFieldBuilder() : null; } else { uptimeCheckIpsBuilder_.addAllMessages(other.uptimeCheckIps_); } @@ -576,32 +534,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.UptimeCheckIp m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckIp.parser(), extensionRegistry); - if (uptimeCheckIpsBuilder_ == null) { - ensureUptimeCheckIpsIsMutable(); - uptimeCheckIps_.add(m); - } else { - uptimeCheckIpsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.UptimeCheckIp m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckIp.parser(), + extensionRegistry); + if (uptimeCheckIpsBuilder_ == null) { + ensureUptimeCheckIpsIsMutable(); + uptimeCheckIps_.add(m); + } else { + uptimeCheckIpsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -611,29 +567,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List uptimeCheckIps_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUptimeCheckIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - uptimeCheckIps_ = - new java.util.ArrayList(uptimeCheckIps_); + uptimeCheckIps_ = new java.util.ArrayList(uptimeCheckIps_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckIp, - com.google.monitoring.v3.UptimeCheckIp.Builder, - com.google.monitoring.v3.UptimeCheckIpOrBuilder> - uptimeCheckIpsBuilder_; + com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder> uptimeCheckIpsBuilder_; /** - * - * *
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -649,8 +597,6 @@ public java.util.List getUptimeCheckIpsL
       }
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -666,8 +612,6 @@ public int getUptimeCheckIpsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -683,8 +627,6 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -692,7 +634,8 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public Builder setUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheckIp value) {
+    public Builder setUptimeCheckIps(
+        int index, com.google.monitoring.v3.UptimeCheckIp value) {
       if (uptimeCheckIpsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -706,8 +649,6 @@ public Builder setUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheck
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -727,8 +668,6 @@ public Builder setUptimeCheckIps(
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -750,8 +689,6 @@ public Builder addUptimeCheckIps(com.google.monitoring.v3.UptimeCheckIp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -759,7 +696,8 @@ public Builder addUptimeCheckIps(com.google.monitoring.v3.UptimeCheckIp value) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public Builder addUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheckIp value) {
+    public Builder addUptimeCheckIps(
+        int index, com.google.monitoring.v3.UptimeCheckIp value) {
       if (uptimeCheckIpsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -773,8 +711,6 @@ public Builder addUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheck
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -794,8 +730,6 @@ public Builder addUptimeCheckIps(
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -815,8 +749,6 @@ public Builder addUptimeCheckIps(
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -828,7 +760,8 @@ public Builder addAllUptimeCheckIps(
         java.lang.Iterable values) {
       if (uptimeCheckIpsBuilder_ == null) {
         ensureUptimeCheckIpsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uptimeCheckIps_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, uptimeCheckIps_);
         onChanged();
       } else {
         uptimeCheckIpsBuilder_.addAllMessages(values);
@@ -836,8 +769,6 @@ public Builder addAllUptimeCheckIps(
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -856,8 +787,6 @@ public Builder clearUptimeCheckIps() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -876,8 +805,6 @@ public Builder removeUptimeCheckIps(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -885,12 +812,11 @@ public Builder removeUptimeCheckIps(int index) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(int index) {
+    public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(
+        int index) {
       return getUptimeCheckIpsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -898,16 +824,14 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(i
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index) {
+    public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
+        int index) {
       if (uptimeCheckIpsBuilder_ == null) {
-        return uptimeCheckIps_.get(index);
-      } else {
+        return uptimeCheckIps_.get(index);  } else {
         return uptimeCheckIpsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -915,8 +839,8 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public java.util.List
-        getUptimeCheckIpsOrBuilderList() {
+    public java.util.List 
+         getUptimeCheckIpsOrBuilderList() {
       if (uptimeCheckIpsBuilder_ != null) {
         return uptimeCheckIpsBuilder_.getMessageOrBuilderList();
       } else {
@@ -924,8 +848,6 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -934,12 +856,10 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
     public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder() {
-      return getUptimeCheckIpsFieldBuilder()
-          .addBuilder(com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
+      return getUptimeCheckIpsFieldBuilder().addBuilder(
+          com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -947,13 +867,12 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder()
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(int index) {
-      return getUptimeCheckIpsFieldBuilder()
-          .addBuilder(index, com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
+    public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(
+        int index) {
+      return getUptimeCheckIpsFieldBuilder().addBuilder(
+          index, com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -961,22 +880,16 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(i
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public java.util.List
-        getUptimeCheckIpsBuilderList() {
+    public java.util.List 
+         getUptimeCheckIpsBuilderList() {
       return getUptimeCheckIpsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.UptimeCheckIp,
-            com.google.monitoring.v3.UptimeCheckIp.Builder,
-            com.google.monitoring.v3.UptimeCheckIpOrBuilder>
+        com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder> 
         getUptimeCheckIpsFieldBuilder() {
       if (uptimeCheckIpsBuilder_ == null) {
-        uptimeCheckIpsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.UptimeCheckIp,
-                com.google.monitoring.v3.UptimeCheckIp.Builder,
-                com.google.monitoring.v3.UptimeCheckIpOrBuilder>(
+        uptimeCheckIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder>(
                 uptimeCheckIps_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -988,8 +901,6 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1000,13 +911,13 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(i
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,8 +926,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1027,14 +936,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1042,8 +952,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1054,22 +962,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1080,7 +984,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1090,8 +993,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1102,23 +1003,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +1027,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) private static final com.google.monitoring.v3.ListUptimeCheckIpsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckIpsResponse(); } @@ -1142,27 +1041,27 @@ public static com.google.monitoring.v3.ListUptimeCheckIpsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1177,4 +1076,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListUptimeCheckIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java index 0a21aa8cb57f..e1b6b39e1fab 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckIpsResponseOrBuilder - extends +public interface ListUptimeCheckIpsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckIpsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -33,10 +15,9 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  java.util.List getUptimeCheckIpsList();
+  java.util.List 
+      getUptimeCheckIpsList();
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -46,8 +27,6 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    */
   com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index);
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -57,8 +36,6 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    */
   int getUptimeCheckIpsCount();
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -66,11 +43,9 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  java.util.List
+  java.util.List 
       getUptimeCheckIpsOrBuilderList();
   /**
-   *
-   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -78,11 +53,10 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index);
+  com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -93,13 +67,10 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -110,8 +81,8 @@ public interface ListUptimeCheckIpsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java new file mode 100644 index 000000000000..11ea122505dc --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric.proto + +package com.google.monitoring.v3; + +public final class MetricProto { + private MetricProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Point_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Point_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeries_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_LabelValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TextLocator_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!google/monitoring/v3/metric.proto\022\024goo" + + "gle.monitoring.v3\032\026google/api/label.prot" + + "o\032\027google/api/metric.proto\032#google/api/m" + + "onitored_resource.proto\032!google/monitori" + + "ng/v3/common.proto\"n\n\005Point\0224\n\010interval\030" + + "\001 \001(\0132\".google.monitoring.v3.TimeInterva" + + "l\022/\n\005value\030\002 \001(\0132 .google.monitoring.v3." + + "TypedValue\"\317\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(" + + "\0132\022.google.api.Metric\022/\n\010resource\030\002 \001(\0132" + + "\035.google.api.MonitoredResource\0227\n\010metada" + + "ta\030\007 \001(\0132%.google.api.MonitoredResourceM" + + "etadata\022<\n\013metric_kind\030\003 \001(\0162\'.google.ap" + + "i.MetricDescriptor.MetricKind\022:\n\nvalue_t" + + "ype\030\004 \001(\0162&.google.api.MetricDescriptor." + + "ValueType\022+\n\006points\030\005 \003(\0132\033.google.monit" + + "oring.v3.Point\022\014\n\004unit\030\010 \001(\t\"\316\002\n\024TimeSer" + + "iesDescriptor\0226\n\021label_descriptors\030\001 \003(\013" + + "2\033.google.api.LabelDescriptor\022U\n\021point_d" + + "escriptors\030\005 \003(\0132:.google.monitoring.v3." + + "TimeSeriesDescriptor.ValueDescriptor\032\246\001\n" + + "\017ValueDescriptor\022\013\n\003key\030\001 \001(\t\022:\n\nvalue_t" + + "ype\030\002 \001(\0162&.google.api.MetricDescriptor." + + "ValueType\022<\n\013metric_kind\030\003 \001(\0162\'.google." + + "api.MetricDescriptor.MetricKind\022\014\n\004unit\030" + + "\004 \001(\t\"\206\002\n\016TimeSeriesData\0226\n\014label_values" + + "\030\001 \003(\0132 .google.monitoring.v3.LabelValue" + + "\022B\n\npoint_data\030\002 \003(\0132..google.monitoring" + + ".v3.TimeSeriesData.PointData\032x\n\tPointDat" + + "a\0220\n\006values\030\001 \003(\0132 .google.monitoring.v3" + + ".TypedValue\0229\n\rtime_interval\030\002 \001(\0132\".goo" + + "gle.monitoring.v3.TimeInterval\"Z\n\nLabelV" + + "alue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_valu" + + "e\030\002 \001(\003H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005val" + + "ue\"Q\n\nQueryError\0222\n\007locator\030\001 \001(\0132!.goog" + + "le.monitoring.v3.TextLocator\022\017\n\007message\030" + + "\002 \001(\t\"\240\002\n\013TextLocator\022\016\n\006source\030\001 \001(\t\022B\n" + + "\016start_position\030\002 \001(\0132*.google.monitorin" + + "g.v3.TextLocator.Position\022@\n\014end_positio" + + "n\030\003 \001(\0132*.google.monitoring.v3.TextLocat" + + "or.Position\0229\n\016nested_locator\030\004 \001(\0132!.go" + + "ogle.monitoring.v3.TextLocator\022\026\n\016nestin" + + "g_reason\030\005 \001(\t\032(\n\010Position\022\014\n\004line\030\001 \001(\005" + + "\022\016\n\006column\030\002 \001(\005B\306\001\n\030com.google.monitori" + + "ng.v3B\013MetricProtoP\001ZAcloud.google.com/g" + + "o/monitoring/apiv3/v2/monitoringpb;monit" + + "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + + "d::Monitoring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.LabelProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Point_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Point_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Point_descriptor, + new java.lang.String[] { "Interval", "Value", }); + internal_static_google_monitoring_v3_TimeSeries_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeries_descriptor, + new java.lang.String[] { "Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points", "Unit", }); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor, + new java.lang.String[] { "LabelDescriptors", "PointDescriptors", }); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor = + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor, + new java.lang.String[] { "Key", "ValueType", "MetricKind", "Unit", }); + internal_static_google_monitoring_v3_TimeSeriesData_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesData_descriptor, + new java.lang.String[] { "LabelValues", "PointData", }); + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor = + internal_static_google_monitoring_v3_TimeSeriesData_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor, + new java.lang.String[] { "Values", "TimeInterval", }); + internal_static_google_monitoring_v3_LabelValue_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_LabelValue_descriptor, + new java.lang.String[] { "BoolValue", "Int64Value", "StringValue", "Value", }); + internal_static_google_monitoring_v3_QueryError_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_QueryError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryError_descriptor, + new java.lang.String[] { "Locator", "Message", }); + internal_static_google_monitoring_v3_TextLocator_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TextLocator_descriptor, + new java.lang.String[] { "Source", "StartPosition", "EndPosition", "NestedLocator", "NestingReason", }); + internal_static_google_monitoring_v3_TextLocator_Position_descriptor = + internal_static_google_monitoring_v3_TextLocator_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TextLocator_Position_descriptor, + new java.lang.String[] { "Line", "Column", }); + com.google.api.LabelProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java new file mode 100644 index 000000000000..96afd1be4fe6 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java @@ -0,0 +1,403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public final class MetricServiceProto { + private MetricServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryErrorList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/metric_service.pr" + + "oto\022\024google.monitoring.v3\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\027googl" + + "e/api/metric.proto\032#google/api/monitored" + + "_resource.proto\032\031google/api/resource.pro" + + "to\032!google/monitoring/v3/common.proto\032!g" + + "oogle/monitoring/v3/metric.proto\032\033google" + + "/protobuf/empty.proto\032\027google/rpc/status" + + ".proto\"\256\001\n\'ListMonitoredResourceDescript" + + "orsRequest\022L\n\004name\030\005 \001(\tB>\342A\001\002\372A7\0225monit" + + "oring.googleapis.com/MonitoredResourceDe" + + "scriptor\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " + + "\001(\005\022\022\n\npage_token\030\004 \001(\t\"\212\001\n(ListMonitore" + + "dResourceDescriptorsResponse\022E\n\024resource" + + "_descriptors\030\001 \003(\0132\'.google.api.Monitore" + + "dResourceDescriptor\022\027\n\017next_page_token\030\002" + + " \001(\t\"u\n%GetMonitoredResourceDescriptorRe" + + "quest\022L\n\004name\030\003 \001(\tB>\342A\001\002\372A7\n5monitoring" + + ".googleapis.com/MonitoredResourceDescrip" + + "tor\"\230\001\n\034ListMetricDescriptorsRequest\022A\n\004" + + "name\030\005 \001(\tB3\342A\001\002\372A,\022*monitoring.googleap" + + "is.com/MetricDescriptor\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r" + + "\n\035ListMetricDescriptorsResponse\0228\n\022metri" + + "c_descriptors\030\001 \003(\0132\034.google.api.MetricD" + + "escriptor\022\027\n\017next_page_token\030\002 \001(\t\"_\n\032Ge" + + "tMetricDescriptorRequest\022A\n\004name\030\003 \001(\tB3" + + "\342A\001\002\372A,\n*monitoring.googleapis.com/Metri" + + "cDescriptor\"\241\001\n\035CreateMetricDescriptorRe" + + "quest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\022*monitoring" + + ".googleapis.com/MetricDescriptor\022=\n\021metr" + + "ic_descriptor\030\002 \001(\0132\034.google.api.MetricD" + + "escriptorB\004\342A\001\002\"b\n\035DeleteMetricDescripto" + + "rRequest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\n*monitor" + + "ing.googleapis.com/MetricDescriptor\"\322\003\n\025" + + "ListTimeSeriesRequest\022;\n\004name\030\n \001(\tB-\342A\001" + + "\002\372A&\022$monitoring.googleapis.com/TimeSeri" + + "es\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022:\n\010interval\030\004 \001" + + "(\0132\".google.monitoring.v3.TimeIntervalB\004" + + "\342A\001\002\0226\n\013aggregation\030\005 \001(\0132!.google.monit" + + "oring.v3.Aggregation\022@\n\025secondary_aggreg" + + "ation\030\013 \001(\0132!.google.monitoring.v3.Aggre" + + "gation\022\020\n\010order_by\030\006 \001(\t\022N\n\004view\030\007 \001(\0162:" + + ".google.monitoring.v3.ListTimeSeriesRequ" + + "est.TimeSeriesViewB\004\342A\001\002\022\021\n\tpage_size\030\010 " + + "\001(\005\022\022\n\npage_token\030\t \001(\t\"\'\n\016TimeSeriesVie" + + "w\022\010\n\004FULL\020\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTimeSer" + + "iesResponse\0225\n\013time_series\030\001 \003(\0132 .googl" + + "e.monitoring.v3.TimeSeries\022\027\n\017next_page_" + + "token\030\002 \001(\t\022,\n\020execution_errors\030\003 \003(\0132\022." + + "google.rpc.Status\022\014\n\004unit\030\005 \001(\t\"\232\001\n\027Crea" + + "teTimeSeriesRequest\022B\n\004name\030\003 \001(\tB4\342A\001\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022;\n\013time_series\030\002 \003(\0132 .google.mo" + + "nitoring.v3.TimeSeriesB\004\342A\001\002\"z\n\025CreateTi" + + "meSeriesError\0229\n\013time_series\030\001 \001(\0132 .goo" + + "gle.monitoring.v3.TimeSeriesB\002\030\001\022&\n\006stat" + + "us\030\002 \001(\0132\022.google.rpc.StatusB\002\030\001\"\330\001\n\027Cre" + + "ateTimeSeriesSummary\022\031\n\021total_point_coun" + + "t\030\001 \001(\005\022\033\n\023success_point_count\030\002 \001(\005\022C\n\006" + + "errors\030\003 \003(\01323.google.monitoring.v3.Crea" + + "teTimeSeriesSummary.Error\032@\n\005Error\022\"\n\006st" + + "atus\030\001 \001(\0132\022.google.rpc.Status\022\023\n\013point_" + + "count\030\002 \001(\005\"h\n\026QueryTimeSeriesRequest\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005query\030\007 \001(\tB\004\342A\001\002\022\021" + + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\"\352\001" + + "\n\027QueryTimeSeriesResponse\022J\n\026time_series" + + "_descriptor\030\010 \001(\0132*.google.monitoring.v3" + + ".TimeSeriesDescriptor\022>\n\020time_series_dat" + + "a\030\t \003(\0132$.google.monitoring.v3.TimeSerie" + + "sData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016partia" + + "l_errors\030\013 \003(\0132\022.google.rpc.Status\"Y\n\016Qu" + + "eryErrorList\0220\n\006errors\030\001 \003(\0132 .google.mo" + + "nitoring.v3.QueryError\022\025\n\rerror_summary\030" + + "\002 \001(\t2\274\017\n\rMetricService\022\344\001\n ListMonitore" + + "dResourceDescriptors\022=.google.monitoring" + + ".v3.ListMonitoredResourceDescriptorsRequ" + + "est\032>.google.monitoring.v3.ListMonitored" + + "ResourceDescriptorsResponse\"A\332A\004name\202\323\344\223" + + "\0024\0222/v3/{name=projects/*}/monitoredResou" + + "rceDescriptors\022\314\001\n\036GetMonitoredResourceD" + + "escriptor\022;.google.monitoring.v3.GetMoni" + + "toredResourceDescriptorRequest\032\'.google." + + "api.MonitoredResourceDescriptor\"D\332A\004name" + + "\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredRe" + + "sourceDescriptors/**}\022\270\001\n\025ListMetricDesc" + + "riptors\0222.google.monitoring.v3.ListMetri" + + "cDescriptorsRequest\0323.google.monitoring." + + "v3.ListMetricDescriptorsResponse\"6\332A\004nam" + + "e\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDes" + + "criptors\022\240\001\n\023GetMetricDescriptor\0220.googl" + + "e.monitoring.v3.GetMetricDescriptorReque" + + "st\032\034.google.api.MetricDescriptor\"9\332A\004nam" + + "e\202\323\344\223\002,\022*/v3/{name=projects/*/metricDesc" + + "riptors/**}\022\310\001\n\026CreateMetricDescriptor\0223" + + ".google.monitoring.v3.CreateMetricDescri" + + "ptorRequest\032\034.google.api.MetricDescripto" + + "r\"[\332A\026name,metric_descriptor\202\323\344\223\002<\"\'/v3/" + + "{name=projects/*}/metricDescriptors:\021met" + + "ric_descriptor\022\240\001\n\026DeleteMetricDescripto" + + "r\0223.google.monitoring.v3.DeleteMetricDes" + + "criptorRequest\032\026.google.protobuf.Empty\"9" + + "\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/metr" + + "icDescriptors/**}\022\376\001\n\016ListTimeSeries\022+.g" + + "oogle.monitoring.v3.ListTimeSeriesReques" + + "t\032,.google.monitoring.v3.ListTimeSeriesR" + + "esponse\"\220\001\332A\031name,filter,interval,view\202\323" + + "\344\223\002n\022 /v3/{name=projects/*}/timeSeriesZ\'" + + "\022%/v3/{name=organizations/*}/timeSeriesZ" + + "!\022\037/v3/{name=folders/*}/timeSeries\022\231\001\n\020C" + + "reateTimeSeries\022-.google.monitoring.v3.C" + + "reateTimeSeriesRequest\032\026.google.protobuf" + + ".Empty\">\332A\020name,time_series\202\323\344\223\002%\" /v3/{" + + "name=projects/*}/timeSeries:\001*\022\256\001\n\027Creat" + + "eServiceTimeSeries\022-.google.monitoring.v" + + "3.CreateTimeSeriesRequest\032\026.google.proto" + + "buf.Empty\"L\332A\020name,time_series\202\323\344\223\0023\"./v" + + "3/{name=projects/*}/timeSeries:createSer" + + "vice:\001*\032\332\001\312A\031monitoring.googleapis.com\322A" + + "\272\001https://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth" + + "/monitoring,https://www.googleapis.com/a" + + "uth/monitoring.read,https://www.googleap" + + "is.com/auth/monitoring.writeB\211\010\n\030com.goo" + + "gle.monitoring.v3B\022MetricServiceProtoP\001Z" + + "Acloud.google.com/go/monitoring/apiv3/v2" + + "/monitoringpb;monitoringpb\252\002\032Google.Clou" + + "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" + + "g\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001" + + "\n*monitoring.googleapis.com/MetricDescri" + + "ptor\022;projects/{project}/metricDescripto" + + "rs/{metric_descriptor=**}\022Eorganizations" + + "/{organization}/metricDescriptors/{metri" + + "c_descriptor=**}\0229folders/{folder}/metri" + + "cDescriptors/{metric_descriptor=**}\022\001* \001" + + "\352A\267\002\n5monitoring.googleapis.com/Monitore" + + "dResourceDescriptor\022Oprojects/{project}/" + + "monitoredResourceDescriptors/{monitored_" + + "resource_descriptor}\022Yorganizations/{org" + + "anization}/monitoredResourceDescriptors/" + + "{monitored_resource_descriptor}\022Mfolders" + + "/{folder}/monitoredResourceDescriptors/{" + + "monitored_resource_descriptor}\022\001* \001\352AQ\n#" + + "monitoring.googleapis.com/Workspace\022\022pro" + + "jects/{project}\022\026workspaces/{workspace}\352" + + "A\265\001\n$monitoring.googleapis.com/TimeSerie" + + "s\022+projects/{project}/timeSeries/{time_s" + + "eries}\0225organizations/{organization}/tim" + + "eSeries/{time_series}\022)folders/{folder}/" + + "timeSeries/{time_series}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.MetricProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor, + new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor, + new java.lang.String[] { "ResourceDescriptors", "NextPageToken", }); + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor, + new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor, + new java.lang.String[] { "MetricDescriptors", "NextPageToken", }); + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor, + new java.lang.String[] { "Name", "MetricDescriptor", }); + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor, + new java.lang.String[] { "Name", "Filter", "Interval", "Aggregation", "SecondaryAggregation", "OrderBy", "View", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor, + new java.lang.String[] { "TimeSeries", "NextPageToken", "ExecutionErrors", "Unit", }); + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor, + new java.lang.String[] { "Name", "TimeSeries", }); + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor, + new java.lang.String[] { "TimeSeries", "Status", }); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor, + new java.lang.String[] { "TotalPointCount", "SuccessPointCount", "Errors", }); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor = + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor, + new java.lang.String[] { "Status", "PointCount", }); + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor, + new java.lang.String[] { "Name", "Query", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor, + new java.lang.String[] { "TimeSeriesDescriptor", "TimeSeriesData", "NextPageToken", "PartialErrors", }); + internal_static_google_monitoring_v3_QueryErrorList_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryErrorList_descriptor, + new java.lang.String[] { "Errors", "ErrorSummary", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.MetricProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java index 1c69e42faa34..8bf38fa5e095 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/mutation_record.proto package com.google.monitoring.v3; /** - * - * *
  * Describes a change made to a configuration.
  * 
* * Protobuf type {@code google.monitoring.v3.MutationRecord} */ -public final class MutationRecord extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MutationRecord extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.MutationRecord) MutationRecordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MutationRecord.newBuilder() to construct. private MutationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutationRecord() { mutatedBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MutationRecord(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MutationRecordProto - .internal_static_google_monitoring_v3_MutationRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MutationRecordProto - .internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable + return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.MutationRecord.class, - com.google.monitoring.v3.MutationRecord.Builder.class); + com.google.monitoring.v3.MutationRecord.class, com.google.monitoring.v3.MutationRecord.Builder.class); } public static final int MUTATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp mutateTime_; /** - * - * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return Whether the mutateTime field is set. */ @java.lang.Override @@ -80,14 +58,11 @@ public boolean hasMutateTime() { return mutateTime_ != null; } /** - * - * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return The mutateTime. */ @java.lang.Override @@ -95,8 +70,6 @@ public com.google.protobuf.Timestamp getMutateTime() { return mutateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; } /** - * - * *
    * When the change occurred.
    * 
@@ -109,18 +82,14 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { } public static final int MUTATED_BY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mutatedBy_ = ""; /** - * - * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; - * * @return The mutatedBy. */ @java.lang.Override @@ -129,29 +98,29 @@ public java.lang.String getMutatedBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mutatedBy_ = s; return s; } } /** - * - * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; - * * @return The bytes for mutatedBy. */ @java.lang.Override - public com.google.protobuf.ByteString getMutatedByBytes() { + public com.google.protobuf.ByteString + getMutatedByBytes() { java.lang.Object ref = mutatedBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mutatedBy_ = b; return b; } else { @@ -160,7 +129,6 @@ public com.google.protobuf.ByteString getMutatedByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (mutateTime_ != null) { output.writeMessage(1, getMutateTime()); } @@ -189,7 +158,8 @@ public int getSerializedSize() { size = 0; if (mutateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMutateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMutateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mutatedBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mutatedBy_); @@ -202,7 +172,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.MutationRecord)) { return super.equals(obj); @@ -211,9 +181,11 @@ public boolean equals(final java.lang.Object obj) { if (hasMutateTime() != other.hasMutateTime()) return false; if (hasMutateTime()) { - if (!getMutateTime().equals(other.getMutateTime())) return false; + if (!getMutateTime() + .equals(other.getMutateTime())) return false; } - if (!getMutatedBy().equals(other.getMutatedBy())) return false; + if (!getMutatedBy() + .equals(other.getMutatedBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,136 +208,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.MutationRecord parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.MutationRecord parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.MutationRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.MutationRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.MutationRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.MutationRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a change made to a configuration.
    * 
* * Protobuf type {@code google.monitoring.v3.MutationRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.MutationRecord) com.google.monitoring.v3.MutationRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MutationRecordProto - .internal_static_google_monitoring_v3_MutationRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MutationRecordProto - .internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable + return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.MutationRecord.class, - com.google.monitoring.v3.MutationRecord.Builder.class); + com.google.monitoring.v3.MutationRecord.class, com.google.monitoring.v3.MutationRecord.Builder.class); } // Construct using com.google.monitoring.v3.MutationRecord.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MutationRecordProto - .internal_static_google_monitoring_v3_MutationRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override @@ -401,11 +369,8 @@ public com.google.monitoring.v3.MutationRecord build() { @java.lang.Override public com.google.monitoring.v3.MutationRecord buildPartial() { - com.google.monitoring.v3.MutationRecord result = - new com.google.monitoring.v3.MutationRecord(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.MutationRecord result = new com.google.monitoring.v3.MutationRecord(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -413,7 +378,9 @@ public com.google.monitoring.v3.MutationRecord buildPartial() { private void buildPartial0(com.google.monitoring.v3.MutationRecord result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.mutateTime_ = mutateTimeBuilder_ == null ? mutateTime_ : mutateTimeBuilder_.build(); + result.mutateTime_ = mutateTimeBuilder_ == null + ? mutateTime_ + : mutateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.mutatedBy_ = mutatedBy_; @@ -424,39 +391,38 @@ private void buildPartial0(com.google.monitoring.v3.MutationRecord result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.MutationRecord) { - return mergeFrom((com.google.monitoring.v3.MutationRecord) other); + return mergeFrom((com.google.monitoring.v3.MutationRecord)other); } else { super.mergeFrom(other); return this; @@ -499,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getMutateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - mutatedBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMutateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + mutatedBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,52 +492,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp mutateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - mutateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> mutateTimeBuilder_; /** - * - * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return Whether the mutateTime field is set. */ public boolean hasMutateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return The mutateTime. */ public com.google.protobuf.Timestamp getMutateTime() { if (mutateTimeBuilder_ == null) { - return mutateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : mutateTime_; + return mutateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; } else { return mutateTimeBuilder_.getMessage(); } } /** - * - * *
      * When the change occurred.
      * 
@@ -593,15 +544,14 @@ public Builder setMutateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; */ - public Builder setMutateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMutateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (mutateTimeBuilder_ == null) { mutateTime_ = builderForValue.build(); } else { @@ -612,8 +562,6 @@ public Builder setMutateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * When the change occurred.
      * 
@@ -622,9 +570,9 @@ public Builder setMutateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeMutateTime(com.google.protobuf.Timestamp value) { if (mutateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && mutateTime_ != null - && mutateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + mutateTime_ != null && + mutateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMutateTimeBuilder().mergeFrom(value); } else { mutateTime_ = value; @@ -637,8 +585,6 @@ public Builder mergeMutateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * When the change occurred.
      * 
@@ -656,8 +602,6 @@ public Builder clearMutateTime() { return this; } /** - * - * *
      * When the change occurred.
      * 
@@ -670,8 +614,6 @@ public com.google.protobuf.Timestamp.Builder getMutateTimeBuilder() { return getMutateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When the change occurred.
      * 
@@ -682,14 +624,11 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { if (mutateTimeBuilder_ != null) { return mutateTimeBuilder_.getMessageOrBuilder(); } else { - return mutateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : mutateTime_; + return mutateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; } } /** - * - * *
      * When the change occurred.
      * 
@@ -697,17 +636,14 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { * .google.protobuf.Timestamp mutate_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMutateTimeFieldBuilder() { if (mutateTimeBuilder_ == null) { - mutateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMutateTime(), getParentForChildren(), isClean()); + mutateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMutateTime(), + getParentForChildren(), + isClean()); mutateTime_ = null; } return mutateTimeBuilder_; @@ -715,20 +651,18 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { private java.lang.Object mutatedBy_ = ""; /** - * - * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; - * * @return The mutatedBy. */ public java.lang.String getMutatedBy() { java.lang.Object ref = mutatedBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mutatedBy_ = s; return s; @@ -737,21 +671,20 @@ public java.lang.String getMutatedBy() { } } /** - * - * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; - * * @return The bytes for mutatedBy. */ - public com.google.protobuf.ByteString getMutatedByBytes() { + public com.google.protobuf.ByteString + getMutatedByBytes() { java.lang.Object ref = mutatedBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mutatedBy_ = b; return b; } else { @@ -759,35 +692,28 @@ public com.google.protobuf.ByteString getMutatedByBytes() { } } /** - * - * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; - * * @param value The mutatedBy to set. * @return This builder for chaining. */ - public Builder setMutatedBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMutatedBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mutatedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; - * * @return This builder for chaining. */ public Builder clearMutatedBy() { @@ -797,30 +723,26 @@ public Builder clearMutatedBy() { return this; } /** - * - * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; - * * @param value The bytes for mutatedBy to set. * @return This builder for chaining. */ - public Builder setMutatedByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMutatedByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mutatedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -830,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.MutationRecord) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) private static final com.google.monitoring.v3.MutationRecord DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.MutationRecord(); } @@ -844,27 +766,27 @@ public static com.google.monitoring.v3.MutationRecord getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MutationRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutationRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -879,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.MutationRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java similarity index 62% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java index 63802659b53f..74557bc8181a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/mutation_record.proto package com.google.monitoring.v3; -public interface MutationRecordOrBuilder - extends +public interface MutationRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.MutationRecord) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return Whether the mutateTime field is set. */ boolean hasMutateTime(); /** - * - * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; - * * @return The mutateTime. */ com.google.protobuf.Timestamp getMutateTime(); /** - * - * *
    * When the change occurred.
    * 
@@ -59,27 +35,22 @@ public interface MutationRecordOrBuilder com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder(); /** - * - * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; - * * @return The mutatedBy. */ java.lang.String getMutatedBy(); /** - * - * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; - * * @return The bytes for mutatedBy. */ - com.google.protobuf.ByteString getMutatedByBytes(); + com.google.protobuf.ByteString + getMutatedByBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java new file mode 100644 index 000000000000..5c765d281caa --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/mutation_record.proto + +package com.google.monitoring.v3; + +public final class MutationRecordProto { + private MutationRecordProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_MutationRecord_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/monitoring/v3/mutation_record.p" + + "roto\022\024google.monitoring.v3\032\037google/proto" + + "buf/timestamp.proto\"U\n\016MutationRecord\022/\n" + + "\013mutate_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\022\n\nmutated_by\030\002 \001(\tB\316\001\n\030com.googl" + + "e.monitoring.v3B\023MutationRecordProtoP\001ZA" + + "cloud.google.com/go/monitoring/apiv3/v2/" + + "monitoringpb;monitoringpb\252\002\032Google.Cloud" + + ".Monitoring.V3\312\002\032Google\\Cloud\\Monitoring" + + "\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_MutationRecord_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_MutationRecord_descriptor, + new java.lang.String[] { "MutateTime", "MutatedBy", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java index 8f06f09adf94..1c4d58d2fb6b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; /** - * - * *
  * A `NotificationChannel` is a medium through which an alert is
  * delivered when a policy violation is detected. Examples of channels
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.NotificationChannel}
  */
-public final class NotificationChannel extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationChannel extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.NotificationChannel)
     NotificationChannelOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationChannel.newBuilder() to construct.
   private NotificationChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationChannel() {
     type_ = "";
     name_ = "";
@@ -52,41 +34,39 @@ private NotificationChannel() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationChannel();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.NotificationProto
-        .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       case 8:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.NotificationProto
-        .internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
+    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.NotificationChannel.class,
-            com.google.monitoring.v3.NotificationChannel.Builder.class);
+            com.google.monitoring.v3.NotificationChannel.class, com.google.monitoring.v3.NotificationChannel.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates whether the channel has been verified or not. It is illegal
    * to specify this field in a
@@ -98,10 +78,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.monitoring.v3.NotificationChannel.VerificationStatus}
    */
-  public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnum {
+  public enum VerificationStatus
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Sentinel value used to indicate that the state is unknown, omitted, or
      * is not applicable (as in the case of channels that neither support
@@ -112,8 +91,6 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
      */
     VERIFICATION_STATUS_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The channel has yet to be verified and requires verification to function.
      * Note that this state also applies to the case where the verification
@@ -125,8 +102,6 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
      */
     UNVERIFIED(1),
     /**
-     *
-     *
      * 
      * It has been proven that notifications can be received on this
      * notification channel and that someone on the project has access
@@ -140,8 +115,6 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
     ;
 
     /**
-     *
-     *
      * 
      * Sentinel value used to indicate that the state is unknown, omitted, or
      * is not applicable (as in the case of channels that neither support
@@ -152,8 +125,6 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int VERIFICATION_STATUS_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The channel has yet to be verified and requires verification to function.
      * Note that this state also applies to the case where the verification
@@ -165,8 +136,6 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int UNVERIFIED_VALUE = 1;
     /**
-     *
-     *
      * 
      * It has been proven that notifications can be received on this
      * notification channel and that someone on the project has access
@@ -177,6 +146,7 @@ public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int VERIFIED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -201,14 +171,10 @@ public static VerificationStatus valueOf(int value) {
      */
     public static VerificationStatus forNumber(int value) {
       switch (value) {
-        case 0:
-          return VERIFICATION_STATUS_UNSPECIFIED;
-        case 1:
-          return UNVERIFIED;
-        case 2:
-          return VERIFIED;
-        default:
-          return null;
+        case 0: return VERIFICATION_STATUS_UNSPECIFIED;
+        case 1: return UNVERIFIED;
+        case 2: return VERIFIED;
+        default: return null;
       }
     }
 
@@ -216,28 +182,28 @@ public static VerificationStatus forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        VerificationStatus> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public VerificationStatus findValueByNumber(int number) {
+              return VerificationStatus.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public VerificationStatus findValueByNumber(int number) {
-                return VerificationStatus.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.NotificationChannel.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -246,7 +212,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static VerificationStatus valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -264,19 +231,17 @@ private VerificationStatus(int value) {
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
-   *
-   *
    * 
    * The type of the notification channel. This field matches the
-   * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+   * value of the
+   * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+   * field.
    * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -285,30 +250,32 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
    * The type of the notification channel. This field matches the
-   * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+   * value of the
+   * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+   * field.
    * 
* * string type = 1; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -317,12 +284,9 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The full REST resource name for this channel. The format is:
    *
@@ -332,7 +296,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
    * 
* * string name = 6; - * * @return The name. */ @java.lang.Override @@ -341,15 +304,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The full REST resource name for this channel. The format is:
    *
@@ -359,15 +321,16 @@ public java.lang.String getName() {
    * 
* * string name = 6; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -376,12 +339,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -390,7 +350,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -399,15 +358,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -416,15 +374,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -433,12 +392,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -446,7 +402,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 4; - * * @return The description. */ @java.lang.Override @@ -455,15 +410,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -471,15 +425,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 4; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -488,64 +443,61 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.NotificationProto - .internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; @@ -555,46 +507,42 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -602,34 +550,32 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int USER_LABELS_FIELD_NUMBER = 8; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.NotificationProto - .internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -645,21 +591,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -679,8 +624,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -696,19 +639,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -724,11 +665,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -738,8 +679,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   public static final int VERIFICATION_STATUS_FIELD_NUMBER = 9;
   private int verificationStatus_ = 0;
   /**
-   *
-   *
    * 
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -762,18 +701,13 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return The enum numeric value on the wire for verificationStatus. */ - @java.lang.Override - public int getVerificationStatusValue() { + @java.lang.Override public int getVerificationStatusValue() { return verificationStatus_; } /** - * - * *
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -796,26 +730,17 @@ public int getVerificationStatusValue() {
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return The verificationStatus. */ - @java.lang.Override - public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { - com.google.monitoring.v3.NotificationChannel.VerificationStatus result = - com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber( - verificationStatus_); - return result == null - ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { + com.google.monitoring.v3.NotificationChannel.VerificationStatus result = com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber(verificationStatus_); + return result == null ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED : result; } public static final int ENABLED_FIELD_NUMBER = 11; private com.google.protobuf.BoolValue enabled_; /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -826,7 +751,6 @@ public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerifi
    * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return Whether the enabled field is set. */ @java.lang.Override @@ -834,8 +758,6 @@ public boolean hasEnabled() { return enabled_ != null; } /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -846,7 +768,6 @@ public boolean hasEnabled() {
    * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return The enabled. */ @java.lang.Override @@ -854,8 +775,6 @@ public com.google.protobuf.BoolValue getEnabled() { return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_; } /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -875,14 +794,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
   public static final int CREATION_RECORD_FIELD_NUMBER = 12;
   private com.google.monitoring.v3.MutationRecord creationRecord_;
   /**
-   *
-   *
    * 
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return Whether the creationRecord field is set. */ @java.lang.Override @@ -890,25 +806,18 @@ public boolean hasCreationRecord() { return creationRecord_ != null; } /** - * - * *
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return The creationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getCreationRecord() { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } /** - * - * *
    * Record of the creation of this channel.
    * 
@@ -917,18 +826,13 @@ public com.google.monitoring.v3.MutationRecord getCreationRecord() { */ @java.lang.Override public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder() { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } public static final int MUTATION_RECORDS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private java.util.List mutationRecords_; /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -940,8 +844,6 @@ public java.util.List getMutationRecord return mutationRecords_; } /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -949,13 +851,11 @@ public java.util.List getMutationRecord * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ @java.lang.Override - public java.util.List + public java.util.List getMutationRecordsOrBuilderList() { return mutationRecords_; } /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -967,8 +867,6 @@ public int getMutationRecordsCount() { return mutationRecords_.size(); } /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -980,8 +878,6 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { return mutationRecords_.get(index); } /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -989,12 +885,12 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ @java.lang.Override - public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index) { + public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( + int index) { return mutationRecords_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1006,7 +902,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -1016,17 +913,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 8); - if (verificationStatus_ - != com.google.monitoring.v3.NotificationChannel.VerificationStatus - .VERIFICATION_STATUS_UNSPECIFIED - .getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 8); + if (verificationStatus_ != com.google.monitoring.v3.NotificationChannel.VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(9, verificationStatus_); } if (enabled_ != null) { @@ -1056,43 +958,44 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } - for (java.util.Map.Entry entry : - internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry userLabels__ = - UserLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, userLabels__); - } - if (verificationStatus_ - != com.google.monitoring.v3.NotificationChannel.VerificationStatus - .VERIFICATION_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, verificationStatus_); + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, userLabels__); + } + if (verificationStatus_ != com.google.monitoring.v3.NotificationChannel.VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, verificationStatus_); } if (enabled_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEnabled()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getEnabled()); } if (creationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreationRecord()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getCreationRecord()); } for (int i = 0; i < mutationRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, mutationRecords_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, mutationRecords_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1102,30 +1005,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.NotificationChannel)) { return super.equals(obj); } - com.google.monitoring.v3.NotificationChannel other = - (com.google.monitoring.v3.NotificationChannel) obj; - - if (!getType().equals(other.getType())) return false; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + com.google.monitoring.v3.NotificationChannel other = (com.google.monitoring.v3.NotificationChannel) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; if (verificationStatus_ != other.verificationStatus_) return false; if (hasEnabled() != other.hasEnabled()) return false; if (hasEnabled()) { - if (!getEnabled().equals(other.getEnabled())) return false; + if (!getEnabled() + .equals(other.getEnabled())) return false; } if (hasCreationRecord() != other.hasCreationRecord()) return false; if (hasCreationRecord()) { - if (!getCreationRecord().equals(other.getCreationRecord())) return false; + if (!getCreationRecord() + .equals(other.getCreationRecord())) return false; } - if (!getMutationRecordsList().equals(other.getMutationRecordsList())) return false; + if (!getMutationRecordsList() + .equals(other.getMutationRecordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1172,104 +1083,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.NotificationChannel parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.NotificationChannel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.NotificationChannel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `NotificationChannel` is a medium through which an alert is
    * delivered when a policy violation is detected. Examples of channels
@@ -1280,56 +1186,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.NotificationChannel}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.NotificationChannel)
       com.google.monitoring.v3.NotificationChannelOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         case 8:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         case 8:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.NotificationChannel.class,
-              com.google.monitoring.v3.NotificationChannel.Builder.class);
+              com.google.monitoring.v3.NotificationChannel.class, com.google.monitoring.v3.NotificationChannel.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.NotificationChannel.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1362,9 +1271,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
     }
 
     @java.lang.Override
@@ -1383,12 +1292,9 @@ public com.google.monitoring.v3.NotificationChannel build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.NotificationChannel buildPartial() {
-      com.google.monitoring.v3.NotificationChannel result =
-          new com.google.monitoring.v3.NotificationChannel(this);
+      com.google.monitoring.v3.NotificationChannel result = new com.google.monitoring.v3.NotificationChannel(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1431,11 +1337,14 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannel result)
         result.verificationStatus_ = verificationStatus_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.enabled_ = enabledBuilder_ == null ? enabled_ : enabledBuilder_.build();
+        result.enabled_ = enabledBuilder_ == null
+            ? enabled_
+            : enabledBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.creationRecord_ =
-            creationRecordBuilder_ == null ? creationRecord_ : creationRecordBuilder_.build();
+        result.creationRecord_ = creationRecordBuilder_ == null
+            ? creationRecord_
+            : creationRecordBuilder_.build();
       }
     }
 
@@ -1443,39 +1352,38 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannel result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.NotificationChannel) {
-        return mergeFrom((com.google.monitoring.v3.NotificationChannel) other);
+        return mergeFrom((com.google.monitoring.v3.NotificationChannel)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1504,9 +1412,11 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) {
         bitField0_ |= 0x00000008;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000010;
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000020;
       if (other.verificationStatus_ != 0) {
         setVerificationStatusValue(other.getVerificationStatusValue());
@@ -1535,10 +1445,9 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) {
             mutationRecordsBuilder_ = null;
             mutationRecords_ = other.mutationRecords_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            mutationRecordsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getMutationRecordsFieldBuilder()
-                    : null;
+            mutationRecordsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getMutationRecordsFieldBuilder() : null;
           } else {
             mutationRecordsBuilder_.addAllMessages(other.mutationRecords_);
           }
@@ -1570,92 +1479,82 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 50
-            case 66:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 66
-            case 72:
-              {
-                verificationStatus_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 72
-            case 90:
-              {
-                input.readMessage(getEnabledFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getCreationRecordFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.monitoring.v3.MutationRecord m =
-                    input.readMessage(
-                        com.google.monitoring.v3.MutationRecord.parser(), extensionRegistry);
-                if (mutationRecordsBuilder_ == null) {
-                  ensureMutationRecordsIsMutable();
-                  mutationRecords_.add(m);
-                } else {
-                  mutationRecordsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 50
+            case 66: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 66
+            case 72: {
+              verificationStatus_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 72
+            case 90: {
+              input.readMessage(
+                  getEnabledFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getCreationRecordFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 98
+            case 106: {
+              com.google.monitoring.v3.MutationRecord m =
+                  input.readMessage(
+                      com.google.monitoring.v3.MutationRecord.parser(),
+                      extensionRegistry);
+              if (mutationRecordsBuilder_ == null) {
+                ensureMutationRecordsIsMutable();
+                mutationRecords_.add(m);
+              } else {
+                mutationRecordsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1665,26 +1564,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
-     *
-     *
      * 
      * The type of the notification channel. This field matches the
-     * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+     * value of the
+     * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+     * field.
      * 
* * string type = 1; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1693,22 +1591,23 @@ public java.lang.String getType() { } } /** - * - * *
      * The type of the notification channel. This field matches the
-     * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+     * value of the
+     * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+     * field.
      * 
* * string type = 1; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1716,37 +1615,34 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * The type of the notification channel. This field matches the
-     * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+     * value of the
+     * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+     * field.
      * 
* * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The type of the notification channel. This field matches the
-     * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+     * value of the
+     * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+     * field.
      * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1756,22 +1652,20 @@ public Builder clearType() { return this; } /** - * - * *
      * The type of the notification channel. This field matches the
-     * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+     * value of the
+     * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+     * field.
      * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -1781,8 +1675,6 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1792,13 +1684,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 6; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1807,8 +1699,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1818,14 +1708,15 @@ public java.lang.String getName() {
      * 
* * string name = 6; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1833,8 +1724,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1844,22 +1733,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 6; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1869,7 +1754,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 6; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1879,8 +1763,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1890,14 +1772,12 @@ public Builder clearName() {
      * 
* * string name = 6; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; @@ -1907,8 +1787,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1917,13 +1795,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1932,8 +1810,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1942,14 +1818,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1957,8 +1834,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1967,22 +1842,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1991,7 +1862,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2001,8 +1871,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -2011,14 +1879,12 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2028,8 +1894,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -2037,13 +1901,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 4; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2052,8 +1916,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -2061,14 +1923,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 4; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2076,8 +1939,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -2085,22 +1946,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 4; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -2108,7 +1965,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 4; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2118,8 +1974,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -2127,14 +1981,12 @@ public Builder clearDescription() {
      * 
* * string description = 4; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -2142,19 +1994,21 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2163,43 +2017,39 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; @@ -2209,125 +2059,119 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
-     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-     * `NotificationChannelDescriptor` corresponding to the `type` field.
+     * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+     * of the `NotificationChannelDescriptor` corresponding to the `type` field.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -2336,12 +2180,11 @@ public Builder putAllLabels(java.util.Map va } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -2350,13 +2193,10 @@ public Builder putAllLabels(java.util.Map va onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2372,21 +2212,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2406,8 +2245,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2423,19 +2260,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2451,25 +2286,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2484,22 +2317,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2514,20 +2348,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2542,16 +2373,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private int verificationStatus_ = 0;
     /**
-     *
-     *
      * 
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2574,18 +2405,13 @@ public Builder putAllUserLabels(java.util.Map
      *
-     * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
-     * 
-     *
+     * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9;
      * @return The enum numeric value on the wire for verificationStatus.
      */
-    @java.lang.Override
-    public int getVerificationStatusValue() {
+    @java.lang.Override public int getVerificationStatusValue() {
       return verificationStatus_;
     }
     /**
-     *
-     *
      * 
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2608,9 +2434,7 @@ public int getVerificationStatusValue() {
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @param value The enum numeric value on the wire for verificationStatus to set. * @return This builder for chaining. */ @@ -2621,8 +2445,6 @@ public Builder setVerificationStatusValue(int value) { return this; } /** - * - * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2645,23 +2467,15 @@ public Builder setVerificationStatusValue(int value) {
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return The verificationStatus. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { - com.google.monitoring.v3.NotificationChannel.VerificationStatus result = - com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber( - verificationStatus_); - return result == null - ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED - : result; + com.google.monitoring.v3.NotificationChannel.VerificationStatus result = com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber(verificationStatus_); + return result == null ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED : result; } /** - * - * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2684,14 +2498,11 @@ public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerifi
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @param value The verificationStatus to set. * @return This builder for chaining. */ - public Builder setVerificationStatus( - com.google.monitoring.v3.NotificationChannel.VerificationStatus value) { + public Builder setVerificationStatus(com.google.monitoring.v3.NotificationChannel.VerificationStatus value) { if (value == null) { throw new NullPointerException(); } @@ -2701,8 +2512,6 @@ public Builder setVerificationStatus( return this; } /** - * - * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2725,9 +2534,7 @@ public Builder setVerificationStatus(
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return This builder for chaining. */ public Builder clearVerificationStatus() { @@ -2739,13 +2546,8 @@ public Builder clearVerificationStatus() { private com.google.protobuf.BoolValue enabled_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enabledBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enabledBuilder_; /** - * - * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2756,15 +2558,12 @@ public Builder clearVerificationStatus() {
      * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return Whether the enabled field is set. */ public boolean hasEnabled() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2775,7 +2574,6 @@ public boolean hasEnabled() {
      * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return The enabled. */ public com.google.protobuf.BoolValue getEnabled() { @@ -2786,8 +2584,6 @@ public com.google.protobuf.BoolValue getEnabled() { } } /** - * - * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2813,8 +2609,6 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2826,7 +2620,8 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enabled = 11;
      */
-    public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnabled(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enabledBuilder_ == null) {
         enabled_ = builderForValue.build();
       } else {
@@ -2837,8 +2632,6 @@ public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2852,9 +2645,9 @@ public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
      */
     public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       if (enabledBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && enabled_ != null
-            && enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          enabled_ != null &&
+          enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnabledBuilder().mergeFrom(value);
         } else {
           enabled_ = value;
@@ -2867,8 +2660,6 @@ public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2891,8 +2682,6 @@ public Builder clearEnabled() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2910,8 +2699,6 @@ public com.google.protobuf.BoolValue.Builder getEnabledBuilder() {
       return getEnabledFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2927,12 +2714,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
       if (enabledBuilder_ != null) {
         return enabledBuilder_.getMessageOrBuilder();
       } else {
-        return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
+        return enabled_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
       }
     }
     /**
-     *
-     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2945,17 +2731,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
      * .google.protobuf.BoolValue enabled = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnabledFieldBuilder() {
       if (enabledBuilder_ == null) {
-        enabledBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnabled(), getParentForChildren(), isClean());
+        enabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnabled(),
+                getParentForChildren(),
+                isClean());
         enabled_ = null;
       }
       return enabledBuilder_;
@@ -2963,47 +2746,34 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
 
     private com.google.monitoring.v3.MutationRecord creationRecord_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord,
-            com.google.monitoring.v3.MutationRecord.Builder,
-            com.google.monitoring.v3.MutationRecordOrBuilder>
-        creationRecordBuilder_;
+        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> creationRecordBuilder_;
     /**
-     *
-     *
      * 
      * Record of the creation of this channel.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return Whether the creationRecord field is set. */ public boolean hasCreationRecord() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Record of the creation of this channel.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return The creationRecord. */ public com.google.monitoring.v3.MutationRecord getCreationRecord() { if (creationRecordBuilder_ == null) { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } else { return creationRecordBuilder_.getMessage(); } } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3024,8 +2794,6 @@ public Builder setCreationRecord(com.google.monitoring.v3.MutationRecord value) return this; } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3044,8 +2812,6 @@ public Builder setCreationRecord( return this; } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3054,9 +2820,9 @@ public Builder setCreationRecord( */ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value) { if (creationRecordBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && creationRecord_ != null - && creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + creationRecord_ != null && + creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) { getCreationRecordBuilder().mergeFrom(value); } else { creationRecord_ = value; @@ -3069,8 +2835,6 @@ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value return this; } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3088,8 +2852,6 @@ public Builder clearCreationRecord() { return this; } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3102,8 +2864,6 @@ public com.google.monitoring.v3.MutationRecord.Builder getCreationRecordBuilder( return getCreationRecordFieldBuilder().getBuilder(); } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3114,14 +2874,11 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild if (creationRecordBuilder_ != null) { return creationRecordBuilder_.getMessageOrBuilder(); } else { - return creationRecord_ == null - ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() - : creationRecord_; + return creationRecord_ == null ? + com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; } } /** - * - * *
      * Record of the creation of this channel.
      * 
@@ -3129,42 +2886,32 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild * .google.monitoring.v3.MutationRecord creation_record = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder> + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> getCreationRecordFieldBuilder() { if (creationRecordBuilder_ == null) { - creationRecordBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder>( - getCreationRecord(), getParentForChildren(), isClean()); + creationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>( + getCreationRecord(), + getParentForChildren(), + isClean()); creationRecord_ = null; } return creationRecordBuilder_; } private java.util.List mutationRecords_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMutationRecordsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - mutationRecords_ = - new java.util.ArrayList(mutationRecords_); + mutationRecords_ = new java.util.ArrayList(mutationRecords_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder> - mutationRecordsBuilder_; + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> mutationRecordsBuilder_; /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3179,8 +2926,6 @@ public java.util.List getMutationRecord } } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3195,8 +2940,6 @@ public int getMutationRecordsCount() { } } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3211,15 +2954,14 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { } } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public Builder setMutationRecords(int index, com.google.monitoring.v3.MutationRecord value) { + public Builder setMutationRecords( + int index, com.google.monitoring.v3.MutationRecord value) { if (mutationRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3233,8 +2975,6 @@ public Builder setMutationRecords(int index, com.google.monitoring.v3.MutationRe return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3253,8 +2993,6 @@ public Builder setMutationRecords( return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3275,15 +3013,14 @@ public Builder addMutationRecords(com.google.monitoring.v3.MutationRecord value) return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public Builder addMutationRecords(int index, com.google.monitoring.v3.MutationRecord value) { + public Builder addMutationRecords( + int index, com.google.monitoring.v3.MutationRecord value) { if (mutationRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3297,8 +3034,6 @@ public Builder addMutationRecords(int index, com.google.monitoring.v3.MutationRe return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3317,8 +3052,6 @@ public Builder addMutationRecords( return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3337,8 +3070,6 @@ public Builder addMutationRecords( return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3349,7 +3080,8 @@ public Builder addAllMutationRecords( java.lang.Iterable values) { if (mutationRecordsBuilder_ == null) { ensureMutationRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutationRecords_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mutationRecords_); onChanged(); } else { mutationRecordsBuilder_.addAllMessages(values); @@ -3357,8 +3089,6 @@ public Builder addAllMutationRecords( return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3376,8 +3106,6 @@ public Builder clearMutationRecords() { return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3395,44 +3123,39 @@ public Builder removeMutationRecords(int index) { return this; } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordsBuilder(int index) { + public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordsBuilder( + int index) { return getMutationRecordsFieldBuilder().getBuilder(index); } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index) { + public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( + int index) { if (mutationRecordsBuilder_ == null) { - return mutationRecords_.get(index); - } else { + return mutationRecords_.get(index); } else { return mutationRecordsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public java.util.List - getMutationRecordsOrBuilderList() { + public java.util.List + getMutationRecordsOrBuilderList() { if (mutationRecordsBuilder_ != null) { return mutationRecordsBuilder_.getMessageOrBuilderList(); } else { @@ -3440,8 +3163,6 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuil } } /** - * - * *
      * Records of the modification of this channel.
      * 
@@ -3449,47 +3170,38 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuil * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder() { - return getMutationRecordsFieldBuilder() - .addBuilder(com.google.monitoring.v3.MutationRecord.getDefaultInstance()); + return getMutationRecordsFieldBuilder().addBuilder( + com.google.monitoring.v3.MutationRecord.getDefaultInstance()); } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder(int index) { - return getMutationRecordsFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.MutationRecord.getDefaultInstance()); + public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder( + int index) { + return getMutationRecordsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.MutationRecord.getDefaultInstance()); } /** - * - * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public java.util.List - getMutationRecordsBuilderList() { + public java.util.List + getMutationRecordsBuilderList() { return getMutationRecordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder> + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> getMutationRecordsFieldBuilder() { if (mutationRecordsBuilder_ == null) { - mutationRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, - com.google.monitoring.v3.MutationRecord.Builder, - com.google.monitoring.v3.MutationRecordOrBuilder>( + mutationRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>( mutationRecords_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), @@ -3498,9 +3210,9 @@ public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder } return mutationRecordsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3510,12 +3222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.NotificationChannel) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) private static final com.google.monitoring.v3.NotificationChannel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.NotificationChannel(); } @@ -3524,27 +3236,27 @@ public static com.google.monitoring.v3.NotificationChannel getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3559,4 +3271,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.NotificationChannel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java index 405515cd65e2..3b0e9a373ba7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; /** - * - * *
  * A description of a notification channel. The descriptor includes
  * the properties of the channel and the set of labels or fields that
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.NotificationChannelDescriptor}
  */
-public final class NotificationChannelDescriptor extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationChannelDescriptor extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.NotificationChannelDescriptor)
     NotificationChannelDescriptorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationChannelDescriptor.newBuilder() to construct.
   private NotificationChannelDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationChannelDescriptor() {
     name_ = "";
     type_ = "";
@@ -51,32 +33,28 @@ private NotificationChannelDescriptor() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationChannelDescriptor();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.NotificationProto
-        .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.NotificationProto
-        .internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
+    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.NotificationChannelDescriptor.class,
-            com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
+            com.google.monitoring.v3.NotificationChannelDescriptor.class, com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The full REST resource name for this descriptor. The format is:
    *
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 6; - * * @return The name. */ @java.lang.Override @@ -95,15 +72,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -113,15 +89,16 @@ public java.lang.String getName() {
    * 
* * string name = 6; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,12 +107,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -145,7 +119,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -154,15 +127,14 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -172,15 +144,16 @@ public java.lang.String getType() {
    * 
* * string type = 1; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -189,19 +162,15 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -210,30 +179,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -242,12 +211,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -255,7 +221,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -264,15 +229,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -280,15 +244,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -297,12 +262,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int LABELS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List labels_; /** - * - * *
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -316,8 +278,6 @@ public java.util.List getLabelsList() {
     return labels_;
   }
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -327,13 +287,11 @@ public java.util.List getLabelsList() {
    * repeated .google.api.LabelDescriptor labels = 4;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLabelsOrBuilderList() {
     return labels_;
   }
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -347,8 +305,6 @@ public int getLabelsCount() {
     return labels_.size();
   }
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -362,8 +318,6 @@ public com.google.api.LabelDescriptor getLabels(int index) {
     return labels_.get(index);
   }
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -373,169 +327,131 @@ public com.google.api.LabelDescriptor getLabels(int index) {
    * repeated .google.api.LabelDescriptor labels = 4;
    */
   @java.lang.Override
-  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
+  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
+      int index) {
     return labels_.get(index);
   }
 
   public static final int SUPPORTED_TIERS_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private java.util.List supportedTiers_;
-
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-          java.lang.Integer, com.google.monitoring.v3.ServiceTier>
-      supportedTiers_converter_ =
+      java.lang.Integer, com.google.monitoring.v3.ServiceTier> supportedTiers_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
               java.lang.Integer, com.google.monitoring.v3.ServiceTier>() {
             public com.google.monitoring.v3.ServiceTier convert(java.lang.Integer from) {
-              com.google.monitoring.v3.ServiceTier result =
-                  com.google.monitoring.v3.ServiceTier.forNumber(from);
+              com.google.monitoring.v3.ServiceTier result = com.google.monitoring.v3.ServiceTier.forNumber(from);
               return result == null ? com.google.monitoring.v3.ServiceTier.UNRECOGNIZED : result;
             }
           };
   /**
-   *
-   *
    * 
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getSupportedTiersList() { + @java.lang.Deprecated public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.ServiceTier>( - supportedTiers_, supportedTiers_converter_); + java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); } /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ @java.lang.Override - @java.lang.Deprecated - public int getSupportedTiersCount() { + @java.lang.Deprecated public int getSupportedTiersCount() { return supportedTiers_.size(); } /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getSupportedTiersValueList() { + @java.lang.Deprecated public java.util.List + getSupportedTiersValueList() { return supportedTiers_; } /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @java.lang.Override - @java.lang.Deprecated - public int getSupportedTiersValue(int index) { + @java.lang.Deprecated public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } - private int supportedTiersMemoizedSerializedSize; public static final int LAUNCH_STAGE_FIELD_NUMBER = 7; private int launchStage_ = 0; /** - * - * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The launchStage. */ - @java.lang.Override - public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -547,7 +463,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); @@ -593,26 +510,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < labels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels_.get(i)); } { int dataSize = 0; for (int i = 0; i < supportedTiers_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedTiers_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(supportedTiers_.get(i)); } size += dataSize; - if (!getSupportedTiersList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedTiersMemoizedSerializedSize = dataSize; + if (!getSupportedTiersList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }supportedTiersMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, launchStage_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, launchStage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -622,19 +540,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.NotificationChannelDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.NotificationChannelDescriptor other = - (com.google.monitoring.v3.NotificationChannelDescriptor) obj; - - if (!getName().equals(other.getName())) return false; - if (!getType().equals(other.getType())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getLabelsList().equals(other.getLabelsList())) return false; + com.google.monitoring.v3.NotificationChannelDescriptor other = (com.google.monitoring.v3.NotificationChannelDescriptor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getLabelsList() + .equals(other.getLabelsList())) return false; if (!supportedTiers_.equals(other.supportedTiers_)) return false; if (launchStage_ != other.launchStage_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -672,104 +594,98 @@ public int hashCode() { } public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.NotificationChannelDescriptor prototype) { + public static Builder newBuilder(com.google.monitoring.v3.NotificationChannelDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A description of a notification channel. The descriptor includes
    * the properties of the channel and the set of labels or fields that
@@ -778,32 +694,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.NotificationChannelDescriptor}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.NotificationChannelDescriptor)
       com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.NotificationChannelDescriptor.class,
-              com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
+              com.google.monitoring.v3.NotificationChannelDescriptor.class, com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.NotificationChannelDescriptor.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -826,9 +743,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.NotificationProto
-          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
     }
 
     @java.lang.Override
@@ -847,18 +764,14 @@ public com.google.monitoring.v3.NotificationChannelDescriptor build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.NotificationChannelDescriptor buildPartial() {
-      com.google.monitoring.v3.NotificationChannelDescriptor result =
-          new com.google.monitoring.v3.NotificationChannelDescriptor(this);
+      com.google.monitoring.v3.NotificationChannelDescriptor result = new com.google.monitoring.v3.NotificationChannelDescriptor(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.monitoring.v3.NotificationChannelDescriptor result) {
+    private void buildPartialRepeatedFields(com.google.monitoring.v3.NotificationChannelDescriptor result) {
       if (labelsBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           labels_ = java.util.Collections.unmodifiableList(labels_);
@@ -898,39 +811,38 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannelDescripto
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.NotificationChannelDescriptor) {
-        return mergeFrom((com.google.monitoring.v3.NotificationChannelDescriptor) other);
+        return mergeFrom((com.google.monitoring.v3.NotificationChannelDescriptor)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -938,8 +850,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.monitoring.v3.NotificationChannelDescriptor other) {
-      if (other == com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance())
-        return this;
+      if (other == com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -978,10 +889,9 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannelDescriptor
             labelsBuilder_ = null;
             labels_ = other.labels_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            labelsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLabelsFieldBuilder()
-                    : null;
+            labelsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLabelsFieldBuilder() : null;
           } else {
             labelsBuilder_.addAllMessages(other.labels_);
           }
@@ -1026,74 +936,67 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 26:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.api.LabelDescriptor m =
-                    input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry);
-                if (labelsBuilder_ == null) {
-                  ensureLabelsIsMutable();
-                  labels_.add(m);
-                } else {
-                  labelsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 34
-            case 40:
-              {
+            case 10: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 26: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 34: {
+              com.google.api.LabelDescriptor m =
+                  input.readMessage(
+                      com.google.api.LabelDescriptor.parser(),
+                      extensionRegistry);
+              if (labelsBuilder_ == null) {
+                ensureLabelsIsMutable();
+                labels_.add(m);
+              } else {
+                labelsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 34
+            case 40: {
+              int tmpRaw = input.readEnum();
+              ensureSupportedTiersIsMutable();
+              supportedTiers_.add(tmpRaw);
+              break;
+            } // case 40
+            case 42: {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while(input.getBytesUntilLimit() > 0) {
                 int tmpRaw = input.readEnum();
                 ensureSupportedTiersIsMutable();
                 supportedTiers_.add(tmpRaw);
-                break;
-              } // case 40
-            case 42:
-              {
-                int length = input.readRawVarint32();
-                int oldLimit = input.pushLimit(length);
-                while (input.getBytesUntilLimit() > 0) {
-                  int tmpRaw = input.readEnum();
-                  ensureSupportedTiersIsMutable();
-                  supportedTiers_.add(tmpRaw);
-                }
-                input.popLimit(oldLimit);
-                break;
-              } // case 42
-            case 50:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 50
-            case 56:
-              {
-                launchStage_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              }
+              input.popLimit(oldLimit);
+              break;
+            } // case 42
+            case 50: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 50
+            case 56: {
+              launchStage_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1103,13 +1006,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1119,13 +1019,13 @@ public Builder mergeFrom(
      * 
* * string name = 6; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1134,8 +1034,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1145,14 +1043,15 @@ public java.lang.String getName() {
      * 
* * string name = 6; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1160,8 +1059,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1171,22 +1068,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 6; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1196,7 +1089,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 6; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1206,8 +1098,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1217,14 +1107,12 @@ public Builder clearName() {
      * 
* * string name = 6; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1234,8 +1122,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1245,13 +1131,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string type = 1; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1260,8 +1146,6 @@ public java.lang.String getType() { } } /** - * - * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1271,14 +1155,15 @@ public java.lang.String getType() {
      * 
* * string type = 1; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1286,8 +1171,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1297,22 +1180,18 @@ public com.google.protobuf.ByteString getTypeBytes() {
      * 
* * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1322,7 +1201,6 @@ public Builder setType(java.lang.String value) {
      * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1332,8 +1210,6 @@ public Builder clearType() { return this; } /** - * - * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1343,14 +1219,12 @@ public Builder clearType() {
      * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000002; @@ -1360,21 +1234,19 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1383,22 +1255,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1406,37 +1277,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1446,22 +1310,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1471,8 +1331,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1480,13 +1338,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1495,8 +1353,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1504,14 +1360,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1519,8 +1376,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1528,22 +1383,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1551,7 +1402,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1561,8 +1411,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1570,14 +1418,12 @@ public Builder clearDescription() {
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -1586,24 +1432,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } private java.util.List labels_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, - com.google.api.LabelDescriptor.Builder, - com.google.api.LabelDescriptorOrBuilder> - labelsBuilder_; + com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelsBuilder_; /** - * - * *
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1620,8 +1460,6 @@ public java.util.List getLabelsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1638,8 +1476,6 @@ public int getLabelsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1656,8 +1492,6 @@ public com.google.api.LabelDescriptor getLabels(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1666,7 +1500,8 @@ public com.google.api.LabelDescriptor getLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
+    public Builder setLabels(
+        int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1680,8 +1515,6 @@ public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1690,7 +1523,8 @@ public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder setLabels(
+        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.set(index, builderForValue.build());
@@ -1701,8 +1535,6 @@ public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1725,8 +1557,6 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1735,7 +1565,8 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
+    public Builder addLabels(
+        int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1749,8 +1580,6 @@ public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1759,7 +1588,8 @@ public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(
+        com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(builderForValue.build());
@@ -1770,8 +1600,6 @@ public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1780,7 +1608,8 @@ public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue)
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(
+        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(index, builderForValue.build());
@@ -1791,8 +1620,6 @@ public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1805,7 +1632,8 @@ public Builder addAllLabels(
         java.lang.Iterable values) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, labels_);
         onChanged();
       } else {
         labelsBuilder_.addAllMessages(values);
@@ -1813,8 +1641,6 @@ public Builder addAllLabels(
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1834,8 +1660,6 @@ public Builder clearLabels() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1855,8 +1679,6 @@ public Builder removeLabels(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1865,12 +1687,11 @@ public Builder removeLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
+    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(
+        int index) {
       return getLabelsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1879,16 +1700,14 @@ public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
+    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
+        int index) {
       if (labelsBuilder_ == null) {
-        return labels_.get(index);
-      } else {
+        return labels_.get(index);  } else {
         return labelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1897,8 +1716,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List
-        getLabelsOrBuilderList() {
+    public java.util.List 
+         getLabelsOrBuilderList() {
       if (labelsBuilder_ != null) {
         return labelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1906,8 +1725,6 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1917,12 +1734,10 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
      * repeated .google.api.LabelDescriptor labels = 4;
      */
     public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
-      return getLabelsFieldBuilder()
-          .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
+      return getLabelsFieldBuilder().addBuilder(
+          com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1931,13 +1746,12 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
-      return getLabelsFieldBuilder()
-          .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(
+        int index) {
+      return getLabelsFieldBuilder().addBuilder(
+          index, com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1946,29 +1760,27 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List getLabelsBuilderList() {
+    public java.util.List 
+         getLabelsBuilderList() {
       return getLabelsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.LabelDescriptor,
-            com.google.api.LabelDescriptor.Builder,
-            com.google.api.LabelDescriptorOrBuilder>
+        com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> 
         getLabelsFieldBuilder() {
       if (labelsBuilder_ == null) {
-        labelsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.api.LabelDescriptor,
-                com.google.api.LabelDescriptor.Builder,
-                com.google.api.LabelDescriptorOrBuilder>(
-                labels_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+        labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>(
+                labels_,
+                ((bitField0_ & 0x00000010) != 0),
+                getParentForChildren(),
+                isClean());
         labels_ = null;
       }
       return labelsBuilder_;
     }
 
-    private java.util.List supportedTiers_ = java.util.Collections.emptyList();
-
+    private java.util.List supportedTiers_ =
+      java.util.Collections.emptyList();
     private void ensureSupportedTiersIsMutable() {
       if (!((bitField0_ & 0x00000020) != 0)) {
         supportedTiers_ = new java.util.ArrayList(supportedTiers_);
@@ -1976,84 +1788,64 @@ private void ensureSupportedTiersIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ - @java.lang.Deprecated - public java.util.List getSupportedTiersList() { + @java.lang.Deprecated public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.ServiceTier>( - supportedTiers_, supportedTiers_converter_); + java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ - @java.lang.Deprecated - public int getSupportedTiersCount() { + @java.lang.Deprecated public int getSupportedTiersCount() { return supportedTiers_.size(); } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ - @java.lang.Deprecated - public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index to set the value at. * @param value The supportedTiers to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSupportedTiers(int index, com.google.monitoring.v3.ServiceTier value) { + @java.lang.Deprecated public Builder setSupportedTiers( + int index, com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); } @@ -2063,23 +1855,18 @@ public Builder setSupportedTiers(int index, com.google.monitoring.v3.ServiceTier return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param value The supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { + @java.lang.Deprecated public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); } @@ -2089,23 +1876,18 @@ public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param values The supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllSupportedTiers( + @java.lang.Deprecated public Builder addAllSupportedTiers( java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (com.google.monitoring.v3.ServiceTier value : values) { @@ -2115,131 +1897,104 @@ public Builder addAllSupportedTiers( return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSupportedTiers() { + @java.lang.Deprecated public Builder clearSupportedTiers() { supportedTiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ - @java.lang.Deprecated - public java.util.List getSupportedTiersValueList() { + @java.lang.Deprecated public java.util.List + getSupportedTiersValueList() { return java.util.Collections.unmodifiableList(supportedTiers_); } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ - @java.lang.Deprecated - public int getSupportedTiersValue(int index) { + @java.lang.Deprecated public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index to set the value at. * @param value The enum numeric value on the wire for supportedTiers to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSupportedTiersValue(int index, int value) { + @java.lang.Deprecated public Builder setSupportedTiersValue( + int index, int value) { ensureSupportedTiersIsMutable(); supportedTiers_.set(index, value); onChanged(); return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param value The enum numeric value on the wire for supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addSupportedTiersValue(int value) { + @java.lang.Deprecated public Builder addSupportedTiersValue(int value) { ensureSupportedTiersIsMutable(); supportedTiers_.add(value); onChanged(); return this; } /** - * - * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param values The enum numeric values on the wire for supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllSupportedTiersValue(java.lang.Iterable values) { + @java.lang.Deprecated public Builder addAllSupportedTiersValue( + java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (int value : values) { supportedTiers_.add(value); @@ -2250,29 +2005,22 @@ public Builder addAllSupportedTiersValue(java.lang.Iterable v private int launchStage_ = 0; /** - * - * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override - public int getLaunchStageValue() { + @java.lang.Override public int getLaunchStageValue() { return launchStage_; } /** - * - * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; - * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ @@ -2283,14 +2031,11 @@ public Builder setLaunchStageValue(int value) { return this; } /** - * - * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The launchStage. */ @java.lang.Override @@ -2299,14 +2044,11 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** - * - * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -2320,14 +2062,11 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { return this; } /** - * - * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return This builder for chaining. */ public Builder clearLaunchStage() { @@ -2336,9 +2075,9 @@ public Builder clearLaunchStage() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2348,12 +2087,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.NotificationChannelDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) private static final com.google.monitoring.v3.NotificationChannelDescriptor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.NotificationChannelDescriptor(); } @@ -2362,27 +2101,27 @@ public static com.google.monitoring.v3.NotificationChannelDescriptor getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationChannelDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationChannelDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2397,4 +2136,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.NotificationChannelDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java similarity index 79% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java index c980de9f99c8..64a01be8b542 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; -public interface NotificationChannelDescriptorOrBuilder - extends +public interface NotificationChannelDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.NotificationChannelDescriptor) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -35,13 +17,10 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string name = 6; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -51,14 +30,12 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string name = 6; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -68,13 +45,10 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -84,41 +58,34 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -126,13 +93,10 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -140,14 +104,12 @@ public interface NotificationChannelDescriptorOrBuilder
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -156,10 +118,9 @@ public interface NotificationChannelDescriptorOrBuilder
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List getLabelsList();
+  java.util.List 
+      getLabelsList();
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -170,8 +131,6 @@ public interface NotificationChannelDescriptorOrBuilder
    */
   com.google.api.LabelDescriptor getLabels(int index);
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -182,8 +141,6 @@ public interface NotificationChannelDescriptorOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -192,10 +149,9 @@ public interface NotificationChannelDescriptorOrBuilder
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List getLabelsOrBuilderList();
+  java.util.List 
+      getLabelsOrBuilderList();
   /**
-   *
-   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -204,117 +160,88 @@ public interface NotificationChannelDescriptorOrBuilder
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index);
+  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ - @java.lang.Deprecated - java.util.List getSupportedTiersList(); + @java.lang.Deprecated java.util.List getSupportedTiersList(); /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ - @java.lang.Deprecated - int getSupportedTiersCount(); + @java.lang.Deprecated int getSupportedTiersCount(); /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ - @java.lang.Deprecated - com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); + @java.lang.Deprecated com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ - @java.lang.Deprecated - java.util.List getSupportedTiersValueList(); + @java.lang.Deprecated java.util.List + getSupportedTiersValueList(); /** - * - * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; - * - * + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ - @java.lang.Deprecated - int getSupportedTiersValue(int index); + @java.lang.Deprecated int getSupportedTiersValue(int index); /** - * - * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** - * - * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; - * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java similarity index 82% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java index 4190e8dfff15..a5a56ac2910f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java @@ -1,58 +1,39 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; -public interface NotificationChannelOrBuilder - extends +public interface NotificationChannelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.NotificationChannel) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The type of the notification channel. This field matches the
-   * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+   * value of the
+   * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+   * field.
    * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * The type of the notification channel. This field matches the
-   * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+   * value of the
+   * [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+   * field.
    * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * The full REST resource name for this channel. The format is:
    *
@@ -62,13 +43,10 @@ public interface NotificationChannelOrBuilder
    * 
* * string name = 6; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The full REST resource name for this channel. The format is:
    *
@@ -78,14 +56,12 @@ public interface NotificationChannelOrBuilder
    * 
* * string name = 6; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -94,13 +70,10 @@ public interface NotificationChannelOrBuilder
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -109,14 +82,12 @@ public interface NotificationChannelOrBuilder
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -124,13 +95,10 @@ public interface NotificationChannelOrBuilder
    * 
* * string description = 4; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -138,87 +106,81 @@ public interface NotificationChannelOrBuilder
    * 
* * string description = 4; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
-   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-   * `NotificationChannelDescriptor` corresponding to the `type` field.
+   * [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+   * of the `NotificationChannelDescriptor` corresponding to the `type` field.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -235,8 +197,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -251,13 +211,15 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -272,10 +234,9 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -291,13 +252,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> user_labels = 8;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -312,11 +271,10 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -339,15 +297,11 @@ java.lang.String getUserLabelsOrDefault(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return The enum numeric value on the wire for verificationStatus. */ int getVerificationStatusValue(); /** - * - * *
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -370,16 +324,12 @@ java.lang.String getUserLabelsOrDefault(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; - * - * + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; * @return The verificationStatus. */ com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus(); /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -390,13 +340,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return Whether the enabled field is set. */ boolean hasEnabled(); /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -407,13 +354,10 @@ java.lang.String getUserLabelsOrDefault(
    * 
* * .google.protobuf.BoolValue enabled = 11; - * * @return The enabled. */ com.google.protobuf.BoolValue getEnabled(); /** - * - * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -428,32 +372,24 @@ java.lang.String getUserLabelsOrDefault(
   com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder();
 
   /**
-   *
-   *
    * 
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return Whether the creationRecord field is set. */ boolean hasCreationRecord(); /** - * - * *
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; - * * @return The creationRecord. */ com.google.monitoring.v3.MutationRecord getCreationRecord(); /** - * - * *
    * Record of the creation of this channel.
    * 
@@ -463,18 +399,15 @@ java.lang.String getUserLabelsOrDefault( com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder(); /** - * - * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - java.util.List getMutationRecordsList(); + java.util.List + getMutationRecordsList(); /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -483,8 +416,6 @@ java.lang.String getUserLabelsOrDefault( */ com.google.monitoring.v3.MutationRecord getMutationRecords(int index); /** - * - * *
    * Records of the modification of this channel.
    * 
@@ -493,24 +424,21 @@ java.lang.String getUserLabelsOrDefault( */ int getMutationRecordsCount(); /** - * - * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - java.util.List + java.util.List getMutationRecordsOrBuilderList(); /** - * - * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index); + com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( + int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java new file mode 100644 index 000000000000..b53f48502449 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java @@ -0,0 +1,145 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification.proto + +package com.google.monitoring.v3; + +public final class NotificationProto { + private NotificationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/monitoring/v3/notification.prot" + + "o\022\024google.monitoring.v3\032\026google/api/labe" + + "l.proto\032\035google/api/launch_stage.proto\032\031" + + "google/api/resource.proto\032!google/monito" + + "ring/v3/common.proto\032*google/monitoring/" + + "v3/mutation_record.proto\032\036google/protobu" + + "f/wrappers.proto\"\245\004\n\035NotificationChannel" + + "Descriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022+\n\006labels\030\004 \003(\0132\033.google.api.LabelDesc" + + "riptor\022>\n\017supported_tiers\030\005 \003(\0162!.google" + + ".monitoring.v3.ServiceTierB\002\030\001\022-\n\014launch" + + "_stage\030\007 \001(\0162\027.google.api.LaunchStage:\240\002" + + "\352A\234\002\n7monitoring.googleapis.com/Notifica" + + "tionChannelDescriptor\022Fprojects/{project" + + "}/notificationChannelDescriptors/{channe" + + "l_descriptor}\022Porganizations/{organizati" + + "on}/notificationChannelDescriptors/{chan" + + "nel_descriptor}\022Dfolders/{folder}/notifi" + + "cationChannelDescriptors/{channel_descri" + + "ptor}\022\001*\"\266\007\n\023NotificationChannel\022\014\n\004type" + + "\030\001 \001(\t\022\014\n\004name\030\006 \001(\t\022\024\n\014display_name\030\003 \001" + + "(\t\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\0132" + + "5.google.monitoring.v3.NotificationChann" + + "el.LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.go" + + "ogle.monitoring.v3.NotificationChannel.U" + + "serLabelsEntry\022Y\n\023verification_status\030\t " + + "\001(\0162<.google.monitoring.v3.NotificationC" + + "hannel.VerificationStatus\022+\n\007enabled\030\013 \001" + + "(\0132\032.google.protobuf.BoolValue\022=\n\017creati" + + "on_record\030\014 \001(\0132$.google.monitoring.v3.M" + + "utationRecord\022>\n\020mutation_records\030\r \003(\0132" + + "$.google.monitoring.v3.MutationRecord\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n" + + "\037VERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUN" + + "VERIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitor" + + "ing.googleapis.com/NotificationChannel\022>" + + "projects/{project}/notificationChannels/" + + "{notification_channel}\022Horganizations/{o" + + "rganization}/notificationChannels/{notif" + + "ication_channel}\022 * A single data point in a time series. *
* * Protobuf type {@code google.monitoring.v3.Point} */ -public final class Point extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Point extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Point) PointOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Point.newBuilder() to construct. private Point(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Point() {} + private Point() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Point(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_Point_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Point.class, com.google.monitoring.v3.Point.Builder.class); } @@ -62,8 +45,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.monitoring.v3.TimeInterval interval_; /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -77,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -85,8 +65,6 @@ public boolean hasInterval() { return interval_ != null; } /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -100,18 +78,13 @@ public boolean hasInterval() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -128,22 +101,17 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null
-        ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
-        : interval_;
+    return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
   }
 
   public static final int VALUE_FIELD_NUMBER = 2;
   private com.google.monitoring.v3.TypedValue value_;
   /**
-   *
-   *
    * 
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -151,14 +119,11 @@ public boolean hasValue() { return value_ != null; } /** - * - * *
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return The value. */ @java.lang.Override @@ -166,8 +131,6 @@ public com.google.monitoring.v3.TypedValue getValue() { return value_ == null ? com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; } /** - * - * *
    * The value of the data point.
    * 
@@ -180,7 +143,6 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (interval_ != null) { output.writeMessage(1, getInterval()); } @@ -209,10 +172,12 @@ public int getSerializedSize() { size = 0; if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInterval()); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,7 +187,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Point)) { return super.equals(obj); @@ -231,11 +196,13 @@ public boolean equals(final java.lang.Object obj) { if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval().equals(other.getInterval())) return false; + if (!getInterval() + .equals(other.getInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,134 +228,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Point parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Point parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Point parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Point parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.Point parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Point parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Point parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Point parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Point parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Point parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Point parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Point parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.Point parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.monitoring.v3.Point parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Point parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Point prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single data point in a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.Point} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Point) com.google.monitoring.v3.PointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_Point_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Point.class, com.google.monitoring.v3.Point.Builder.class); } // Construct using com.google.monitoring.v3.Point.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_Point_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override @@ -429,9 +394,7 @@ public com.google.monitoring.v3.Point build() { @java.lang.Override public com.google.monitoring.v3.Point buildPartial() { com.google.monitoring.v3.Point result = new com.google.monitoring.v3.Point(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -439,10 +402,14 @@ public com.google.monitoring.v3.Point buildPartial() { private void buildPartial0(com.google.monitoring.v3.Point result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null + ? interval_ + : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + result.value_ = valueBuilder_ == null + ? value_ + : valueBuilder_.build(); } } @@ -450,39 +417,38 @@ private void buildPartial0(com.google.monitoring.v3.Point result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Point) { - return mergeFrom((com.google.monitoring.v3.Point) other); + return mergeFrom((com.google.monitoring.v3.Point)other); } else { super.mergeFrom(other); return this; @@ -523,25 +489,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getValueFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,18 +518,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> - intervalBuilder_; + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; /** - * - * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -576,15 +537,12 @@ public Builder mergeFrom(
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -598,21 +556,16 @@ public boolean hasInterval() {
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** - * - * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -641,8 +594,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -657,7 +608,8 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      *
      * .google.monitoring.v3.TimeInterval interval = 1;
      */
-    public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
+    public Builder setInterval(
+        com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
       if (intervalBuilder_ == null) {
         interval_ = builderForValue.build();
       } else {
@@ -668,8 +620,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -686,9 +636,9 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder
      */
     public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && interval_ != null
-            && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          interval_ != null &&
+          interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -701,8 +651,6 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -728,8 +676,6 @@ public Builder clearInterval() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -750,8 +696,6 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -770,14 +714,11 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null
-            ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
-            : interval_;
+        return interval_ == null ?
+            com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
       }
     }
     /**
-     *
-     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -793,17 +734,14 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * .google.monitoring.v3.TimeInterval interval = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeInterval,
-            com.google.monitoring.v3.TimeInterval.Builder,
-            com.google.monitoring.v3.TimeIntervalOrBuilder>
+        com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> 
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.TimeInterval,
-                com.google.monitoring.v3.TimeInterval.Builder,
-                com.google.monitoring.v3.TimeIntervalOrBuilder>(
-                getInterval(), getParentForChildren(), isClean());
+        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>(
+                getInterval(),
+                getParentForChildren(),
+                isClean());
         interval_ = null;
       }
       return intervalBuilder_;
@@ -811,33 +749,24 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
 
     private com.google.monitoring.v3.TypedValue value_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TypedValue,
-            com.google.monitoring.v3.TypedValue.Builder,
-            com.google.monitoring.v3.TypedValueOrBuilder>
-        valueBuilder_;
+        com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> valueBuilder_;
     /**
-     *
-     *
      * 
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return The value. */ public com.google.monitoring.v3.TypedValue getValue() { @@ -848,8 +777,6 @@ public com.google.monitoring.v3.TypedValue getValue() { } } /** - * - * *
      * The value of the data point.
      * 
@@ -870,15 +797,14 @@ public Builder setValue(com.google.monitoring.v3.TypedValue value) { return this; } /** - * - * *
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; */ - public Builder setValue(com.google.monitoring.v3.TypedValue.Builder builderForValue) { + public Builder setValue( + com.google.monitoring.v3.TypedValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { @@ -889,8 +815,6 @@ public Builder setValue(com.google.monitoring.v3.TypedValue.Builder builderForVa return this; } /** - * - * *
      * The value of the data point.
      * 
@@ -899,9 +823,9 @@ public Builder setValue(com.google.monitoring.v3.TypedValue.Builder builderForVa */ public Builder mergeValue(com.google.monitoring.v3.TypedValue value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && value_ != null - && value_ != com.google.monitoring.v3.TypedValue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + value_ != null && + value_ != com.google.monitoring.v3.TypedValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -914,8 +838,6 @@ public Builder mergeValue(com.google.monitoring.v3.TypedValue value) { return this; } /** - * - * *
      * The value of the data point.
      * 
@@ -933,8 +855,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * The value of the data point.
      * 
@@ -947,8 +867,6 @@ public com.google.monitoring.v3.TypedValue.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** - * - * *
      * The value of the data point.
      * 
@@ -959,12 +877,11 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; + return value_ == null ? + com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; } } /** - * - * *
      * The value of the data point.
      * 
@@ -972,24 +889,21 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { * .google.monitoring.v3.TypedValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TypedValue, - com.google.monitoring.v3.TypedValue.Builder, - com.google.monitoring.v3.TypedValueOrBuilder> + com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TypedValue, - com.google.monitoring.v3.TypedValue.Builder, - com.google.monitoring.v3.TypedValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); value_ = null; } return valueBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -999,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Point) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) private static final com.google.monitoring.v3.Point DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Point(); } @@ -1013,27 +927,27 @@ public static com.google.monitoring.v3.Point getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Point parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Point parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1048,4 +962,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Point getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java similarity index 82% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java index 1e81c7abb91d..99bac0daf30d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface PointOrBuilder - extends +public interface PointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Point) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -39,13 +21,10 @@ public interface PointOrBuilder
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -59,13 +38,10 @@ public interface PointOrBuilder
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; - * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** - * - * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -83,32 +59,24 @@ public interface PointOrBuilder
   com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; - * * @return The value. */ com.google.monitoring.v3.TypedValue getValue(); /** - * - * *
    * The value of the data point.
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java index d5d12294b9a7..372a05498622 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** - * - * *
  * An error associated with a query in the time series query language format.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryError} */ -public final class QueryError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryError) QueryErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryError.newBuilder() to construct. private QueryError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryError() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryError(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_QueryError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_QueryError_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryError.class, - com.google.monitoring.v3.QueryError.Builder.class); + com.google.monitoring.v3.QueryError.class, com.google.monitoring.v3.QueryError.Builder.class); } public static final int LOCATOR_FIELD_NUMBER = 1; private com.google.monitoring.v3.TextLocator locator_; /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return Whether the locator field is set. */ @java.lang.Override @@ -81,15 +59,12 @@ public boolean hasLocator() { return locator_ != null; } /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return The locator. */ @java.lang.Override @@ -97,8 +72,6 @@ public com.google.monitoring.v3.TextLocator getLocator() { return locator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_; } /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
@@ -112,18 +85,14 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object message_ = "";
   /**
-   *
-   *
    * 
    * The error message.
    * 
* * string message = 2; - * * @return The message. */ @java.lang.Override @@ -132,29 +101,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * The error message.
    * 
* * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -163,7 +132,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +143,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (locator_ != null) { output.writeMessage(1, getLocator()); } @@ -192,7 +161,8 @@ public int getSerializedSize() { size = 0; if (locator_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocator()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLocator()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -205,7 +175,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryError)) { return super.equals(obj); @@ -214,9 +184,11 @@ public boolean equals(final java.lang.Object obj) { if (hasLocator() != other.hasLocator()) return false; if (hasLocator()) { - if (!getLocator().equals(other.getLocator())) return false; + if (!getLocator() + .equals(other.getLocator())) return false; } - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,135 +211,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryError parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.QueryError parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.QueryError parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.QueryError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.QueryError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An error associated with a query in the time series query language format.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryError) com.google.monitoring.v3.QueryErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_QueryError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_QueryError_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryError.class, - com.google.monitoring.v3.QueryError.Builder.class); + com.google.monitoring.v3.QueryError.class, com.google.monitoring.v3.QueryError.Builder.class); } // Construct using com.google.monitoring.v3.QueryError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_QueryError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override @@ -404,9 +373,7 @@ public com.google.monitoring.v3.QueryError build() { @java.lang.Override public com.google.monitoring.v3.QueryError buildPartial() { com.google.monitoring.v3.QueryError result = new com.google.monitoring.v3.QueryError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -414,7 +381,9 @@ public com.google.monitoring.v3.QueryError buildPartial() { private void buildPartial0(com.google.monitoring.v3.QueryError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.locator_ = locatorBuilder_ == null ? locator_ : locatorBuilder_.build(); + result.locator_ = locatorBuilder_ == null + ? locator_ + : locatorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; @@ -425,39 +394,38 @@ private void buildPartial0(com.google.monitoring.v3.QueryError result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryError) { - return mergeFrom((com.google.monitoring.v3.QueryError) other); + return mergeFrom((com.google.monitoring.v3.QueryError)other); } else { super.mergeFrom(other); return this; @@ -500,25 +468,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getLocatorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getLocatorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,54 +495,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.TextLocator locator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator, - com.google.monitoring.v3.TextLocator.Builder, - com.google.monitoring.v3.TextLocatorOrBuilder> - locatorBuilder_; + com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> locatorBuilder_; /** - * - * *
      * The location of the time series query language text that this error applies
      * to.
      * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return Whether the locator field is set. */ public boolean hasLocator() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The location of the time series query language text that this error applies
      * to.
      * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return The locator. */ public com.google.monitoring.v3.TextLocator getLocator() { if (locatorBuilder_ == null) { - return locator_ == null - ? com.google.monitoring.v3.TextLocator.getDefaultInstance() - : locator_; + return locator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_; } else { return locatorBuilder_.getMessage(); } } /** - * - * *
      * The location of the time series query language text that this error applies
      * to.
@@ -597,8 +550,6 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -606,7 +557,8 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator value) {
      *
      * .google.monitoring.v3.TextLocator locator = 1;
      */
-    public Builder setLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+    public Builder setLocator(
+        com.google.monitoring.v3.TextLocator.Builder builderForValue) {
       if (locatorBuilder_ == null) {
         locator_ = builderForValue.build();
       } else {
@@ -617,8 +569,6 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -628,9 +578,9 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator.Builder builderFo
      */
     public Builder mergeLocator(com.google.monitoring.v3.TextLocator value) {
       if (locatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && locator_ != null
-            && locator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          locator_ != null &&
+          locator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
           getLocatorBuilder().mergeFrom(value);
         } else {
           locator_ = value;
@@ -643,8 +593,6 @@ public Builder mergeLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -663,8 +611,6 @@ public Builder clearLocator() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -678,8 +624,6 @@ public com.google.monitoring.v3.TextLocator.Builder getLocatorBuilder() {
       return getLocatorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -691,14 +635,11 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
       if (locatorBuilder_ != null) {
         return locatorBuilder_.getMessageOrBuilder();
       } else {
-        return locator_ == null
-            ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
-            : locator_;
+        return locator_ == null ?
+            com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_;
       }
     }
     /**
-     *
-     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -707,17 +648,14 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
      * .google.monitoring.v3.TextLocator locator = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TextLocator,
-            com.google.monitoring.v3.TextLocator.Builder,
-            com.google.monitoring.v3.TextLocatorOrBuilder>
+        com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> 
         getLocatorFieldBuilder() {
       if (locatorBuilder_ == null) {
-        locatorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.TextLocator,
-                com.google.monitoring.v3.TextLocator.Builder,
-                com.google.monitoring.v3.TextLocatorOrBuilder>(
-                getLocator(), getParentForChildren(), isClean());
+        locatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder>(
+                getLocator(),
+                getParentForChildren(),
+                isClean());
         locator_ = null;
       }
       return locatorBuilder_;
@@ -725,20 +663,18 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
 
     private java.lang.Object message_ = "";
     /**
-     *
-     *
      * 
      * The error message.
      * 
* * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -747,21 +683,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * The error message.
      * 
* * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -769,35 +704,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * The error message.
      * 
* * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The error message.
      * 
* * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -807,30 +735,26 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The error message.
      * 
* * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -840,12 +764,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryError) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryError) private static final com.google.monitoring.v3.QueryError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryError(); } @@ -854,27 +778,27 @@ public static com.google.monitoring.v3.QueryError getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -889,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java index ee6a58cf5c5d..2b6f29d9c2f2 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * This is an error detail intended to be used with INVALID_ARGUMENT errors.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryErrorList} */ -public final class QueryErrorList extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryErrorList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryErrorList) QueryErrorListOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryErrorList.newBuilder() to construct. private QueryErrorList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryErrorList() { errors_ = java.util.Collections.emptyList(); errorSummary_ = ""; @@ -44,32 +26,28 @@ private QueryErrorList() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryErrorList(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryErrorList.class, - com.google.monitoring.v3.QueryErrorList.Builder.class); + com.google.monitoring.v3.QueryErrorList.class, com.google.monitoring.v3.QueryErrorList.Builder.class); } public static final int ERRORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -82,8 +60,6 @@ public java.util.List getErrorsList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -92,13 +68,11 @@ public java.util.List getErrorsList() {
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -111,8 +85,6 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -125,8 +97,6 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
     return errors_.get(index);
   }
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -135,23 +105,20 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
+  public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
+      int index) {
     return errors_.get(index);
   }
 
   public static final int ERROR_SUMMARY_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object errorSummary_ = "";
   /**
-   *
-   *
    * 
    * A summary of all the errors.
    * 
* * string error_summary = 2; - * * @return The errorSummary. */ @java.lang.Override @@ -160,29 +127,29 @@ public java.lang.String getErrorSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorSummary_ = s; return s; } } /** - * - * *
    * A summary of all the errors.
    * 
* * string error_summary = 2; - * * @return The bytes for errorSummary. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorSummaryBytes() { + public com.google.protobuf.ByteString + getErrorSummaryBytes() { java.lang.Object ref = errorSummary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorSummary_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getErrorSummaryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorSummary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorSummary_); @@ -233,15 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryErrorList)) { return super.equals(obj); } com.google.monitoring.v3.QueryErrorList other = (com.google.monitoring.v3.QueryErrorList) obj; - if (!getErrorsList().equals(other.getErrorsList())) return false; - if (!getErrorSummary().equals(other.getErrorSummary())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; + if (!getErrorSummary() + .equals(other.getErrorSummary())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +234,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryErrorList parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryErrorList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.QueryErrorList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * This is an error detail intended to be used with INVALID_ARGUMENT errors.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryErrorList} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryErrorList) com.google.monitoring.v3.QueryErrorListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryErrorList.class, - com.google.monitoring.v3.QueryErrorList.Builder.class); + com.google.monitoring.v3.QueryErrorList.class, com.google.monitoring.v3.QueryErrorList.Builder.class); } // Construct using com.google.monitoring.v3.QueryErrorList.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override @@ -431,12 +397,9 @@ public com.google.monitoring.v3.QueryErrorList build() { @java.lang.Override public com.google.monitoring.v3.QueryErrorList buildPartial() { - com.google.monitoring.v3.QueryErrorList result = - new com.google.monitoring.v3.QueryErrorList(this); + com.google.monitoring.v3.QueryErrorList result = new com.google.monitoring.v3.QueryErrorList(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -464,39 +427,38 @@ private void buildPartial0(com.google.monitoring.v3.QueryErrorList result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryErrorList) { - return mergeFrom((com.google.monitoring.v3.QueryErrorList) other); + return mergeFrom((com.google.monitoring.v3.QueryErrorList)other); } else { super.mergeFrom(other); return this; @@ -523,10 +485,9 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryErrorList other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -563,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.monitoring.v3.QueryError m = - input.readMessage( - com.google.monitoring.v3.QueryError.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - errorSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.monitoring.v3.QueryError m = + input.readMessage( + com.google.monitoring.v3.QueryError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + errorSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.QueryError, - com.google.monitoring.v3.QueryError.Builder, - com.google.monitoring.v3.QueryErrorOrBuilder> - errorsBuilder_; + com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -635,8 +587,6 @@ public java.util.List getErrorsList() {
       }
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -652,8 +602,6 @@ public int getErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -669,8 +617,6 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -678,7 +624,8 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder setErrors(int index, com.google.monitoring.v3.QueryError value) {
+    public Builder setErrors(
+        int index, com.google.monitoring.v3.QueryError value) {
       if (errorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -692,8 +639,6 @@ public Builder setErrors(int index, com.google.monitoring.v3.QueryError value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -713,8 +658,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -736,8 +679,6 @@ public Builder addErrors(com.google.monitoring.v3.QueryError value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -745,7 +686,8 @@ public Builder addErrors(com.google.monitoring.v3.QueryError value) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder addErrors(int index, com.google.monitoring.v3.QueryError value) {
+    public Builder addErrors(
+        int index, com.google.monitoring.v3.QueryError value) {
       if (errorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -759,8 +701,6 @@ public Builder addErrors(int index, com.google.monitoring.v3.QueryError value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -768,7 +708,8 @@ public Builder addErrors(int index, com.google.monitoring.v3.QueryError value) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder addErrors(com.google.monitoring.v3.QueryError.Builder builderForValue) {
+    public Builder addErrors(
+        com.google.monitoring.v3.QueryError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(builderForValue.build());
@@ -779,8 +720,6 @@ public Builder addErrors(com.google.monitoring.v3.QueryError.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -800,8 +739,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -813,7 +750,8 @@ public Builder addAllErrors(
         java.lang.Iterable values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -821,8 +759,6 @@ public Builder addAllErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -841,8 +777,6 @@ public Builder clearErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -861,8 +795,6 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -870,12 +802,11 @@ public Builder removeErrors(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(int index) {
+    public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(
+        int index) {
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -883,16 +814,14 @@ public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
+    public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
+        int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);
-      } else {
+        return errors_.get(index);  } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -900,8 +829,8 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public java.util.List
-        getErrorsOrBuilderList() {
+    public java.util.List 
+         getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -909,8 +838,6 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index
       }
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -919,12 +846,10 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
     public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder()
-          .addBuilder(com.google.monitoring.v3.QueryError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          com.google.monitoring.v3.QueryError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -932,13 +857,12 @@ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder() {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(int index) {
-      return getErrorsFieldBuilder()
-          .addBuilder(index, com.google.monitoring.v3.QueryError.getDefaultInstance());
+    public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(
+        int index) {
+      return getErrorsFieldBuilder().addBuilder(
+          index, com.google.monitoring.v3.QueryError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -946,22 +870,20 @@ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public java.util.List getErrorsBuilderList() {
+    public java.util.List 
+         getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.QueryError,
-            com.google.monitoring.v3.QueryError.Builder,
-            com.google.monitoring.v3.QueryErrorOrBuilder>
+        com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder> 
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.QueryError,
-                com.google.monitoring.v3.QueryError.Builder,
-                com.google.monitoring.v3.QueryErrorOrBuilder>(
-                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder>(
+                errors_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         errors_ = null;
       }
       return errorsBuilder_;
@@ -969,20 +891,18 @@ public java.util.List getErrorsBuil
 
     private java.lang.Object errorSummary_ = "";
     /**
-     *
-     *
      * 
      * A summary of all the errors.
      * 
* * string error_summary = 2; - * * @return The errorSummary. */ public java.lang.String getErrorSummary() { java.lang.Object ref = errorSummary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorSummary_ = s; return s; @@ -991,21 +911,20 @@ public java.lang.String getErrorSummary() { } } /** - * - * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; - * * @return The bytes for errorSummary. */ - public com.google.protobuf.ByteString getErrorSummaryBytes() { + public com.google.protobuf.ByteString + getErrorSummaryBytes() { java.lang.Object ref = errorSummary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorSummary_ = b; return b; } else { @@ -1013,35 +932,28 @@ public com.google.protobuf.ByteString getErrorSummaryBytes() { } } /** - * - * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; - * * @param value The errorSummary to set. * @return This builder for chaining. */ - public Builder setErrorSummary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorSummary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorSummary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; - * * @return This builder for chaining. */ public Builder clearErrorSummary() { @@ -1051,30 +963,26 @@ public Builder clearErrorSummary() { return this; } /** - * - * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; - * * @param value The bytes for errorSummary to set. * @return This builder for chaining. */ - public Builder setErrorSummaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorSummary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1084,12 +992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryErrorList) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryErrorList) private static final com.google.monitoring.v3.QueryErrorList DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryErrorList(); } @@ -1098,27 +1006,27 @@ public static com.google.monitoring.v3.QueryErrorList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryErrorList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryErrorList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryErrorList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java index 3e92ae5fb431..12dea9a88e10 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface QueryErrorListOrBuilder - extends +public interface QueryErrorListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryErrorList) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -33,10 +15,9 @@ public interface QueryErrorListOrBuilder
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  java.util.List getErrorsList();
+  java.util.List 
+      getErrorsList();
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -46,8 +27,6 @@ public interface QueryErrorListOrBuilder
    */
   com.google.monitoring.v3.QueryError getErrors(int index);
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -57,8 +36,6 @@ public interface QueryErrorListOrBuilder
    */
   int getErrorsCount();
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -66,10 +43,9 @@ public interface QueryErrorListOrBuilder
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  java.util.List getErrorsOrBuilderList();
+  java.util.List 
+      getErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -77,30 +53,26 @@ public interface QueryErrorListOrBuilder
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index);
+  com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A summary of all the errors.
    * 
* * string error_summary = 2; - * * @return The errorSummary. */ java.lang.String getErrorSummary(); /** - * - * *
    * A summary of all the errors.
    * 
* * string error_summary = 2; - * * @return The bytes for errorSummary. */ - com.google.protobuf.ByteString getErrorSummaryBytes(); + com.google.protobuf.ByteString + getErrorSummaryBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java index ff6923fbeaf4..027d9b4e1621 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface QueryErrorOrBuilder - extends +public interface QueryErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return Whether the locator field is set. */ boolean hasLocator(); /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; - * * @return The locator. */ com.google.monitoring.v3.TextLocator getLocator(); /** - * - * *
    * The location of the time series query language text that this error applies
    * to.
@@ -62,27 +38,22 @@ public interface QueryErrorOrBuilder
   com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder();
 
   /**
-   *
-   *
    * 
    * The error message.
    * 
* * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * The error message.
    * 
* * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java new file mode 100644 index 000000000000..b27a951dd0a8 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/query_service.proto + +package com.google.monitoring.v3; + +public final class QueryServiceProto { + private QueryServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/query_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032)google/monitoring/v3/met" + + "ric_service.proto\032\027google/api/client.pro" + + "to2\336\002\n\014QueryService\022\241\001\n\017QueryTimeSeries\022" + + ",.google.monitoring.v3.QueryTimeSeriesRe" + + "quest\032-.google.monitoring.v3.QueryTimeSe" + + "riesResponse\"1\202\323\344\223\002+\"&/v3/{name=projects" + + "/*}/timeSeries:query:\001*\032\251\001\312A\031monitoring." + + "googleapis.com\322A\211\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/monitoring,https://www." + + "googleapis.com/auth/monitoring.readB\314\001\n\030" + + "com.google.monitoring.v3B\021QueryServicePr" + + "otoP\001ZAcloud.google.com/go/monitoring/ap" + + "iv3/v2/monitoringpb;monitoringpb\252\002\032Googl" + + "e.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Mon" + + "itoring\\V3\352\002\035Google::Cloud::Monitoring::" + + "V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.monitoring.v3.MetricServiceProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.monitoring.v3.MetricServiceProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java similarity index 72% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java index c4b910dc12eb..eb23439da2db 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `QueryTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest} */ -public final class QueryTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryTimeSeriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesRequest) QueryTimeSeriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryTimeSeriesRequest.newBuilder() to construct. private QueryTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryTimeSeriesRequest() { name_ = ""; query_ = ""; @@ -45,32 +27,28 @@ private QueryTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesRequest.class, - com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesRequest.class, com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -105,15 +81,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,12 +99,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int QUERY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -135,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ @java.lang.Override @@ -144,15 +117,14 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -160,15 +132,16 @@ public java.lang.String getQuery() {
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -179,14 +152,11 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_ = 0; /** - * - * *
    * A positive number that is the maximum number of time_series_data to return.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -195,12 +165,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -208,7 +175,6 @@ public int getPageSize() {
    * 
* * string page_token = 10; - * * @return The pageToken. */ @java.lang.Override @@ -217,15 +183,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -233,15 +198,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 10; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,7 +257,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_); @@ -304,18 +271,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.QueryTimeSeriesRequest other = - (com.google.monitoring.v3.QueryTimeSeriesRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.monitoring.v3.QueryTimeSeriesRequest other = (com.google.monitoring.v3.QueryTimeSeriesRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,136 +310,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.QueryTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `QueryTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryTimeSeriesRequest) com.google.monitoring.v3.QueryTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesRequest.class, - com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesRequest.class, com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.QueryTimeSeriesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override @@ -503,11 +469,8 @@ public com.google.monitoring.v3.QueryTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.QueryTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.QueryTimeSeriesRequest result = - new com.google.monitoring.v3.QueryTimeSeriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.QueryTimeSeriesRequest result = new com.google.monitoring.v3.QueryTimeSeriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -532,39 +495,38 @@ private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesRequest resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesRequest) other); + return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesRequest)other); } else { super.mergeFrom(other); return this; @@ -572,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesRequest other) { - if (other == com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -618,37 +579,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 58: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 58 - case 72: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 72 - case 82: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 58: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 72: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 72 + case 82: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -658,13 +614,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -673,13 +626,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -688,8 +641,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -698,14 +649,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -713,8 +665,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -723,22 +673,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -747,7 +693,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -757,8 +702,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -767,14 +710,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -784,8 +725,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -793,13 +732,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -808,8 +747,6 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -817,14 +754,15 @@ public java.lang.String getQuery() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -832,8 +770,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -841,22 +777,18 @@ public com.google.protobuf.ByteString getQueryBytes() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -864,7 +796,6 @@ public Builder setQuery(java.lang.String value) {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -874,8 +805,6 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -883,14 +812,12 @@ public Builder clearQuery() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000002; @@ -898,16 +825,13 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -915,14 +839,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -934,14 +855,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -953,8 +871,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -962,13 +878,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 10; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -977,8 +893,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -986,14 +900,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 10; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1001,8 +916,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1010,22 +923,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 10; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1033,7 +942,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 10; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1043,8 +951,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1052,23 +958,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 10; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesRequest) private static final com.google.monitoring.v3.QueryTimeSeriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryTimeSeriesRequest(); } @@ -1092,27 +996,27 @@ public static com.google.monitoring.v3.QueryTimeSeriesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java index 09a21fa1e61e..f9af512736fb 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface QueryTimeSeriesRequestOrBuilder - extends +public interface QueryTimeSeriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -34,13 +16,10 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -49,14 +28,12 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -64,13 +41,10 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -78,27 +52,22 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * A positive number that is the maximum number of time_series_data to return.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -106,13 +75,10 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string page_token = 10; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -120,8 +86,8 @@ public interface QueryTimeSeriesRequestOrBuilder
    * 
* * string page_token = 10; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java index 84f4734d3d5a..231c970a41b5 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `QueryTimeSeries` response.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse} */ -public final class QueryTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryTimeSeriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesResponse) QueryTimeSeriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryTimeSeriesResponse.newBuilder() to construct. private QueryTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryTimeSeriesResponse() { timeSeriesData_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,36 +27,32 @@ private QueryTimeSeriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryTimeSeriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesResponse.class, - com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesResponse.class, com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); } public static final int TIME_SERIES_DESCRIPTOR_FIELD_NUMBER = 8; private com.google.monitoring.v3.TimeSeriesDescriptor timeSeriesDescriptor_; /** - * - * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return Whether the timeSeriesDescriptor field is set. */ @java.lang.Override @@ -82,25 +60,18 @@ public boolean hasTimeSeriesDescriptor() { return timeSeriesDescriptor_ != null; } /** - * - * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return The timeSeriesDescriptor. */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { - return timeSeriesDescriptor_ == null - ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() - : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; } /** - * - * *
    * The descriptor for the time series data.
    * 
@@ -109,18 +80,13 @@ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder() { - return timeSeriesDescriptor_ == null - ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() - : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** - * - * *
    * The time series data.
    * 
@@ -132,8 +98,6 @@ public java.util.List getTimeSeriesData return timeSeriesData_; } /** - * - * *
    * The time series data.
    * 
@@ -141,13 +105,11 @@ public java.util.List getTimeSeriesData * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesDataOrBuilderList() { return timeSeriesData_; } /** - * - * *
    * The time series data.
    * 
@@ -159,8 +121,6 @@ public int getTimeSeriesDataCount() { return timeSeriesData_.size(); } /** - * - * *
    * The time series data.
    * 
@@ -172,8 +132,6 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { return timeSeriesData_.get(index); } /** - * - * *
    * The time series data.
    * 
@@ -181,17 +139,15 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( + int index) { return timeSeriesData_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -199,7 +155,6 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild
    * 
* * string next_page_token = 10; - * * @return The nextPageToken. */ @java.lang.Override @@ -208,15 +163,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -224,15 +178,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 10; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -241,12 +196,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int PARTIAL_ERRORS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private java.util.List partialErrors_; /** - * - * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -260,8 +212,6 @@ public java.util.List getPartialErrorsList() {
     return partialErrors_;
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -271,12 +221,11 @@ public java.util.List getPartialErrorsList() {
    * repeated .google.rpc.Status partial_errors = 11;
    */
   @java.lang.Override
-  public java.util.List getPartialErrorsOrBuilderList() {
+  public java.util.List 
+      getPartialErrorsOrBuilderList() {
     return partialErrors_;
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -290,8 +239,6 @@ public int getPartialErrorsCount() {
     return partialErrors_.size();
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -305,8 +252,6 @@ public com.google.rpc.Status getPartialErrors(int index) {
     return partialErrors_.get(index);
   }
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -316,12 +261,12 @@ public com.google.rpc.Status getPartialErrors(int index) {
    * repeated .google.rpc.Status partial_errors = 11;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+  public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
+      int index) {
     return partialErrors_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -333,7 +278,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (timeSeriesDescriptor_ != null) {
       output.writeMessage(8, getTimeSeriesDescriptor());
     }
@@ -356,17 +302,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (timeSeriesDescriptor_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeSeriesDescriptor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getTimeSeriesDescriptor());
     }
     for (int i = 0; i < timeSeriesData_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, timeSeriesData_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, timeSeriesData_.get(i));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nextPageToken_);
     }
     for (int i = 0; i < partialErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, partialErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, partialErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -376,21 +324,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.QueryTimeSeriesResponse)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.QueryTimeSeriesResponse other =
-        (com.google.monitoring.v3.QueryTimeSeriesResponse) obj;
+    com.google.monitoring.v3.QueryTimeSeriesResponse other = (com.google.monitoring.v3.QueryTimeSeriesResponse) obj;
 
     if (hasTimeSeriesDescriptor() != other.hasTimeSeriesDescriptor()) return false;
     if (hasTimeSeriesDescriptor()) {
-      if (!getTimeSeriesDescriptor().equals(other.getTimeSeriesDescriptor())) return false;
-    }
-    if (!getTimeSeriesDataList().equals(other.getTimeSeriesDataList())) return false;
-    if (!getNextPageToken().equals(other.getNextPageToken())) return false;
-    if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false;
+      if (!getTimeSeriesDescriptor()
+          .equals(other.getTimeSeriesDescriptor())) return false;
+    }
+    if (!getTimeSeriesDataList()
+        .equals(other.getTimeSeriesDataList())) return false;
+    if (!getNextPageToken()
+        .equals(other.getNextPageToken())) return false;
+    if (!getPartialErrorsList()
+        .equals(other.getPartialErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -421,136 +372,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.QueryTimeSeriesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The `QueryTimeSeries` response.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryTimeSeriesResponse) com.google.monitoring.v3.QueryTimeSeriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesResponse.class, - com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesResponse.class, com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); } // Construct using com.google.monitoring.v3.QueryTimeSeriesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -579,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto - .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override @@ -600,18 +547,14 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse build() { @java.lang.Override public com.google.monitoring.v3.QueryTimeSeriesResponse buildPartial() { - com.google.monitoring.v3.QueryTimeSeriesResponse result = - new com.google.monitoring.v3.QueryTimeSeriesResponse(this); + com.google.monitoring.v3.QueryTimeSeriesResponse result = new com.google.monitoring.v3.QueryTimeSeriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.QueryTimeSeriesResponse result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.QueryTimeSeriesResponse result) { if (timeSeriesDataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); @@ -635,10 +578,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesDescriptor_ = - timeSeriesDescriptorBuilder_ == null - ? timeSeriesDescriptor_ - : timeSeriesDescriptorBuilder_.build(); + result.timeSeriesDescriptor_ = timeSeriesDescriptorBuilder_ == null + ? timeSeriesDescriptor_ + : timeSeriesDescriptorBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -649,39 +591,38 @@ private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesResponse resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryTimeSeriesResponse) { - return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesResponse) other); + return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesResponse)other); } else { super.mergeFrom(other); return this; @@ -689,8 +630,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) { - if (other == com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()) return this; if (other.hasTimeSeriesDescriptor()) { mergeTimeSeriesDescriptor(other.getTimeSeriesDescriptor()); } @@ -712,10 +652,9 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) timeSeriesDataBuilder_ = null; timeSeriesData_ = other.timeSeriesData_; bitField0_ = (bitField0_ & ~0x00000002); - timeSeriesDataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeSeriesDataFieldBuilder() - : null; + timeSeriesDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeSeriesDataFieldBuilder() : null; } else { timeSeriesDataBuilder_.addAllMessages(other.timeSeriesData_); } @@ -744,10 +683,9 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) partialErrorsBuilder_ = null; partialErrors_ = other.partialErrors_; bitField0_ = (bitField0_ & ~0x00000008); - partialErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialErrorsFieldBuilder() - : null; + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartialErrorsFieldBuilder() : null; } else { partialErrorsBuilder_.addAllMessages(other.partialErrors_); } @@ -779,51 +717,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 66: - { - input.readMessage( - getTimeSeriesDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 66 - case 74: - { - com.google.monitoring.v3.TimeSeriesData m = - input.readMessage( - com.google.monitoring.v3.TimeSeriesData.parser(), extensionRegistry); - if (timeSeriesDataBuilder_ == null) { - ensureTimeSeriesDataIsMutable(); - timeSeriesData_.add(m); - } else { - timeSeriesDataBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - case 90: - { - com.google.rpc.Status m = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (partialErrorsBuilder_ == null) { - ensurePartialErrorsIsMutable(); - partialErrors_.add(m); - } else { - partialErrorsBuilder_.addMessage(m); - } - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 66: { + input.readMessage( + getTimeSeriesDescriptorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 66 + case 74: { + com.google.monitoring.v3.TimeSeriesData m = + input.readMessage( + com.google.monitoring.v3.TimeSeriesData.parser(), + extensionRegistry); + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(m); + } else { + timeSeriesDataBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 82 + case 90: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(m); + } else { + partialErrorsBuilder_.addMessage(m); + } + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -833,52 +770,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.TimeSeriesDescriptor timeSeriesDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> - timeSeriesDescriptorBuilder_; + com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> timeSeriesDescriptorBuilder_; /** - * - * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return Whether the timeSeriesDescriptor field is set. */ public boolean hasTimeSeriesDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return The timeSeriesDescriptor. */ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { if (timeSeriesDescriptorBuilder_ == null) { - return timeSeriesDescriptor_ == null - ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() - : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; } else { return timeSeriesDescriptorBuilder_.getMessage(); } } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -899,8 +822,6 @@ public Builder setTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescri return this; } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -919,8 +840,6 @@ public Builder setTimeSeriesDescriptor( return this; } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -929,10 +848,9 @@ public Builder setTimeSeriesDescriptor( */ public Builder mergeTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescriptor value) { if (timeSeriesDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeSeriesDescriptor_ != null - && timeSeriesDescriptor_ - != com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeSeriesDescriptor_ != null && + timeSeriesDescriptor_ != com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()) { getTimeSeriesDescriptorBuilder().mergeFrom(value); } else { timeSeriesDescriptor_ = value; @@ -945,8 +863,6 @@ public Builder mergeTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDesc return this; } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -964,8 +880,6 @@ public Builder clearTimeSeriesDescriptor() { return this; } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -978,27 +892,21 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.Builder getTimeSeriesDescri return getTimeSeriesDescriptorFieldBuilder().getBuilder(); } /** - * - * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; */ - public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder - getTimeSeriesDescriptorOrBuilder() { + public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder() { if (timeSeriesDescriptorBuilder_ != null) { return timeSeriesDescriptorBuilder_.getMessageOrBuilder(); } else { - return timeSeriesDescriptor_ == null - ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() - : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null ? + com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; } } /** - * - * *
      * The descriptor for the time series data.
      * 
@@ -1006,42 +914,32 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.Builder getTimeSeriesDescri * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> + com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> getTimeSeriesDescriptorFieldBuilder() { if (timeSeriesDescriptorBuilder_ == null) { - timeSeriesDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>( - getTimeSeriesDescriptor(), getParentForChildren(), isClean()); + timeSeriesDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>( + getTimeSeriesDescriptor(), + getParentForChildren(), + isClean()); timeSeriesDescriptor_ = null; } return timeSeriesDescriptorBuilder_; } private java.util.List timeSeriesData_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeSeriesDataIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - timeSeriesData_ = - new java.util.ArrayList(timeSeriesData_); + timeSeriesData_ = new java.util.ArrayList(timeSeriesData_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, - com.google.monitoring.v3.TimeSeriesData.Builder, - com.google.monitoring.v3.TimeSeriesDataOrBuilder> - timeSeriesDataBuilder_; + com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder> timeSeriesDataBuilder_; /** - * - * *
      * The time series data.
      * 
@@ -1056,8 +954,6 @@ public java.util.List getTimeSeriesData } } /** - * - * *
      * The time series data.
      * 
@@ -1072,8 +968,6 @@ public int getTimeSeriesDataCount() { } } /** - * - * *
      * The time series data.
      * 
@@ -1088,15 +982,14 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { } } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public Builder setTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) { + public Builder setTimeSeriesData( + int index, com.google.monitoring.v3.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1110,8 +1003,6 @@ public Builder setTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesD return this; } /** - * - * *
      * The time series data.
      * 
@@ -1130,8 +1021,6 @@ public Builder setTimeSeriesData( return this; } /** - * - * *
      * The time series data.
      * 
@@ -1152,15 +1041,14 @@ public Builder addTimeSeriesData(com.google.monitoring.v3.TimeSeriesData value) return this; } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public Builder addTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) { + public Builder addTimeSeriesData( + int index, com.google.monitoring.v3.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1174,8 +1062,6 @@ public Builder addTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesD return this; } /** - * - * *
      * The time series data.
      * 
@@ -1194,8 +1080,6 @@ public Builder addTimeSeriesData( return this; } /** - * - * *
      * The time series data.
      * 
@@ -1214,8 +1098,6 @@ public Builder addTimeSeriesData( return this; } /** - * - * *
      * The time series data.
      * 
@@ -1226,7 +1108,8 @@ public Builder addAllTimeSeriesData( java.lang.Iterable values) { if (timeSeriesDataBuilder_ == null) { ensureTimeSeriesDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesData_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timeSeriesData_); onChanged(); } else { timeSeriesDataBuilder_.addAllMessages(values); @@ -1234,8 +1117,6 @@ public Builder addAllTimeSeriesData( return this; } /** - * - * *
      * The time series data.
      * 
@@ -1253,8 +1134,6 @@ public Builder clearTimeSeriesData() { return this; } /** - * - * *
      * The time series data.
      * 
@@ -1272,44 +1151,39 @@ public Builder removeTimeSeriesData(int index) { return this; } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesData.Builder getTimeSeriesDataBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesData.Builder getTimeSeriesDataBuilder( + int index) { return getTimeSeriesDataFieldBuilder().getBuilder(index); } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( + int index) { if (timeSeriesDataBuilder_ == null) { - return timeSeriesData_.get(index); - } else { + return timeSeriesData_.get(index); } else { return timeSeriesDataBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public java.util.List - getTimeSeriesDataOrBuilderList() { + public java.util.List + getTimeSeriesDataOrBuilderList() { if (timeSeriesDataBuilder_ != null) { return timeSeriesDataBuilder_.getMessageOrBuilderList(); } else { @@ -1317,8 +1191,6 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild } } /** - * - * *
      * The time series data.
      * 
@@ -1326,47 +1198,38 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder() { - return getTimeSeriesDataFieldBuilder() - .addBuilder(com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); + return getTimeSeriesDataFieldBuilder().addBuilder( + com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder(int index) { - return getTimeSeriesDataFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder( + int index) { + return getTimeSeriesDataFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); } /** - * - * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public java.util.List - getTimeSeriesDataBuilderList() { + public java.util.List + getTimeSeriesDataBuilderList() { return getTimeSeriesDataFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, - com.google.monitoring.v3.TimeSeriesData.Builder, - com.google.monitoring.v3.TimeSeriesDataOrBuilder> + com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder> getTimeSeriesDataFieldBuilder() { if (timeSeriesDataBuilder_ == null) { - timeSeriesDataBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, - com.google.monitoring.v3.TimeSeriesData.Builder, - com.google.monitoring.v3.TimeSeriesDataOrBuilder>( + timeSeriesDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder>( timeSeriesData_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1378,8 +1241,6 @@ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1387,13 +1248,13 @@ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder(
      * 
* * string next_page_token = 10; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1402,8 +1263,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1411,14 +1270,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 10; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1426,8 +1286,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1435,22 +1293,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 10; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1458,7 +1312,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 10; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1468,8 +1321,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1477,14 +1328,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 10; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; @@ -1493,22 +1342,18 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { } private java.util.List partialErrors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartialErrorsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { partialErrors_ = new java.util.ArrayList(partialErrors_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - partialErrorsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialErrorsBuilder_; /** - * - * *
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1525,8 +1370,6 @@ public java.util.List getPartialErrorsList() {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1543,8 +1386,6 @@ public int getPartialErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1561,8 +1402,6 @@ public com.google.rpc.Status getPartialErrors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1571,7 +1410,8 @@ public com.google.rpc.Status getPartialErrors(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder setPartialErrors(int index, com.google.rpc.Status value) {
+    public Builder setPartialErrors(
+        int index, com.google.rpc.Status value) {
       if (partialErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1585,8 +1425,6 @@ public Builder setPartialErrors(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1595,7 +1433,8 @@ public Builder setPartialErrors(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialErrors(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.set(index, builderForValue.build());
@@ -1606,8 +1445,6 @@ public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1630,8 +1467,6 @@ public Builder addPartialErrors(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1640,7 +1475,8 @@ public Builder addPartialErrors(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(int index, com.google.rpc.Status value) {
+    public Builder addPartialErrors(
+        int index, com.google.rpc.Status value) {
       if (partialErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1654,8 +1490,6 @@ public Builder addPartialErrors(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1664,7 +1498,8 @@ public Builder addPartialErrors(int index, com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialErrors(
+        com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.add(builderForValue.build());
@@ -1675,8 +1510,6 @@ public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1685,7 +1518,8 @@ public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialErrors(
+        int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.add(index, builderForValue.build());
@@ -1696,8 +1530,6 @@ public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1706,10 +1538,12 @@ public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builder
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addAllPartialErrors(java.lang.Iterable values) {
+    public Builder addAllPartialErrors(
+        java.lang.Iterable values) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, partialErrors_);
         onChanged();
       } else {
         partialErrorsBuilder_.addAllMessages(values);
@@ -1717,8 +1551,6 @@ public Builder addAllPartialErrors(java.lang.Iterable
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1738,8 +1570,6 @@ public Builder clearPartialErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1759,8 +1589,6 @@ public Builder removePartialErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1769,12 +1597,11 @@ public Builder removePartialErrors(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
+    public com.google.rpc.Status.Builder getPartialErrorsBuilder(
+        int index) {
       return getPartialErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1783,16 +1610,14 @@ public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
+    public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
+        int index) {
       if (partialErrorsBuilder_ == null) {
-        return partialErrors_.get(index);
-      } else {
+        return partialErrors_.get(index);  } else {
         return partialErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1801,8 +1626,8 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public java.util.List
-        getPartialErrorsOrBuilderList() {
+    public java.util.List 
+         getPartialErrorsOrBuilderList() {
       if (partialErrorsBuilder_ != null) {
         return partialErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1810,8 +1635,6 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1821,11 +1644,10 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
      * repeated .google.rpc.Status partial_errors = 11;
      */
     public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
-      return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
+      return getPartialErrorsFieldBuilder().addBuilder(
+          com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1834,13 +1656,12 @@ public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
-      return getPartialErrorsFieldBuilder()
-          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialErrorsBuilder(
+        int index) {
+      return getPartialErrorsFieldBuilder().addBuilder(
+          index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1849,19 +1670,16 @@ public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public java.util.List getPartialErrorsBuilderList() {
+    public java.util.List 
+         getPartialErrorsBuilderList() {
       return getPartialErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getPartialErrorsFieldBuilder() {
       if (partialErrorsBuilder_ == null) {
-        partialErrorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
+        partialErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
                 partialErrors_,
                 ((bitField0_ & 0x00000008) != 0),
                 getParentForChildren(),
@@ -1870,9 +1688,9 @@ public java.util.List getPartialErrorsBuilderList
       }
       return partialErrorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1882,12 +1700,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryTimeSeriesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesResponse)
   private static final com.google.monitoring.v3.QueryTimeSeriesResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryTimeSeriesResponse();
   }
@@ -1896,27 +1714,27 @@ public static com.google.monitoring.v3.QueryTimeSeriesResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public QueryTimeSeriesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public QueryTimeSeriesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1931,4 +1749,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.QueryTimeSeriesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
similarity index 77%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
index 887d577fe359..7a90c5db1d8c 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric_service.proto
 
 package com.google.monitoring.v3;
 
-public interface QueryTimeSeriesResponseOrBuilder
-    extends
+public interface QueryTimeSeriesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryTimeSeriesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return Whether the timeSeriesDescriptor field is set. */ boolean hasTimeSeriesDescriptor(); /** - * - * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; - * * @return The timeSeriesDescriptor. */ com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor(); /** - * - * *
    * The descriptor for the time series data.
    * 
@@ -59,18 +35,15 @@ public interface QueryTimeSeriesResponseOrBuilder com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder(); /** - * - * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - java.util.List getTimeSeriesDataList(); + java.util.List + getTimeSeriesDataList(); /** - * - * *
    * The time series data.
    * 
@@ -79,8 +52,6 @@ public interface QueryTimeSeriesResponseOrBuilder */ com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index); /** - * - * *
    * The time series data.
    * 
@@ -89,30 +60,25 @@ public interface QueryTimeSeriesResponseOrBuilder */ int getTimeSeriesDataCount(); /** - * - * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - java.util.List + java.util.List getTimeSeriesDataOrBuilderList(); /** - * - * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index); + com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( + int index); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -120,13 +86,10 @@ public interface QueryTimeSeriesResponseOrBuilder
    * 
* * string next_page_token = 10; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -134,14 +97,12 @@ public interface QueryTimeSeriesResponseOrBuilder
    * 
* * string next_page_token = 10; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -150,10 +111,9 @@ public interface QueryTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  java.util.List getPartialErrorsList();
+  java.util.List 
+      getPartialErrorsList();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -164,8 +124,6 @@ public interface QueryTimeSeriesResponseOrBuilder
    */
   com.google.rpc.Status getPartialErrors(int index);
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -176,8 +134,6 @@ public interface QueryTimeSeriesResponseOrBuilder
    */
   int getPartialErrorsCount();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -186,10 +142,9 @@ public interface QueryTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  java.util.List getPartialErrorsOrBuilderList();
+  java.util.List 
+      getPartialErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -198,5 +153,6 @@ public interface QueryTimeSeriesResponseOrBuilder
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
+      int index);
 }
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
similarity index 65%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
index 6c3eb9bc2f7f..d589a9a6053c 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
@@ -1,60 +1,43 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * Range of numerical values within `min` and `max`.
  * 
* * Protobuf type {@code google.monitoring.v3.Range} */ -public final class Range extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Range extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Range) RangeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Range() {} + private Range() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Range(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Range_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Range_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Range.class, com.google.monitoring.v3.Range.Builder.class); } @@ -62,14 +45,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int MIN_FIELD_NUMBER = 1; private double min_ = 0D; /** - * - * *
    * Range minimum.
    * 
* * double min = 1; - * * @return The min. */ @java.lang.Override @@ -80,14 +60,11 @@ public double getMin() { public static final int MAX_FIELD_NUMBER = 2; private double max_ = 0D; /** - * - * *
    * Range maximum.
    * 
* * double max = 2; - * * @return The max. */ @java.lang.Override @@ -96,7 +73,6 @@ public double getMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,7 +84,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(1, min_); } @@ -125,10 +102,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(min_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, max_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -138,7 +117,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Range)) { return super.equals(obj); @@ -146,9 +125,11 @@ public boolean equals(final java.lang.Object obj) { com.google.monitoring.v3.Range other = (com.google.monitoring.v3.Range) obj; if (java.lang.Double.doubleToLongBits(getMin()) - != java.lang.Double.doubleToLongBits(other.getMin())) return false; + != java.lang.Double.doubleToLongBits( + other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) - != java.lang.Double.doubleToLongBits(other.getMax())) return false; + != java.lang.Double.doubleToLongBits( + other.getMax())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,146 +142,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.Range parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Range parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Range parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Range parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.Range parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Range parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Range parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Range parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Range parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Range parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.Range parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.monitoring.v3.Range parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Range parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Range prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Range of numerical values within `min` and `max`.
    * 
* * Protobuf type {@code google.monitoring.v3.Range} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Range) com.google.monitoring.v3.RangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Range_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Range_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Range.class, com.google.monitoring.v3.Range.Builder.class); } // Construct using com.google.monitoring.v3.Range.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -311,9 +288,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Range_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override @@ -333,9 +310,7 @@ public com.google.monitoring.v3.Range build() { @java.lang.Override public com.google.monitoring.v3.Range buildPartial() { com.google.monitoring.v3.Range result = new com.google.monitoring.v3.Range(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -354,39 +329,38 @@ private void buildPartial0(com.google.monitoring.v3.Range result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Range) { - return mergeFrom((com.google.monitoring.v3.Range) other); + return mergeFrom((com.google.monitoring.v3.Range)other); } else { super.mergeFrom(other); return this; @@ -427,25 +401,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - min_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: - { - max_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + min_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + max_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,19 +426,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private double min_; + private double min_ ; /** - * - * *
      * Range minimum.
      * 
* * double min = 1; - * * @return The min. */ @java.lang.Override @@ -475,14 +442,11 @@ public double getMin() { return min_; } /** - * - * *
      * Range minimum.
      * 
* * double min = 1; - * * @param value The min to set. * @return This builder for chaining. */ @@ -494,14 +458,11 @@ public Builder setMin(double value) { return this; } /** - * - * *
      * Range minimum.
      * 
* * double min = 1; - * * @return This builder for chaining. */ public Builder clearMin() { @@ -511,16 +472,13 @@ public Builder clearMin() { return this; } - private double max_; + private double max_ ; /** - * - * *
      * Range maximum.
      * 
* * double max = 2; - * * @return The max. */ @java.lang.Override @@ -528,14 +486,11 @@ public double getMax() { return max_; } /** - * - * *
      * Range maximum.
      * 
* * double max = 2; - * * @param value The max to set. * @return This builder for chaining. */ @@ -547,14 +502,11 @@ public Builder setMax(double value) { return this; } /** - * - * *
      * Range maximum.
      * 
* * double max = 2; - * * @return This builder for chaining. */ public Builder clearMax() { @@ -563,9 +515,9 @@ public Builder clearMax() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -575,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Range) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Range) private static final com.google.monitoring.v3.Range DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Range(); } @@ -589,27 +541,27 @@ public static com.google.monitoring.v3.Range getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Range parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Range parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -624,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java new file mode 100644 index 000000000000..1b87a39b9379 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service.proto + +package com.google.monitoring.v3; + +public interface RangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Range) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Range minimum.
+   * 
+ * + * double min = 1; + * @return The min. + */ + double getMin(); + + /** + *
+   * Range maximum.
+   * 
+ * + * double max = 2; + * @return The max. + */ + double getMax(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java index 6d70560131aa..c9ae44a35e4f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * Service Level Indicators for which atomic units of service are counted
  * directly.
@@ -28,53 +11,48 @@
  *
  * Protobuf type {@code google.monitoring.v3.RequestBasedSli}
  */
-public final class RequestBasedSli extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RequestBasedSli extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.RequestBasedSli)
     RequestBasedSliOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RequestBasedSli.newBuilder() to construct.
   private RequestBasedSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RequestBasedSli() {}
+  private RequestBasedSli() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RequestBasedSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.RequestBasedSli.class,
-            com.google.monitoring.v3.RequestBasedSli.Builder.class);
+            com.google.monitoring.v3.RequestBasedSli.class, com.google.monitoring.v3.RequestBasedSli.Builder.class);
   }
 
   private int methodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object method_;
-
   public enum MethodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GOOD_TOTAL_RATIO(1),
     DISTRIBUTION_CUT(3),
     METHOD_NOT_SET(0);
     private final int value;
-
     private MethodCase(int value) {
       this.value = value;
     }
@@ -90,37 +68,31 @@ public static MethodCase valueOf(int value) {
 
     public static MethodCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return GOOD_TOTAL_RATIO;
-        case 3:
-          return DISTRIBUTION_CUT;
-        case 0:
-          return METHOD_NOT_SET;
-        default:
-          return null;
+        case 1: return GOOD_TOTAL_RATIO;
+        case 3: return DISTRIBUTION_CUT;
+        case 0: return METHOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public MethodCase getMethodCase() {
-    return MethodCase.forNumber(methodCase_);
+  public MethodCase
+  getMethodCase() {
+    return MethodCase.forNumber(
+        methodCase_);
   }
 
   public static final int GOOD_TOTAL_RATIO_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return Whether the goodTotalRatio field is set. */ @java.lang.Override @@ -128,27 +100,22 @@ public boolean hasGoodTotalRatio() { return methodCase_ == 1; } /** - * - * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return The goodTotalRatio. */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() { if (methodCase_ == 1) { - return (com.google.monitoring.v3.TimeSeriesRatio) method_; + return (com.google.monitoring.v3.TimeSeriesRatio) method_; } return com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance(); } /** - * - * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
@@ -159,15 +126,13 @@ public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() {
   @java.lang.Override
   public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuilder() {
     if (methodCase_ == 1) {
-      return (com.google.monitoring.v3.TimeSeriesRatio) method_;
+       return (com.google.monitoring.v3.TimeSeriesRatio) method_;
     }
     return com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance();
   }
 
   public static final int DISTRIBUTION_CUT_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -176,7 +141,6 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return Whether the distributionCut field is set. */ @java.lang.Override @@ -184,8 +148,6 @@ public boolean hasDistributionCut() { return methodCase_ == 3; } /** - * - * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -194,19 +156,16 @@ public boolean hasDistributionCut() {
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return The distributionCut. */ @java.lang.Override public com.google.monitoring.v3.DistributionCut getDistributionCut() { if (methodCase_ == 3) { - return (com.google.monitoring.v3.DistributionCut) method_; + return (com.google.monitoring.v3.DistributionCut) method_; } return com.google.monitoring.v3.DistributionCut.getDefaultInstance(); } /** - * - * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -219,13 +178,12 @@ public com.google.monitoring.v3.DistributionCut getDistributionCut() {
   @java.lang.Override
   public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBuilder() {
     if (methodCase_ == 3) {
-      return (com.google.monitoring.v3.DistributionCut) method_;
+       return (com.google.monitoring.v3.DistributionCut) method_;
     }
     return com.google.monitoring.v3.DistributionCut.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -237,7 +195,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (methodCase_ == 1) {
       output.writeMessage(1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
     }
@@ -254,14 +213,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (methodCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
     }
     if (methodCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.monitoring.v3.DistributionCut) method_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.monitoring.v3.DistributionCut) method_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -271,7 +228,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.RequestBasedSli)) {
       return super.equals(obj);
@@ -281,10 +238,12 @@ public boolean equals(final java.lang.Object obj) {
     if (!getMethodCase().equals(other.getMethodCase())) return false;
     switch (methodCase_) {
       case 1:
-        if (!getGoodTotalRatio().equals(other.getGoodTotalRatio())) return false;
+        if (!getGoodTotalRatio()
+            .equals(other.getGoodTotalRatio())) return false;
         break;
       case 3:
-        if (!getDistributionCut().equals(other.getDistributionCut())) return false;
+        if (!getDistributionCut()
+            .equals(other.getDistributionCut())) return false;
         break;
       case 0:
       default:
@@ -317,104 +276,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.RequestBasedSli parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.RequestBasedSli parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.RequestBasedSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Service Level Indicators for which atomic units of service are counted
    * directly.
@@ -422,32 +376,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.RequestBasedSli}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.RequestBasedSli)
       com.google.monitoring.v3.RequestBasedSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.RequestBasedSli.class,
-              com.google.monitoring.v3.RequestBasedSli.Builder.class);
+              com.google.monitoring.v3.RequestBasedSli.class, com.google.monitoring.v3.RequestBasedSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.RequestBasedSli.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -464,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
     }
 
     @java.lang.Override
@@ -485,11 +440,8 @@ public com.google.monitoring.v3.RequestBasedSli build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.RequestBasedSli buildPartial() {
-      com.google.monitoring.v3.RequestBasedSli result =
-          new com.google.monitoring.v3.RequestBasedSli(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.RequestBasedSli result = new com.google.monitoring.v3.RequestBasedSli(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -502,10 +454,12 @@ private void buildPartial0(com.google.monitoring.v3.RequestBasedSli result) {
     private void buildPartialOneofs(com.google.monitoring.v3.RequestBasedSli result) {
       result.methodCase_ = methodCase_;
       result.method_ = this.method_;
-      if (methodCase_ == 1 && goodTotalRatioBuilder_ != null) {
+      if (methodCase_ == 1 &&
+          goodTotalRatioBuilder_ != null) {
         result.method_ = goodTotalRatioBuilder_.build();
       }
-      if (methodCase_ == 3 && distributionCutBuilder_ != null) {
+      if (methodCase_ == 3 &&
+          distributionCutBuilder_ != null) {
         result.method_ = distributionCutBuilder_.build();
       }
     }
@@ -514,39 +468,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.RequestBasedSli result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.RequestBasedSli) {
-        return mergeFrom((com.google.monitoring.v3.RequestBasedSli) other);
+        return mergeFrom((com.google.monitoring.v3.RequestBasedSli)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -556,20 +509,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.monitoring.v3.RequestBasedSli other) {
       if (other == com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) return this;
       switch (other.getMethodCase()) {
-        case GOOD_TOTAL_RATIO:
-          {
-            mergeGoodTotalRatio(other.getGoodTotalRatio());
-            break;
-          }
-        case DISTRIBUTION_CUT:
-          {
-            mergeDistributionCut(other.getDistributionCut());
-            break;
-          }
-        case METHOD_NOT_SET:
-          {
-            break;
-          }
+        case GOOD_TOTAL_RATIO: {
+          mergeGoodTotalRatio(other.getGoodTotalRatio());
+          break;
+        }
+        case DISTRIBUTION_CUT: {
+          mergeDistributionCut(other.getDistributionCut());
+          break;
+        }
+        case METHOD_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -597,25 +547,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getGoodTotalRatioFieldBuilder().getBuilder(), extensionRegistry);
-                methodCase_ = 1;
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(getDistributionCutFieldBuilder().getBuilder(), extensionRegistry);
-                methodCase_ = 3;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getGoodTotalRatioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              methodCase_ = 1;
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getDistributionCutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              methodCase_ = 3;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -625,12 +576,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int methodCase_ = 0;
     private java.lang.Object method_;
-
-    public MethodCase getMethodCase() {
-      return MethodCase.forNumber(methodCase_);
+    public MethodCase
+        getMethodCase() {
+      return MethodCase.forNumber(
+          methodCase_);
     }
 
     public Builder clearMethod() {
@@ -643,20 +594,14 @@ public Builder clearMethod() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeSeriesRatio,
-            com.google.monitoring.v3.TimeSeriesRatio.Builder,
-            com.google.monitoring.v3.TimeSeriesRatioOrBuilder>
-        goodTotalRatioBuilder_;
+        com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder> goodTotalRatioBuilder_;
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
      * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return Whether the goodTotalRatio field is set. */ @java.lang.Override @@ -664,15 +609,12 @@ public boolean hasGoodTotalRatio() { return methodCase_ == 1; } /** - * - * *
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
      * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return The goodTotalRatio. */ @java.lang.Override @@ -690,8 +632,6 @@ public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() { } } /** - * - * *
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -713,8 +653,6 @@ public Builder setGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio value)
       return this;
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -734,8 +672,6 @@ public Builder setGoodTotalRatio(
       return this;
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -745,13 +681,10 @@ public Builder setGoodTotalRatio(
      */
     public Builder mergeGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio value) {
       if (goodTotalRatioBuilder_ == null) {
-        if (methodCase_ == 1
-            && method_ != com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance()) {
-          method_ =
-              com.google.monitoring.v3.TimeSeriesRatio.newBuilder(
-                      (com.google.monitoring.v3.TimeSeriesRatio) method_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (methodCase_ == 1 &&
+            method_ != com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance()) {
+          method_ = com.google.monitoring.v3.TimeSeriesRatio.newBuilder((com.google.monitoring.v3.TimeSeriesRatio) method_)
+              .mergeFrom(value).buildPartial();
         } else {
           method_ = value;
         }
@@ -767,8 +700,6 @@ public Builder mergeGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio valu
       return this;
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -793,8 +724,6 @@ public Builder clearGoodTotalRatio() {
       return this;
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -806,8 +735,6 @@ public com.google.monitoring.v3.TimeSeriesRatio.Builder getGoodTotalRatioBuilder
       return getGoodTotalRatioFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -827,8 +754,6 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -837,19 +762,14 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
      * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeSeriesRatio,
-            com.google.monitoring.v3.TimeSeriesRatio.Builder,
-            com.google.monitoring.v3.TimeSeriesRatioOrBuilder>
+        com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder> 
         getGoodTotalRatioFieldBuilder() {
       if (goodTotalRatioBuilder_ == null) {
         if (!(methodCase_ == 1)) {
           method_ = com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance();
         }
-        goodTotalRatioBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.TimeSeriesRatio,
-                com.google.monitoring.v3.TimeSeriesRatio.Builder,
-                com.google.monitoring.v3.TimeSeriesRatioOrBuilder>(
+        goodTotalRatioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder>(
                 (com.google.monitoring.v3.TimeSeriesRatio) method_,
                 getParentForChildren(),
                 isClean());
@@ -861,13 +781,8 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.DistributionCut,
-            com.google.monitoring.v3.DistributionCut.Builder,
-            com.google.monitoring.v3.DistributionCutOrBuilder>
-        distributionCutBuilder_;
+        com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder> distributionCutBuilder_;
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -876,7 +791,6 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
      * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return Whether the distributionCut field is set. */ @java.lang.Override @@ -884,8 +798,6 @@ public boolean hasDistributionCut() { return methodCase_ == 3; } /** - * - * *
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -894,7 +806,6 @@ public boolean hasDistributionCut() {
      * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return The distributionCut. */ @java.lang.Override @@ -912,8 +823,6 @@ public com.google.monitoring.v3.DistributionCut getDistributionCut() { } } /** - * - * *
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -937,8 +846,6 @@ public Builder setDistributionCut(com.google.monitoring.v3.DistributionCut value
       return this;
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -960,8 +867,6 @@ public Builder setDistributionCut(
       return this;
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -973,13 +878,10 @@ public Builder setDistributionCut(
      */
     public Builder mergeDistributionCut(com.google.monitoring.v3.DistributionCut value) {
       if (distributionCutBuilder_ == null) {
-        if (methodCase_ == 3
-            && method_ != com.google.monitoring.v3.DistributionCut.getDefaultInstance()) {
-          method_ =
-              com.google.monitoring.v3.DistributionCut.newBuilder(
-                      (com.google.monitoring.v3.DistributionCut) method_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (methodCase_ == 3 &&
+            method_ != com.google.monitoring.v3.DistributionCut.getDefaultInstance()) {
+          method_ = com.google.monitoring.v3.DistributionCut.newBuilder((com.google.monitoring.v3.DistributionCut) method_)
+              .mergeFrom(value).buildPartial();
         } else {
           method_ = value;
         }
@@ -995,8 +897,6 @@ public Builder mergeDistributionCut(com.google.monitoring.v3.DistributionCut val
       return this;
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -1023,8 +923,6 @@ public Builder clearDistributionCut() {
       return this;
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -1038,8 +936,6 @@ public com.google.monitoring.v3.DistributionCut.Builder getDistributionCutBuilde
       return getDistributionCutFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -1061,8 +957,6 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
       }
     }
     /**
-     *
-     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -1073,19 +967,14 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
      * .google.monitoring.v3.DistributionCut distribution_cut = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.DistributionCut,
-            com.google.monitoring.v3.DistributionCut.Builder,
-            com.google.monitoring.v3.DistributionCutOrBuilder>
+        com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder> 
         getDistributionCutFieldBuilder() {
       if (distributionCutBuilder_ == null) {
         if (!(methodCase_ == 3)) {
           method_ = com.google.monitoring.v3.DistributionCut.getDefaultInstance();
         }
-        distributionCutBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.DistributionCut,
-                com.google.monitoring.v3.DistributionCut.Builder,
-                com.google.monitoring.v3.DistributionCutOrBuilder>(
+        distributionCutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder>(
                 (com.google.monitoring.v3.DistributionCut) method_,
                 getParentForChildren(),
                 isClean());
@@ -1095,9 +984,9 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
       onChanged();
       return distributionCutBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1107,12 +996,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.RequestBasedSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.RequestBasedSli)
   private static final com.google.monitoring.v3.RequestBasedSli DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.RequestBasedSli();
   }
@@ -1121,27 +1010,27 @@ public static com.google.monitoring.v3.RequestBasedSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RequestBasedSli parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public RequestBasedSli parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1156,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.RequestBasedSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
similarity index 78%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
index 9c0b54bc4e29..0706e8990f80 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface RequestBasedSliOrBuilder
-    extends
+public interface RequestBasedSliOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.RequestBasedSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return Whether the goodTotalRatio field is set. */ boolean hasGoodTotalRatio(); /** - * - * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; - * * @return The goodTotalRatio. */ com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio(); /** - * - * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
@@ -62,8 +38,6 @@ public interface RequestBasedSliOrBuilder
   com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuilder();
 
   /**
-   *
-   *
    * 
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -72,13 +46,10 @@ public interface RequestBasedSliOrBuilder
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return Whether the distributionCut field is set. */ boolean hasDistributionCut(); /** - * - * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -87,13 +58,10 @@ public interface RequestBasedSliOrBuilder
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; - * * @return The distributionCut. */ com.google.monitoring.v3.DistributionCut getDistributionCut(); /** - * - * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
similarity index 55%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
index 56c3c3daa5b2..8bffbafd50e9 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
@@ -1,84 +1,57 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The `SendNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.SendNotificationChannelVerificationCodeRequest} */ -public final class SendNotificationChannelVerificationCodeRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SendNotificationChannelVerificationCodeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) SendNotificationChannelVerificationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SendNotificationChannelVerificationCodeRequest.newBuilder() to construct. - private SendNotificationChannelVerificationCodeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SendNotificationChannelVerificationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SendNotificationChannelVerificationCodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SendNotificationChannelVerificationCodeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The notification channel to which to send a verification code.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The notification channel to which to send a verification code.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other = - (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) obj; + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other = (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,139 +155,131 @@ public int hashCode() { } public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `SendNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.SendNotificationChannelVerificationCodeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder - .class); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); } - // Construct using - // com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.newBuilder() - private Builder() {} + // Construct using com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,22 +289,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - getDefaultInstanceForType() { - return com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - .getDefaultInstance(); + public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { + return com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest build() { - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = - buildPartial(); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -350,17 +310,13 @@ public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest b @java.lang.Override public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest buildPartial() { - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = - new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result) { + private void buildPartial0(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -371,52 +327,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) { - return mergeFrom( - (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) other); + if (other instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) { + return mergeFrom((com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other) { - if (other - == com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other) { + if (other == com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -448,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -470,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -499,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,61 +523,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - private static final com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - getDefaultInstance() { + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendNotificationChannelVerificationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendNotificationChannelVerificationCodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser - parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest - getDefaultInstanceForType() { + public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java new file mode 100644 index 000000000000..fa54c1e5c8c6 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface SendNotificationChannelVerificationCodeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The notification channel to which to send a verification code.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The notification channel to which to send a verification code.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java index 86b52c450b8f..593f7e685bc9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * A `Service` is a discrete, autonomous, and network-accessible unit, designed
  * to solve an individual concern
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.Service}
  */
-public final class Service extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Service extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service)
     ServiceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Service.newBuilder() to construct.
   private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Service() {
     name_ = "";
     displayName_ = "";
@@ -48,42 +30,41 @@ private Service() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Service();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_Service_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 14:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_Service_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Service.class, com.google.monitoring.v3.Service.Builder.class);
   }
 
-  public interface CustomOrBuilder
-      extends
+  public interface CustomOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.Custom)
-      com.google.protobuf.MessageOrBuilder {}
+      com.google.protobuf.MessageOrBuilder {
+  }
   /**
-   *
-   *
    * 
    * Custom view of service telemetry. Currently a place-holder pending final
    * design.
@@ -91,41 +72,39 @@ public interface CustomOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.Service.Custom}
    */
-  public static final class Custom extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Custom extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Custom)
       CustomOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Custom.newBuilder() to construct.
     private Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Custom() {}
+    private Custom() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Custom();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_Custom_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.Custom.class,
-              com.google.monitoring.v3.Service.Custom.Builder.class);
+              com.google.monitoring.v3.Service.Custom.class, com.google.monitoring.v3.Service.Custom.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -137,7 +116,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -155,7 +135,7 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.Service.Custom)) {
         return super.equals(obj);
@@ -178,94 +158,90 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.monitoring.v3.Service.Custom parseFrom(java.nio.ByteBuffer data)
+    public static com.google.monitoring.v3.Service.Custom parseFrom(
+        java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(java.io.InputStream input)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
     public static Builder newBuilder(com.google.monitoring.v3.Service.Custom prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -275,8 +251,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Custom view of service telemetry. Currently a place-holder pending final
      * design.
@@ -284,33 +258,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.Custom}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.Custom)
         com.google.monitoring.v3.Service.CustomOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_Custom_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.Custom.class,
-                com.google.monitoring.v3.Service.Custom.Builder.class);
+                com.google.monitoring.v3.Service.Custom.class, com.google.monitoring.v3.Service.Custom.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.Custom.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -318,9 +292,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_Custom_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
       }
 
       @java.lang.Override
@@ -339,8 +313,7 @@ public com.google.monitoring.v3.Service.Custom build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.Custom buildPartial() {
-        com.google.monitoring.v3.Service.Custom result =
-            new com.google.monitoring.v3.Service.Custom(this);
+        com.google.monitoring.v3.Service.Custom result = new com.google.monitoring.v3.Service.Custom(this);
         onBuilt();
         return result;
       }
@@ -349,41 +322,38 @@ public com.google.monitoring.v3.Service.Custom buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.Custom) {
-          return mergeFrom((com.google.monitoring.v3.Service.Custom) other);
+          return mergeFrom((com.google.monitoring.v3.Service.Custom)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -418,13 +388,12 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -434,7 +403,6 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -447,12 +415,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.Custom)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Custom)
     private static final com.google.monitoring.v3.Service.Custom DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.Custom();
     }
@@ -461,28 +429,27 @@ public static com.google.monitoring.v3.Service.Custom getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public Custom parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public Custom parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -497,16 +464,14 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.Service.Custom getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface AppEngineOrBuilder
-      extends
+  public interface AppEngineOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.AppEngine)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -514,13 +479,10 @@ public interface AppEngineOrBuilder
      * 
* * string module_id = 1; - * * @return The moduleId. */ java.lang.String getModuleId(); /** - * - * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -528,62 +490,55 @@ public interface AppEngineOrBuilder
      * 
* * string module_id = 1; - * * @return The bytes for moduleId. */ - com.google.protobuf.ByteString getModuleIdBytes(); + com.google.protobuf.ByteString + getModuleIdBytes(); } /** - * - * *
    * App Engine service. Learn more at https://cloud.google.com/appengine.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.AppEngine} */ - public static final class AppEngine extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AppEngine extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.AppEngine) AppEngineOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppEngine.newBuilder() to construct. private AppEngine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppEngine() { moduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppEngine(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.AppEngine.class, - com.google.monitoring.v3.Service.AppEngine.Builder.class); + com.google.monitoring.v3.Service.AppEngine.class, com.google.monitoring.v3.Service.AppEngine.Builder.class); } public static final int MODULE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object moduleId_ = ""; /** - * - * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -591,7 +546,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string module_id = 1; - * * @return The moduleId. */ @java.lang.Override @@ -600,15 +554,14 @@ public java.lang.String getModuleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleId_ = s; return s; } } /** - * - * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -616,15 +569,16 @@ public java.lang.String getModuleId() {
      * 
* * string module_id = 1; - * * @return The bytes for moduleId. */ @java.lang.Override - public com.google.protobuf.ByteString getModuleIdBytes() { + public com.google.protobuf.ByteString + getModuleIdBytes() { java.lang.Object ref = moduleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleId_ = b; return b; } else { @@ -633,7 +587,6 @@ public com.google.protobuf.ByteString getModuleIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -645,7 +598,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moduleId_); } @@ -669,15 +623,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.AppEngine)) { return super.equals(obj); } - com.google.monitoring.v3.Service.AppEngine other = - (com.google.monitoring.v3.Service.AppEngine) obj; + com.google.monitoring.v3.Service.AppEngine other = (com.google.monitoring.v3.Service.AppEngine) obj; - if (!getModuleId().equals(other.getModuleId())) return false; + if (!getModuleId() + .equals(other.getModuleId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -696,94 +650,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.AppEngine parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.AppEngine parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.AppEngine prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -793,41 +743,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * App Engine service. Learn more at https://cloud.google.com/appengine.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.AppEngine} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.AppEngine) com.google.monitoring.v3.Service.AppEngineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.AppEngine.class, - com.google.monitoring.v3.Service.AppEngine.Builder.class); + com.google.monitoring.v3.Service.AppEngine.class, com.google.monitoring.v3.Service.AppEngine.Builder.class); } // Construct using com.google.monitoring.v3.Service.AppEngine.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -837,9 +785,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override @@ -858,11 +806,8 @@ public com.google.monitoring.v3.Service.AppEngine build() { @java.lang.Override public com.google.monitoring.v3.Service.AppEngine buildPartial() { - com.google.monitoring.v3.Service.AppEngine result = - new com.google.monitoring.v3.Service.AppEngine(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.Service.AppEngine result = new com.google.monitoring.v3.Service.AppEngine(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -878,41 +823,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.AppEngine result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.AppEngine) { - return mergeFrom((com.google.monitoring.v3.Service.AppEngine) other); + return mergeFrom((com.google.monitoring.v3.Service.AppEngine)other); } else { super.mergeFrom(other); return this; @@ -952,19 +894,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - moduleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + moduleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -974,13 +914,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object moduleId_ = ""; /** - * - * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -988,13 +925,13 @@ public Builder mergeFrom(
        * 
* * string module_id = 1; - * * @return The moduleId. */ public java.lang.String getModuleId() { java.lang.Object ref = moduleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleId_ = s; return s; @@ -1003,8 +940,6 @@ public java.lang.String getModuleId() { } } /** - * - * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -1012,14 +947,15 @@ public java.lang.String getModuleId() {
        * 
* * string module_id = 1; - * * @return The bytes for moduleId. */ - public com.google.protobuf.ByteString getModuleIdBytes() { + public com.google.protobuf.ByteString + getModuleIdBytes() { java.lang.Object ref = moduleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); moduleId_ = b; return b; } else { @@ -1027,8 +963,6 @@ public com.google.protobuf.ByteString getModuleIdBytes() { } } /** - * - * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -1036,22 +970,18 @@ public com.google.protobuf.ByteString getModuleIdBytes() {
        * 
* * string module_id = 1; - * * @param value The moduleId to set. * @return This builder for chaining. */ - public Builder setModuleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModuleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } moduleId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -1059,7 +989,6 @@ public Builder setModuleId(java.lang.String value) {
        * 
* * string module_id = 1; - * * @return This builder for chaining. */ public Builder clearModuleId() { @@ -1069,8 +998,6 @@ public Builder clearModuleId() { return this; } /** - * - * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -1078,21 +1005,18 @@ public Builder clearModuleId() {
        * 
* * string module_id = 1; - * * @param value The bytes for moduleId to set. * @return This builder for chaining. */ - public Builder setModuleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModuleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); moduleId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1105,12 +1029,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.AppEngine) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.AppEngine) private static final com.google.monitoring.v3.Service.AppEngine DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.AppEngine(); } @@ -1119,28 +1043,27 @@ public static com.google.monitoring.v3.Service.AppEngine getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppEngine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,16 +1078,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.AppEngine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CloudEndpointsOrBuilder - extends + public interface CloudEndpointsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.CloudEndpoints) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1172,13 +1093,10 @@ public interface CloudEndpointsOrBuilder
      * 
* * string service = 1; - * * @return The service. */ java.lang.String getService(); /** - * - * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1186,62 +1104,55 @@ public interface CloudEndpointsOrBuilder
      * 
* * string service = 1; - * * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); } /** - * - * *
    * Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.CloudEndpoints} */ - public static final class CloudEndpoints extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CloudEndpoints extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.CloudEndpoints) CloudEndpointsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudEndpoints.newBuilder() to construct. private CloudEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudEndpoints() { service_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudEndpoints(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.CloudEndpoints.class, - com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); + com.google.monitoring.v3.Service.CloudEndpoints.class, com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object service_ = ""; /** - * - * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1249,7 +1160,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string service = 1; - * * @return The service. */ @java.lang.Override @@ -1258,15 +1168,14 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1274,15 +1183,16 @@ public java.lang.String getService() {
      * 
* * string service = 1; - * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -1291,7 +1201,6 @@ public com.google.protobuf.ByteString getServiceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1303,7 +1212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -1327,15 +1237,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.CloudEndpoints)) { return super.equals(obj); } - com.google.monitoring.v3.Service.CloudEndpoints other = - (com.google.monitoring.v3.Service.CloudEndpoints) obj; + com.google.monitoring.v3.Service.CloudEndpoints other = (com.google.monitoring.v3.Service.CloudEndpoints) obj; - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1355,93 +1265,89 @@ public int hashCode() { } public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.CloudEndpoints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1451,41 +1357,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.CloudEndpoints} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.CloudEndpoints) com.google.monitoring.v3.Service.CloudEndpointsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.CloudEndpoints.class, - com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); + com.google.monitoring.v3.Service.CloudEndpoints.class, com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); } // Construct using com.google.monitoring.v3.Service.CloudEndpoints.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1495,9 +1399,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override @@ -1516,11 +1420,8 @@ public com.google.monitoring.v3.Service.CloudEndpoints build() { @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpoints buildPartial() { - com.google.monitoring.v3.Service.CloudEndpoints result = - new com.google.monitoring.v3.Service.CloudEndpoints(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.Service.CloudEndpoints result = new com.google.monitoring.v3.Service.CloudEndpoints(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1536,41 +1437,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.CloudEndpoints resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.CloudEndpoints) { - return mergeFrom((com.google.monitoring.v3.Service.CloudEndpoints) other); + return mergeFrom((com.google.monitoring.v3.Service.CloudEndpoints)other); } else { super.mergeFrom(other); return this; @@ -1578,8 +1476,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.Service.CloudEndpoints other) { - if (other == com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; bitField0_ |= 0x00000001; @@ -1611,19 +1508,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - service_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1633,13 +1528,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object service_ = ""; /** - * - * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1647,13 +1539,13 @@ public Builder mergeFrom(
        * 
* * string service = 1; - * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1662,8 +1554,6 @@ public java.lang.String getService() { } } /** - * - * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1671,14 +1561,15 @@ public java.lang.String getService() {
        * 
* * string service = 1; - * * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -1686,8 +1577,6 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1695,22 +1584,18 @@ public com.google.protobuf.ByteString getServiceBytes() {
        * 
* * string service = 1; - * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1718,7 +1603,6 @@ public Builder setService(java.lang.String value) {
        * 
* * string service = 1; - * * @return This builder for chaining. */ public Builder clearService() { @@ -1728,8 +1612,6 @@ public Builder clearService() { return this; } /** - * - * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1737,21 +1619,18 @@ public Builder clearService() {
        * 
* * string service = 1; - * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1764,12 +1643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.CloudEndpoints) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.CloudEndpoints) private static final com.google.monitoring.v3.Service.CloudEndpoints DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.CloudEndpoints(); } @@ -1778,28 +1657,27 @@ public static com.google.monitoring.v3.Service.CloudEndpoints getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEndpoints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1814,16 +1692,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.CloudEndpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ClusterIstioOrBuilder - extends + public interface ClusterIstioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.ClusterIstio) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1831,13 +1707,10 @@ public interface ClusterIstioOrBuilder
      * 
* * string location = 1; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1845,14 +1718,12 @@ public interface ClusterIstioOrBuilder
      * 
* * string location = 1; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1860,13 +1731,10 @@ public interface ClusterIstioOrBuilder
      * 
* * string cluster_name = 2; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1874,68 +1742,56 @@ public interface ClusterIstioOrBuilder
      * 
* * string cluster_name = 2; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ java.lang.String getServiceNamespace(); /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ - com.google.protobuf.ByteString getServiceNamespaceBytes(); + com.google.protobuf.ByteString + getServiceNamespaceBytes(); /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The serviceName. */ java.lang.String getServiceName(); /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString getServiceNameBytes(); + com.google.protobuf.ByteString + getServiceNameBytes(); } /** - * - * *
    * Istio service scoped to a single Kubernetes cluster. Learn more at
    * https://istio.io. Clusters running OSS Istio will have their services
@@ -1944,16 +1800,15 @@ public interface ClusterIstioOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
    */
-  public static final class ClusterIstio extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ClusterIstio extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.ClusterIstio)
       ClusterIstioOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ClusterIstio.newBuilder() to construct.
     private ClusterIstio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ClusterIstio() {
       location_ = "";
       clusterName_ = "";
@@ -1963,32 +1818,28 @@ private ClusterIstio() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ClusterIstio();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.ClusterIstio.class,
-              com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
+              com.google.monitoring.v3.Service.ClusterIstio.class, com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
     }
 
     public static final int LOCATION_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object location_ = "";
     /**
-     *
-     *
      * 
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1996,7 +1847,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string location = 1; - * * @return The location. */ @java.lang.Override @@ -2005,15 +1855,14 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2021,15 +1870,16 @@ public java.lang.String getLocation() {
      * 
* * string location = 1; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -2038,12 +1888,9 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object clusterName_ = ""; /** - * - * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -2051,7 +1898,6 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * string cluster_name = 2; - * * @return The clusterName. */ @java.lang.Override @@ -2060,15 +1906,14 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -2076,15 +1921,16 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -2093,19 +1939,15 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } public static final int SERVICE_NAMESPACE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceNamespace_ = ""; /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ @java.lang.Override @@ -2114,30 +1956,30 @@ public java.lang.String getServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; } } /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -2146,19 +1988,15 @@ public com.google.protobuf.ByteString getServiceNamespaceBytes() { } public static final int SERVICE_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceName_ = ""; /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The serviceName. */ @java.lang.Override @@ -2167,30 +2005,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -2199,7 +2037,6 @@ public com.google.protobuf.ByteString getServiceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2211,7 +2048,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -2253,18 +2091,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.ClusterIstio)) { return super.equals(obj); } - com.google.monitoring.v3.Service.ClusterIstio other = - (com.google.monitoring.v3.Service.ClusterIstio) obj; + com.google.monitoring.v3.Service.ClusterIstio other = (com.google.monitoring.v3.Service.ClusterIstio) obj; - if (!getLocation().equals(other.getLocation())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getServiceNamespace().equals(other.getServiceNamespace())) return false; - if (!getServiceName().equals(other.getServiceName())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getServiceNamespace() + .equals(other.getServiceNamespace())) return false; + if (!getServiceName() + .equals(other.getServiceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2289,94 +2130,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.ClusterIstio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2386,8 +2223,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Istio service scoped to a single Kubernetes cluster. Learn more at
      * https://istio.io. Clusters running OSS Istio will have their services
@@ -2396,33 +2231,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.ClusterIstio)
         com.google.monitoring.v3.Service.ClusterIstioOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.ClusterIstio.class,
-                com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
+                com.google.monitoring.v3.Service.ClusterIstio.class, com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.ClusterIstio.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2435,9 +2270,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
       }
 
       @java.lang.Override
@@ -2456,11 +2291,8 @@ public com.google.monitoring.v3.Service.ClusterIstio build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.ClusterIstio buildPartial() {
-        com.google.monitoring.v3.Service.ClusterIstio result =
-            new com.google.monitoring.v3.Service.ClusterIstio(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.Service.ClusterIstio result = new com.google.monitoring.v3.Service.ClusterIstio(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -2485,41 +2317,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.ClusterIstio result)
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.ClusterIstio) {
-          return mergeFrom((com.google.monitoring.v3.Service.ClusterIstio) other);
+          return mergeFrom((com.google.monitoring.v3.Service.ClusterIstio)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2527,8 +2356,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.Service.ClusterIstio other) {
-        if (other == com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) return this;
         if (!other.getLocation().isEmpty()) {
           location_ = other.location_;
           bitField0_ |= 0x00000001;
@@ -2575,37 +2403,32 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  location_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  clusterName_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  serviceNamespace_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  serviceName_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                location_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                clusterName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                serviceNamespace_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              case 34: {
+                serviceName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2615,13 +2438,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object location_ = "";
       /**
-       *
-       *
        * 
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2629,13 +2449,13 @@ public Builder mergeFrom(
        * 
* * string location = 1; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2644,8 +2464,6 @@ public java.lang.String getLocation() { } } /** - * - * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2653,14 +2471,15 @@ public java.lang.String getLocation() {
        * 
* * string location = 1; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -2668,8 +2487,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2677,22 +2494,18 @@ public com.google.protobuf.ByteString getLocationBytes() {
        * 
* * string location = 1; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2700,7 +2513,6 @@ public Builder setLocation(java.lang.String value) {
        * 
* * string location = 1; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2710,8 +2522,6 @@ public Builder clearLocation() { return this; } /** - * - * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2719,14 +2529,12 @@ public Builder clearLocation() {
        * 
* * string location = 1; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; @@ -2736,8 +2544,6 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2745,13 +2551,13 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
        * 
* * string cluster_name = 2; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -2760,8 +2566,6 @@ public java.lang.String getClusterName() { } } /** - * - * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2769,14 +2573,15 @@ public java.lang.String getClusterName() {
        * 
* * string cluster_name = 2; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -2784,8 +2589,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2793,22 +2596,18 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
        * 
* * string cluster_name = 2; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clusterName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2816,7 +2615,6 @@ public Builder setClusterName(java.lang.String value) {
        * 
* * string cluster_name = 2; - * * @return This builder for chaining. */ public Builder clearClusterName() { @@ -2826,8 +2624,6 @@ public Builder clearClusterName() { return this; } /** - * - * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2835,14 +2631,12 @@ public Builder clearClusterName() {
        * 
* * string cluster_name = 2; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterName_ = value; bitField0_ |= 0x00000002; @@ -2852,21 +2646,19 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceNamespace_ = ""; /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ public java.lang.String getServiceNamespace() { java.lang.Object ref = serviceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; @@ -2875,22 +2667,21 @@ public java.lang.String getServiceNamespace() { } } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ - public com.google.protobuf.ByteString getServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -2898,37 +2689,30 @@ public com.google.protobuf.ByteString getServiceNamespaceBytes() { } } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @param value The serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNamespace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceNamespace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return This builder for chaining. */ public Builder clearServiceNamespace() { @@ -2938,22 +2722,18 @@ public Builder clearServiceNamespace() { return this; } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @param value The bytes for serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceNamespace_ = value; bitField0_ |= 0x00000004; @@ -2963,21 +2743,19 @@ public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceName_ = ""; /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -2986,22 +2764,21 @@ public java.lang.String getServiceName() { } } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -3009,37 +2786,30 @@ public com.google.protobuf.ByteString getServiceNameBytes() { } } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return This builder for chaining. */ public Builder clearServiceName() { @@ -3049,29 +2819,24 @@ public Builder clearServiceName() { return this; } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3084,12 +2849,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.ClusterIstio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.ClusterIstio) private static final com.google.monitoring.v3.Service.ClusterIstio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.ClusterIstio(); } @@ -3098,28 +2863,27 @@ public static com.google.monitoring.v3.Service.ClusterIstio getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterIstio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterIstio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3134,97 +2898,80 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.ClusterIstio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MeshIstioOrBuilder - extends + public interface MeshIstioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.MeshIstio) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; - * * @return The meshUid. */ java.lang.String getMeshUid(); /** - * - * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ - com.google.protobuf.ByteString getMeshUidBytes(); + com.google.protobuf.ByteString + getMeshUidBytes(); /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ java.lang.String getServiceNamespace(); /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ - com.google.protobuf.ByteString getServiceNamespaceBytes(); + com.google.protobuf.ByteString + getServiceNamespaceBytes(); /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The serviceName. */ java.lang.String getServiceName(); /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString getServiceNameBytes(); + com.google.protobuf.ByteString + getServiceNameBytes(); } /** - * - * *
    * Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
    * will have their services ingested as this type.
@@ -3232,16 +2979,15 @@ public interface MeshIstioOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
    */
-  public static final class MeshIstio extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class MeshIstio extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.MeshIstio)
       MeshIstioOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use MeshIstio.newBuilder() to construct.
     private MeshIstio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private MeshIstio() {
       meshUid_ = "";
       serviceNamespace_ = "";
@@ -3250,39 +2996,34 @@ private MeshIstio() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new MeshIstio();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.MeshIstio.class,
-              com.google.monitoring.v3.Service.MeshIstio.Builder.class);
+              com.google.monitoring.v3.Service.MeshIstio.class, com.google.monitoring.v3.Service.MeshIstio.Builder.class);
     }
 
     public static final int MESH_UID_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object meshUid_ = "";
     /**
-     *
-     *
      * 
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; - * * @return The meshUid. */ @java.lang.Override @@ -3291,30 +3032,30 @@ public java.lang.String getMeshUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; } } /** - * - * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ @java.lang.Override - public com.google.protobuf.ByteString getMeshUidBytes() { + public com.google.protobuf.ByteString + getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); meshUid_ = b; return b; } else { @@ -3323,19 +3064,15 @@ public com.google.protobuf.ByteString getMeshUidBytes() { } public static final int SERVICE_NAMESPACE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceNamespace_ = ""; /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ @java.lang.Override @@ -3344,30 +3081,30 @@ public java.lang.String getServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; } } /** - * - * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -3376,19 +3113,15 @@ public com.google.protobuf.ByteString getServiceNamespaceBytes() { } public static final int SERVICE_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceName_ = ""; /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The serviceName. */ @java.lang.Override @@ -3397,30 +3130,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** - * - * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -3429,7 +3162,6 @@ public com.google.protobuf.ByteString getServiceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3441,7 +3173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meshUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, meshUid_); } @@ -3477,17 +3210,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.MeshIstio)) { return super.equals(obj); } - com.google.monitoring.v3.Service.MeshIstio other = - (com.google.monitoring.v3.Service.MeshIstio) obj; + com.google.monitoring.v3.Service.MeshIstio other = (com.google.monitoring.v3.Service.MeshIstio) obj; - if (!getMeshUid().equals(other.getMeshUid())) return false; - if (!getServiceNamespace().equals(other.getServiceNamespace())) return false; - if (!getServiceName().equals(other.getServiceName())) return false; + if (!getMeshUid() + .equals(other.getMeshUid())) return false; + if (!getServiceNamespace() + .equals(other.getServiceNamespace())) return false; + if (!getServiceName() + .equals(other.getServiceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3510,94 +3245,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.MeshIstio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3607,8 +3338,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
      * will have their services ingested as this type.
@@ -3616,33 +3345,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.MeshIstio)
         com.google.monitoring.v3.Service.MeshIstioOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.MeshIstio.class,
-                com.google.monitoring.v3.Service.MeshIstio.Builder.class);
+                com.google.monitoring.v3.Service.MeshIstio.class, com.google.monitoring.v3.Service.MeshIstio.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.MeshIstio.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3654,9 +3383,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
       }
 
       @java.lang.Override
@@ -3675,11 +3404,8 @@ public com.google.monitoring.v3.Service.MeshIstio build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.MeshIstio buildPartial() {
-        com.google.monitoring.v3.Service.MeshIstio result =
-            new com.google.monitoring.v3.Service.MeshIstio(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.Service.MeshIstio result = new com.google.monitoring.v3.Service.MeshIstio(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -3701,41 +3427,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.MeshIstio result) {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.MeshIstio) {
-          return mergeFrom((com.google.monitoring.v3.Service.MeshIstio) other);
+          return mergeFrom((com.google.monitoring.v3.Service.MeshIstio)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3785,31 +3508,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  meshUid_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 26:
-                {
-                  serviceNamespace_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  serviceName_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                meshUid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 26: {
+                serviceNamespace_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+              case 34: {
+                serviceName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3819,26 +3538,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object meshUid_ = "";
       /**
-       *
-       *
        * 
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; - * * @return The meshUid. */ public java.lang.String getMeshUid() { java.lang.Object ref = meshUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; @@ -3847,22 +3563,21 @@ public java.lang.String getMeshUid() { } } /** - * - * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ - public com.google.protobuf.ByteString getMeshUidBytes() { + public com.google.protobuf.ByteString + getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); meshUid_ = b; return b; } else { @@ -3870,37 +3585,30 @@ public com.google.protobuf.ByteString getMeshUidBytes() { } } /** - * - * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; - * * @param value The meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMeshUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } meshUid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; - * * @return This builder for chaining. */ public Builder clearMeshUid() { @@ -3910,22 +3618,18 @@ public Builder clearMeshUid() { return this; } /** - * - * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; - * * @param value The bytes for meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMeshUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); meshUid_ = value; bitField0_ |= 0x00000001; @@ -3935,21 +3639,19 @@ public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceNamespace_ = ""; /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return The serviceNamespace. */ public java.lang.String getServiceNamespace() { java.lang.Object ref = serviceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; @@ -3958,22 +3660,21 @@ public java.lang.String getServiceNamespace() { } } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return The bytes for serviceNamespace. */ - public com.google.protobuf.ByteString getServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -3981,37 +3682,30 @@ public com.google.protobuf.ByteString getServiceNamespaceBytes() { } } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @param value The serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNamespace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceNamespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @return This builder for chaining. */ public Builder clearServiceNamespace() { @@ -4021,22 +3715,18 @@ public Builder clearServiceNamespace() { return this; } /** - * - * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; - * * @param value The bytes for serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceNamespace_ = value; bitField0_ |= 0x00000002; @@ -4046,21 +3736,19 @@ public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceName_ = ""; /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -4069,22 +3757,21 @@ public java.lang.String getServiceName() { } } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -4092,37 +3779,30 @@ public com.google.protobuf.ByteString getServiceNameBytes() { } } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @return This builder for chaining. */ public Builder clearServiceName() { @@ -4132,29 +3812,24 @@ public Builder clearServiceName() { return this; } /** - * - * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; - * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4167,12 +3842,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.MeshIstio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.MeshIstio) private static final com.google.monitoring.v3.Service.MeshIstio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.MeshIstio(); } @@ -4181,28 +3856,27 @@ public static com.google.monitoring.v3.Service.MeshIstio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshIstio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshIstio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4217,16 +3891,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.MeshIstio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IstioCanonicalServiceOrBuilder - extends + public interface IstioCanonicalServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.IstioCanonicalService) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4234,13 +3906,10 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string mesh_uid = 1; - * * @return The meshUid. */ java.lang.String getMeshUid(); /** - * - * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4248,14 +3917,12 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ - com.google.protobuf.ByteString getMeshUidBytes(); + com.google.protobuf.ByteString + getMeshUidBytes(); /** - * - * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4264,13 +3931,10 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string canonical_service_namespace = 3; - * * @return The canonicalServiceNamespace. */ java.lang.String getCanonicalServiceNamespace(); /** - * - * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4279,14 +3943,12 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string canonical_service_namespace = 3; - * * @return The bytes for canonicalServiceNamespace. */ - com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes(); + com.google.protobuf.ByteString + getCanonicalServiceNamespaceBytes(); /** - * - * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4295,13 +3957,10 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string canonical_service = 4; - * * @return The canonicalService. */ java.lang.String getCanonicalService(); /** - * - * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4310,14 +3969,12 @@ public interface IstioCanonicalServiceOrBuilder
      * 
* * string canonical_service = 4; - * * @return The bytes for canonicalService. */ - com.google.protobuf.ByteString getCanonicalServiceBytes(); + com.google.protobuf.ByteString + getCanonicalServiceBytes(); } /** - * - * *
    * Canonical service scoped to an Istio mesh. Anthos clusters running ASM >=
    * 1.6.8 will have their services ingested as this type.
@@ -4325,16 +3982,15 @@ public interface IstioCanonicalServiceOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.Service.IstioCanonicalService}
    */
-  public static final class IstioCanonicalService extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class IstioCanonicalService extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.IstioCanonicalService)
       IstioCanonicalServiceOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use IstioCanonicalService.newBuilder() to construct.
     private IstioCanonicalService(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private IstioCanonicalService() {
       meshUid_ = "";
       canonicalServiceNamespace_ = "";
@@ -4343,32 +3999,28 @@ private IstioCanonicalService() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new IstioCanonicalService();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.IstioCanonicalService.class,
-              com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
+              com.google.monitoring.v3.Service.IstioCanonicalService.class, com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
     }
 
     public static final int MESH_UID_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object meshUid_ = "";
     /**
-     *
-     *
      * 
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4376,7 +4028,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string mesh_uid = 1; - * * @return The meshUid. */ @java.lang.Override @@ -4385,15 +4036,14 @@ public java.lang.String getMeshUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; } } /** - * - * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4401,15 +4051,16 @@ public java.lang.String getMeshUid() {
      * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ @java.lang.Override - public com.google.protobuf.ByteString getMeshUidBytes() { + public com.google.protobuf.ByteString + getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); meshUid_ = b; return b; } else { @@ -4418,12 +4069,9 @@ public com.google.protobuf.ByteString getMeshUidBytes() { } public static final int CANONICAL_SERVICE_NAMESPACE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object canonicalServiceNamespace_ = ""; /** - * - * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4432,7 +4080,6 @@ public com.google.protobuf.ByteString getMeshUidBytes() {
      * 
* * string canonical_service_namespace = 3; - * * @return The canonicalServiceNamespace. */ @java.lang.Override @@ -4441,15 +4088,14 @@ public java.lang.String getCanonicalServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalServiceNamespace_ = s; return s; } } /** - * - * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4458,15 +4104,16 @@ public java.lang.String getCanonicalServiceNamespace() {
      * 
* * string canonical_service_namespace = 3; - * * @return The bytes for canonicalServiceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getCanonicalServiceNamespaceBytes() { java.lang.Object ref = canonicalServiceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalServiceNamespace_ = b; return b; } else { @@ -4475,12 +4122,9 @@ public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { } public static final int CANONICAL_SERVICE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object canonicalService_ = ""; /** - * - * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4489,7 +4133,6 @@ public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() {
      * 
* * string canonical_service = 4; - * * @return The canonicalService. */ @java.lang.Override @@ -4498,15 +4141,14 @@ public java.lang.String getCanonicalService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalService_ = s; return s; } } /** - * - * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4515,15 +4157,16 @@ public java.lang.String getCanonicalService() {
      * 
* * string canonical_service = 4; - * * @return The bytes for canonicalService. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalServiceBytes() { + public com.google.protobuf.ByteString + getCanonicalServiceBytes() { java.lang.Object ref = canonicalService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalService_ = b; return b; } else { @@ -4532,7 +4175,6 @@ public com.google.protobuf.ByteString getCanonicalServiceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4544,7 +4186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meshUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, meshUid_); } @@ -4567,8 +4210,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, meshUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalServiceNamespace_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalServiceNamespace_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalServiceNamespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, canonicalService_); @@ -4581,18 +4223,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.IstioCanonicalService)) { return super.equals(obj); } - com.google.monitoring.v3.Service.IstioCanonicalService other = - (com.google.monitoring.v3.Service.IstioCanonicalService) obj; + com.google.monitoring.v3.Service.IstioCanonicalService other = (com.google.monitoring.v3.Service.IstioCanonicalService) obj; - if (!getMeshUid().equals(other.getMeshUid())) return false; - if (!getCanonicalServiceNamespace().equals(other.getCanonicalServiceNamespace())) - return false; - if (!getCanonicalService().equals(other.getCanonicalService())) return false; + if (!getMeshUid() + .equals(other.getMeshUid())) return false; + if (!getCanonicalServiceNamespace() + .equals(other.getCanonicalServiceNamespace())) return false; + if (!getCanonicalService() + .equals(other.getCanonicalService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4616,94 +4259,89 @@ public int hashCode() { } public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.Service.IstioCanonicalService prototype) { + public static Builder newBuilder(com.google.monitoring.v3.Service.IstioCanonicalService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4713,8 +4351,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Canonical service scoped to an Istio mesh. Anthos clusters running ASM >=
      * 1.6.8 will have their services ingested as this type.
@@ -4722,33 +4358,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.IstioCanonicalService}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.IstioCanonicalService)
         com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.IstioCanonicalService.class,
-                com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
+                com.google.monitoring.v3.Service.IstioCanonicalService.class, com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -4760,9 +4396,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
       }
 
       @java.lang.Override
@@ -4781,11 +4417,8 @@ public com.google.monitoring.v3.Service.IstioCanonicalService build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.IstioCanonicalService buildPartial() {
-        com.google.monitoring.v3.Service.IstioCanonicalService result =
-            new com.google.monitoring.v3.Service.IstioCanonicalService(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.Service.IstioCanonicalService result = new com.google.monitoring.v3.Service.IstioCanonicalService(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -4807,41 +4440,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.IstioCanonicalServic
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.IstioCanonicalService) {
-          return mergeFrom((com.google.monitoring.v3.Service.IstioCanonicalService) other);
+          return mergeFrom((com.google.monitoring.v3.Service.IstioCanonicalService)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -4849,8 +4479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.Service.IstioCanonicalService other) {
-        if (other == com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) return this;
         if (!other.getMeshUid().isEmpty()) {
           meshUid_ = other.meshUid_;
           bitField0_ |= 0x00000001;
@@ -4892,31 +4521,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  meshUid_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 26:
-                {
-                  canonicalServiceNamespace_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  canonicalService_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                meshUid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 26: {
+                canonicalServiceNamespace_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+              case 34: {
+                canonicalService_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4926,13 +4551,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object meshUid_ = "";
       /**
-       *
-       *
        * 
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4940,13 +4562,13 @@ public Builder mergeFrom(
        * 
* * string mesh_uid = 1; - * * @return The meshUid. */ public java.lang.String getMeshUid() { java.lang.Object ref = meshUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; @@ -4955,8 +4577,6 @@ public java.lang.String getMeshUid() { } } /** - * - * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4964,14 +4584,15 @@ public java.lang.String getMeshUid() {
        * 
* * string mesh_uid = 1; - * * @return The bytes for meshUid. */ - public com.google.protobuf.ByteString getMeshUidBytes() { + public com.google.protobuf.ByteString + getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); meshUid_ = b; return b; } else { @@ -4979,8 +4600,6 @@ public com.google.protobuf.ByteString getMeshUidBytes() { } } /** - * - * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4988,22 +4607,18 @@ public com.google.protobuf.ByteString getMeshUidBytes() {
        * 
* * string mesh_uid = 1; - * * @param value The meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMeshUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } meshUid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -5011,7 +4626,6 @@ public Builder setMeshUid(java.lang.String value) {
        * 
* * string mesh_uid = 1; - * * @return This builder for chaining. */ public Builder clearMeshUid() { @@ -5021,8 +4635,6 @@ public Builder clearMeshUid() { return this; } /** - * - * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -5030,14 +4642,12 @@ public Builder clearMeshUid() {
        * 
* * string mesh_uid = 1; - * * @param value The bytes for meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMeshUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); meshUid_ = value; bitField0_ |= 0x00000001; @@ -5047,8 +4657,6 @@ public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object canonicalServiceNamespace_ = ""; /** - * - * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -5057,13 +4665,13 @@ public Builder setMeshUidBytes(com.google.protobuf.ByteString value) {
        * 
* * string canonical_service_namespace = 3; - * * @return The canonicalServiceNamespace. */ public java.lang.String getCanonicalServiceNamespace() { java.lang.Object ref = canonicalServiceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalServiceNamespace_ = s; return s; @@ -5072,8 +4680,6 @@ public java.lang.String getCanonicalServiceNamespace() { } } /** - * - * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -5082,14 +4688,15 @@ public java.lang.String getCanonicalServiceNamespace() {
        * 
* * string canonical_service_namespace = 3; - * * @return The bytes for canonicalServiceNamespace. */ - public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { + public com.google.protobuf.ByteString + getCanonicalServiceNamespaceBytes() { java.lang.Object ref = canonicalServiceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalServiceNamespace_ = b; return b; } else { @@ -5097,8 +4704,6 @@ public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { } } /** - * - * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -5107,22 +4712,18 @@ public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() {
        * 
* * string canonical_service_namespace = 3; - * * @param value The canonicalServiceNamespace to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCanonicalServiceNamespace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } canonicalServiceNamespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -5131,7 +4732,6 @@ public Builder setCanonicalServiceNamespace(java.lang.String value) {
        * 
* * string canonical_service_namespace = 3; - * * @return This builder for chaining. */ public Builder clearCanonicalServiceNamespace() { @@ -5141,8 +4741,6 @@ public Builder clearCanonicalServiceNamespace() { return this; } /** - * - * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -5151,14 +4749,12 @@ public Builder clearCanonicalServiceNamespace() {
        * 
* * string canonical_service_namespace = 3; - * * @param value The bytes for canonicalServiceNamespace to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCanonicalServiceNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); canonicalServiceNamespace_ = value; bitField0_ |= 0x00000002; @@ -5168,8 +4764,6 @@ public Builder setCanonicalServiceNamespaceBytes(com.google.protobuf.ByteString private java.lang.Object canonicalService_ = ""; /** - * - * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -5178,13 +4772,13 @@ public Builder setCanonicalServiceNamespaceBytes(com.google.protobuf.ByteString
        * 
* * string canonical_service = 4; - * * @return The canonicalService. */ public java.lang.String getCanonicalService() { java.lang.Object ref = canonicalService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalService_ = s; return s; @@ -5193,8 +4787,6 @@ public java.lang.String getCanonicalService() { } } /** - * - * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -5203,14 +4795,15 @@ public java.lang.String getCanonicalService() {
        * 
* * string canonical_service = 4; - * * @return The bytes for canonicalService. */ - public com.google.protobuf.ByteString getCanonicalServiceBytes() { + public com.google.protobuf.ByteString + getCanonicalServiceBytes() { java.lang.Object ref = canonicalService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalService_ = b; return b; } else { @@ -5218,8 +4811,6 @@ public com.google.protobuf.ByteString getCanonicalServiceBytes() { } } /** - * - * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -5228,22 +4819,18 @@ public com.google.protobuf.ByteString getCanonicalServiceBytes() {
        * 
* * string canonical_service = 4; - * * @param value The canonicalService to set. - * @return This builder for chaining. - */ - public Builder setCanonicalService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + * @return This builder for chaining. + */ + public Builder setCanonicalService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } canonicalService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -5252,7 +4839,6 @@ public Builder setCanonicalService(java.lang.String value) {
        * 
* * string canonical_service = 4; - * * @return This builder for chaining. */ public Builder clearCanonicalService() { @@ -5262,8 +4848,6 @@ public Builder clearCanonicalService() { return this; } /** - * - * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -5272,21 +4856,18 @@ public Builder clearCanonicalService() {
        * 
* * string canonical_service = 4; - * * @param value The bytes for canonicalService to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCanonicalServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); canonicalService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5299,12 +4880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.IstioCanonicalService) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.IstioCanonicalService) private static final com.google.monitoring.v3.Service.IstioCanonicalService DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.IstioCanonicalService(); } @@ -5313,28 +4894,27 @@ public static com.google.monitoring.v3.Service.IstioCanonicalService getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IstioCanonicalService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IstioCanonicalService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5349,98 +4929,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.IstioCanonicalService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TelemetryOrBuilder - extends + public interface TelemetryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.Telemetry) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); } /** - * - * *
    * Configuration for how to query telemetry on a Service.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.Telemetry} */ - public static final class Telemetry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Telemetry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Telemetry) TelemetryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Telemetry.newBuilder() to construct. private Telemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Telemetry() { resourceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Telemetry(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.Telemetry.class, - com.google.monitoring.v3.Service.Telemetry.Builder.class); + com.google.monitoring.v3.Service.Telemetry.class, com.google.monitoring.v3.Service.Telemetry.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** - * - * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; - * * @return The resourceName. */ @java.lang.Override @@ -5449,30 +5016,30 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -5481,7 +5048,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5493,7 +5059,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } @@ -5517,15 +5084,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.Telemetry)) { return super.equals(obj); } - com.google.monitoring.v3.Service.Telemetry other = - (com.google.monitoring.v3.Service.Telemetry) obj; + com.google.monitoring.v3.Service.Telemetry other = (com.google.monitoring.v3.Service.Telemetry) obj; - if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5544,94 +5111,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.Telemetry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.Telemetry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5641,41 +5204,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.Telemetry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.Telemetry) com.google.monitoring.v3.Service.TelemetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.Telemetry.class, - com.google.monitoring.v3.Service.Telemetry.Builder.class); + com.google.monitoring.v3.Service.Telemetry.class, com.google.monitoring.v3.Service.Telemetry.Builder.class); } // Construct using com.google.monitoring.v3.Service.Telemetry.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5685,9 +5246,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override @@ -5706,11 +5267,8 @@ public com.google.monitoring.v3.Service.Telemetry build() { @java.lang.Override public com.google.monitoring.v3.Service.Telemetry buildPartial() { - com.google.monitoring.v3.Service.Telemetry result = - new com.google.monitoring.v3.Service.Telemetry(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.Service.Telemetry result = new com.google.monitoring.v3.Service.Telemetry(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -5726,41 +5284,38 @@ private void buildPartial0(com.google.monitoring.v3.Service.Telemetry result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.Telemetry) { - return mergeFrom((com.google.monitoring.v3.Service.Telemetry) other); + return mergeFrom((com.google.monitoring.v3.Service.Telemetry)other); } else { super.mergeFrom(other); return this; @@ -5800,19 +5355,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5822,26 +5375,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object resourceName_ = ""; /** - * - * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -5850,22 +5400,21 @@ public java.lang.String getResourceName() { } } /** - * - * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -5873,37 +5422,30 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; - * * @return This builder for chaining. */ public Builder clearResourceName() { @@ -5913,29 +5455,24 @@ public Builder clearResourceName() { return this; } /** - * - * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5948,12 +5485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.Telemetry) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Telemetry) private static final com.google.monitoring.v3.Service.Telemetry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.Telemetry(); } @@ -5962,28 +5499,27 @@ public static com.google.monitoring.v3.Service.Telemetry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Telemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Telemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5998,16 +5534,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.Telemetry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int identifierCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object identifier_; - public enum IdentifierCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CUSTOM(6), APP_ENGINE(7), @@ -6017,7 +5551,6 @@ public enum IdentifierCase ISTIO_CANONICAL_SERVICE(11), IDENTIFIER_NOT_SET(0); private final int value; - private IdentifierCase(int value) { this.value = value; } @@ -6033,41 +5566,31 @@ public static IdentifierCase valueOf(int value) { public static IdentifierCase forNumber(int value) { switch (value) { - case 6: - return CUSTOM; - case 7: - return APP_ENGINE; - case 8: - return CLOUD_ENDPOINTS; - case 9: - return CLUSTER_ISTIO; - case 10: - return MESH_ISTIO; - case 11: - return ISTIO_CANONICAL_SERVICE; - case 0: - return IDENTIFIER_NOT_SET; - default: - return null; + case 6: return CUSTOM; + case 7: return APP_ENGINE; + case 8: return CLOUD_ENDPOINTS; + case 9: return CLUSTER_ISTIO; + case 10: return MESH_ISTIO; + case 11: return ISTIO_CANONICAL_SERVICE; + case 0: return IDENTIFIER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public IdentifierCase getIdentifierCase() { - return IdentifierCase.forNumber(identifierCase_); + public IdentifierCase + getIdentifierCase() { + return IdentifierCase.forNumber( + identifierCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Resource name for this Service. The format is:
    *
@@ -6075,7 +5598,6 @@ public IdentifierCase getIdentifierCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -6084,15 +5606,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Resource name for this Service. The format is:
    *
@@ -6100,15 +5621,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6117,18 +5639,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -6137,29 +5655,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -6169,14 +5687,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CUSTOM_FIELD_NUMBER = 6; /** - * - * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return Whether the custom field is set. */ @java.lang.Override @@ -6184,26 +5699,21 @@ public boolean hasCustom() { return identifierCase_ == 6; } /** - * - * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return The custom. */ @java.lang.Override public com.google.monitoring.v3.Service.Custom getCustom() { if (identifierCase_ == 6) { - return (com.google.monitoring.v3.Service.Custom) identifier_; + return (com.google.monitoring.v3.Service.Custom) identifier_; } return com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } /** - * - * *
    * Custom service type.
    * 
@@ -6213,21 +5723,18 @@ public com.google.monitoring.v3.Service.Custom getCustom() { @java.lang.Override public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { if (identifierCase_ == 6) { - return (com.google.monitoring.v3.Service.Custom) identifier_; + return (com.google.monitoring.v3.Service.Custom) identifier_; } return com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } public static final int APP_ENGINE_FIELD_NUMBER = 7; /** - * - * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return Whether the appEngine field is set. */ @java.lang.Override @@ -6235,26 +5742,21 @@ public boolean hasAppEngine() { return identifierCase_ == 7; } /** - * - * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return The appEngine. */ @java.lang.Override public com.google.monitoring.v3.Service.AppEngine getAppEngine() { if (identifierCase_ == 7) { - return (com.google.monitoring.v3.Service.AppEngine) identifier_; + return (com.google.monitoring.v3.Service.AppEngine) identifier_; } return com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } /** - * - * *
    * Type used for App Engine services.
    * 
@@ -6264,21 +5766,18 @@ public com.google.monitoring.v3.Service.AppEngine getAppEngine() { @java.lang.Override public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder() { if (identifierCase_ == 7) { - return (com.google.monitoring.v3.Service.AppEngine) identifier_; + return (com.google.monitoring.v3.Service.AppEngine) identifier_; } return com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } public static final int CLOUD_ENDPOINTS_FIELD_NUMBER = 8; /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return Whether the cloudEndpoints field is set. */ @java.lang.Override @@ -6286,26 +5785,21 @@ public boolean hasCloudEndpoints() { return identifierCase_ == 8; } /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return The cloudEndpoints. */ @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { if (identifierCase_ == 8) { - return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; + return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; } return com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
@@ -6315,21 +5809,18 @@ public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder() { if (identifierCase_ == 8) { - return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; + return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; } return com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } public static final int CLUSTER_ISTIO_FIELD_NUMBER = 9; /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return Whether the clusterIstio field is set. */ @java.lang.Override @@ -6337,26 +5828,21 @@ public boolean hasClusterIstio() { return identifierCase_ == 9; } /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return The clusterIstio. */ @java.lang.Override public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { if (identifierCase_ == 9) { - return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; + return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; } return com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
@@ -6366,21 +5852,18 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { @java.lang.Override public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder() { if (identifierCase_ == 9) { - return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; + return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; } return com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } public static final int MESH_ISTIO_FIELD_NUMBER = 10; /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return Whether the meshIstio field is set. */ @java.lang.Override @@ -6388,26 +5871,21 @@ public boolean hasMeshIstio() { return identifierCase_ == 10; } /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return The meshIstio. */ @java.lang.Override public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { if (identifierCase_ == 10) { - return (com.google.monitoring.v3.Service.MeshIstio) identifier_; + return (com.google.monitoring.v3.Service.MeshIstio) identifier_; } return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
@@ -6417,15 +5895,13 @@ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { @java.lang.Override public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder() { if (identifierCase_ == 10) { - return (com.google.monitoring.v3.Service.MeshIstio) identifier_; + return (com.google.monitoring.v3.Service.MeshIstio) identifier_; } return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } public static final int ISTIO_CANONICAL_SERVICE_FIELD_NUMBER = 11; /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -6433,7 +5909,6 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * * @return Whether the istioCanonicalService field is set. */ @java.lang.Override @@ -6441,8 +5916,6 @@ public boolean hasIstioCanonicalService() { return identifierCase_ == 11; } /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -6450,19 +5923,16 @@ public boolean hasIstioCanonicalService() {
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * * @return The istioCanonicalService. */ @java.lang.Override public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalService() { if (identifierCase_ == 11) { - return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_; + return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_; } return com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance(); } /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -6472,10 +5942,9 @@ public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalS
    * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder
-      getIstioCanonicalServiceOrBuilder() {
+  public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder() {
     if (identifierCase_ == 11) {
-      return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_;
+       return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_;
     }
     return com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance();
   }
@@ -6483,14 +5952,11 @@ public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalS
   public static final int TELEMETRY_FIELD_NUMBER = 13;
   private com.google.monitoring.v3.Service.Telemetry telemetry_;
   /**
-   *
-   *
    * 
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return Whether the telemetry field is set. */ @java.lang.Override @@ -6498,25 +5964,18 @@ public boolean hasTelemetry() { return telemetry_ != null; } /** - * - * *
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return The telemetry. */ @java.lang.Override public com.google.monitoring.v3.Service.Telemetry getTelemetry() { - return telemetry_ == null - ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() - : telemetry_; + return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; } /** - * - * *
    * Configuration for how to query telemetry on a Service.
    * 
@@ -6525,40 +5984,36 @@ public com.google.monitoring.v3.Service.Telemetry getTelemetry() { */ @java.lang.Override public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder() { - return telemetry_ == null - ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() - : telemetry_; + return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; } public static final int USER_LABELS_FIELD_NUMBER = 14; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6571,21 +6026,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6602,8 +6056,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6616,19 +6068,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6641,11 +6091,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -6653,7 +6103,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -6665,7 +6114,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -6693,8 +6143,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (telemetry_ != null) {
       output.writeMessage(13, getTelemetry());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 14);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        14);
     getUnknownFields().writeTo(output);
   }
 
@@ -6711,47 +6165,42 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (identifierCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.monitoring.v3.Service.Custom) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.monitoring.v3.Service.Custom) identifier_);
     }
     if (identifierCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.monitoring.v3.Service.AppEngine) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.monitoring.v3.Service.AppEngine) identifier_);
     }
     if (identifierCase_ == 8) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, (com.google.monitoring.v3.Service.CloudEndpoints) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, (com.google.monitoring.v3.Service.CloudEndpoints) identifier_);
     }
     if (identifierCase_ == 9) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
     }
     if (identifierCase_ == 10) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
     }
     if (identifierCase_ == 11) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              11, (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_);
     }
     if (telemetry_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTelemetry());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, userLabels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getTelemetry());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(14, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -6761,39 +6210,49 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.Service)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.Service other = (com.google.monitoring.v3.Service) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasTelemetry() != other.hasTelemetry()) return false;
     if (hasTelemetry()) {
-      if (!getTelemetry().equals(other.getTelemetry())) return false;
+      if (!getTelemetry()
+          .equals(other.getTelemetry())) return false;
     }
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getIdentifierCase().equals(other.getIdentifierCase())) return false;
     switch (identifierCase_) {
       case 6:
-        if (!getCustom().equals(other.getCustom())) return false;
+        if (!getCustom()
+            .equals(other.getCustom())) return false;
         break;
       case 7:
-        if (!getAppEngine().equals(other.getAppEngine())) return false;
+        if (!getAppEngine()
+            .equals(other.getAppEngine())) return false;
         break;
       case 8:
-        if (!getCloudEndpoints().equals(other.getCloudEndpoints())) return false;
+        if (!getCloudEndpoints()
+            .equals(other.getCloudEndpoints())) return false;
         break;
       case 9:
-        if (!getClusterIstio().equals(other.getClusterIstio())) return false;
+        if (!getClusterIstio()
+            .equals(other.getClusterIstio())) return false;
         break;
       case 10:
-        if (!getMeshIstio().equals(other.getMeshIstio())) return false;
+        if (!getMeshIstio()
+            .equals(other.getMeshIstio())) return false;
         break;
       case 11:
-        if (!getIstioCanonicalService().equals(other.getIstioCanonicalService())) return false;
+        if (!getIstioCanonicalService()
+            .equals(other.getIstioCanonicalService())) return false;
         break;
       case 0:
       default:
@@ -6854,103 +6313,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.Service parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.Service parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.Service parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.monitoring.v3.Service parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.Service parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.Service parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.Service parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.Service prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A `Service` is a discrete, autonomous, and network-accessible unit, designed
    * to solve an individual concern
@@ -6961,52 +6416,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.Service}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service)
       com.google.monitoring.v3.ServiceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 14:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 14:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.class,
-              com.google.monitoring.v3.Service.Builder.class);
+              com.google.monitoring.v3.Service.class, com.google.monitoring.v3.Service.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Service.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7043,9 +6501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_Service_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
     }
 
     @java.lang.Override
@@ -7065,9 +6523,7 @@ public com.google.monitoring.v3.Service build() {
     @java.lang.Override
     public com.google.monitoring.v3.Service buildPartial() {
       com.google.monitoring.v3.Service result = new com.google.monitoring.v3.Service(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -7082,7 +6538,9 @@ private void buildPartial0(com.google.monitoring.v3.Service result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.telemetry_ = telemetryBuilder_ == null ? telemetry_ : telemetryBuilder_.build();
+        result.telemetry_ = telemetryBuilder_ == null
+            ? telemetry_
+            : telemetryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.userLabels_ = internalGetUserLabels();
@@ -7093,22 +6551,28 @@ private void buildPartial0(com.google.monitoring.v3.Service result) {
     private void buildPartialOneofs(com.google.monitoring.v3.Service result) {
       result.identifierCase_ = identifierCase_;
       result.identifier_ = this.identifier_;
-      if (identifierCase_ == 6 && customBuilder_ != null) {
+      if (identifierCase_ == 6 &&
+          customBuilder_ != null) {
         result.identifier_ = customBuilder_.build();
       }
-      if (identifierCase_ == 7 && appEngineBuilder_ != null) {
+      if (identifierCase_ == 7 &&
+          appEngineBuilder_ != null) {
         result.identifier_ = appEngineBuilder_.build();
       }
-      if (identifierCase_ == 8 && cloudEndpointsBuilder_ != null) {
+      if (identifierCase_ == 8 &&
+          cloudEndpointsBuilder_ != null) {
         result.identifier_ = cloudEndpointsBuilder_.build();
       }
-      if (identifierCase_ == 9 && clusterIstioBuilder_ != null) {
+      if (identifierCase_ == 9 &&
+          clusterIstioBuilder_ != null) {
         result.identifier_ = clusterIstioBuilder_.build();
       }
-      if (identifierCase_ == 10 && meshIstioBuilder_ != null) {
+      if (identifierCase_ == 10 &&
+          meshIstioBuilder_ != null) {
         result.identifier_ = meshIstioBuilder_.build();
       }
-      if (identifierCase_ == 11 && istioCanonicalServiceBuilder_ != null) {
+      if (identifierCase_ == 11 &&
+          istioCanonicalServiceBuilder_ != null) {
         result.identifier_ = istioCanonicalServiceBuilder_.build();
       }
     }
@@ -7117,39 +6581,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.Service result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Service) {
-        return mergeFrom((com.google.monitoring.v3.Service) other);
+        return mergeFrom((com.google.monitoring.v3.Service)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7171,43 +6634,37 @@ public Builder mergeFrom(com.google.monitoring.v3.Service other) {
       if (other.hasTelemetry()) {
         mergeTelemetry(other.getTelemetry());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000200;
       switch (other.getIdentifierCase()) {
-        case CUSTOM:
-          {
-            mergeCustom(other.getCustom());
-            break;
-          }
-        case APP_ENGINE:
-          {
-            mergeAppEngine(other.getAppEngine());
-            break;
-          }
-        case CLOUD_ENDPOINTS:
-          {
-            mergeCloudEndpoints(other.getCloudEndpoints());
-            break;
-          }
-        case CLUSTER_ISTIO:
-          {
-            mergeClusterIstio(other.getClusterIstio());
-            break;
-          }
-        case MESH_ISTIO:
-          {
-            mergeMeshIstio(other.getMeshIstio());
-            break;
-          }
-        case ISTIO_CANONICAL_SERVICE:
-          {
-            mergeIstioCanonicalService(other.getIstioCanonicalService());
-            break;
-          }
-        case IDENTIFIER_NOT_SET:
-          {
-            break;
-          }
+        case CUSTOM: {
+          mergeCustom(other.getCustom());
+          break;
+        }
+        case APP_ENGINE: {
+          mergeAppEngine(other.getAppEngine());
+          break;
+        }
+        case CLOUD_ENDPOINTS: {
+          mergeCloudEndpoints(other.getCloudEndpoints());
+          break;
+        }
+        case CLUSTER_ISTIO: {
+          mergeClusterIstio(other.getClusterIstio());
+          break;
+        }
+        case MESH_ISTIO: {
+          mergeMeshIstio(other.getMeshIstio());
+          break;
+        }
+        case ISTIO_CANONICAL_SERVICE: {
+          mergeIstioCanonicalService(other.getIstioCanonicalService());
+          break;
+        }
+        case IDENTIFIER_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -7235,80 +6692,80 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 50:
-              {
-                input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 6;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getAppEngineFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 7;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getCloudEndpointsFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 8;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getClusterIstioFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 9;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getMeshIstioFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 10;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(
-                    getIstioCanonicalServiceFieldBuilder().getBuilder(), extensionRegistry);
-                identifierCase_ = 11;
-                break;
-              } // case 90
-            case 106:
-              {
-                input.readMessage(getTelemetryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 114
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 50: {
+              input.readMessage(
+                  getCustomFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 6;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getAppEngineFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 7;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getCloudEndpointsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 8;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getClusterIstioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 9;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getMeshIstioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 10;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getIstioCanonicalServiceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              identifierCase_ = 11;
+              break;
+            } // case 90
+            case 106: {
+              input.readMessage(
+                  getTelemetryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 106
+            case 114: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 114
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7318,12 +6775,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int identifierCase_ = 0;
     private java.lang.Object identifier_;
-
-    public IdentifierCase getIdentifierCase() {
-      return IdentifierCase.forNumber(identifierCase_);
+    public IdentifierCase
+        getIdentifierCase() {
+      return IdentifierCase.forNumber(
+          identifierCase_);
     }
 
     public Builder clearIdentifier() {
@@ -7337,8 +6794,6 @@ public Builder clearIdentifier() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Resource name for this Service. The format is:
      *
@@ -7346,13 +6801,13 @@ public Builder clearIdentifier() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7361,8 +6816,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for this Service. The format is:
      *
@@ -7370,14 +6823,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7385,8 +6839,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for this Service. The format is:
      *
@@ -7394,22 +6846,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Resource name for this Service. The format is:
      *
@@ -7417,7 +6865,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -7427,8 +6874,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Resource name for this Service. The format is:
      *
@@ -7436,14 +6881,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -7453,20 +6896,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -7475,21 +6916,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -7497,35 +6937,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -7535,21 +6968,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -7558,19 +6987,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, - com.google.monitoring.v3.Service.Custom.Builder, - com.google.monitoring.v3.Service.CustomOrBuilder> - customBuilder_; + com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder> customBuilder_; /** - * - * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return Whether the custom field is set. */ @java.lang.Override @@ -7578,14 +7001,11 @@ public boolean hasCustom() { return identifierCase_ == 6; } /** - * - * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return The custom. */ @java.lang.Override @@ -7603,8 +7023,6 @@ public com.google.monitoring.v3.Service.Custom getCustom() { } } /** - * - * *
      * Custom service type.
      * 
@@ -7625,15 +7043,14 @@ public Builder setCustom(com.google.monitoring.v3.Service.Custom value) { return this; } /** - * - * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; */ - public Builder setCustom(com.google.monitoring.v3.Service.Custom.Builder builderForValue) { + public Builder setCustom( + com.google.monitoring.v3.Service.Custom.Builder builderForValue) { if (customBuilder_ == null) { identifier_ = builderForValue.build(); onChanged(); @@ -7644,8 +7061,6 @@ public Builder setCustom(com.google.monitoring.v3.Service.Custom.Builder builder return this; } /** - * - * *
      * Custom service type.
      * 
@@ -7654,13 +7069,10 @@ public Builder setCustom(com.google.monitoring.v3.Service.Custom.Builder builder */ public Builder mergeCustom(com.google.monitoring.v3.Service.Custom value) { if (customBuilder_ == null) { - if (identifierCase_ == 6 - && identifier_ != com.google.monitoring.v3.Service.Custom.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.Custom.newBuilder( - (com.google.monitoring.v3.Service.Custom) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 6 && + identifier_ != com.google.monitoring.v3.Service.Custom.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.Custom.newBuilder((com.google.monitoring.v3.Service.Custom) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -7676,8 +7088,6 @@ public Builder mergeCustom(com.google.monitoring.v3.Service.Custom value) { return this; } /** - * - * *
      * Custom service type.
      * 
@@ -7701,8 +7111,6 @@ public Builder clearCustom() { return this; } /** - * - * *
      * Custom service type.
      * 
@@ -7713,8 +7121,6 @@ public com.google.monitoring.v3.Service.Custom.Builder getCustomBuilder() { return getCustomFieldBuilder().getBuilder(); } /** - * - * *
      * Custom service type.
      * 
@@ -7733,8 +7139,6 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { } } /** - * - * *
      * Custom service type.
      * 
@@ -7742,19 +7146,14 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { * .google.monitoring.v3.Service.Custom custom = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, - com.google.monitoring.v3.Service.Custom.Builder, - com.google.monitoring.v3.Service.CustomOrBuilder> + com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder> getCustomFieldBuilder() { if (customBuilder_ == null) { if (!(identifierCase_ == 6)) { identifier_ = com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } - customBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, - com.google.monitoring.v3.Service.Custom.Builder, - com.google.monitoring.v3.Service.CustomOrBuilder>( + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder>( (com.google.monitoring.v3.Service.Custom) identifier_, getParentForChildren(), isClean()); @@ -7766,19 +7165,13 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, - com.google.monitoring.v3.Service.AppEngine.Builder, - com.google.monitoring.v3.Service.AppEngineOrBuilder> - appEngineBuilder_; + com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder> appEngineBuilder_; /** - * - * *
      * Type used for App Engine services.
      * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return Whether the appEngine field is set. */ @java.lang.Override @@ -7786,14 +7179,11 @@ public boolean hasAppEngine() { return identifierCase_ == 7; } /** - * - * *
      * Type used for App Engine services.
      * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return The appEngine. */ @java.lang.Override @@ -7811,8 +7201,6 @@ public com.google.monitoring.v3.Service.AppEngine getAppEngine() { } } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7833,8 +7221,6 @@ public Builder setAppEngine(com.google.monitoring.v3.Service.AppEngine value) { return this; } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7853,8 +7239,6 @@ public Builder setAppEngine( return this; } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7863,13 +7247,10 @@ public Builder setAppEngine( */ public Builder mergeAppEngine(com.google.monitoring.v3.Service.AppEngine value) { if (appEngineBuilder_ == null) { - if (identifierCase_ == 7 - && identifier_ != com.google.monitoring.v3.Service.AppEngine.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.AppEngine.newBuilder( - (com.google.monitoring.v3.Service.AppEngine) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 7 && + identifier_ != com.google.monitoring.v3.Service.AppEngine.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.AppEngine.newBuilder((com.google.monitoring.v3.Service.AppEngine) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -7885,8 +7266,6 @@ public Builder mergeAppEngine(com.google.monitoring.v3.Service.AppEngine value) return this; } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7910,8 +7289,6 @@ public Builder clearAppEngine() { return this; } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7922,8 +7299,6 @@ public com.google.monitoring.v3.Service.AppEngine.Builder getAppEngineBuilder() return getAppEngineFieldBuilder().getBuilder(); } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7942,8 +7317,6 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder } } /** - * - * *
      * Type used for App Engine services.
      * 
@@ -7951,19 +7324,14 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder * .google.monitoring.v3.Service.AppEngine app_engine = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, - com.google.monitoring.v3.Service.AppEngine.Builder, - com.google.monitoring.v3.Service.AppEngineOrBuilder> + com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder> getAppEngineFieldBuilder() { if (appEngineBuilder_ == null) { if (!(identifierCase_ == 7)) { identifier_ = com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } - appEngineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, - com.google.monitoring.v3.Service.AppEngine.Builder, - com.google.monitoring.v3.Service.AppEngineOrBuilder>( + appEngineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder>( (com.google.monitoring.v3.Service.AppEngine) identifier_, getParentForChildren(), isClean()); @@ -7975,19 +7343,13 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, - com.google.monitoring.v3.Service.CloudEndpoints.Builder, - com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> - cloudEndpointsBuilder_; + com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> cloudEndpointsBuilder_; /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return Whether the cloudEndpoints field is set. */ @java.lang.Override @@ -7995,14 +7357,11 @@ public boolean hasCloudEndpoints() { return identifierCase_ == 8; } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return The cloudEndpoints. */ @java.lang.Override @@ -8020,8 +7379,6 @@ public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { } } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8042,8 +7399,6 @@ public Builder setCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoints return this; } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8062,8 +7417,6 @@ public Builder setCloudEndpoints( return this; } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8072,14 +7425,10 @@ public Builder setCloudEndpoints( */ public Builder mergeCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoints value) { if (cloudEndpointsBuilder_ == null) { - if (identifierCase_ == 8 - && identifier_ - != com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.CloudEndpoints.newBuilder( - (com.google.monitoring.v3.Service.CloudEndpoints) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 8 && + identifier_ != com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.CloudEndpoints.newBuilder((com.google.monitoring.v3.Service.CloudEndpoints) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -8095,8 +7444,6 @@ public Builder mergeCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoin return this; } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8120,8 +7467,6 @@ public Builder clearCloudEndpoints() { return this; } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8132,8 +7477,6 @@ public com.google.monitoring.v3.Service.CloudEndpoints.Builder getCloudEndpoints return getCloudEndpointsFieldBuilder().getBuilder(); } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8152,8 +7495,6 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint } } /** - * - * *
      * Type used for Cloud Endpoints services.
      * 
@@ -8161,19 +7502,14 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, - com.google.monitoring.v3.Service.CloudEndpoints.Builder, - com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> + com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> getCloudEndpointsFieldBuilder() { if (cloudEndpointsBuilder_ == null) { if (!(identifierCase_ == 8)) { identifier_ = com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } - cloudEndpointsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, - com.google.monitoring.v3.Service.CloudEndpoints.Builder, - com.google.monitoring.v3.Service.CloudEndpointsOrBuilder>( + cloudEndpointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder>( (com.google.monitoring.v3.Service.CloudEndpoints) identifier_, getParentForChildren(), isClean()); @@ -8185,19 +7521,13 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, - com.google.monitoring.v3.Service.ClusterIstio.Builder, - com.google.monitoring.v3.Service.ClusterIstioOrBuilder> - clusterIstioBuilder_; + com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder> clusterIstioBuilder_; /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return Whether the clusterIstio field is set. */ @java.lang.Override @@ -8205,14 +7535,11 @@ public boolean hasClusterIstio() { return identifierCase_ == 9; } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return The clusterIstio. */ @java.lang.Override @@ -8230,8 +7557,6 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { } } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8252,8 +7577,6 @@ public Builder setClusterIstio(com.google.monitoring.v3.Service.ClusterIstio val return this; } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8272,8 +7595,6 @@ public Builder setClusterIstio( return this; } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8282,13 +7603,10 @@ public Builder setClusterIstio( */ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio value) { if (clusterIstioBuilder_ == null) { - if (identifierCase_ == 9 - && identifier_ != com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.ClusterIstio.newBuilder( - (com.google.monitoring.v3.Service.ClusterIstio) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 9 && + identifier_ != com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.ClusterIstio.newBuilder((com.google.monitoring.v3.Service.ClusterIstio) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -8304,8 +7622,6 @@ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio v return this; } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8329,8 +7645,6 @@ public Builder clearClusterIstio() { return this; } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8341,8 +7655,6 @@ public com.google.monitoring.v3.Service.ClusterIstio.Builder getClusterIstioBuil return getClusterIstioFieldBuilder().getBuilder(); } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8361,8 +7673,6 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB } } /** - * - * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -8370,19 +7680,14 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, - com.google.monitoring.v3.Service.ClusterIstio.Builder, - com.google.monitoring.v3.Service.ClusterIstioOrBuilder> + com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder> getClusterIstioFieldBuilder() { if (clusterIstioBuilder_ == null) { if (!(identifierCase_ == 9)) { identifier_ = com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } - clusterIstioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, - com.google.monitoring.v3.Service.ClusterIstio.Builder, - com.google.monitoring.v3.Service.ClusterIstioOrBuilder>( + clusterIstioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder>( (com.google.monitoring.v3.Service.ClusterIstio) identifier_, getParentForChildren(), isClean()); @@ -8394,19 +7699,13 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, - com.google.monitoring.v3.Service.MeshIstio.Builder, - com.google.monitoring.v3.Service.MeshIstioOrBuilder> - meshIstioBuilder_; + com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder> meshIstioBuilder_; /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return Whether the meshIstio field is set. */ @java.lang.Override @@ -8414,14 +7713,11 @@ public boolean hasMeshIstio() { return identifierCase_ == 10; } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return The meshIstio. */ @java.lang.Override @@ -8439,8 +7735,6 @@ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { } } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8461,8 +7755,6 @@ public Builder setMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) { return this; } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8481,8 +7773,6 @@ public Builder setMeshIstio( return this; } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8491,13 +7781,10 @@ public Builder setMeshIstio( */ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) { if (meshIstioBuilder_ == null) { - if (identifierCase_ == 10 - && identifier_ != com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.MeshIstio.newBuilder( - (com.google.monitoring.v3.Service.MeshIstio) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 10 && + identifier_ != com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.MeshIstio.newBuilder((com.google.monitoring.v3.Service.MeshIstio) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -8513,8 +7800,6 @@ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) return this; } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8538,8 +7823,6 @@ public Builder clearMeshIstio() { return this; } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8550,8 +7833,6 @@ public com.google.monitoring.v3.Service.MeshIstio.Builder getMeshIstioBuilder() return getMeshIstioFieldBuilder().getBuilder(); } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8570,8 +7851,6 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder } } /** - * - * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -8579,19 +7858,14 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, - com.google.monitoring.v3.Service.MeshIstio.Builder, - com.google.monitoring.v3.Service.MeshIstioOrBuilder> + com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder> getMeshIstioFieldBuilder() { if (meshIstioBuilder_ == null) { if (!(identifierCase_ == 10)) { identifier_ = com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } - meshIstioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, - com.google.monitoring.v3.Service.MeshIstio.Builder, - com.google.monitoring.v3.Service.MeshIstioOrBuilder>( + meshIstioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder>( (com.google.monitoring.v3.Service.MeshIstio) identifier_, getParentForChildren(), isClean()); @@ -8603,22 +7877,15 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, - com.google.monitoring.v3.Service.IstioCanonicalService.Builder, - com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> - istioCanonicalServiceBuilder_; + com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> istioCanonicalServiceBuilder_; /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; * @return Whether the istioCanonicalService field is set. */ @java.lang.Override @@ -8626,17 +7893,13 @@ public boolean hasIstioCanonicalService() { return identifierCase_ == 11; } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; * @return The istioCanonicalService. */ @java.lang.Override @@ -8654,19 +7917,15 @@ public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalS } } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ - public Builder setIstioCanonicalService( - com.google.monitoring.v3.Service.IstioCanonicalService value) { + public Builder setIstioCanonicalService(com.google.monitoring.v3.Service.IstioCanonicalService value) { if (istioCanonicalServiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8680,16 +7939,13 @@ public Builder setIstioCanonicalService( return this; } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ public Builder setIstioCanonicalService( com.google.monitoring.v3.Service.IstioCanonicalService.Builder builderForValue) { @@ -8703,28 +7959,20 @@ public Builder setIstioCanonicalService( return this; } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ - public Builder mergeIstioCanonicalService( - com.google.monitoring.v3.Service.IstioCanonicalService value) { + public Builder mergeIstioCanonicalService(com.google.monitoring.v3.Service.IstioCanonicalService value) { if (istioCanonicalServiceBuilder_ == null) { - if (identifierCase_ == 11 - && identifier_ - != com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) { - identifier_ = - com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder( - (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_) - .mergeFrom(value) - .buildPartial(); + if (identifierCase_ == 11 && + identifier_ != com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) { + identifier_ = com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder((com.google.monitoring.v3.Service.IstioCanonicalService) identifier_) + .mergeFrom(value).buildPartial(); } else { identifier_ = value; } @@ -8740,16 +7988,13 @@ public Builder mergeIstioCanonicalService( return this; } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ public Builder clearIstioCanonicalService() { if (istioCanonicalServiceBuilder_ == null) { @@ -8768,36 +8013,28 @@ public Builder clearIstioCanonicalService() { return this; } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ - public com.google.monitoring.v3.Service.IstioCanonicalService.Builder - getIstioCanonicalServiceBuilder() { + public com.google.monitoring.v3.Service.IstioCanonicalService.Builder getIstioCanonicalServiceBuilder() { return getIstioCanonicalServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ @java.lang.Override - public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder - getIstioCanonicalServiceOrBuilder() { + public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder() { if ((identifierCase_ == 11) && (istioCanonicalServiceBuilder_ != null)) { return istioCanonicalServiceBuilder_.getMessageOrBuilder(); } else { @@ -8808,31 +8045,23 @@ public Builder clearIstioCanonicalService() { } } /** - * - * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, - com.google.monitoring.v3.Service.IstioCanonicalService.Builder, - com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> + com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> getIstioCanonicalServiceFieldBuilder() { if (istioCanonicalServiceBuilder_ == null) { if (!(identifierCase_ == 11)) { identifier_ = com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance(); } - istioCanonicalServiceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, - com.google.monitoring.v3.Service.IstioCanonicalService.Builder, - com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder>( + istioCanonicalServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder>( (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_, getParentForChildren(), isClean()); @@ -8845,47 +8074,34 @@ public Builder clearIstioCanonicalService() { private com.google.monitoring.v3.Service.Telemetry telemetry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, - com.google.monitoring.v3.Service.Telemetry.Builder, - com.google.monitoring.v3.Service.TelemetryOrBuilder> - telemetryBuilder_; + com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder> telemetryBuilder_; /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return Whether the telemetry field is set. */ public boolean hasTelemetry() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return The telemetry. */ public com.google.monitoring.v3.Service.Telemetry getTelemetry() { if (telemetryBuilder_ == null) { - return telemetry_ == null - ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() - : telemetry_; + return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; } else { return telemetryBuilder_.getMessage(); } } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8906,8 +8122,6 @@ public Builder setTelemetry(com.google.monitoring.v3.Service.Telemetry value) { return this; } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8926,8 +8140,6 @@ public Builder setTelemetry( return this; } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8936,9 +8148,9 @@ public Builder setTelemetry( */ public Builder mergeTelemetry(com.google.monitoring.v3.Service.Telemetry value) { if (telemetryBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && telemetry_ != null - && telemetry_ != com.google.monitoring.v3.Service.Telemetry.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + telemetry_ != null && + telemetry_ != com.google.monitoring.v3.Service.Telemetry.getDefaultInstance()) { getTelemetryBuilder().mergeFrom(value); } else { telemetry_ = value; @@ -8951,8 +8163,6 @@ public Builder mergeTelemetry(com.google.monitoring.v3.Service.Telemetry value) return this; } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8970,8 +8180,6 @@ public Builder clearTelemetry() { return this; } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8984,8 +8192,6 @@ public com.google.monitoring.v3.Service.Telemetry.Builder getTelemetryBuilder() return getTelemetryFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8996,14 +8202,11 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder if (telemetryBuilder_ != null) { return telemetryBuilder_.getMessageOrBuilder(); } else { - return telemetry_ == null - ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() - : telemetry_; + return telemetry_ == null ? + com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; } } /** - * - * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -9011,24 +8214,21 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder * .google.monitoring.v3.Service.Telemetry telemetry = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, - com.google.monitoring.v3.Service.Telemetry.Builder, - com.google.monitoring.v3.Service.TelemetryOrBuilder> + com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder> getTelemetryFieldBuilder() { if (telemetryBuilder_ == null) { - telemetryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, - com.google.monitoring.v3.Service.Telemetry.Builder, - com.google.monitoring.v3.Service.TelemetryOrBuilder>( - getTelemetry(), getParentForChildren(), isClean()); + telemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder>( + getTelemetry(), + getParentForChildren(), + isClean()); telemetry_ = null; } return telemetryBuilder_; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -9037,12 +8237,11 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -9051,13 +8250,10 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9070,21 +8266,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9101,8 +8296,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9115,19 +8308,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9140,25 +8331,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9170,22 +8359,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000200;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9197,20 +8387,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -9222,14 +8409,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -9239,12 +8428,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service)
   private static final com.google.monitoring.v3.Service DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.Service();
   }
@@ -9253,27 +8442,27 @@ public static com.google.monitoring.v3.Service getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Service parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Service parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -9288,4 +8477,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.Service getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
similarity index 72%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
index 6467f3383449..b8d0ddcd2e75 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * A Service-Level Indicator (SLI) describes the "performance" of a service. For
  * some services, the SLI is well-defined. In such cases, the SLI can be
@@ -39,54 +22,49 @@
  *
  * Protobuf type {@code google.monitoring.v3.ServiceLevelIndicator}
  */
-public final class ServiceLevelIndicator extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ServiceLevelIndicator extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ServiceLevelIndicator)
     ServiceLevelIndicatorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ServiceLevelIndicator.newBuilder() to construct.
   private ServiceLevelIndicator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ServiceLevelIndicator() {}
+  private ServiceLevelIndicator() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ServiceLevelIndicator();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ServiceLevelIndicator.class,
-            com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
+            com.google.monitoring.v3.ServiceLevelIndicator.class, com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
   }
 
   private int typeCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BASIC_SLI(4),
     REQUEST_BASED(1),
     WINDOWS_BASED(2),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -102,38 +80,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return BASIC_SLI;
-        case 1:
-          return REQUEST_BASED;
-        case 2:
-          return WINDOWS_BASED;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 4: return BASIC_SLI;
+        case 1: return REQUEST_BASED;
+        case 2: return WINDOWS_BASED;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int BASIC_SLI_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return Whether the basicSli field is set. */ @java.lang.Override @@ -141,26 +112,21 @@ public boolean hasBasicSli() { return typeCase_ == 4; } /** - * - * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return The basicSli. */ @java.lang.Override public com.google.monitoring.v3.BasicSli getBasicSli() { if (typeCase_ == 4) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } /** - * - * *
    * Basic SLI on a well-known service type.
    * 
@@ -170,21 +136,18 @@ public com.google.monitoring.v3.BasicSli getBasicSli() { @java.lang.Override public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { if (typeCase_ == 4) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } public static final int REQUEST_BASED_FIELD_NUMBER = 1; /** - * - * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return Whether the requestBased field is set. */ @java.lang.Override @@ -192,26 +155,21 @@ public boolean hasRequestBased() { return typeCase_ == 1; } /** - * - * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return The requestBased. */ @java.lang.Override public com.google.monitoring.v3.RequestBasedSli getRequestBased() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } /** - * - * *
    * Request-based SLIs
    * 
@@ -221,21 +179,18 @@ public com.google.monitoring.v3.RequestBasedSli getRequestBased() { @java.lang.Override public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilder() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } public static final int WINDOWS_BASED_FIELD_NUMBER = 2; /** - * - * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return Whether the windowsBased field is set. */ @java.lang.Override @@ -243,26 +198,21 @@ public boolean hasWindowsBased() { return typeCase_ == 2; } /** - * - * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return The windowsBased. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { if (typeCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli) type_; + return (com.google.monitoring.v3.WindowsBasedSli) type_; } return com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } /** - * - * *
    * Windows-based SLIs
    * 
@@ -272,13 +222,12 @@ public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { @java.lang.Override public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilder() { if (typeCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli) type_; + return (com.google.monitoring.v3.WindowsBasedSli) type_; } return com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,7 +239,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.monitoring.v3.RequestBasedSli) type_); } @@ -310,19 +260,16 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.monitoring.v3.RequestBasedSli) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.monitoring.v3.RequestBasedSli) type_); } if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.monitoring.v3.WindowsBasedSli) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.monitoring.v3.WindowsBasedSli) type_); } if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.monitoring.v3.BasicSli) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.monitoring.v3.BasicSli) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -332,24 +279,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ServiceLevelIndicator)) { return super.equals(obj); } - com.google.monitoring.v3.ServiceLevelIndicator other = - (com.google.monitoring.v3.ServiceLevelIndicator) obj; + com.google.monitoring.v3.ServiceLevelIndicator other = (com.google.monitoring.v3.ServiceLevelIndicator) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getBasicSli().equals(other.getBasicSli())) return false; + if (!getBasicSli() + .equals(other.getBasicSli())) return false; break; case 1: - if (!getRequestBased().equals(other.getRequestBased())) return false; + if (!getRequestBased() + .equals(other.getRequestBased())) return false; break; case 2: - if (!getWindowsBased().equals(other.getWindowsBased())) return false; + if (!getWindowsBased() + .equals(other.getWindowsBased())) return false; break; case 0: default: @@ -386,104 +335,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ServiceLevelIndicator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Service-Level Indicator (SLI) describes the "performance" of a service. For
    * some services, the SLI is well-defined. In such cases, the SLI can be
@@ -502,32 +446,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.ServiceLevelIndicator}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ServiceLevelIndicator)
       com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ServiceLevelIndicator.class,
-              com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
+              com.google.monitoring.v3.ServiceLevelIndicator.class, com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ServiceLevelIndicator.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -547,9 +492,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
     }
 
     @java.lang.Override
@@ -568,11 +513,8 @@ public com.google.monitoring.v3.ServiceLevelIndicator build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ServiceLevelIndicator buildPartial() {
-      com.google.monitoring.v3.ServiceLevelIndicator result =
-          new com.google.monitoring.v3.ServiceLevelIndicator(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.ServiceLevelIndicator result = new com.google.monitoring.v3.ServiceLevelIndicator(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -585,13 +527,16 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelIndicator result
     private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelIndicator result) {
       result.typeCase_ = typeCase_;
       result.type_ = this.type_;
-      if (typeCase_ == 4 && basicSliBuilder_ != null) {
+      if (typeCase_ == 4 &&
+          basicSliBuilder_ != null) {
         result.type_ = basicSliBuilder_.build();
       }
-      if (typeCase_ == 1 && requestBasedBuilder_ != null) {
+      if (typeCase_ == 1 &&
+          requestBasedBuilder_ != null) {
         result.type_ = requestBasedBuilder_.build();
       }
-      if (typeCase_ == 2 && windowsBasedBuilder_ != null) {
+      if (typeCase_ == 2 &&
+          windowsBasedBuilder_ != null) {
         result.type_ = windowsBasedBuilder_.build();
       }
     }
@@ -600,39 +545,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelIndicator r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ServiceLevelIndicator) {
-        return mergeFrom((com.google.monitoring.v3.ServiceLevelIndicator) other);
+        return mergeFrom((com.google.monitoring.v3.ServiceLevelIndicator)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,25 +586,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.monitoring.v3.ServiceLevelIndicator other) {
       if (other == com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case BASIC_SLI:
-          {
-            mergeBasicSli(other.getBasicSli());
-            break;
-          }
-        case REQUEST_BASED:
-          {
-            mergeRequestBased(other.getRequestBased());
-            break;
-          }
-        case WINDOWS_BASED:
-          {
-            mergeWindowsBased(other.getWindowsBased());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case BASIC_SLI: {
+          mergeBasicSli(other.getBasicSli());
+          break;
+        }
+        case REQUEST_BASED: {
+          mergeRequestBased(other.getRequestBased());
+          break;
+        }
+        case WINDOWS_BASED: {
+          mergeWindowsBased(other.getWindowsBased());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -688,31 +628,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getRequestBasedFieldBuilder().getBuilder(), extensionRegistry);
-                typeCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getWindowsBasedFieldBuilder().getBuilder(), extensionRegistry);
-                typeCase_ = 2;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getBasicSliFieldBuilder().getBuilder(), extensionRegistry);
-                typeCase_ = 4;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRequestBasedFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              typeCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getWindowsBasedFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              typeCase_ = 2;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getBasicSliFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              typeCase_ = 4;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -722,12 +664,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -740,19 +682,13 @@ public Builder clearType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli,
-            com.google.monitoring.v3.BasicSli.Builder,
-            com.google.monitoring.v3.BasicSliOrBuilder>
-        basicSliBuilder_;
+        com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> basicSliBuilder_;
     /**
-     *
-     *
      * 
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return Whether the basicSli field is set. */ @java.lang.Override @@ -760,14 +696,11 @@ public boolean hasBasicSli() { return typeCase_ == 4; } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return The basicSli. */ @java.lang.Override @@ -785,8 +718,6 @@ public com.google.monitoring.v3.BasicSli getBasicSli() { } } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -807,15 +738,14 @@ public Builder setBasicSli(com.google.monitoring.v3.BasicSli value) { return this; } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; */ - public Builder setBasicSli(com.google.monitoring.v3.BasicSli.Builder builderForValue) { + public Builder setBasicSli( + com.google.monitoring.v3.BasicSli.Builder builderForValue) { if (basicSliBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -826,8 +756,6 @@ public Builder setBasicSli(com.google.monitoring.v3.BasicSli.Builder builderForV return this; } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -836,12 +764,10 @@ public Builder setBasicSli(com.google.monitoring.v3.BasicSli.Builder builderForV */ public Builder mergeBasicSli(com.google.monitoring.v3.BasicSli value) { if (basicSliBuilder_ == null) { - if (typeCase_ == 4 && type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { - type_ = - com.google.monitoring.v3.BasicSli.newBuilder( - (com.google.monitoring.v3.BasicSli) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { + type_ = com.google.monitoring.v3.BasicSli.newBuilder((com.google.monitoring.v3.BasicSli) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -857,8 +783,6 @@ public Builder mergeBasicSli(com.google.monitoring.v3.BasicSli value) { return this; } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -882,8 +806,6 @@ public Builder clearBasicSli() { return this; } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -894,8 +816,6 @@ public com.google.monitoring.v3.BasicSli.Builder getBasicSliBuilder() { return getBasicSliFieldBuilder().getBuilder(); } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -914,8 +834,6 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { } } /** - * - * *
      * Basic SLI on a well-known service type.
      * 
@@ -923,20 +841,17 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { * .google.monitoring.v3.BasicSli basic_sli = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, - com.google.monitoring.v3.BasicSli.Builder, - com.google.monitoring.v3.BasicSliOrBuilder> + com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> getBasicSliFieldBuilder() { if (basicSliBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.monitoring.v3.BasicSli.getDefaultInstance(); } - basicSliBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, - com.google.monitoring.v3.BasicSli.Builder, - com.google.monitoring.v3.BasicSliOrBuilder>( - (com.google.monitoring.v3.BasicSli) type_, getParentForChildren(), isClean()); + basicSliBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder>( + (com.google.monitoring.v3.BasicSli) type_, + getParentForChildren(), + isClean()); type_ = null; } typeCase_ = 4; @@ -945,19 +860,13 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, - com.google.monitoring.v3.RequestBasedSli.Builder, - com.google.monitoring.v3.RequestBasedSliOrBuilder> - requestBasedBuilder_; + com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> requestBasedBuilder_; /** - * - * *
      * Request-based SLIs
      * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return Whether the requestBased field is set. */ @java.lang.Override @@ -965,14 +874,11 @@ public boolean hasRequestBased() { return typeCase_ == 1; } /** - * - * *
      * Request-based SLIs
      * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return The requestBased. */ @java.lang.Override @@ -990,8 +896,6 @@ public com.google.monitoring.v3.RequestBasedSli getRequestBased() { } } /** - * - * *
      * Request-based SLIs
      * 
@@ -1012,8 +916,6 @@ public Builder setRequestBased(com.google.monitoring.v3.RequestBasedSli value) { return this; } /** - * - * *
      * Request-based SLIs
      * 
@@ -1032,8 +934,6 @@ public Builder setRequestBased( return this; } /** - * - * *
      * Request-based SLIs
      * 
@@ -1042,13 +942,10 @@ public Builder setRequestBased( */ public Builder mergeRequestBased(com.google.monitoring.v3.RequestBasedSli value) { if (requestBasedBuilder_ == null) { - if (typeCase_ == 1 - && type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { - type_ = - com.google.monitoring.v3.RequestBasedSli.newBuilder( - (com.google.monitoring.v3.RequestBasedSli) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 1 && + type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { + type_ = com.google.monitoring.v3.RequestBasedSli.newBuilder((com.google.monitoring.v3.RequestBasedSli) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1064,8 +961,6 @@ public Builder mergeRequestBased(com.google.monitoring.v3.RequestBasedSli value) return this; } /** - * - * *
      * Request-based SLIs
      * 
@@ -1089,8 +984,6 @@ public Builder clearRequestBased() { return this; } /** - * - * *
      * Request-based SLIs
      * 
@@ -1101,8 +994,6 @@ public com.google.monitoring.v3.RequestBasedSli.Builder getRequestBasedBuilder() return getRequestBasedFieldBuilder().getBuilder(); } /** - * - * *
      * Request-based SLIs
      * 
@@ -1121,8 +1012,6 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde } } /** - * - * *
      * Request-based SLIs
      * 
@@ -1130,19 +1019,14 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde * .google.monitoring.v3.RequestBasedSli request_based = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, - com.google.monitoring.v3.RequestBasedSli.Builder, - com.google.monitoring.v3.RequestBasedSliOrBuilder> + com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> getRequestBasedFieldBuilder() { if (requestBasedBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } - requestBasedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, - com.google.monitoring.v3.RequestBasedSli.Builder, - com.google.monitoring.v3.RequestBasedSliOrBuilder>( + requestBasedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder>( (com.google.monitoring.v3.RequestBasedSli) type_, getParentForChildren(), isClean()); @@ -1154,19 +1038,13 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, - com.google.monitoring.v3.WindowsBasedSli.Builder, - com.google.monitoring.v3.WindowsBasedSliOrBuilder> - windowsBasedBuilder_; + com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder> windowsBasedBuilder_; /** - * - * *
      * Windows-based SLIs
      * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return Whether the windowsBased field is set. */ @java.lang.Override @@ -1174,14 +1052,11 @@ public boolean hasWindowsBased() { return typeCase_ == 2; } /** - * - * *
      * Windows-based SLIs
      * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return The windowsBased. */ @java.lang.Override @@ -1199,8 +1074,6 @@ public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { } } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1221,8 +1094,6 @@ public Builder setWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) { return this; } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1241,8 +1112,6 @@ public Builder setWindowsBased( return this; } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1251,13 +1120,10 @@ public Builder setWindowsBased( */ public Builder mergeWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) { if (windowsBasedBuilder_ == null) { - if (typeCase_ == 2 - && type_ != com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance()) { - type_ = - com.google.monitoring.v3.WindowsBasedSli.newBuilder( - (com.google.monitoring.v3.WindowsBasedSli) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 2 && + type_ != com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance()) { + type_ = com.google.monitoring.v3.WindowsBasedSli.newBuilder((com.google.monitoring.v3.WindowsBasedSli) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1273,8 +1139,6 @@ public Builder mergeWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) return this; } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1298,8 +1162,6 @@ public Builder clearWindowsBased() { return this; } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1310,8 +1172,6 @@ public com.google.monitoring.v3.WindowsBasedSli.Builder getWindowsBasedBuilder() return getWindowsBasedFieldBuilder().getBuilder(); } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1330,8 +1190,6 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde } } /** - * - * *
      * Windows-based SLIs
      * 
@@ -1339,19 +1197,14 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde * .google.monitoring.v3.WindowsBasedSli windows_based = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, - com.google.monitoring.v3.WindowsBasedSli.Builder, - com.google.monitoring.v3.WindowsBasedSliOrBuilder> + com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder> getWindowsBasedFieldBuilder() { if (windowsBasedBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } - windowsBasedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, - com.google.monitoring.v3.WindowsBasedSli.Builder, - com.google.monitoring.v3.WindowsBasedSliOrBuilder>( + windowsBasedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder>( (com.google.monitoring.v3.WindowsBasedSli) type_, getParentForChildren(), isClean()); @@ -1361,9 +1214,9 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde onChanged(); return windowsBasedBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1373,12 +1226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ServiceLevelIndicator) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelIndicator) private static final com.google.monitoring.v3.ServiceLevelIndicator DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ServiceLevelIndicator(); } @@ -1387,27 +1240,27 @@ public static com.google.monitoring.v3.ServiceLevelIndicator getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceLevelIndicator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLevelIndicator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1422,4 +1275,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ServiceLevelIndicator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java index 34599680e369..9acaaea22aef 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; -public interface ServiceLevelIndicatorOrBuilder - extends +public interface ServiceLevelIndicatorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ServiceLevelIndicator) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return Whether the basicSli field is set. */ boolean hasBasicSli(); /** - * - * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; - * * @return The basicSli. */ com.google.monitoring.v3.BasicSli getBasicSli(); /** - * - * *
    * Basic SLI on a well-known service type.
    * 
@@ -59,32 +35,24 @@ public interface ServiceLevelIndicatorOrBuilder com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder(); /** - * - * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return Whether the requestBased field is set. */ boolean hasRequestBased(); /** - * - * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; - * * @return The requestBased. */ com.google.monitoring.v3.RequestBasedSli getRequestBased(); /** - * - * *
    * Request-based SLIs
    * 
@@ -94,32 +62,24 @@ public interface ServiceLevelIndicatorOrBuilder com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilder(); /** - * - * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return Whether the windowsBased field is set. */ boolean hasWindowsBased(); /** - * - * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; - * * @return The windowsBased. */ com.google.monitoring.v3.WindowsBasedSli getWindowsBased(); /** - * - * *
    * Windows-based SLIs
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java similarity index 73% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java index 6cc0454f410b..1b35064f8721 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * A Service-Level Objective (SLO) describes a level of desired good service. It
  * consists of a service-level indicator (SLI), a performance goal, and a period
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.ServiceLevelObjective}
  */
-public final class ServiceLevelObjective extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ServiceLevelObjective extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ServiceLevelObjective)
     ServiceLevelObjectiveOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ServiceLevelObjective.newBuilder() to construct.
   private ServiceLevelObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ServiceLevelObjective() {
     name_ = "";
     displayName_ = "";
@@ -49,39 +31,37 @@ private ServiceLevelObjective() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ServiceLevelObjective();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 12:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ServiceLevelObjective.class,
-            com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
+            com.google.monitoring.v3.ServiceLevelObjective.class, com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * `ServiceLevelObjective.View` determines what form of
    * `ServiceLevelObjective` is returned from `GetServiceLevelObjective`,
@@ -90,10 +70,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.monitoring.v3.ServiceLevelObjective.View}
    */
-  public enum View implements com.google.protobuf.ProtocolMessageEnum {
+  public enum View
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Same as FULL.
      * 
@@ -102,8 +81,6 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum { */ VIEW_UNSPECIFIED(0), /** - * - * *
      * Return the embedded `ServiceLevelIndicator` in the form in which it was
      * defined. If it was defined using a `BasicSli`, return that `BasicSli`.
@@ -113,8 +90,6 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum {
      */
     FULL(2),
     /**
-     *
-     *
      * 
      * For `ServiceLevelIndicator`s using `BasicSli` articulation, instead
      * return the `ServiceLevelIndicator` with its mode of computation fully
@@ -130,8 +105,6 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Same as FULL.
      * 
@@ -140,8 +113,6 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Return the embedded `ServiceLevelIndicator` in the form in which it was
      * defined. If it was defined using a `BasicSli`, return that `BasicSli`.
@@ -151,8 +122,6 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FULL_VALUE = 2;
     /**
-     *
-     *
      * 
      * For `ServiceLevelIndicator`s using `BasicSli` articulation, instead
      * return the `ServiceLevelIndicator` with its mode of computation fully
@@ -165,6 +134,7 @@ public enum View implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXPLICIT_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -189,49 +159,49 @@ public static View valueOf(int value) {
      */
     public static View forNumber(int value) {
       switch (value) {
-        case 0:
-          return VIEW_UNSPECIFIED;
-        case 2:
-          return FULL;
-        case 1:
-          return EXPLICIT;
-        default:
-          return null;
+        case 0: return VIEW_UNSPECIFIED;
+        case 2: return FULL;
+        case 1: return EXPLICIT;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        View> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public View findValueByNumber(int number) {
+              return View.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public View findValueByNumber(int number) {
-            return View.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.ServiceLevelObjective.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final View[] VALUES = values();
 
-    public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static View valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -249,19 +219,15 @@ private View(int value) {
   }
 
   private int periodCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object period_;
-
   public enum PeriodCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ROLLING_PERIOD(5),
     CALENDAR_PERIOD(6),
     PERIOD_NOT_SET(0);
     private final int value;
-
     private PeriodCase(int value) {
       this.value = value;
     }
@@ -277,33 +243,27 @@ public static PeriodCase valueOf(int value) {
 
     public static PeriodCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return ROLLING_PERIOD;
-        case 6:
-          return CALENDAR_PERIOD;
-        case 0:
-          return PERIOD_NOT_SET;
-        default:
-          return null;
+        case 5: return ROLLING_PERIOD;
+        case 6: return CALENDAR_PERIOD;
+        case 0: return PERIOD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PeriodCase getPeriodCase() {
-    return PeriodCase.forNumber(periodCase_);
+  public PeriodCase
+  getPeriodCase() {
+    return PeriodCase.forNumber(
+        periodCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -311,7 +271,6 @@ public PeriodCase getPeriodCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -320,15 +279,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -336,15 +294,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -353,18 +312,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; - * * @return The displayName. */ @java.lang.Override @@ -373,29 +328,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -406,8 +361,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SERVICE_LEVEL_INDICATOR_FIELD_NUMBER = 3; private com.google.monitoring.v3.ServiceLevelIndicator serviceLevelIndicator_; /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -415,7 +368,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return Whether the serviceLevelIndicator field is set. */ @java.lang.Override @@ -423,8 +375,6 @@ public boolean hasServiceLevelIndicator() { return serviceLevelIndicator_ != null; } /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -432,18 +382,13 @@ public boolean hasServiceLevelIndicator() {
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return The serviceLevelIndicator. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator() { - return serviceLevelIndicator_ == null - ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() - : serviceLevelIndicator_; + return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_; } /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -453,25 +398,19 @@ public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator()
    * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder
-      getServiceLevelIndicatorOrBuilder() {
-    return serviceLevelIndicator_ == null
-        ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()
-        : serviceLevelIndicator_;
+  public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder() {
+    return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_;
   }
 
   public static final int GOAL_FIELD_NUMBER = 4;
   private double goal_ = 0D;
   /**
-   *
-   *
    * 
    * The fraction of service that must be good in order for this objective to be
    * met. `0 < goal <= 0.999`.
    * 
* * double goal = 4; - * * @return The goal. */ @java.lang.Override @@ -481,15 +420,12 @@ public double getGoal() { public static final int ROLLING_PERIOD_FIELD_NUMBER = 5; /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return Whether the rollingPeriod field is set. */ @java.lang.Override @@ -497,27 +433,22 @@ public boolean hasRollingPeriod() { return periodCase_ == 5; } /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return The rollingPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRollingPeriod() { if (periodCase_ == 5) { - return (com.google.protobuf.Duration) period_; + return (com.google.protobuf.Duration) period_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
@@ -528,15 +459,13 @@ public com.google.protobuf.Duration getRollingPeriod() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
     if (periodCase_ == 5) {
-      return (com.google.protobuf.Duration) period_;
+       return (com.google.protobuf.Duration) period_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int CALENDAR_PERIOD_FIELD_NUMBER = 6;
   /**
-   *
-   *
    * 
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -544,15 +473,12 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return periodCase_ == 6; } /** - * - * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -560,7 +486,6 @@ public boolean hasCalendarPeriod() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -570,8 +495,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -579,47 +502,44 @@ public int getCalendarPeriodValue() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The calendarPeriod. */ public com.google.type.CalendarPeriod getCalendarPeriod() { if (periodCase_ == 6) { - com.google.type.CalendarPeriod result = - com.google.type.CalendarPeriod.forNumber((java.lang.Integer) period_); + com.google.type.CalendarPeriod result = com.google.type.CalendarPeriod.forNumber( + (java.lang.Integer) period_); return result == null ? com.google.type.CalendarPeriod.UNRECOGNIZED : result; } return com.google.type.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int USER_LABELS_FIELD_NUMBER = 12; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.ServiceMonitoringProto - .internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -632,21 +552,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -663,8 +582,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -677,19 +594,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -702,11 +617,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -714,7 +629,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -726,7 +640,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -745,8 +660,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 12);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        12);
     getUnknownFields().writeTo(output);
   }
 
@@ -760,33 +679,33 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (serviceLevelIndicator_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServiceLevelIndicator());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getServiceLevelIndicator());
     }
     if (java.lang.Double.doubleToRawLongBits(goal_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, goal_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeDoubleSize(4, goal_);
     }
     if (periodCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.protobuf.Duration) period_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.protobuf.Duration) period_);
     }
     if (periodCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) period_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(6, ((java.lang.Integer) period_));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, userLabels__);
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(12, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -796,30 +715,36 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.ServiceLevelObjective)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.ServiceLevelObjective other =
-        (com.google.monitoring.v3.ServiceLevelObjective) obj;
+    com.google.monitoring.v3.ServiceLevelObjective other = (com.google.monitoring.v3.ServiceLevelObjective) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasServiceLevelIndicator() != other.hasServiceLevelIndicator()) return false;
     if (hasServiceLevelIndicator()) {
-      if (!getServiceLevelIndicator().equals(other.getServiceLevelIndicator())) return false;
+      if (!getServiceLevelIndicator()
+          .equals(other.getServiceLevelIndicator())) return false;
     }
     if (java.lang.Double.doubleToLongBits(getGoal())
-        != java.lang.Double.doubleToLongBits(other.getGoal())) return false;
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+        != java.lang.Double.doubleToLongBits(
+            other.getGoal())) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getPeriodCase().equals(other.getPeriodCase())) return false;
     switch (periodCase_) {
       case 5:
-        if (!getRollingPeriod().equals(other.getRollingPeriod())) return false;
+        if (!getRollingPeriod()
+            .equals(other.getRollingPeriod())) return false;
         break;
       case 6:
-        if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false;
+        if (getCalendarPeriodValue()
+            != other.getCalendarPeriodValue()) return false;
         break;
       case 0:
       default:
@@ -844,9 +769,8 @@ public int hashCode() {
       hash = (53 * hash) + getServiceLevelIndicator().hashCode();
     }
     hash = (37 * hash) + GOAL_FIELD_NUMBER;
-    hash =
-        (53 * hash)
-            + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getGoal()));
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        java.lang.Double.doubleToLongBits(getGoal()));
     if (!internalGetUserLabels().getMap().isEmpty()) {
       hash = (37 * hash) + USER_LABELS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetUserLabels().hashCode();
@@ -868,104 +792,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.ServiceLevelObjective prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A Service-Level Objective (SLO) describes a level of desired good service. It
    * consists of a service-level indicator (SLI), a performance goal, and a period
@@ -977,52 +896,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.ServiceLevelObjective}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ServiceLevelObjective)
       com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 12:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 12:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ServiceLevelObjective.class,
-              com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
+              com.google.monitoring.v3.ServiceLevelObjective.class, com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ServiceLevelObjective.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1045,9 +967,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
     }
 
     @java.lang.Override
@@ -1066,11 +988,8 @@ public com.google.monitoring.v3.ServiceLevelObjective build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ServiceLevelObjective buildPartial() {
-      com.google.monitoring.v3.ServiceLevelObjective result =
-          new com.google.monitoring.v3.ServiceLevelObjective(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.ServiceLevelObjective result = new com.google.monitoring.v3.ServiceLevelObjective(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1085,10 +1004,9 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelObjective result
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.serviceLevelIndicator_ =
-            serviceLevelIndicatorBuilder_ == null
-                ? serviceLevelIndicator_
-                : serviceLevelIndicatorBuilder_.build();
+        result.serviceLevelIndicator_ = serviceLevelIndicatorBuilder_ == null
+            ? serviceLevelIndicator_
+            : serviceLevelIndicatorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.goal_ = goal_;
@@ -1102,7 +1020,8 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelObjective result
     private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelObjective result) {
       result.periodCase_ = periodCase_;
       result.period_ = this.period_;
-      if (periodCase_ == 5 && rollingPeriodBuilder_ != null) {
+      if (periodCase_ == 5 &&
+          rollingPeriodBuilder_ != null) {
         result.period_ = rollingPeriodBuilder_.build();
       }
     }
@@ -1111,39 +1030,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelObjective r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ServiceLevelObjective) {
-        return mergeFrom((com.google.monitoring.v3.ServiceLevelObjective) other);
+        return mergeFrom((com.google.monitoring.v3.ServiceLevelObjective)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1168,23 +1086,21 @@ public Builder mergeFrom(com.google.monitoring.v3.ServiceLevelObjective other) {
       if (other.getGoal() != 0D) {
         setGoal(other.getGoal());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000040;
       switch (other.getPeriodCase()) {
-        case ROLLING_PERIOD:
-          {
-            mergeRollingPeriod(other.getRollingPeriod());
-            break;
-          }
-        case CALENDAR_PERIOD:
-          {
-            setCalendarPeriodValue(other.getCalendarPeriodValue());
-            break;
-          }
-        case PERIOD_NOT_SET:
-          {
-            break;
-          }
+        case ROLLING_PERIOD: {
+          mergeRollingPeriod(other.getRollingPeriod());
+          break;
+        }
+        case CALENDAR_PERIOD: {
+          setCalendarPeriodValue(other.getCalendarPeriodValue());
+          break;
+        }
+        case PERIOD_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1212,63 +1128,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(
-                    getServiceLevelIndicatorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 33:
-              {
-                goal_ = input.readDouble();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 33
-            case 42:
-              {
-                input.readMessage(getRollingPeriodFieldBuilder().getBuilder(), extensionRegistry);
-                periodCase_ = 5;
-                break;
-              } // case 42
-            case 48:
-              {
-                int rawValue = input.readEnum();
-                periodCase_ = 6;
-                period_ = rawValue;
-                break;
-              } // case 48
-            case 90:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 90
-            case 98:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 98
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getServiceLevelIndicatorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 33: {
+              goal_ = input.readDouble();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 33
+            case 42: {
+              input.readMessage(
+                  getRollingPeriodFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              periodCase_ = 5;
+              break;
+            } // case 42
+            case 48: {
+              int rawValue = input.readEnum();
+              periodCase_ = 6;
+              period_ = rawValue;
+              break;
+            } // case 48
+            case 90: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 90
+            case 98: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 98
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1278,12 +1187,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int periodCase_ = 0;
     private java.lang.Object period_;
-
-    public PeriodCase getPeriodCase() {
-      return PeriodCase.forNumber(periodCase_);
+    public PeriodCase
+        getPeriodCase() {
+      return PeriodCase.forNumber(
+          periodCase_);
     }
 
     public Builder clearPeriod() {
@@ -1297,8 +1206,6 @@ public Builder clearPeriod() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1306,13 +1213,13 @@ public Builder clearPeriod() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1321,8 +1228,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1330,14 +1235,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1345,8 +1251,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1354,22 +1258,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1377,7 +1277,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1387,8 +1286,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1396,14 +1293,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1413,20 +1308,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1435,21 +1328,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1457,35 +1349,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1495,21 +1380,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1519,13 +1400,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.ServiceLevelIndicator serviceLevelIndicator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelIndicator, - com.google.monitoring.v3.ServiceLevelIndicator.Builder, - com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> - serviceLevelIndicatorBuilder_; + com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> serviceLevelIndicatorBuilder_; /** - * - * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1533,15 +1409,12 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return Whether the serviceLevelIndicator field is set. */ public boolean hasServiceLevelIndicator() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1549,21 +1422,16 @@ public boolean hasServiceLevelIndicator() {
      * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return The serviceLevelIndicator. */ public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator() { if (serviceLevelIndicatorBuilder_ == null) { - return serviceLevelIndicator_ == null - ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() - : serviceLevelIndicator_; + return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_; } else { return serviceLevelIndicatorBuilder_.getMessage(); } } /** - * - * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1586,8 +1454,6 @@ public Builder setServiceLevelIndicator(com.google.monitoring.v3.ServiceLevelInd
       return this;
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1608,8 +1474,6 @@ public Builder setServiceLevelIndicator(
       return this;
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1618,13 +1482,11 @@ public Builder setServiceLevelIndicator(
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public Builder mergeServiceLevelIndicator(
-        com.google.monitoring.v3.ServiceLevelIndicator value) {
+    public Builder mergeServiceLevelIndicator(com.google.monitoring.v3.ServiceLevelIndicator value) {
       if (serviceLevelIndicatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && serviceLevelIndicator_ != null
-            && serviceLevelIndicator_
-                != com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          serviceLevelIndicator_ != null &&
+          serviceLevelIndicator_ != com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) {
           getServiceLevelIndicatorBuilder().mergeFrom(value);
         } else {
           serviceLevelIndicator_ = value;
@@ -1637,8 +1499,6 @@ public Builder mergeServiceLevelIndicator(
       return this;
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1658,8 +1518,6 @@ public Builder clearServiceLevelIndicator() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1668,15 +1526,12 @@ public Builder clearServiceLevelIndicator() {
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public com.google.monitoring.v3.ServiceLevelIndicator.Builder
-        getServiceLevelIndicatorBuilder() {
+    public com.google.monitoring.v3.ServiceLevelIndicator.Builder getServiceLevelIndicatorBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getServiceLevelIndicatorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1685,19 +1540,15 @@ public Builder clearServiceLevelIndicator() {
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder
-        getServiceLevelIndicatorOrBuilder() {
+    public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder() {
       if (serviceLevelIndicatorBuilder_ != null) {
         return serviceLevelIndicatorBuilder_.getMessageOrBuilder();
       } else {
-        return serviceLevelIndicator_ == null
-            ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()
-            : serviceLevelIndicator_;
+        return serviceLevelIndicator_ == null ?
+            com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_;
       }
     }
     /**
-     *
-     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1707,33 +1558,27 @@ public Builder clearServiceLevelIndicator() {
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.ServiceLevelIndicator,
-            com.google.monitoring.v3.ServiceLevelIndicator.Builder,
-            com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>
+        com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> 
         getServiceLevelIndicatorFieldBuilder() {
       if (serviceLevelIndicatorBuilder_ == null) {
-        serviceLevelIndicatorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.ServiceLevelIndicator,
-                com.google.monitoring.v3.ServiceLevelIndicator.Builder,
-                com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>(
-                getServiceLevelIndicator(), getParentForChildren(), isClean());
+        serviceLevelIndicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>(
+                getServiceLevelIndicator(),
+                getParentForChildren(),
+                isClean());
         serviceLevelIndicator_ = null;
       }
       return serviceLevelIndicatorBuilder_;
     }
 
-    private double goal_;
+    private double goal_ ;
     /**
-     *
-     *
      * 
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; - * * @return The goal. */ @java.lang.Override @@ -1741,15 +1586,12 @@ public double getGoal() { return goal_; } /** - * - * *
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; - * * @param value The goal to set. * @return This builder for chaining. */ @@ -1761,15 +1603,12 @@ public Builder setGoal(double value) { return this; } /** - * - * *
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; - * * @return This builder for chaining. */ public Builder clearGoal() { @@ -1780,20 +1619,14 @@ public Builder clearGoal() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - rollingPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rollingPeriodBuilder_; /** - * - * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
      * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return Whether the rollingPeriod field is set. */ @java.lang.Override @@ -1801,15 +1634,12 @@ public boolean hasRollingPeriod() { return periodCase_ == 5; } /** - * - * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
      * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return The rollingPeriod. */ @java.lang.Override @@ -1827,8 +1657,6 @@ public com.google.protobuf.Duration getRollingPeriod() { } } /** - * - * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1850,8 +1678,6 @@ public Builder setRollingPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1859,7 +1685,8 @@ public Builder setRollingPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration rolling_period = 5;
      */
-    public Builder setRollingPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRollingPeriod(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (rollingPeriodBuilder_ == null) {
         period_ = builderForValue.build();
         onChanged();
@@ -1870,8 +1697,6 @@ public Builder setRollingPeriod(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1881,11 +1706,10 @@ public Builder setRollingPeriod(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeRollingPeriod(com.google.protobuf.Duration value) {
       if (rollingPeriodBuilder_ == null) {
-        if (periodCase_ == 5 && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          period_ =
-              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) period_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (periodCase_ == 5 &&
+            period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          period_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) period_)
+              .mergeFrom(value).buildPartial();
         } else {
           period_ = value;
         }
@@ -1901,8 +1725,6 @@ public Builder mergeRollingPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1927,8 +1749,6 @@ public Builder clearRollingPeriod() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1940,8 +1760,6 @@ public com.google.protobuf.Duration.Builder getRollingPeriodBuilder() {
       return getRollingPeriodFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1961,8 +1779,6 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1971,20 +1787,17 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
      * .google.protobuf.Duration rolling_period = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getRollingPeriodFieldBuilder() {
       if (rollingPeriodBuilder_ == null) {
         if (!(periodCase_ == 5)) {
           period_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        rollingPeriodBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) period_, getParentForChildren(), isClean());
+        rollingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) period_,
+                getParentForChildren(),
+                isClean());
         period_ = null;
       }
       periodCase_ = 5;
@@ -1993,8 +1806,6 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
     }
 
     /**
-     *
-     *
      * 
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2002,7 +1813,6 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -2010,8 +1820,6 @@ public boolean hasCalendarPeriod() { return periodCase_ == 6; } /** - * - * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2019,7 +1827,6 @@ public boolean hasCalendarPeriod() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -2030,8 +1837,6 @@ public int getCalendarPeriodValue() { return 0; } /** - * - * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2039,7 +1844,6 @@ public int getCalendarPeriodValue() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -2050,8 +1854,6 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** - * - * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2059,21 +1861,18 @@ public Builder setCalendarPeriodValue(int value) {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The calendarPeriod. */ @java.lang.Override public com.google.type.CalendarPeriod getCalendarPeriod() { if (periodCase_ == 6) { - com.google.type.CalendarPeriod result = - com.google.type.CalendarPeriod.forNumber((java.lang.Integer) period_); + com.google.type.CalendarPeriod result = com.google.type.CalendarPeriod.forNumber( + (java.lang.Integer) period_); return result == null ? com.google.type.CalendarPeriod.UNRECOGNIZED : result; } return com.google.type.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** - * - * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2081,7 +1880,6 @@ public com.google.type.CalendarPeriod getCalendarPeriod() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -2095,8 +1893,6 @@ public Builder setCalendarPeriod(com.google.type.CalendarPeriod value) { return this; } /** - * - * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -2104,7 +1900,6 @@ public Builder setCalendarPeriod(com.google.type.CalendarPeriod value) {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -2116,8 +1911,8 @@ public Builder clearCalendarPeriod() { return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -2126,12 +1921,11 @@ public Builder clearCalendarPeriod() { } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -2140,13 +1934,10 @@ public Builder clearCalendarPeriod() { onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2159,21 +1950,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2190,8 +1980,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2204,19 +1992,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2229,25 +2015,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2259,22 +2043,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000040;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2286,20 +2071,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2311,14 +2093,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2328,12 +2112,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ServiceLevelObjective)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelObjective)
   private static final com.google.monitoring.v3.ServiceLevelObjective DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.ServiceLevelObjective();
   }
@@ -2342,27 +2126,27 @@ public static com.google.monitoring.v3.ServiceLevelObjective getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ServiceLevelObjective parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ServiceLevelObjective parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2377,4 +2161,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.ServiceLevelObjective getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
similarity index 84%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
index 52a61d1686bb..76339a6ef52c 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface ServiceLevelObjectiveOrBuilder
-    extends
+public interface ServiceLevelObjectiveOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ServiceLevelObjective)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -33,13 +15,10 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -47,39 +26,32 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -87,13 +59,10 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return Whether the serviceLevelIndicator field is set. */ boolean hasServiceLevelIndicator(); /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -101,13 +70,10 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; - * * @return The serviceLevelIndicator. */ com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator(); /** - * - * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -119,48 +85,37 @@ public interface ServiceLevelObjectiveOrBuilder
   com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder();
 
   /**
-   *
-   *
    * 
    * The fraction of service that must be good in order for this objective to be
    * met. `0 < goal <= 0.999`.
    * 
* * double goal = 4; - * * @return The goal. */ double getGoal(); /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return Whether the rollingPeriod field is set. */ boolean hasRollingPeriod(); /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; - * * @return The rollingPeriod. */ com.google.protobuf.Duration getRollingPeriod(); /** - * - * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
@@ -171,8 +126,6 @@ public interface ServiceLevelObjectiveOrBuilder
   com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder();
 
   /**
-   *
-   *
    * 
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -180,13 +133,10 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** - * - * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -194,13 +144,10 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** - * - * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -208,14 +155,11 @@ public interface ServiceLevelObjectiveOrBuilder
    * 
* * .google.type.CalendarPeriod calendar_period = 6; - * * @return The calendarPeriod. */ com.google.type.CalendarPeriod getCalendarPeriod(); /** - * - * *
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -229,8 +173,6 @@ public interface ServiceLevelObjectiveOrBuilder
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -242,13 +184,15 @@ public interface ServiceLevelObjectiveOrBuilder
    *
    * map<string, string> user_labels = 12;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -260,10 +204,9 @@ public interface ServiceLevelObjectiveOrBuilder
    *
    * map<string, string> user_labels = 12;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -276,13 +219,11 @@ public interface ServiceLevelObjectiveOrBuilder
    * map<string, string> user_labels = 12;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -294,7 +235,8 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 12;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   com.google.monitoring.v3.ServiceLevelObjective.PeriodCase getPeriodCase();
 }
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
new file mode 100644
index 000000000000..f86706124f86
--- /dev/null
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
@@ -0,0 +1,387 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/service.proto
+
+package com.google.monitoring.v3;
+
+public final class ServiceMonitoringProto {
+  private ServiceMonitoringProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_Custom_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_AppEngine_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_BasicSli_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_Range_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Range_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_DistributionCut_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\"google/monitoring/v3/service.proto\022\024go" +
+      "ogle.monitoring.v3\032\031google/api/resource." +
+      "proto\032\036google/protobuf/duration.proto\032!g" +
+      "oogle/type/calendar_period.proto\"\311\t\n\007Ser" +
+      "vice\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t" +
+      "\0226\n\006custom\030\006 \001(\0132$.google.monitoring.v3." +
+      "Service.CustomH\000\022=\n\napp_engine\030\007 \001(\0132\'.g" +
+      "oogle.monitoring.v3.Service.AppEngineH\000\022" +
+      "G\n\017cloud_endpoints\030\010 \001(\0132,.google.monito" +
+      "ring.v3.Service.CloudEndpointsH\000\022C\n\rclus" +
+      "ter_istio\030\t \001(\0132*.google.monitoring.v3.S" +
+      "ervice.ClusterIstioH\000\022=\n\nmesh_istio\030\n \001(" +
+      "\0132\'.google.monitoring.v3.Service.MeshIst" +
+      "ioH\000\022V\n\027istio_canonical_service\030\013 \001(\01323." +
+      "google.monitoring.v3.Service.IstioCanoni" +
+      "calServiceH\000\022:\n\ttelemetry\030\r \001(\0132\'.google" +
+      ".monitoring.v3.Service.Telemetry\022B\n\013user" +
+      "_labels\030\016 \003(\0132-.google.monitoring.v3.Ser" +
+      "vice.UserLabelsEntry\032\010\n\006Custom\032\036\n\tAppEng" +
+      "ine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndpoints" +
+      "\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterIstio\022\020\n\010loc" +
+      "ation\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031\n\021ser" +
+      "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" +
+      "(\t\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021ser" +
+      "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" +
+      "(\t\032i\n\025IstioCanonicalService\022\020\n\010mesh_uid\030" +
+      "\001 \001(\t\022#\n\033canonical_service_namespace\030\003 \001" +
+      "(\t\022\031\n\021canonical_service\030\004 \001(\t\032\"\n\tTelemet" +
+      "ry\022\025\n\rresource_name\030\001 \001(\t\0321\n\017UserLabelsE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\247\001\352" +
+      "A\243\001\n!monitoring.googleapis.com/Service\022%" +
+      "projects/{project}/services/{service}\022/o" +
+      "rganizations/{organization}/services/{se" +
+      "rvice}\022#folders/{folder}/services/{servi" +
+      "ce}\022\001*B\014\n\nidentifier\"\226\006\n\025ServiceLevelObj" +
+      "ective\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001" +
+      "(\t\022L\n\027service_level_indicator\030\003 \001(\0132+.go" +
+      "ogle.monitoring.v3.ServiceLevelIndicator" +
+      "\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_period\030\005 \001(\0132\031" +
+      ".google.protobuf.DurationH\000\0226\n\017calendar_" +
+      "period\030\006 \001(\0162\033.google.type.CalendarPerio" +
+      "dH\000\022P\n\013user_labels\030\014 \003(\0132;.google.monito" +
+      "ring.v3.ServiceLevelObjective.UserLabels" +
+      "Entry\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" +
+      "\005value\030\002 \001(\t:\0028\001\"4\n\004View\022\024\n\020VIEW_UNSPECI" +
+      "FIED\020\000\022\010\n\004FULL\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/m" +
+      "onitoring.googleapis.com/ServiceLevelObj" +
+      "ective\022Vprojects/{project}/services/{ser" +
+      "vice}/serviceLevelObjectives/{service_le" +
+      "vel_objective}\022`organizations/{organizat" +
+      "ion}/services/{service}/serviceLevelObje" +
+      "ctives/{service_level_objective}\022Tfolder" +
+      "s/{folder}/services/{service}/serviceLev" +
+      "elObjectives/{service_level_objective}\022\001" +
+      "* \001B\010\n\006period\"\324\001\n\025ServiceLevelIndicator\022" +
+      "3\n\tbasic_sli\030\004 \001(\0132\036.google.monitoring.v" +
+      "3.BasicSliH\000\022>\n\rrequest_based\030\001 \001(\0132%.go" +
+      "ogle.monitoring.v3.RequestBasedSliH\000\022>\n\r" +
+      "windows_based\030\002 \001(\0132%.google.monitoring." +
+      "v3.WindowsBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSl" +
+      "i\022\016\n\006method\030\007 \003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007v" +
+      "ersion\030\t \003(\t\022K\n\014availability\030\002 \001(\01323.goo" +
+      "gle.monitoring.v3.BasicSli.AvailabilityC" +
+      "riteriaH\000\022A\n\007latency\030\003 \001(\0132..google.moni" +
+      "toring.v3.BasicSli.LatencyCriteriaH\000\032\026\n\024" +
+      "AvailabilityCriteria\032?\n\017LatencyCriteria\022" +
+      ",\n\tthreshold\030\003 \001(\0132\031.google.protobuf.Dur" +
+      "ationB\016\n\014sli_criteria\"!\n\005Range\022\013\n\003min\030\001 " +
+      "\001(\001\022\013\n\003max\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020" +
+      "good_total_ratio\030\001 \001(\0132%.google.monitori" +
+      "ng.v3.TimeSeriesRatioH\000\022A\n\020distribution_" +
+      "cut\030\003 \001(\0132%.google.monitoring.v3.Distrib" +
+      "utionCutH\000B\010\n\006method\"h\n\017TimeSeriesRatio\022" +
+      "\033\n\023good_service_filter\030\004 \001(\t\022\032\n\022bad_serv" +
+      "ice_filter\030\005 \001(\t\022\034\n\024total_service_filter" +
+      "\030\006 \001(\t\"Z\n\017DistributionCut\022\033\n\023distributio" +
+      "n_filter\030\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.m" +
+      "onitoring.v3.Range\"\203\005\n\017WindowsBasedSli\022 " +
+      "\n\026good_bad_metric_filter\030\005 \001(\tH\000\022`\n\032good" +
+      "_total_ratio_threshold\030\002 \001(\0132:.google.mo" +
+      "nitoring.v3.WindowsBasedSli.PerformanceT" +
+      "hresholdH\000\022Q\n\024metric_mean_in_range\030\006 \001(\013" +
+      "21.google.monitoring.v3.WindowsBasedSli." +
+      "MetricRangeH\000\022P\n\023metric_sum_in_range\030\007 \001" +
+      "(\01321.google.monitoring.v3.WindowsBasedSl" +
+      "i.MetricRangeH\000\0220\n\rwindow_period\030\004 \001(\0132\031" +
+      ".google.protobuf.Duration\032\260\001\n\024Performanc" +
+      "eThreshold\022<\n\013performance\030\001 \001(\0132%.google" +
+      ".monitoring.v3.RequestBasedSliH\000\022?\n\025basi" +
+      "c_sli_performance\030\003 \001(\0132\036.google.monitor" +
+      "ing.v3.BasicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004" +
+      "type\032N\n\013MetricRange\022\023\n\013time_series\030\001 \001(\t" +
+      "\022*\n\005range\030\004 \001(\0132\033.google.monitoring.v3.R" +
+      "angeB\022\n\020window_criterionB\321\001\n\030com.google." +
+      "monitoring.v3B\026ServiceMonitoringProtoP\001Z" +
+      "Acloud.google.com/go/monitoring/apiv3/v2" +
+      "/monitoringpb;monitoringpb\252\002\032Google.Clou" +
+      "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" +
+      "g\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.DurationProto.getDescriptor(),
+          com.google.type.CalendarPeriodProto.getDescriptor(),
+        });
+    internal_static_google_monitoring_v3_Service_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_Service_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "Custom", "AppEngine", "CloudEndpoints", "ClusterIstio", "MeshIstio", "IstioCanonicalService", "Telemetry", "UserLabels", "Identifier", });
+    internal_static_google_monitoring_v3_Service_Custom_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_Custom_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_monitoring_v3_Service_AppEngine_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_AppEngine_descriptor,
+        new java.lang.String[] { "ModuleId", });
+    internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(2);
+    internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor,
+        new java.lang.String[] { "Service", });
+    internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(3);
+    internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor,
+        new java.lang.String[] { "Location", "ClusterName", "ServiceNamespace", "ServiceName", });
+    internal_static_google_monitoring_v3_Service_MeshIstio_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(4);
+    internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_MeshIstio_descriptor,
+        new java.lang.String[] { "MeshUid", "ServiceNamespace", "ServiceName", });
+    internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(5);
+    internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor,
+        new java.lang.String[] { "MeshUid", "CanonicalServiceNamespace", "CanonicalService", });
+    internal_static_google_monitoring_v3_Service_Telemetry_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(6);
+    internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_Telemetry_descriptor,
+        new java.lang.String[] { "ResourceName", });
+    internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor =
+      internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(7);
+    internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "ServiceLevelIndicator", "Goal", "RollingPeriod", "CalendarPeriod", "UserLabels", "Period", });
+    internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor =
+      internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor,
+        new java.lang.String[] { "BasicSli", "RequestBased", "WindowsBased", "Type", });
+    internal_static_google_monitoring_v3_BasicSli_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_BasicSli_descriptor,
+        new java.lang.String[] { "Method", "Location", "Version", "Availability", "Latency", "SliCriteria", });
+    internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor =
+      internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor =
+      internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor,
+        new java.lang.String[] { "Threshold", });
+    internal_static_google_monitoring_v3_Range_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_Range_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_Range_descriptor,
+        new java.lang.String[] { "Min", "Max", });
+    internal_static_google_monitoring_v3_RequestBasedSli_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_RequestBasedSli_descriptor,
+        new java.lang.String[] { "GoodTotalRatio", "DistributionCut", "Method", });
+    internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor,
+        new java.lang.String[] { "GoodServiceFilter", "BadServiceFilter", "TotalServiceFilter", });
+    internal_static_google_monitoring_v3_DistributionCut_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_DistributionCut_descriptor,
+        new java.lang.String[] { "DistributionFilter", "Range", });
+    internal_static_google_monitoring_v3_WindowsBasedSli_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_WindowsBasedSli_descriptor,
+        new java.lang.String[] { "GoodBadMetricFilter", "GoodTotalRatioThreshold", "MetricMeanInRange", "MetricSumInRange", "WindowPeriod", "WindowCriterion", });
+    internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor =
+      internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor,
+        new java.lang.String[] { "Performance", "BasicSliPerformance", "Threshold", "Type", });
+    internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor =
+      internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor,
+        new java.lang.String[] { "TimeSeries", "Range", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.type.CalendarPeriodProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
new file mode 100644
index 000000000000..9ab26b476c10
--- /dev/null
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
@@ -0,0 +1,297 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/service_service.proto
+
+package com.google.monitoring.v3;
+
+public final class ServiceMonitoringServiceProto {
+  private ServiceMonitoringServiceProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_CreateServiceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_GetServiceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListServicesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListServicesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n*google/monitoring/v3/service_service.p" +
+      "roto\022\024google.monitoring.v3\032\034google/api/a" +
+      "nnotations.proto\032\027google/api/client.prot" +
+      "o\032\037google/api/field_behavior.proto\032\031goog" +
+      "le/api/resource.proto\032\"google/monitoring" +
+      "/v3/service.proto\032\033google/protobuf/empty" +
+      ".proto\032 google/protobuf/field_mask.proto" +
+      "\"\234\001\n\024CreateServiceRequest\022:\n\006parent\030\001 \001(" +
+      "\tB*\342A\001\002\372A#\022!monitoring.googleapis.com/Se" +
+      "rvice\022\022\n\nservice_id\030\003 \001(\t\0224\n\007service\030\002 \001" +
+      "(\0132\035.google.monitoring.v3.ServiceB\004\342A\001\002\"" +
+      "M\n\021GetServiceRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" +
+      "\372A#\n!monitoring.googleapis.com/Service\"\210" +
+      "\001\n\023ListServicesRequest\022:\n\006parent\030\001 \001(\tB*" +
+      "\342A\001\002\372A#\022!monitoring.googleapis.com/Servi" +
+      "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" +
+      "\npage_token\030\004 \001(\t\"`\n\024ListServicesRespons" +
+      "e\022/\n\010services\030\001 \003(\0132\035.google.monitoring." +
+      "v3.Service\022\027\n\017next_page_token\030\002 \001(\t\"}\n\024U" +
+      "pdateServiceRequest\0224\n\007service\030\001 \001(\0132\035.g" +
+      "oogle.monitoring.v3.ServiceB\004\342A\001\002\022/\n\013upd" +
+      "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" +
+      "sk\"P\n\024DeleteServiceRequest\0228\n\004name\030\001 \001(\t" +
+      "B*\342A\001\002\372A#\n!monitoring.googleapis.com/Ser" +
+      "vice\"\330\001\n\"CreateServiceLevelObjectiveRequ" +
+      "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring" +
+      ".googleapis.com/Service\022\"\n\032service_level" +
+      "_objective_id\030\003 \001(\t\022R\n\027service_level_obj" +
+      "ective\030\002 \001(\0132+.google.monitoring.v3.Serv" +
+      "iceLevelObjectiveB\004\342A\001\002\"\251\001\n\037GetServiceLe" +
+      "velObjectiveRequest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372" +
+      "A1\n/monitoring.googleapis.com/ServiceLev" +
+      "elObjective\022>\n\004view\030\002 \001(\01620.google.monit" +
+      "oring.v3.ServiceLevelObjective.View\"\326\001\n!" +
+      "ListServiceLevelObjectivesRequest\022:\n\006par" +
+      "ent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring.googleapi" +
+      "s.com/Service\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" +
+      "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022>\n\004view\030\005 \001" +
+      "(\01620.google.monitoring.v3.ServiceLevelOb" +
+      "jective.View\"\214\001\n\"ListServiceLevelObjecti" +
+      "vesResponse\022M\n\030service_level_objectives\030" +
+      "\001 \003(\0132+.google.monitoring.v3.ServiceLeve" +
+      "lObjective\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\"" +
+      "UpdateServiceLevelObjectiveRequest\022R\n\027se" +
+      "rvice_level_objective\030\001 \001(\0132+.google.mon" +
+      "itoring.v3.ServiceLevelObjectiveB\004\342A\001\002\022/" +
+      "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" +
+      "eldMask\"l\n\"DeleteServiceLevelObjectiveRe" +
+      "quest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/monitoring" +
+      ".googleapis.com/ServiceLevelObjective2\352\017" +
+      "\n\030ServiceMonitoringService\022\227\001\n\rCreateSer" +
+      "vice\022*.google.monitoring.v3.CreateServic" +
+      "eRequest\032\035.google.monitoring.v3.Service\"" +
+      ";\332A\016parent,service\202\323\344\223\002$\"\031/v3/{parent=*/" +
+      "*}/services:\007service\022~\n\nGetService\022\'.goo" +
+      "gle.monitoring.v3.GetServiceRequest\032\035.go" +
+      "ogle.monitoring.v3.Service\"(\332A\004name\202\323\344\223\002" +
+      "\033\022\031/v3/{name=*/*/services/*}\022\221\001\n\014ListSer" +
+      "vices\022).google.monitoring.v3.ListService" +
+      "sRequest\032*.google.monitoring.v3.ListServ" +
+      "icesResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v3/{pare" +
+      "nt=*/*}/services\022\230\001\n\rUpdateService\022*.goo" +
+      "gle.monitoring.v3.UpdateServiceRequest\032\035" +
+      ".google.monitoring.v3.Service\"<\332A\007servic" +
+      "e\202\323\344\223\002,2!/v3/{service.name=*/*/services/" +
+      "*}:\007service\022}\n\rDeleteService\022*.google.mo" +
+      "nitoring.v3.DeleteServiceRequest\032\026.googl" +
+      "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v3/{na" +
+      "me=*/*/services/*}\022\372\001\n\033CreateServiceLeve" +
+      "lObjective\0228.google.monitoring.v3.Create" +
+      "ServiceLevelObjectiveRequest\032+.google.mo" +
+      "nitoring.v3.ServiceLevelObjective\"t\332A\036pa" +
+      "rent,service_level_objective\202\323\344\223\002M\"2/v3/" +
+      "{parent=*/*/services/*}/serviceLevelObje" +
+      "ctives:\027service_level_objective\022\301\001\n\030GetS" +
+      "erviceLevelObjective\0225.google.monitoring" +
+      ".v3.GetServiceLevelObjectiveRequest\032+.go" +
+      "ogle.monitoring.v3.ServiceLevelObjective" +
+      "\"A\332A\004name\202\323\344\223\0024\0222/v3/{name=*/*/services/" +
+      "*/serviceLevelObjectives/*}\022\324\001\n\032ListServ" +
+      "iceLevelObjectives\0227.google.monitoring.v" +
+      "3.ListServiceLevelObjectivesRequest\0328.go" +
+      "ogle.monitoring.v3.ListServiceLevelObjec" +
+      "tivesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v3/{par" +
+      "ent=*/*/services/*}/serviceLevelObjectiv" +
+      "es\022\214\002\n\033UpdateServiceLevelObjective\0228.goo" +
+      "gle.monitoring.v3.UpdateServiceLevelObje" +
+      "ctiveRequest\032+.google.monitoring.v3.Serv" +
+      "iceLevelObjective\"\205\001\332A\027service_level_obj" +
+      "ective\202\323\344\223\002e2J/v3/{service_level_objecti" +
+      "ve.name=*/*/services/*/serviceLevelObjec" +
+      "tives/*}:\027service_level_objective\022\262\001\n\033De" +
+      "leteServiceLevelObjective\0228.google.monit" +
+      "oring.v3.DeleteServiceLevelObjectiveRequ" +
+      "est\032\026.google.protobuf.Empty\"A\332A\004name\202\323\344\223" +
+      "\0024*2/v3/{name=*/*/services/*/serviceLeve" +
+      "lObjectives/*}\032\251\001\312A\031monitoring.googleapi" +
+      "s.com\322A\211\001https://www.googleapis.com/auth" +
+      "/cloud-platform,https://www.googleapis.c" +
+      "om/auth/monitoring,https://www.googleapi" +
+      "s.com/auth/monitoring.readB\330\001\n\030com.googl" +
+      "e.monitoring.v3B\035ServiceMonitoringServic" +
+      "eProtoP\001ZAcloud.google.com/go/monitoring" +
+      "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" +
+      "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" +
+      "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" +
+      "g::V3b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+        });
+    internal_static_google_monitoring_v3_CreateServiceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_CreateServiceRequest_descriptor,
+        new java.lang.String[] { "Parent", "ServiceId", "Service", });
+    internal_static_google_monitoring_v3_GetServiceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_GetServiceRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_monitoring_v3_ListServicesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListServicesRequest_descriptor,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", });
+    internal_static_google_monitoring_v3_ListServicesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListServicesResponse_descriptor,
+        new java.lang.String[] { "Services", "NextPageToken", });
+    internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor,
+        new java.lang.String[] { "Service", "UpdateMask", });
+    internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor,
+        new java.lang.String[] { "Parent", "ServiceLevelObjectiveId", "ServiceLevelObjective", });
+    internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor,
+        new java.lang.String[] { "Name", "View", });
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", "View", });
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor,
+        new java.lang.String[] { "ServiceLevelObjectives", "NextPageToken", });
+    internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor,
+        new java.lang.String[] { "ServiceLevelObjective", "UpdateMask", });
+    internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
similarity index 86%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
index c2bb338bd1f3..e0f1329d1dad 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface ServiceOrBuilder
-    extends
+public interface ServiceOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Resource name for this Service. The format is:
    *
@@ -33,13 +15,10 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Resource name for this Service. The format is:
    *
@@ -47,63 +26,50 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return Whether the custom field is set. */ boolean hasCustom(); /** - * - * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; - * * @return The custom. */ com.google.monitoring.v3.Service.Custom getCustom(); /** - * - * *
    * Custom service type.
    * 
@@ -113,32 +79,24 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder(); /** - * - * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return Whether the appEngine field is set. */ boolean hasAppEngine(); /** - * - * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; - * * @return The appEngine. */ com.google.monitoring.v3.Service.AppEngine getAppEngine(); /** - * - * *
    * Type used for App Engine services.
    * 
@@ -148,32 +106,24 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder(); /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return Whether the cloudEndpoints field is set. */ boolean hasCloudEndpoints(); /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; - * * @return The cloudEndpoints. */ com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints(); /** - * - * *
    * Type used for Cloud Endpoints services.
    * 
@@ -183,32 +133,24 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder(); /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return Whether the clusterIstio field is set. */ boolean hasClusterIstio(); /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; - * * @return The clusterIstio. */ com.google.monitoring.v3.Service.ClusterIstio getClusterIstio(); /** - * - * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
@@ -218,32 +160,24 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder(); /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return Whether the meshIstio field is set. */ boolean hasMeshIstio(); /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; - * * @return The meshIstio. */ com.google.monitoring.v3.Service.MeshIstio getMeshIstio(); /** - * - * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
@@ -253,8 +187,6 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder(); /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -262,13 +194,10 @@ public interface ServiceOrBuilder
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * * @return Whether the istioCanonicalService field is set. */ boolean hasIstioCanonicalService(); /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -276,13 +205,10 @@ public interface ServiceOrBuilder
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; - * * @return The istioCanonicalService. */ com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalService(); /** - * - * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -291,36 +217,27 @@ public interface ServiceOrBuilder
    *
    * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    */
-  com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder
-      getIstioCanonicalServiceOrBuilder();
+  com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return Whether the telemetry field is set. */ boolean hasTelemetry(); /** - * - * *
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; - * * @return The telemetry. */ com.google.monitoring.v3.Service.Telemetry getTelemetry(); /** - * - * *
    * Configuration for how to query telemetry on a Service.
    * 
@@ -330,8 +247,6 @@ public interface ServiceOrBuilder com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder(); /** - * - * *
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -345,8 +260,6 @@ public interface ServiceOrBuilder
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -358,13 +271,15 @@ public interface ServiceOrBuilder
    *
    * map<string, string> user_labels = 14;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -376,10 +291,9 @@ public interface ServiceOrBuilder
    *
    * map<string, string> user_labels = 14;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -392,13 +306,11 @@ public interface ServiceOrBuilder
    * map<string, string> user_labels = 14;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -410,7 +322,8 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 14;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   com.google.monitoring.v3.Service.IdentifierCase getIdentifierCase();
 }
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
similarity index 74%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
index ac9fd023b6c8..c7ed778649f4 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The tier of service for a Workspace. Please see the
  * [service tiers
@@ -30,11 +13,9 @@
  *
  * Protobuf enum {@code google.monitoring.v3.ServiceTier}
  */
-@java.lang.Deprecated
-public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
+@java.lang.Deprecated public enum ServiceTier
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * An invalid sentinel value, used to indicate that a tier has not
    * been provided explicitly.
@@ -44,8 +25,6 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
    */
   SERVICE_TIER_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * The Stackdriver Basic tier, a free tier of service that provides basic
    * features, a moderate allotment of logs, and access to built-in metrics.
@@ -58,8 +37,6 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
    */
   SERVICE_TIER_BASIC(1),
   /**
-   *
-   *
    * 
    * The Stackdriver Premium tier, a higher, more expensive tier of service
    * that provides access to all Stackdriver features, lets you use Stackdriver
@@ -75,8 +52,6 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * An invalid sentinel value, used to indicate that a tier has not
    * been provided explicitly.
@@ -86,8 +61,6 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SERVICE_TIER_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * The Stackdriver Basic tier, a free tier of service that provides basic
    * features, a moderate allotment of logs, and access to built-in metrics.
@@ -100,8 +73,6 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SERVICE_TIER_BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * The Stackdriver Premium tier, a higher, more expensive tier of service
    * that provides access to all Stackdriver features, lets you use Stackdriver
@@ -114,6 +85,7 @@ public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SERVICE_TIER_PREMIUM_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -138,49 +110,49 @@ public static ServiceTier valueOf(int value) {
    */
   public static ServiceTier forNumber(int value) {
     switch (value) {
-      case 0:
-        return SERVICE_TIER_UNSPECIFIED;
-      case 1:
-        return SERVICE_TIER_BASIC;
-      case 2:
-        return SERVICE_TIER_PREMIUM;
-      default:
-        return null;
+      case 0: return SERVICE_TIER_UNSPECIFIED;
+      case 1: return SERVICE_TIER_BASIC;
+      case 2: return SERVICE_TIER_PREMIUM;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public ServiceTier findValueByNumber(int number) {
-          return ServiceTier.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      ServiceTier> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public ServiceTier findValueByNumber(int number) {
+            return ServiceTier.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.monitoring.v3.CommonProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final ServiceTier[] VALUES = values();
 
-  public static ServiceTier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ServiceTier valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -196,3 +168,4 @@ private ServiceTier(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.monitoring.v3.ServiceTier)
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
similarity index 69%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
index 871e709565a3..001c8929739b 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/snooze.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * A `Snooze` will prevent any alerts from being opened, and close any that
  * are already open. The `Snooze` will work on alerts that match the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.Snooze}
  */
-public final class Snooze extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Snooze extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Snooze)
     SnoozeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Snooze.newBuilder() to construct.
   private Snooze(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Snooze() {
     name_ = "";
     displayName_ = "";
@@ -47,107 +29,94 @@ private Snooze() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Snooze();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeProto
-        .internal_static_google_monitoring_v3_Snooze_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeProto
-        .internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Snooze.class, com.google.monitoring.v3.Snooze.Builder.class);
   }
 
-  public interface CriteriaOrBuilder
-      extends
+  public interface CriteriaOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Snooze.Criteria)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the policies. */ - java.util.List getPoliciesList(); + java.util.List + getPoliciesList(); /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of policies. */ int getPoliciesCount(); /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The policies at the given index. */ java.lang.String getPolicies(int index); /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - com.google.protobuf.ByteString getPoliciesBytes(int index); + com.google.protobuf.ByteString + getPoliciesBytes(int index); } /** - * - * *
    * Criteria specific to the `AlertPolicy`s that this `Snooze` applies to. The
    * `Snooze` will suppress alerts that come from one of the `AlertPolicy`s
@@ -156,101 +125,91 @@ public interface CriteriaOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.Snooze.Criteria}
    */
-  public static final class Criteria extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Criteria extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Snooze.Criteria)
       CriteriaOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Criteria.newBuilder() to construct.
     private Criteria(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Criteria() {
-      policies_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      policies_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Criteria();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeProto
-          .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeProto
-          .internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Snooze.Criteria.class,
-              com.google.monitoring.v3.Snooze.Criteria.Builder.class);
+              com.google.monitoring.v3.Snooze.Criteria.class, com.google.monitoring.v3.Snooze.Criteria.Builder.class);
     }
 
     public static final int POLICIES_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList policies_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the policies. */ - public com.google.protobuf.ProtocolStringList getPoliciesList() { + public com.google.protobuf.ProtocolStringList + getPoliciesList() { return policies_; } /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of policies. */ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The policies at the given index. */ @@ -258,29 +217,26 @@ public java.lang.String getPolicies(int index) { return policies_.get(index); } /** - * - * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
      *
-     * There is a limit of 10 policies per snooze. This limit is checked during
+     * There is a limit of 16 policies per snooze. This limit is checked during
      * snooze creation.
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - public com.google.protobuf.ByteString getPoliciesBytes(int index) { + public com.google.protobuf.ByteString + getPoliciesBytes(int index) { return policies_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,7 +248,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < policies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policies_.getRaw(i)); } @@ -321,15 +278,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Snooze.Criteria)) { return super.equals(obj); } - com.google.monitoring.v3.Snooze.Criteria other = - (com.google.monitoring.v3.Snooze.Criteria) obj; + com.google.monitoring.v3.Snooze.Criteria other = (com.google.monitoring.v3.Snooze.Criteria) obj; - if (!getPoliciesList().equals(other.getPoliciesList())) return false; + if (!getPoliciesList() + .equals(other.getPoliciesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,94 +307,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Snooze.Criteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -447,8 +400,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Criteria specific to the `AlertPolicy`s that this `Snooze` applies to. The
      * `Snooze` will suppress alerts that come from one of the `AlertPolicy`s
@@ -457,45 +408,46 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Snooze.Criteria}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Snooze.Criteria)
         com.google.monitoring.v3.Snooze.CriteriaOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.SnoozeProto
-            .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.SnoozeProto
-            .internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
+        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Snooze.Criteria.class,
-                com.google.monitoring.v3.Snooze.Criteria.Builder.class);
+                com.google.monitoring.v3.Snooze.Criteria.class, com.google.monitoring.v3.Snooze.Criteria.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Snooze.Criteria.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
-        policies_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        policies_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.SnoozeProto
-            .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
       }
 
       @java.lang.Override
@@ -514,11 +466,8 @@ public com.google.monitoring.v3.Snooze.Criteria build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Snooze.Criteria buildPartial() {
-        com.google.monitoring.v3.Snooze.Criteria result =
-            new com.google.monitoring.v3.Snooze.Criteria(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.Snooze.Criteria result = new com.google.monitoring.v3.Snooze.Criteria(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -535,41 +484,38 @@ private void buildPartial0(com.google.monitoring.v3.Snooze.Criteria result) {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Snooze.Criteria) {
-          return mergeFrom((com.google.monitoring.v3.Snooze.Criteria) other);
+          return mergeFrom((com.google.monitoring.v3.Snooze.Criteria)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -614,20 +560,18 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensurePoliciesIsMutable();
-                  policies_.add(s);
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePoliciesIsMutable();
+                policies_.add(s);
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -637,12 +581,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList policies_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensurePoliciesIsMutable() {
         if (!policies_.isModifiable()) {
           policies_ = new com.google.protobuf.LazyStringArrayList(policies_);
@@ -650,61 +592,53 @@ private void ensurePoliciesIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
-       *
-       *
        * 
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the policies. */ - public com.google.protobuf.ProtocolStringList getPoliciesList() { + public com.google.protobuf.ProtocolStringList + getPoliciesList() { policies_.makeImmutable(); return policies_; } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of policies. */ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The policies at the given index. */ @@ -712,49 +646,43 @@ public java.lang.String getPolicies(int index) { return policies_.get(index); } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - public com.google.protobuf.ByteString getPoliciesBytes(int index) { + public com.google.protobuf.ByteString + getPoliciesBytes(int index) { return policies_.getByteString(index); } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The policies to set. * @return This builder for chaining. */ - public Builder setPolicies(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPolicies( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePoliciesIsMutable(); policies_.set(index, value); bitField0_ |= 0x00000001; @@ -762,27 +690,23 @@ public Builder setPolicies(int index, java.lang.String value) { return this; } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param value The policies to add. * @return This builder for chaining. */ - public Builder addPolicies(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPolicies( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePoliciesIsMutable(); policies_.add(value); bitField0_ |= 0x00000001; @@ -790,76 +714,68 @@ public Builder addPolicies(java.lang.String value) { return this; } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param values The policies to add. * @return This builder for chaining. */ - public Builder addAllPolicies(java.lang.Iterable values) { + public Builder addAllPolicies( + java.lang.Iterable values) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policies_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPolicies() { - policies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + policies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
        *
        *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
        *
-       * There is a limit of 10 policies per snooze. This limit is checked during
+       * There is a limit of 16 policies per snooze. This limit is checked during
        * snooze creation.
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the policies to add. * @return This builder for chaining. */ - public Builder addPoliciesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPoliciesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePoliciesIsMutable(); policies_.add(value); @@ -867,7 +783,6 @@ public Builder addPoliciesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -880,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Snooze.Criteria) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Snooze.Criteria) private static final com.google.monitoring.v3.Snooze.Criteria DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Snooze.Criteria(); } @@ -894,28 +809,27 @@ public static com.google.monitoring.v3.Snooze.Criteria getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Criteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Criteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,15 +844,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Snooze.Criteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -948,7 +860,6 @@ public com.google.monitoring.v3.Snooze.Criteria getDefaultInstanceForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -957,15 +868,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -975,15 +885,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -994,17 +905,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CRITERIA_FIELD_NUMBER = 3; private com.google.monitoring.v3.Snooze.Criteria criteria_; /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the criteria field is set. */ @java.lang.Override @@ -1012,49 +918,34 @@ public boolean hasCriteria() { return criteria_ != null; } /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The criteria. */ @java.lang.Override public com.google.monitoring.v3.Snooze.Criteria getCriteria() { - return criteria_ == null - ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() - : criteria_; + return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; } /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() { - return criteria_ == null - ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() - : criteria_; + return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; } public static final int INTERVAL_FIELD_NUMBER = 4; private com.google.monitoring.v3.TimeInterval interval_; /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -1063,10 +954,7 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ @java.lang.Override @@ -1074,8 +962,6 @@ public boolean hasInterval() { return interval_ != null; } /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -1084,21 +970,14 @@ public boolean hasInterval() {
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -1107,31 +986,23 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -1140,30 +1011,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1172,7 +1043,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1184,7 +1054,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1210,10 +1081,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (criteria_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCriteria()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCriteria()); } if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterval()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -1226,23 +1099,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Snooze)) { return super.equals(obj); } com.google.monitoring.v3.Snooze other = (com.google.monitoring.v3.Snooze) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCriteria() != other.hasCriteria()) return false; if (hasCriteria()) { - if (!getCriteria().equals(other.getCriteria())) return false; + if (!getCriteria() + .equals(other.getCriteria())) return false; } if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval().equals(other.getInterval())) return false; + if (!getInterval() + .equals(other.getInterval())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1271,103 +1148,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Snooze parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Snooze parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.Snooze parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.Snooze parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.Snooze parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Snooze parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Snooze parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Snooze parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Snooze parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.Snooze parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Snooze prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `Snooze` will prevent any alerts from being opened, and close any that
    * are already open. The `Snooze` will work on alerts that match the
@@ -1377,31 +1250,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.Snooze}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Snooze)
       com.google.monitoring.v3.SnoozeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeProto
-          .internal_static_google_monitoring_v3_Snooze_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeProto
-          .internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.monitoring.v3.Snooze.class, com.google.monitoring.v3.Snooze.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Snooze.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1422,9 +1297,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeProto
-          .internal_static_google_monitoring_v3_Snooze_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
     }
 
     @java.lang.Override
@@ -1444,9 +1319,7 @@ public com.google.monitoring.v3.Snooze build() {
     @java.lang.Override
     public com.google.monitoring.v3.Snooze buildPartial() {
       com.google.monitoring.v3.Snooze result = new com.google.monitoring.v3.Snooze(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1457,10 +1330,14 @@ private void buildPartial0(com.google.monitoring.v3.Snooze result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.criteria_ = criteriaBuilder_ == null ? criteria_ : criteriaBuilder_.build();
+        result.criteria_ = criteriaBuilder_ == null
+            ? criteria_
+            : criteriaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build();
+        result.interval_ = intervalBuilder_ == null
+            ? interval_
+            : intervalBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.displayName_ = displayName_;
@@ -1471,39 +1348,38 @@ private void buildPartial0(com.google.monitoring.v3.Snooze result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Snooze) {
-        return mergeFrom((com.google.monitoring.v3.Snooze) other);
+        return mergeFrom((com.google.monitoring.v3.Snooze)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1554,37 +1430,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(getCriteriaFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getCriteriaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getIntervalFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1594,13 +1469,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1610,13 +1482,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1625,8 +1497,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1636,14 +1506,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1651,8 +1522,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1662,22 +1531,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1687,7 +1552,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1697,8 +1561,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1708,14 +1570,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1725,61 +1585,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.Snooze.Criteria criteria_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, - com.google.monitoring.v3.Snooze.Criteria.Builder, - com.google.monitoring.v3.Snooze.CriteriaOrBuilder> - criteriaBuilder_; + com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder> criteriaBuilder_; /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The criteria. */ public com.google.monitoring.v3.Snooze.Criteria getCriteria() { if (criteriaBuilder_ == null) { - return criteria_ == null - ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() - : criteria_; + return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; } else { return criteriaBuilder_.getMessage(); } } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria value) { if (criteriaBuilder_ == null) { @@ -1795,18 +1636,15 @@ public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria value) { return this; } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria.Builder builderForValue) { + public Builder setCriteria( + com.google.monitoring.v3.Snooze.Criteria.Builder builderForValue) { if (criteriaBuilder_ == null) { criteria_ = builderForValue.build(); } else { @@ -1817,22 +1655,18 @@ public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria.Builder buil return this; } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCriteria(com.google.monitoring.v3.Snooze.Criteria value) { if (criteriaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && criteria_ != null - && criteria_ != com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + criteria_ != null && + criteria_ != com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance()) { getCriteriaBuilder().mergeFrom(value); } else { criteria_ = value; @@ -1845,16 +1679,12 @@ public Builder mergeCriteria(com.google.monitoring.v3.Snooze.Criteria value) { return this; } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCriteria() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1867,16 +1697,12 @@ public Builder clearCriteria() { return this; } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Snooze.Criteria.Builder getCriteriaBuilder() { bitField0_ |= 0x00000002; @@ -1884,50 +1710,38 @@ public com.google.monitoring.v3.Snooze.Criteria.Builder getCriteriaBuilder() { return getCriteriaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() { if (criteriaBuilder_ != null) { return criteriaBuilder_.getMessageOrBuilder(); } else { - return criteria_ == null - ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() - : criteria_; + return criteria_ == null ? + com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; } } /** - * - * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, - com.google.monitoring.v3.Snooze.Criteria.Builder, - com.google.monitoring.v3.Snooze.CriteriaOrBuilder> + com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder> getCriteriaFieldBuilder() { if (criteriaBuilder_ == null) { - criteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, - com.google.monitoring.v3.Snooze.Criteria.Builder, - com.google.monitoring.v3.Snooze.CriteriaOrBuilder>( - getCriteria(), getParentForChildren(), isClean()); + criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder>( + getCriteria(), + getParentForChildren(), + isClean()); criteria_ = null; } return criteriaBuilder_; @@ -1935,13 +1749,8 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> - intervalBuilder_; + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1950,18 +1759,13 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1970,24 +1774,17 @@ public boolean hasInterval() {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1996,9 +1793,7 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { @@ -2014,8 +1809,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2024,11 +1817,10 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) { + public Builder setInterval( + com.google.monitoring.v3.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); } else { @@ -2039,8 +1831,6 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder return this; } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2049,15 +1839,13 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builder
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && interval_ != null - && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + interval_ != null && + interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getIntervalBuilder().mergeFrom(value); } else { interval_ = value; @@ -2070,8 +1858,6 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2080,9 +1866,7 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInterval() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2095,8 +1879,6 @@ public Builder clearInterval() { return this; } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2105,9 +1887,7 @@ public Builder clearInterval() {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { bitField0_ |= 0x00000004; @@ -2115,8 +1895,6 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { return getIntervalFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2125,22 +1903,17 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { - return interval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : interval_; + return interval_ == null ? + com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; } } /** - * - * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -2149,22 +1922,17 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * the UI.
      * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { - intervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder>( - getInterval(), getParentForChildren(), isClean()); + intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( + getInterval(), + getParentForChildren(), + isClean()); interval_ = null; } return intervalBuilder_; @@ -2172,21 +1940,19 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2195,22 +1961,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2218,37 +1983,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2258,31 +2016,27 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2292,12 +2046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Snooze) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Snooze) private static final com.google.monitoring.v3.Snooze DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Snooze(); } @@ -2306,27 +2060,27 @@ public static com.google.monitoring.v3.Snooze getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snooze parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snooze parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2341,4 +2095,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Snooze getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java similarity index 67% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java index e05acd637acd..0206ed5e4adc 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze.proto package com.google.monitoring.v3; -public interface SnoozeOrBuilder - extends +public interface SnoozeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Snooze) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -35,13 +17,10 @@ public interface SnoozeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -51,58 +30,42 @@ public interface SnoozeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the criteria field is set. */ boolean hasCriteria(); /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The criteria. */ com.google.monitoring.v3.Snooze.Criteria getCriteria(); /** - * - * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder(); /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -111,16 +74,11 @@ public interface SnoozeOrBuilder
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -129,16 +87,11 @@ public interface SnoozeOrBuilder
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** - * - * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -147,36 +100,29 @@ public interface SnoozeOrBuilder
    * the UI.
    * 
* - * - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder(); /** - * - * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java new file mode 100644 index 000000000000..9f73f068a2c0 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze.proto + +package com.google.monitoring.v3; + +public final class SnoozeProto { + private SnoozeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Snooze_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Snooze_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!google/monitoring/v3/snooze.proto\022\024goo" + + "gle.monitoring.v3\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032!g" + + "oogle/monitoring/v3/common.proto\"\311\002\n\006Sno" + + "oze\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022=\n\010criteria\030\003 \001(" + + "\0132%.google.monitoring.v3.Snooze.Criteria" + + "B\004\342A\001\002\022:\n\010interval\030\004 \001(\0132\".google.monito" + + "ring.v3.TimeIntervalB\004\342A\001\002\022\032\n\014display_na" + + "me\030\005 \001(\tB\004\342A\001\002\032H\n\010Criteria\022<\n\010policies\030\001" + + " \003(\tB*\372A\'\n%monitoring.googleapis.com/Ale" + + "rtPolicy:J\352AG\n monitoring.googleapis.com" + + "/Snooze\022#projects/{project}/snoozes/{sno" + + "oze}B\306\001\n\030com.google.monitoring.v3B\013Snooz" + + "eProtoP\001ZAcloud.google.com/go/monitoring" + + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + + "g::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Snooze_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Snooze_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Snooze_descriptor, + new java.lang.String[] { "Name", "Criteria", "Interval", "DisplayName", }); + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor = + internal_static_google_monitoring_v3_Snooze_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor, + new java.lang.String[] { "Policies", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java new file mode 100644 index 000000000000..56e9b3a77874 --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze_service.proto + +package com.google.monitoring.v3; + +public final class SnoozeServiceProto { + private SnoozeServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/snooze_service.pr" + + "oto\022\024google.monitoring.v3\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032!google/monitoring/" + + "v3/snooze.proto\032 google/protobuf/field_m" + + "ask.proto\"\204\001\n\023CreateSnoozeRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\342A\001\002\372A\"\022 monitoring.googleapi" + + "s.com/Snooze\0222\n\006snooze\030\002 \001(\0132\034.google.mo" + + "nitoring.v3.SnoozeB\004\342A\001\002\"\230\001\n\022ListSnoozes" + + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 monito" + + "ring.googleapis.com/Snooze\022\024\n\006filter\030\002 \001" + + "(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npag" + + "e_token\030\005 \001(\tB\004\342A\001\001\"]\n\023ListSnoozesRespon" + + "se\022-\n\007snoozes\030\001 \003(\0132\034.google.monitoring." + + "v3.Snooze\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020Ge" + + "tSnoozeRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n m" + + "onitoring.googleapis.com/Snooze\"\200\001\n\023Upda" + + "teSnoozeRequest\0222\n\006snooze\030\001 \001(\0132\034.google" + + ".monitoring.v3.SnoozeB\004\342A\001\002\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\0022\230\006\n\rSnoozeService\022\230\001\n\014CreateSnooze\022)." + + "google.monitoring.v3.CreateSnoozeRequest" + + "\032\034.google.monitoring.v3.Snooze\"?\332A\rparen" + + "t,snooze\202\323\344\223\002)\"\037/v3/{parent=projects/*}/" + + "snoozes:\006snooze\022\224\001\n\013ListSnoozes\022(.google" + + ".monitoring.v3.ListSnoozesRequest\032).goog" + + "le.monitoring.v3.ListSnoozesResponse\"0\332A" + + "\006parent\202\323\344\223\002!\022\037/v3/{parent=projects/*}/s" + + "noozes\022\201\001\n\tGetSnooze\022&.google.monitoring" + + ".v3.GetSnoozeRequest\032\034.google.monitoring" + + ".v3.Snooze\".\332A\004name\202\323\344\223\002!\022\037/v3/{name=pro" + + "jects/*/snoozes/*}\022\244\001\n\014UpdateSnooze\022).go" + + "ogle.monitoring.v3.UpdateSnoozeRequest\032\034" + + ".google.monitoring.v3.Snooze\"K\332A\022snooze," + + "update_mask\202\323\344\223\00202&/v3/{snooze.name=proj" + + "ects/*/snoozes/*}:\006snooze\032\251\001\312A\031monitorin" + + "g.googleapis.com\322A\211\001https://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/monitoring,https://ww" + + "w.googleapis.com/auth/monitoring.readB\315\001" + + "\n\030com.google.monitoring.v3B\022SnoozeServic" + + "eProtoP\001ZAcloud.google.com/go/monitoring" + + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + + "g::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.SnoozeProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor, + new java.lang.String[] { "Parent", "Snooze", }); + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor, + new java.lang.String[] { "Snoozes", "NextPageToken", }); + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor, + new java.lang.String[] { "Snooze", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.SnoozeProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java similarity index 69% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java index 15212ded0256..9bbd078ae26f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/span_context.proto package com.google.monitoring.v3; /** - * - * *
  * The context of a span. This is attached to an
  * [Exemplar][google.api.Distribution.Exemplar]
@@ -33,48 +16,43 @@
  *
  * Protobuf type {@code google.monitoring.v3.SpanContext}
  */
-public final class SpanContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpanContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.SpanContext)
     SpanContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpanContext.newBuilder() to construct.
   private SpanContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SpanContext() {
     spanName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpanContext();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SpanContextProto
-        .internal_static_google_monitoring_v3_SpanContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SpanContextProto
-        .internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
+    return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.SpanContext.class,
-            com.google.monitoring.v3.SpanContext.Builder.class);
+            com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class);
   }
 
   public static final int SPAN_NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object spanName_ = "";
   /**
-   *
-   *
    * 
    * The resource name of the span. The format is:
    *
@@ -88,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string span_name = 1; - * * @return The spanName. */ @java.lang.Override @@ -97,15 +74,14 @@ public java.lang.String getSpanName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanName_ = s; return s; } } /** - * - * *
    * The resource name of the span. The format is:
    *
@@ -119,15 +95,16 @@ public java.lang.String getSpanName() {
    * 
* * string span_name = 1; - * * @return The bytes for spanName. */ @java.lang.Override - public com.google.protobuf.ByteString getSpanNameBytes() { + public com.google.protobuf.ByteString + getSpanNameBytes() { java.lang.Object ref = spanName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spanName_ = b; return b; } else { @@ -136,7 +113,6 @@ public com.google.protobuf.ByteString getSpanNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, spanName_); } @@ -172,14 +149,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.SpanContext)) { return super.equals(obj); } com.google.monitoring.v3.SpanContext other = (com.google.monitoring.v3.SpanContext) obj; - if (!getSpanName().equals(other.getSpanName())) return false; + if (!getSpanName() + .equals(other.getSpanName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,103 +176,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.SpanContext parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.SpanContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SpanContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.SpanContext parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.SpanContext parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SpanContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SpanContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.SpanContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SpanContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SpanContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.SpanContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.SpanContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.SpanContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SpanContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.SpanContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The context of a span. This is attached to an
    * [Exemplar][google.api.Distribution.Exemplar]
@@ -307,32 +281,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.SpanContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.SpanContext)
       com.google.monitoring.v3.SpanContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SpanContextProto
-          .internal_static_google_monitoring_v3_SpanContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SpanContextProto
-          .internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
+      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.SpanContext.class,
-              com.google.monitoring.v3.SpanContext.Builder.class);
+              com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.SpanContext.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -342,9 +317,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SpanContextProto
-          .internal_static_google_monitoring_v3_SpanContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
     }
 
     @java.lang.Override
@@ -364,9 +339,7 @@ public com.google.monitoring.v3.SpanContext build() {
     @java.lang.Override
     public com.google.monitoring.v3.SpanContext buildPartial() {
       com.google.monitoring.v3.SpanContext result = new com.google.monitoring.v3.SpanContext(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -382,39 +355,38 @@ private void buildPartial0(com.google.monitoring.v3.SpanContext result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.SpanContext) {
-        return mergeFrom((com.google.monitoring.v3.SpanContext) other);
+        return mergeFrom((com.google.monitoring.v3.SpanContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -454,19 +426,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                spanName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              spanName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -476,13 +446,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object spanName_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the span. The format is:
      *
@@ -496,13 +463,13 @@ public Builder mergeFrom(
      * 
* * string span_name = 1; - * * @return The spanName. */ public java.lang.String getSpanName() { java.lang.Object ref = spanName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanName_ = s; return s; @@ -511,8 +478,6 @@ public java.lang.String getSpanName() { } } /** - * - * *
      * The resource name of the span. The format is:
      *
@@ -526,14 +491,15 @@ public java.lang.String getSpanName() {
      * 
* * string span_name = 1; - * * @return The bytes for spanName. */ - public com.google.protobuf.ByteString getSpanNameBytes() { + public com.google.protobuf.ByteString + getSpanNameBytes() { java.lang.Object ref = spanName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spanName_ = b; return b; } else { @@ -541,8 +507,6 @@ public com.google.protobuf.ByteString getSpanNameBytes() { } } /** - * - * *
      * The resource name of the span. The format is:
      *
@@ -556,22 +520,18 @@ public com.google.protobuf.ByteString getSpanNameBytes() {
      * 
* * string span_name = 1; - * * @param value The spanName to set. * @return This builder for chaining. */ - public Builder setSpanName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpanName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spanName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the span. The format is:
      *
@@ -585,7 +545,6 @@ public Builder setSpanName(java.lang.String value) {
      * 
* * string span_name = 1; - * * @return This builder for chaining. */ public Builder clearSpanName() { @@ -595,8 +554,6 @@ public Builder clearSpanName() { return this; } /** - * - * *
      * The resource name of the span. The format is:
      *
@@ -610,23 +567,21 @@ public Builder clearSpanName() {
      * 
* * string span_name = 1; - * * @param value The bytes for spanName to set. * @return This builder for chaining. */ - public Builder setSpanNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpanNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spanName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.SpanContext) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) private static final com.google.monitoring.v3.SpanContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.SpanContext(); } @@ -650,27 +605,27 @@ public static com.google.monitoring.v3.SpanContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpanContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpanContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -685,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.SpanContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java index cf6f658cdd2d..b4cbdf1d7a43 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/span_context.proto package com.google.monitoring.v3; -public interface SpanContextOrBuilder - extends +public interface SpanContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SpanContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the span. The format is:
    *
@@ -39,13 +21,10 @@ public interface SpanContextOrBuilder
    * 
* * string span_name = 1; - * * @return The spanName. */ java.lang.String getSpanName(); /** - * - * *
    * The resource name of the span. The format is:
    *
@@ -59,8 +38,8 @@ public interface SpanContextOrBuilder
    * 
* * string span_name = 1; - * * @return The bytes for spanName. */ - com.google.protobuf.ByteString getSpanNameBytes(); + com.google.protobuf.ByteString + getSpanNameBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java new file mode 100644 index 000000000000..8dd1702de8fc --- /dev/null +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/span_context.proto + +package com.google.monitoring.v3; + +public final class SpanContextProto { + private SpanContextProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_SpanContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/monitoring/v3/span_context.prot" + + "o\022\024google.monitoring.v3\" \n\013SpanContext\022\021" + + "\n\tspan_name\030\001 \001(\tB\313\001\n\030com.google.monitor" + + "ing.v3B\020SpanContextProtoP\001ZAcloud.google" + + ".com/go/monitoring/apiv3/v2/monitoringpb" + + ";monitoringpb\252\002\032Google.Cloud.Monitoring." + + "V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google" + + "::Cloud::Monitoring::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_monitoring_v3_SpanContext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_SpanContext_descriptor, + new java.lang.String[] { "SpanName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java index 03e7a8c24319..fda1a068f73a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** - * - * *
  * A locator for text. Indicates a particular part of the text of a request or
  * of an object referenced in the request.
@@ -46,16 +29,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.TextLocator}
  */
-public final class TextLocator extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TextLocator extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator)
     TextLocatorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TextLocator.newBuilder() to construct.
   private TextLocator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TextLocator() {
     source_ = "";
     nestingReason_ = "";
@@ -63,110 +45,96 @@ private TextLocator() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TextLocator();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TextLocator_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TextLocator.class,
-            com.google.monitoring.v3.TextLocator.Builder.class);
+            com.google.monitoring.v3.TextLocator.class, com.google.monitoring.v3.TextLocator.Builder.class);
   }
 
-  public interface PositionOrBuilder
-      extends
+  public interface PositionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TextLocator.Position)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The line, starting with 1, where the byte is positioned.
      * 
* * int32 line = 1; - * * @return The line. */ int getLine(); /** - * - * *
      * The column within the line, starting with 1, where the byte is
      * positioned. This is a byte index even though the text is UTF-8.
      * 
* * int32 column = 2; - * * @return The column. */ int getColumn(); } /** - * - * *
    * The position of a byte within the text.
    * 
* * Protobuf type {@code google.monitoring.v3.TextLocator.Position} */ - public static final class Position extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Position extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator.Position) PositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Position() {} + private Position() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Position(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TextLocator.Position.class, - com.google.monitoring.v3.TextLocator.Position.Builder.class); + com.google.monitoring.v3.TextLocator.Position.class, com.google.monitoring.v3.TextLocator.Position.Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private int line_ = 0; /** - * - * *
      * The line, starting with 1, where the byte is positioned.
      * 
* * int32 line = 1; - * * @return The line. */ @java.lang.Override @@ -177,15 +145,12 @@ public int getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private int column_ = 0; /** - * - * *
      * The column within the line, starting with 1, where the byte is
      * positioned. This is a byte index even though the text is UTF-8.
      * 
* * int32 column = 2; - * * @return The column. */ @java.lang.Override @@ -194,7 +159,6 @@ public int getColumn() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (line_ != 0) { output.writeInt32(1, line_); } @@ -223,10 +188,12 @@ public int getSerializedSize() { size = 0; if (line_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, line_); } if (column_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, column_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TextLocator.Position)) { return super.equals(obj); } - com.google.monitoring.v3.TextLocator.Position other = - (com.google.monitoring.v3.TextLocator.Position) obj; + com.google.monitoring.v3.TextLocator.Position other = (com.google.monitoring.v3.TextLocator.Position) obj; - if (getLine() != other.getLine()) return false; - if (getColumn() != other.getColumn()) return false; + if (getLine() + != other.getLine()) return false; + if (getColumn() + != other.getColumn()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,94 +234,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TextLocator.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TextLocator.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -363,41 +327,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The position of a byte within the text.
      * 
* * Protobuf type {@code google.monitoring.v3.TextLocator.Position} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TextLocator.Position) com.google.monitoring.v3.TextLocator.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TextLocator.Position.class, - com.google.monitoring.v3.TextLocator.Position.Builder.class); + com.google.monitoring.v3.TextLocator.Position.class, com.google.monitoring.v3.TextLocator.Position.Builder.class); } // Construct using com.google.monitoring.v3.TextLocator.Position.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override @@ -429,11 +391,8 @@ public com.google.monitoring.v3.TextLocator.Position build() { @java.lang.Override public com.google.monitoring.v3.TextLocator.Position buildPartial() { - com.google.monitoring.v3.TextLocator.Position result = - new com.google.monitoring.v3.TextLocator.Position(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.TextLocator.Position result = new com.google.monitoring.v3.TextLocator.Position(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -452,41 +411,38 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator.Position result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TextLocator.Position) { - return mergeFrom((com.google.monitoring.v3.TextLocator.Position) other); + return mergeFrom((com.google.monitoring.v3.TextLocator.Position)other); } else { super.mergeFrom(other); return this; @@ -494,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.TextLocator.Position other) { - if (other == com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) return this; if (other.getLine() != 0) { setLine(other.getLine()); } @@ -528,25 +483,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - line_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - column_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + column_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,19 +508,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int line_; + private int line_ ; /** - * - * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; - * * @return The line. */ @java.lang.Override @@ -576,14 +524,11 @@ public int getLine() { return line_; } /** - * - * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; - * * @param value The line to set. * @return This builder for chaining. */ @@ -595,14 +540,11 @@ public Builder setLine(int value) { return this; } /** - * - * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; - * * @return This builder for chaining. */ public Builder clearLine() { @@ -612,17 +554,14 @@ public Builder clearLine() { return this; } - private int column_; + private int column_ ; /** - * - * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; - * * @return The column. */ @java.lang.Override @@ -630,15 +569,12 @@ public int getColumn() { return column_; } /** - * - * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; - * * @param value The column to set. * @return This builder for chaining. */ @@ -650,15 +586,12 @@ public Builder setColumn(int value) { return this; } /** - * - * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; - * * @return This builder for chaining. */ public Builder clearColumn() { @@ -667,7 +600,6 @@ public Builder clearColumn() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -680,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator.Position) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator.Position) private static final com.google.monitoring.v3.TextLocator.Position DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator.Position(); } @@ -694,28 +626,27 @@ public static com.google.monitoring.v3.TextLocator.Position getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,15 +661,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TextLocator.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SOURCE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** - * - * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -750,7 +679,6 @@ public com.google.monitoring.v3.TextLocator.Position getDefaultInstanceForType()
    * 
* * string source = 1; - * * @return The source. */ @java.lang.Override @@ -759,15 +687,14 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** - * - * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -779,15 +706,16 @@ public java.lang.String getSource() {
    * 
* * string source = 1; - * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -798,14 +726,11 @@ public com.google.protobuf.ByteString getSourceBytes() { public static final int START_POSITION_FIELD_NUMBER = 2; private com.google.monitoring.v3.TextLocator.Position startPosition_; /** - * - * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return Whether the startPosition field is set. */ @java.lang.Override @@ -813,25 +738,18 @@ public boolean hasStartPosition() { return startPosition_ != null; } /** - * - * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return The startPosition. */ @java.lang.Override public com.google.monitoring.v3.TextLocator.Position getStartPosition() { - return startPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : startPosition_; + return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; } /** - * - * *
    * The position of the first byte within the text.
    * 
@@ -840,22 +758,17 @@ public com.google.monitoring.v3.TextLocator.Position getStartPosition() { */ @java.lang.Override public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder() { - return startPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : startPosition_; + return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; } public static final int END_POSITION_FIELD_NUMBER = 3; private com.google.monitoring.v3.TextLocator.Position endPosition_; /** - * - * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return Whether the endPosition field is set. */ @java.lang.Override @@ -863,25 +776,18 @@ public boolean hasEndPosition() { return endPosition_ != null; } /** - * - * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return The endPosition. */ @java.lang.Override public com.google.monitoring.v3.TextLocator.Position getEndPosition() { - return endPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : endPosition_; + return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; } /** - * - * *
    * The position of the last byte within the text.
    * 
@@ -890,16 +796,12 @@ public com.google.monitoring.v3.TextLocator.Position getEndPosition() { */ @java.lang.Override public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder() { - return endPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : endPosition_; + return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; } public static final int NESTED_LOCATOR_FIELD_NUMBER = 4; private com.google.monitoring.v3.TextLocator nestedLocator_; /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -908,7 +810,6 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return Whether the nestedLocator field is set. */ @java.lang.Override @@ -916,8 +817,6 @@ public boolean hasNestedLocator() { return nestedLocator_ != null; } /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -926,18 +825,13 @@ public boolean hasNestedLocator() {
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return The nestedLocator. */ @java.lang.Override public com.google.monitoring.v3.TextLocator getNestedLocator() { - return nestedLocator_ == null - ? com.google.monitoring.v3.TextLocator.getDefaultInstance() - : nestedLocator_; + return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_; } /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -949,18 +843,13 @@ public com.google.monitoring.v3.TextLocator getNestedLocator() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder() {
-    return nestedLocator_ == null
-        ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
-        : nestedLocator_;
+    return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_;
   }
 
   public static final int NESTING_REASON_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nestingReason_ = "";
   /**
-   *
-   *
    * 
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -971,7 +860,6 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
    * 
* * string nesting_reason = 5; - * * @return The nestingReason. */ @java.lang.Override @@ -980,15 +868,14 @@ public java.lang.String getNestingReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nestingReason_ = s; return s; } } /** - * - * *
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -999,15 +886,16 @@ public java.lang.String getNestingReason() {
    * 
* * string nesting_reason = 5; - * * @return The bytes for nestingReason. */ @java.lang.Override - public com.google.protobuf.ByteString getNestingReasonBytes() { + public com.google.protobuf.ByteString + getNestingReasonBytes() { java.lang.Object ref = nestingReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nestingReason_ = b; return b; } else { @@ -1016,7 +904,6 @@ public com.google.protobuf.ByteString getNestingReasonBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1028,7 +915,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } @@ -1057,13 +945,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); } if (startPosition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartPosition()); } if (endPosition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndPosition()); } if (nestedLocator_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNestedLocator()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNestedLocator()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nestingReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nestingReason_); @@ -1076,27 +967,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TextLocator)) { return super.equals(obj); } com.google.monitoring.v3.TextLocator other = (com.google.monitoring.v3.TextLocator) obj; - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; if (hasStartPosition() != other.hasStartPosition()) return false; if (hasStartPosition()) { - if (!getStartPosition().equals(other.getStartPosition())) return false; + if (!getStartPosition() + .equals(other.getStartPosition())) return false; } if (hasEndPosition() != other.hasEndPosition()) return false; if (hasEndPosition()) { - if (!getEndPosition().equals(other.getEndPosition())) return false; + if (!getEndPosition() + .equals(other.getEndPosition())) return false; } if (hasNestedLocator() != other.hasNestedLocator()) return false; if (hasNestedLocator()) { - if (!getNestedLocator().equals(other.getNestedLocator())) return false; + if (!getNestedLocator() + .equals(other.getNestedLocator())) return false; } - if (!getNestingReason().equals(other.getNestingReason())) return false; + if (!getNestingReason() + .equals(other.getNestingReason())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1129,103 +1025,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TextLocator parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TextLocator parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TextLocator parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.TextLocator parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TextLocator parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TextLocator parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TextLocator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TextLocator parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TextLocator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TextLocator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A locator for text. Indicates a particular part of the text of a request or
    * of an object referenced in the request.
@@ -1251,32 +1143,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.TextLocator}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TextLocator)
       com.google.monitoring.v3.TextLocatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TextLocator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TextLocator.class,
-              com.google.monitoring.v3.TextLocator.Builder.class);
+              com.google.monitoring.v3.TextLocator.class, com.google.monitoring.v3.TextLocator.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TextLocator.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1302,9 +1195,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TextLocator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
     }
 
     @java.lang.Override
@@ -1324,9 +1217,7 @@ public com.google.monitoring.v3.TextLocator build() {
     @java.lang.Override
     public com.google.monitoring.v3.TextLocator buildPartial() {
       com.google.monitoring.v3.TextLocator result = new com.google.monitoring.v3.TextLocator(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1337,16 +1228,19 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator result) {
         result.source_ = source_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startPosition_ =
-            startPositionBuilder_ == null ? startPosition_ : startPositionBuilder_.build();
+        result.startPosition_ = startPositionBuilder_ == null
+            ? startPosition_
+            : startPositionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endPosition_ =
-            endPositionBuilder_ == null ? endPosition_ : endPositionBuilder_.build();
+        result.endPosition_ = endPositionBuilder_ == null
+            ? endPosition_
+            : endPositionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.nestedLocator_ =
-            nestedLocatorBuilder_ == null ? nestedLocator_ : nestedLocatorBuilder_.build();
+        result.nestedLocator_ = nestedLocatorBuilder_ == null
+            ? nestedLocator_
+            : nestedLocatorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.nestingReason_ = nestingReason_;
@@ -1357,39 +1251,38 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TextLocator) {
-        return mergeFrom((com.google.monitoring.v3.TextLocator) other);
+        return mergeFrom((com.google.monitoring.v3.TextLocator)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1443,43 +1336,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                source_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getStartPositionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndPositionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getNestedLocatorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                nestingReason_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              source_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getStartPositionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndPositionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getNestedLocatorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              nestingReason_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1489,13 +1382,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object source_ = "";
     /**
-     *
-     *
      * 
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1507,13 +1397,13 @@ public Builder mergeFrom(
      * 
* * string source = 1; - * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -1522,8 +1412,6 @@ public java.lang.String getSource() { } } /** - * - * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1535,14 +1423,15 @@ public java.lang.String getSource() {
      * 
* * string source = 1; - * * @return The bytes for source. */ - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -1550,8 +1439,6 @@ public com.google.protobuf.ByteString getSourceBytes() { } } /** - * - * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1563,22 +1450,18 @@ public com.google.protobuf.ByteString getSourceBytes() {
      * 
* * string source = 1; - * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1590,7 +1473,6 @@ public Builder setSource(java.lang.String value) {
      * 
* * string source = 1; - * * @return This builder for chaining. */ public Builder clearSource() { @@ -1600,8 +1482,6 @@ public Builder clearSource() { return this; } /** - * - * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1613,14 +1493,12 @@ public Builder clearSource() {
      * 
* * string source = 1; - * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000001; @@ -1630,47 +1508,34 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.TextLocator.Position startPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder> - startPositionBuilder_; + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> startPositionBuilder_; /** - * - * *
      * The position of the first byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return Whether the startPosition field is set. */ public boolean hasStartPosition() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The position of the first byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return The startPosition. */ public com.google.monitoring.v3.TextLocator.Position getStartPosition() { if (startPositionBuilder_ == null) { - return startPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : startPosition_; + return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; } else { return startPositionBuilder_.getMessage(); } } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1691,8 +1556,6 @@ public Builder setStartPosition(com.google.monitoring.v3.TextLocator.Position va return this; } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1711,8 +1574,6 @@ public Builder setStartPosition( return this; } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1721,10 +1582,9 @@ public Builder setStartPosition( */ public Builder mergeStartPosition(com.google.monitoring.v3.TextLocator.Position value) { if (startPositionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startPosition_ != null - && startPosition_ - != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startPosition_ != null && + startPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { getStartPositionBuilder().mergeFrom(value); } else { startPosition_ = value; @@ -1737,8 +1597,6 @@ public Builder mergeStartPosition(com.google.monitoring.v3.TextLocator.Position return this; } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1756,8 +1614,6 @@ public Builder clearStartPosition() { return this; } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1770,8 +1626,6 @@ public com.google.monitoring.v3.TextLocator.Position.Builder getStartPositionBui return getStartPositionFieldBuilder().getBuilder(); } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1782,14 +1636,11 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr if (startPositionBuilder_ != null) { return startPositionBuilder_.getMessageOrBuilder(); } else { - return startPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : startPosition_; + return startPosition_ == null ? + com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; } } /** - * - * *
      * The position of the first byte within the text.
      * 
@@ -1797,17 +1648,14 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr * .google.monitoring.v3.TextLocator.Position start_position = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder> + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> getStartPositionFieldBuilder() { if (startPositionBuilder_ == null) { - startPositionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder>( - getStartPosition(), getParentForChildren(), isClean()); + startPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder>( + getStartPosition(), + getParentForChildren(), + isClean()); startPosition_ = null; } return startPositionBuilder_; @@ -1815,47 +1663,34 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr private com.google.monitoring.v3.TextLocator.Position endPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder> - endPositionBuilder_; + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> endPositionBuilder_; /** - * - * *
      * The position of the last byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return Whether the endPosition field is set. */ public boolean hasEndPosition() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The position of the last byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return The endPosition. */ public com.google.monitoring.v3.TextLocator.Position getEndPosition() { if (endPositionBuilder_ == null) { - return endPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : endPosition_; + return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; } else { return endPositionBuilder_.getMessage(); } } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1876,8 +1711,6 @@ public Builder setEndPosition(com.google.monitoring.v3.TextLocator.Position valu return this; } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1896,8 +1729,6 @@ public Builder setEndPosition( return this; } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1906,9 +1737,9 @@ public Builder setEndPosition( */ public Builder mergeEndPosition(com.google.monitoring.v3.TextLocator.Position value) { if (endPositionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endPosition_ != null - && endPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endPosition_ != null && + endPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { getEndPositionBuilder().mergeFrom(value); } else { endPosition_ = value; @@ -1921,8 +1752,6 @@ public Builder mergeEndPosition(com.google.monitoring.v3.TextLocator.Position va return this; } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1940,8 +1769,6 @@ public Builder clearEndPosition() { return this; } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1954,8 +1781,6 @@ public com.google.monitoring.v3.TextLocator.Position.Builder getEndPositionBuild return getEndPositionFieldBuilder().getBuilder(); } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1966,14 +1791,11 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu if (endPositionBuilder_ != null) { return endPositionBuilder_.getMessageOrBuilder(); } else { - return endPosition_ == null - ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() - : endPosition_; + return endPosition_ == null ? + com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; } } /** - * - * *
      * The position of the last byte within the text.
      * 
@@ -1981,17 +1803,14 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu * .google.monitoring.v3.TextLocator.Position end_position = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder> + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> getEndPositionFieldBuilder() { if (endPositionBuilder_ == null) { - endPositionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, - com.google.monitoring.v3.TextLocator.Position.Builder, - com.google.monitoring.v3.TextLocator.PositionOrBuilder>( - getEndPosition(), getParentForChildren(), isClean()); + endPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder>( + getEndPosition(), + getParentForChildren(), + isClean()); endPosition_ = null; } return endPositionBuilder_; @@ -1999,13 +1818,8 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu private com.google.monitoring.v3.TextLocator nestedLocator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator, - com.google.monitoring.v3.TextLocator.Builder, - com.google.monitoring.v3.TextLocatorOrBuilder> - nestedLocatorBuilder_; + com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> nestedLocatorBuilder_; /** - * - * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2014,15 +1828,12 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu
      * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return Whether the nestedLocator field is set. */ public boolean hasNestedLocator() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2031,21 +1842,16 @@ public boolean hasNestedLocator() {
      * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return The nestedLocator. */ public com.google.monitoring.v3.TextLocator getNestedLocator() { if (nestedLocatorBuilder_ == null) { - return nestedLocator_ == null - ? com.google.monitoring.v3.TextLocator.getDefaultInstance() - : nestedLocator_; + return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_; } else { return nestedLocatorBuilder_.getMessage(); } } /** - * - * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2069,8 +1875,6 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2080,7 +1884,8 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator value) {
      *
      * .google.monitoring.v3.TextLocator nested_locator = 4;
      */
-    public Builder setNestedLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+    public Builder setNestedLocator(
+        com.google.monitoring.v3.TextLocator.Builder builderForValue) {
       if (nestedLocatorBuilder_ == null) {
         nestedLocator_ = builderForValue.build();
       } else {
@@ -2091,8 +1896,6 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2104,9 +1907,9 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator.Builder bui
      */
     public Builder mergeNestedLocator(com.google.monitoring.v3.TextLocator value) {
       if (nestedLocatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && nestedLocator_ != null
-            && nestedLocator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          nestedLocator_ != null &&
+          nestedLocator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
           getNestedLocatorBuilder().mergeFrom(value);
         } else {
           nestedLocator_ = value;
@@ -2119,8 +1922,6 @@ public Builder mergeNestedLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2141,8 +1942,6 @@ public Builder clearNestedLocator() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2158,8 +1957,6 @@ public com.google.monitoring.v3.TextLocator.Builder getNestedLocatorBuilder() {
       return getNestedLocatorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2173,14 +1970,11 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
       if (nestedLocatorBuilder_ != null) {
         return nestedLocatorBuilder_.getMessageOrBuilder();
       } else {
-        return nestedLocator_ == null
-            ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
-            : nestedLocator_;
+        return nestedLocator_ == null ?
+            com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_;
       }
     }
     /**
-     *
-     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -2191,17 +1985,14 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
      * .google.monitoring.v3.TextLocator nested_locator = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TextLocator,
-            com.google.monitoring.v3.TextLocator.Builder,
-            com.google.monitoring.v3.TextLocatorOrBuilder>
+        com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> 
         getNestedLocatorFieldBuilder() {
       if (nestedLocatorBuilder_ == null) {
-        nestedLocatorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.TextLocator,
-                com.google.monitoring.v3.TextLocator.Builder,
-                com.google.monitoring.v3.TextLocatorOrBuilder>(
-                getNestedLocator(), getParentForChildren(), isClean());
+        nestedLocatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder>(
+                getNestedLocator(),
+                getParentForChildren(),
+                isClean());
         nestedLocator_ = null;
       }
       return nestedLocatorBuilder_;
@@ -2209,8 +2000,6 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
 
     private java.lang.Object nestingReason_ = "";
     /**
-     *
-     *
      * 
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2221,13 +2010,13 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
      * 
* * string nesting_reason = 5; - * * @return The nestingReason. */ public java.lang.String getNestingReason() { java.lang.Object ref = nestingReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nestingReason_ = s; return s; @@ -2236,8 +2025,6 @@ public java.lang.String getNestingReason() { } } /** - * - * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2248,14 +2035,15 @@ public java.lang.String getNestingReason() {
      * 
* * string nesting_reason = 5; - * * @return The bytes for nestingReason. */ - public com.google.protobuf.ByteString getNestingReasonBytes() { + public com.google.protobuf.ByteString + getNestingReasonBytes() { java.lang.Object ref = nestingReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nestingReason_ = b; return b; } else { @@ -2263,8 +2051,6 @@ public com.google.protobuf.ByteString getNestingReasonBytes() { } } /** - * - * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2275,22 +2061,18 @@ public com.google.protobuf.ByteString getNestingReasonBytes() {
      * 
* * string nesting_reason = 5; - * * @param value The nestingReason to set. * @return This builder for chaining. */ - public Builder setNestingReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNestingReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nestingReason_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2301,7 +2083,6 @@ public Builder setNestingReason(java.lang.String value) {
      * 
* * string nesting_reason = 5; - * * @return This builder for chaining. */ public Builder clearNestingReason() { @@ -2311,8 +2092,6 @@ public Builder clearNestingReason() { return this; } /** - * - * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2323,23 +2102,21 @@ public Builder clearNestingReason() {
      * 
* * string nesting_reason = 5; - * * @param value The bytes for nestingReason to set. * @return This builder for chaining. */ - public Builder setNestingReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNestingReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nestingReason_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2349,12 +2126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator) private static final com.google.monitoring.v3.TextLocator DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator(); } @@ -2363,27 +2140,27 @@ public static com.google.monitoring.v3.TextLocator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextLocator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextLocator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2398,4 +2175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TextLocator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java similarity index 85% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java index b23f8279a553..cbf6e25ab51f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TextLocatorOrBuilder - extends +public interface TextLocatorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TextLocator) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -37,13 +19,10 @@ public interface TextLocatorOrBuilder
    * 
* * string source = 1; - * * @return The source. */ java.lang.String getSource(); /** - * - * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -55,38 +34,30 @@ public interface TextLocatorOrBuilder
    * 
* * string source = 1; - * * @return The bytes for source. */ - com.google.protobuf.ByteString getSourceBytes(); + com.google.protobuf.ByteString + getSourceBytes(); /** - * - * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return Whether the startPosition field is set. */ boolean hasStartPosition(); /** - * - * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; - * * @return The startPosition. */ com.google.monitoring.v3.TextLocator.Position getStartPosition(); /** - * - * *
    * The position of the first byte within the text.
    * 
@@ -96,32 +67,24 @@ public interface TextLocatorOrBuilder com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder(); /** - * - * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return Whether the endPosition field is set. */ boolean hasEndPosition(); /** - * - * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; - * * @return The endPosition. */ com.google.monitoring.v3.TextLocator.Position getEndPosition(); /** - * - * *
    * The position of the last byte within the text.
    * 
@@ -131,8 +94,6 @@ public interface TextLocatorOrBuilder com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder(); /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -141,13 +102,10 @@ public interface TextLocatorOrBuilder
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return Whether the nestedLocator field is set. */ boolean hasNestedLocator(); /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -156,13 +114,10 @@ public interface TextLocatorOrBuilder
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; - * * @return The nestedLocator. */ com.google.monitoring.v3.TextLocator getNestedLocator(); /** - * - * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -175,8 +130,6 @@ public interface TextLocatorOrBuilder
   com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder();
 
   /**
-   *
-   *
    * 
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -187,13 +140,10 @@ public interface TextLocatorOrBuilder
    * 
* * string nesting_reason = 5; - * * @return The nestingReason. */ java.lang.String getNestingReason(); /** - * - * *
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -204,8 +154,8 @@ public interface TextLocatorOrBuilder
    * 
* * string nesting_reason = 5; - * * @return The bytes for nestingReason. */ - com.google.protobuf.ByteString getNestingReasonBytes(); + com.google.protobuf.ByteString + getNestingReasonBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java index a0466e356425..7e2bf998efef 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** - * - * *
  * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
  *
@@ -54,50 +37,46 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeInterval}
  */
-public final class TimeInterval extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeInterval extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeInterval)
     TimeIntervalOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeInterval.newBuilder() to construct.
   private TimeInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TimeInterval() {}
+  private TimeInterval() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.CommonProto
-        .internal_static_google_monitoring_v3_TimeInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.CommonProto
-        .internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
+    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeInterval.class,
-            com.google.monitoring.v3.TimeInterval.Builder.class);
+            com.google.monitoring.v3.TimeInterval.class, com.google.monitoring.v3.TimeInterval.Builder.class);
   }
 
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
-   *
-   *
    * 
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -105,14 +84,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -120,8 +96,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Required. The end of the time interval.
    * 
@@ -136,8 +110,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -145,7 +117,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -153,8 +124,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -162,7 +131,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -170,8 +138,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -186,7 +152,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -198,7 +163,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -215,10 +181,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -228,7 +196,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.TimeInterval)) {
       return super.equals(obj);
@@ -237,11 +205,13 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime().equals(other.getStartTime())) return false;
+      if (!getStartTime()
+          .equals(other.getStartTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -267,103 +237,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.TimeInterval parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.TimeInterval parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.monitoring.v3.TimeInterval parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.monitoring.v3.TimeInterval parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.TimeInterval parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.TimeInterval parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.TimeInterval parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.TimeInterval prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
    *
@@ -397,32 +363,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.TimeInterval}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeInterval)
       com.google.monitoring.v3.TimeIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_TimeInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeInterval.class,
-              com.google.monitoring.v3.TimeInterval.Builder.class);
+              com.google.monitoring.v3.TimeInterval.class, com.google.monitoring.v3.TimeInterval.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeInterval.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -441,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.CommonProto
-          .internal_static_google_monitoring_v3_TimeInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
     }
 
     @java.lang.Override
@@ -462,11 +429,8 @@ public com.google.monitoring.v3.TimeInterval build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeInterval buildPartial() {
-      com.google.monitoring.v3.TimeInterval result =
-          new com.google.monitoring.v3.TimeInterval(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.TimeInterval result = new com.google.monitoring.v3.TimeInterval(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -474,10 +438,14 @@ public com.google.monitoring.v3.TimeInterval buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.TimeInterval result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
     }
 
@@ -485,39 +453,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeInterval result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeInterval) {
-        return mergeFrom((com.google.monitoring.v3.TimeInterval) other);
+        return mergeFrom((com.google.monitoring.v3.TimeInterval)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -558,25 +525,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -586,38 +554,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -628,8 +586,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -650,15 +606,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -669,8 +624,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -679,9 +632,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -694,8 +647,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -713,8 +664,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -727,8 +676,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -739,12 +686,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Required. The end of the time interval.
      * 
@@ -752,17 +698,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -770,13 +713,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -784,15 +722,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -800,7 +735,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -811,8 +745,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -835,8 +767,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -845,7 +775,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -856,8 +787,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -868,9 +797,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -883,8 +812,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -904,8 +831,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -920,8 +845,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -934,12 +857,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -949,24 +871,21 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -976,12 +895,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeInterval)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval)
   private static final com.google.monitoring.v3.TimeInterval DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeInterval();
   }
@@ -990,27 +909,27 @@ public static com.google.monitoring.v3.TimeInterval getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TimeInterval parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TimeInterval parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1025,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.TimeInterval getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
similarity index 72%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
index dd97663caa16..8a2e0ea04a4a 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
-public interface TimeIntervalOrBuilder
-    extends
+public interface TimeIntervalOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeInterval)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Required. The end of the time interval.
    * 
@@ -59,8 +35,6 @@ public interface TimeIntervalOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -68,13 +42,10 @@ public interface TimeIntervalOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -82,13 +53,10 @@ public interface TimeIntervalOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
similarity index 80%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
index 9f6df5261ec9..bf9a215ab402 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * A collection of data points that describes the time-varying values
  * of a metric. A time series is identified by a combination of a
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeries}
  */
-public final class TimeSeries extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeSeries extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeries)
     TimeSeriesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeSeries.newBuilder() to construct.
   private TimeSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TimeSeries() {
     metricKind_ = 0;
     valueType_ = 0;
@@ -49,37 +31,33 @@ private TimeSeries() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeSeries();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TimeSeries_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeries.class,
-            com.google.monitoring.v3.TimeSeries.Builder.class);
+            com.google.monitoring.v3.TimeSeries.class, com.google.monitoring.v3.TimeSeries.Builder.class);
   }
 
   public static final int METRIC_FIELD_NUMBER = 1;
   private com.google.api.Metric metric_;
   /**
-   *
-   *
    * 
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; - * * @return Whether the metric field is set. */ @java.lang.Override @@ -87,15 +65,12 @@ public boolean hasMetric() { return metric_ != null; } /** - * - * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; - * * @return The metric. */ @java.lang.Override @@ -103,8 +78,6 @@ public com.google.api.Metric getMetric() { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } /** - * - * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
@@ -120,8 +93,6 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
   public static final int RESOURCE_FIELD_NUMBER = 2;
   private com.google.api.MonitoredResource resource_;
   /**
-   *
-   *
    * 
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -130,7 +101,6 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
    * 
* * .google.api.MonitoredResource resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -138,8 +108,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -148,7 +116,6 @@ public boolean hasResource() {
    * 
* * .google.api.MonitoredResource resource = 2; - * * @return The resource. */ @java.lang.Override @@ -156,8 +123,6 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** - * - * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -175,8 +140,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
   public static final int METADATA_FIELD_NUMBER = 7;
   private com.google.api.MonitoredResourceMetadata metadata_;
   /**
-   *
-   *
    * 
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -184,7 +147,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -192,8 +154,6 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -201,18 +161,13 @@ public boolean hasMetadata() {
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return The metadata. */ @java.lang.Override public com.google.api.MonitoredResourceMetadata getMetadata() { - return metadata_ == null - ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -223,16 +178,12 @@ public com.google.api.MonitoredResourceMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.api.MonitoredResourceMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_;
   }
 
   public static final int METRIC_KIND_FIELD_NUMBER = 3;
   private int metricKind_ = 0;
   /**
-   *
-   *
    * 
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -246,16 +197,12 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override - public int getMetricKindValue() { + @java.lang.Override public int getMetricKindValue() { return metricKind_; } /** - * - * *
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -269,21 +216,16 @@ public int getMetricKindValue() {
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ - @java.lang.Override - public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = - com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int VALUE_TYPE_FIELD_NUMBER = 4; private int valueType_ = 0; /** - * - * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -294,16 +236,12 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override - public int getValueTypeValue() { + @java.lang.Override public int getValueTypeValue() { return valueType_; } /** - * - * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -314,23 +252,17 @@ public int getValueTypeValue() {
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The valueType. */ - @java.lang.Override - public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = - com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int POINTS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List points_; /** - * - * *
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -349,8 +281,6 @@ public java.util.List getPointsList() {
     return points_;
   }
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -365,13 +295,11 @@ public java.util.List getPointsList() {
    * repeated .google.monitoring.v3.Point points = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPointsOrBuilderList() {
     return points_;
   }
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -390,8 +318,6 @@ public int getPointsCount() {
     return points_.size();
   }
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -410,8 +336,6 @@ public com.google.monitoring.v3.Point getPoints(int index) {
     return points_.get(index);
   }
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -426,17 +350,15 @@ public com.google.monitoring.v3.Point getPoints(int index) {
    * repeated .google.monitoring.v3.Point points = 5;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
+  public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
+      int index) {
     return points_.get(index);
   }
 
   public static final int UNIT_FIELD_NUMBER = 8;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object unit_ = "";
   /**
-   *
-   *
    * 
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -444,7 +366,6 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
    * 
* * string unit = 8; - * * @return The unit. */ @java.lang.Override @@ -453,15 +374,14 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** - * - * *
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -469,15 +389,16 @@ public java.lang.String getUnit() {
    * 
* * string unit = 8; - * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -486,7 +407,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,19 +418,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (metric_ != null) { output.writeMessage(1, getMetric()); } if (resource_ != null) { output.writeMessage(2, getResource()); } - if (metricKind_ - != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } - if (valueType_ - != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, valueType_); } for (int i = 0; i < points_.size(); i++) { @@ -532,24 +451,28 @@ public int getSerializedSize() { size = 0; if (metric_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetric()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetric()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResource()); } - if (metricKind_ - != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); + if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, metricKind_); } - if (valueType_ - != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, valueType_); + if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, valueType_); } for (int i = 0; i < points_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, points_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, points_.get(i)); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, unit_); @@ -562,7 +485,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeries)) { return super.equals(obj); @@ -571,20 +494,25 @@ public boolean equals(final java.lang.Object obj) { if (hasMetric() != other.hasMetric()) return false; if (hasMetric()) { - if (!getMetric().equals(other.getMetric())) return false; + if (!getMetric() + .equals(other.getMetric())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } if (metricKind_ != other.metricKind_) return false; if (valueType_ != other.valueType_) return false; - if (!getPointsList().equals(other.getPointsList())) return false; - if (!getUnit().equals(other.getUnit())) return false; + if (!getPointsList() + .equals(other.getPointsList())) return false; + if (!getUnit() + .equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -623,103 +551,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeries parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeries parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeries parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TimeSeries parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.TimeSeries parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeries parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeries parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeries parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TimeSeries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeries parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeries parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeries parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeries prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A collection of data points that describes the time-varying values
    * of a metric. A time series is identified by a combination of a
@@ -729,32 +653,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeries}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeries)
       com.google.monitoring.v3.TimeSeriesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeries_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeries.class,
-              com.google.monitoring.v3.TimeSeries.Builder.class);
+              com.google.monitoring.v3.TimeSeries.class, com.google.monitoring.v3.TimeSeries.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeries.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -788,9 +713,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeries_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
     }
 
     @java.lang.Override
@@ -811,9 +736,7 @@ public com.google.monitoring.v3.TimeSeries build() {
     public com.google.monitoring.v3.TimeSeries buildPartial() {
       com.google.monitoring.v3.TimeSeries result = new com.google.monitoring.v3.TimeSeries(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -833,13 +756,19 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.TimeSeries resu
     private void buildPartial0(com.google.monitoring.v3.TimeSeries result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build();
+        result.metric_ = metricBuilder_ == null
+            ? metric_
+            : metricBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build();
+        result.resource_ = resourceBuilder_ == null
+            ? resource_
+            : resourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.metricKind_ = metricKind_;
@@ -856,39 +785,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeries result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeries) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeries) other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeries)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -930,10 +858,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeries other) {
             pointsBuilder_ = null;
             points_ = other.points_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            pointsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPointsFieldBuilder()
-                    : null;
+            pointsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPointsFieldBuilder() : null;
           } else {
             pointsBuilder_.addAllMessages(other.points_);
           }
@@ -970,61 +897,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                metricKind_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 24
-            case 32:
-              {
-                valueType_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.monitoring.v3.Point m =
-                    input.readMessage(com.google.monitoring.v3.Point.parser(), extensionRegistry);
-                if (pointsBuilder_ == null) {
-                  ensurePointsIsMutable();
-                  points_.add(m);
-                } else {
-                  pointsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 58:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            case 66:
-              {
-                unit_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getMetricFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              metricKind_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 24
+            case 32: {
+              valueType_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 32
+            case 42: {
+              com.google.monitoring.v3.Point m =
+                  input.readMessage(
+                      com.google.monitoring.v3.Point.parser(),
+                      extensionRegistry);
+              if (pointsBuilder_ == null) {
+                ensurePointsIsMutable();
+                points_.add(m);
+              } else {
+                pointsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 58: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            case 66: {
+              unit_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1034,38 +961,30 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.api.Metric metric_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>
-        metricBuilder_;
+        com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder> metricBuilder_;
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
      * 
* * .google.api.Metric metric = 1; - * * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The associated metric. A fully-specified metric used to identify the time
      * series.
      * 
* * .google.api.Metric metric = 1; - * * @return The metric. */ public com.google.api.Metric getMetric() { @@ -1076,8 +995,6 @@ public com.google.api.Metric getMetric() { } } /** - * - * *
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1099,8 +1016,6 @@ public Builder setMetric(com.google.api.Metric value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1108,7 +1023,8 @@ public Builder setMetric(com.google.api.Metric value) {
      *
      * .google.api.Metric metric = 1;
      */
-    public Builder setMetric(com.google.api.Metric.Builder builderForValue) {
+    public Builder setMetric(
+        com.google.api.Metric.Builder builderForValue) {
       if (metricBuilder_ == null) {
         metric_ = builderForValue.build();
       } else {
@@ -1119,8 +1035,6 @@ public Builder setMetric(com.google.api.Metric.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1130,9 +1044,9 @@ public Builder setMetric(com.google.api.Metric.Builder builderForValue) {
      */
     public Builder mergeMetric(com.google.api.Metric value) {
       if (metricBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && metric_ != null
-            && metric_ != com.google.api.Metric.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          metric_ != null &&
+          metric_ != com.google.api.Metric.getDefaultInstance()) {
           getMetricBuilder().mergeFrom(value);
         } else {
           metric_ = value;
@@ -1145,8 +1059,6 @@ public Builder mergeMetric(com.google.api.Metric value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1165,8 +1077,6 @@ public Builder clearMetric() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1180,8 +1090,6 @@ public com.google.api.Metric.Builder getMetricBuilder() {
       return getMetricFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1193,12 +1101,11 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
       if (metricBuilder_ != null) {
         return metricBuilder_.getMessageOrBuilder();
       } else {
-        return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_;
+        return metric_ == null ?
+            com.google.api.Metric.getDefaultInstance() : metric_;
       }
     }
     /**
-     *
-     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1207,14 +1114,14 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
      * .google.api.Metric metric = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>
+        com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder> 
         getMetricFieldBuilder() {
       if (metricBuilder_ == null) {
-        metricBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.api.Metric,
-                com.google.api.Metric.Builder,
-                com.google.api.MetricOrBuilder>(getMetric(), getParentForChildren(), isClean());
+        metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>(
+                getMetric(),
+                getParentForChildren(),
+                isClean());
         metric_ = null;
       }
       return metricBuilder_;
@@ -1222,13 +1129,8 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
 
     private com.google.api.MonitoredResource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResource,
-            com.google.api.MonitoredResource.Builder,
-            com.google.api.MonitoredResourceOrBuilder>
-        resourceBuilder_;
+        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_;
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1237,15 +1139,12 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
      * 
* * .google.api.MonitoredResource resource = 2; - * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1254,21 +1153,16 @@ public boolean hasResource() {
      * 
* * .google.api.MonitoredResource resource = 2; - * * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.api.MonitoredResource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1292,8 +1186,6 @@ public Builder setResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1303,7 +1195,8 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      *
      * .google.api.MonitoredResource resource = 2;
      */
-    public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) {
+    public Builder setResource(
+        com.google.api.MonitoredResource.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
       } else {
@@ -1314,8 +1207,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1327,9 +1218,9 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
      */
     public Builder mergeResource(com.google.api.MonitoredResource value) {
       if (resourceBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && resource_ != null
-            && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          resource_ != null &&
+          resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
           getResourceBuilder().mergeFrom(value);
         } else {
           resource_ = value;
@@ -1342,8 +1233,6 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1364,8 +1253,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1381,8 +1268,6 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1396,14 +1281,11 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null
-            ? com.google.api.MonitoredResource.getDefaultInstance()
-            : resource_;
+        return resource_ == null ?
+            com.google.api.MonitoredResource.getDefaultInstance() : resource_;
       }
     }
     /**
-     *
-     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1414,17 +1296,14 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * .google.api.MonitoredResource resource = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResource,
-            com.google.api.MonitoredResource.Builder,
-            com.google.api.MonitoredResourceOrBuilder>
+        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.api.MonitoredResource,
-                com.google.api.MonitoredResource.Builder,
-                com.google.api.MonitoredResourceOrBuilder>(
-                getResource(), getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>(
+                getResource(),
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1432,13 +1311,8 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
 
     private com.google.api.MonitoredResourceMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResourceMetadata,
-            com.google.api.MonitoredResourceMetadata.Builder,
-            com.google.api.MonitoredResourceMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1446,15 +1320,12 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1462,21 +1333,16 @@ public boolean hasMetadata() {
      * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return The metadata. */ public com.google.api.MonitoredResourceMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1499,8 +1365,6 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1509,7 +1373,8 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) {
      *
      * .google.api.MonitoredResourceMetadata metadata = 7;
      */
-    public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue) {
+    public Builder setMetadata(
+        com.google.api.MonitoredResourceMetadata.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
       } else {
@@ -1520,8 +1385,6 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1532,9 +1395,9 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder buil
      */
     public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && metadata_ != null
-            && metadata_ != com.google.api.MonitoredResourceMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.api.MonitoredResourceMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1547,8 +1410,6 @@ public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1568,8 +1429,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1584,8 +1443,6 @@ public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder() {
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1598,14 +1455,11 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.api.MonitoredResourceMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1615,17 +1469,14 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
      * .google.api.MonitoredResourceMetadata metadata = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResourceMetadata,
-            com.google.api.MonitoredResourceMetadata.Builder,
-            com.google.api.MonitoredResourceMetadataOrBuilder>
+        com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.api.MonitoredResourceMetadata,
-                com.google.api.MonitoredResourceMetadata.Builder,
-                com.google.api.MonitoredResourceMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
@@ -1633,8 +1484,6 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
 
     private int metricKind_ = 0;
     /**
-     *
-     *
      * 
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1648,16 +1497,12 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override - public int getMetricKindValue() { + @java.lang.Override public int getMetricKindValue() { return metricKind_; } /** - * - * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1671,7 +1516,6 @@ public int getMetricKindValue() {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -1682,8 +1526,6 @@ public Builder setMetricKindValue(int value) { return this; } /** - * - * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1697,18 +1539,14 @@ public Builder setMetricKindValue(int value) {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = - com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** - * - * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1722,7 +1560,6 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -1736,8 +1573,6 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** - * - * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1751,7 +1586,6 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -1763,8 +1597,6 @@ public Builder clearMetricKind() { private int valueType_ = 0; /** - * - * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1775,16 +1607,12 @@ public Builder clearMetricKind() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override - public int getValueTypeValue() { + @java.lang.Override public int getValueTypeValue() { return valueType_; } /** - * - * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1795,7 +1623,6 @@ public int getValueTypeValue() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -1806,8 +1633,6 @@ public Builder setValueTypeValue(int value) { return this; } /** - * - * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1818,18 +1643,14 @@ public Builder setValueTypeValue(int value) {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = - com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** - * - * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1840,7 +1661,6 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @param value The valueType to set. * @return This builder for chaining. */ @@ -1854,8 +1674,6 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** - * - * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1866,7 +1684,6 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return This builder for chaining. */ public Builder clearValueType() { @@ -1877,24 +1694,18 @@ public Builder clearValueType() { } private java.util.List points_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { points_ = new java.util.ArrayList(points_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Point, - com.google.monitoring.v3.Point.Builder, - com.google.monitoring.v3.PointOrBuilder> - pointsBuilder_; + com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder> pointsBuilder_; /** - * - * *
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1916,8 +1727,6 @@ public java.util.List getPointsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1939,8 +1748,6 @@ public int getPointsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1962,8 +1769,6 @@ public com.google.monitoring.v3.Point getPoints(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1977,7 +1782,8 @@ public com.google.monitoring.v3.Point getPoints(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder setPoints(int index, com.google.monitoring.v3.Point value) {
+    public Builder setPoints(
+        int index, com.google.monitoring.v3.Point value) {
       if (pointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1991,8 +1797,6 @@ public Builder setPoints(int index, com.google.monitoring.v3.Point value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2006,7 +1810,8 @@ public Builder setPoints(int index, com.google.monitoring.v3.Point value) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder setPoints(int index, com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder setPoints(
+        int index, com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.set(index, builderForValue.build());
@@ -2017,8 +1822,6 @@ public Builder setPoints(int index, com.google.monitoring.v3.Point.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2046,8 +1849,6 @@ public Builder addPoints(com.google.monitoring.v3.Point value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2061,7 +1862,8 @@ public Builder addPoints(com.google.monitoring.v3.Point value) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(int index, com.google.monitoring.v3.Point value) {
+    public Builder addPoints(
+        int index, com.google.monitoring.v3.Point value) {
       if (pointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2075,8 +1877,6 @@ public Builder addPoints(int index, com.google.monitoring.v3.Point value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2090,7 +1890,8 @@ public Builder addPoints(int index, com.google.monitoring.v3.Point value) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder addPoints(
+        com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.add(builderForValue.build());
@@ -2101,8 +1902,6 @@ public Builder addPoints(com.google.monitoring.v3.Point.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2116,7 +1915,8 @@ public Builder addPoints(com.google.monitoring.v3.Point.Builder builderForValue)
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(int index, com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder addPoints(
+        int index, com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.add(index, builderForValue.build());
@@ -2127,8 +1927,6 @@ public Builder addPoints(int index, com.google.monitoring.v3.Point.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2146,7 +1944,8 @@ public Builder addAllPoints(
         java.lang.Iterable values) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, points_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, points_);
         onChanged();
       } else {
         pointsBuilder_.addAllMessages(values);
@@ -2154,8 +1953,6 @@ public Builder addAllPoints(
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2180,8 +1977,6 @@ public Builder clearPoints() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2206,8 +2001,6 @@ public Builder removePoints(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2221,12 +2014,11 @@ public Builder removePoints(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.Point.Builder getPointsBuilder(int index) {
+    public com.google.monitoring.v3.Point.Builder getPointsBuilder(
+        int index) {
       return getPointsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2240,16 +2032,14 @@ public com.google.monitoring.v3.Point.Builder getPointsBuilder(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
+    public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
+        int index) {
       if (pointsBuilder_ == null) {
-        return points_.get(index);
-      } else {
+        return points_.get(index);  } else {
         return pointsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2263,8 +2053,8 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public java.util.List
-        getPointsOrBuilderList() {
+    public java.util.List 
+         getPointsOrBuilderList() {
       if (pointsBuilder_ != null) {
         return pointsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2272,8 +2062,6 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2288,12 +2076,10 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
      * repeated .google.monitoring.v3.Point points = 5;
      */
     public com.google.monitoring.v3.Point.Builder addPointsBuilder() {
-      return getPointsFieldBuilder()
-          .addBuilder(com.google.monitoring.v3.Point.getDefaultInstance());
+      return getPointsFieldBuilder().addBuilder(
+          com.google.monitoring.v3.Point.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2307,13 +2093,12 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder() {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.Point.Builder addPointsBuilder(int index) {
-      return getPointsFieldBuilder()
-          .addBuilder(index, com.google.monitoring.v3.Point.getDefaultInstance());
+    public com.google.monitoring.v3.Point.Builder addPointsBuilder(
+        int index) {
+      return getPointsFieldBuilder().addBuilder(
+          index, com.google.monitoring.v3.Point.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2327,22 +2112,20 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public java.util.List getPointsBuilderList() {
+    public java.util.List 
+         getPointsBuilderList() {
       return getPointsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Point,
-            com.google.monitoring.v3.Point.Builder,
-            com.google.monitoring.v3.PointOrBuilder>
+        com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder> 
         getPointsFieldBuilder() {
       if (pointsBuilder_ == null) {
-        pointsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Point,
-                com.google.monitoring.v3.Point.Builder,
-                com.google.monitoring.v3.PointOrBuilder>(
-                points_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
+        pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder>(
+                points_,
+                ((bitField0_ & 0x00000020) != 0),
+                getParentForChildren(),
+                isClean());
         points_ = null;
       }
       return pointsBuilder_;
@@ -2350,8 +2133,6 @@ public java.util.List getPointsBuilderLi
 
     private java.lang.Object unit_ = "";
     /**
-     *
-     *
      * 
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2359,13 +2140,13 @@ public java.util.List getPointsBuilderLi
      * 
* * string unit = 8; - * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -2374,8 +2155,6 @@ public java.lang.String getUnit() { } } /** - * - * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2383,14 +2162,15 @@ public java.lang.String getUnit() {
      * 
* * string unit = 8; - * * @return The bytes for unit. */ - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -2398,8 +2178,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } } /** - * - * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2407,22 +2185,18 @@ public com.google.protobuf.ByteString getUnitBytes() {
      * 
* * string unit = 8; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } unit_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2430,7 +2204,6 @@ public Builder setUnit(java.lang.String value) {
      * 
* * string unit = 8; - * * @return This builder for chaining. */ public Builder clearUnit() { @@ -2440,8 +2213,6 @@ public Builder clearUnit() { return this; } /** - * - * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2449,23 +2220,21 @@ public Builder clearUnit() {
      * 
* * string unit = 8; - * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2475,12 +2244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeries) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) private static final com.google.monitoring.v3.TimeSeries DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeries(); } @@ -2489,27 +2258,27 @@ public static com.google.monitoring.v3.TimeSeries getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeries parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2524,4 +2293,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java index 9a874b8ad775..f76f64efbf36 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** - * - * *
  * Represents the values of a time series associated with a
  * TimeSeriesDescriptor.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
  */
-public final class TimeSeriesData extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeSeriesData extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData)
     TimeSeriesDataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeSeriesData.newBuilder() to construct.
   private TimeSeriesData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TimeSeriesData() {
     labelValues_ = java.util.Collections.emptyList();
     pointData_ = java.util.Collections.emptyList();
@@ -45,43 +27,38 @@ private TimeSeriesData() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeSeriesData();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto
-        .internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeriesData.class,
-            com.google.monitoring.v3.TimeSeriesData.Builder.class);
+            com.google.monitoring.v3.TimeSeriesData.class, com.google.monitoring.v3.TimeSeriesData.Builder.class);
   }
 
-  public interface PointDataOrBuilder
-      extends
+  public interface PointDataOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesData.PointData)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
      * The values that make up the point.
      * 
@@ -90,8 +67,6 @@ public interface PointDataOrBuilder */ com.google.monitoring.v3.TypedValue getValues(int index); /** - * - * *
      * The values that make up the point.
      * 
@@ -100,53 +75,43 @@ public interface PointDataOrBuilder */ int getValuesCount(); /** - * - * *
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - java.util.List getValuesOrBuilderList(); + java.util.List + getValuesOrBuilderList(); /** - * - * *
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index); + com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( + int index); /** - * - * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return Whether the timeInterval field is set. */ boolean hasTimeInterval(); /** - * - * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return The timeInterval. */ com.google.monitoring.v3.TimeInterval getTimeInterval(); /** - * - * *
      * The time interval associated with the point.
      * 
@@ -156,8 +121,6 @@ public interface PointDataOrBuilder com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder(); } /** - * - * *
    * A point's value columns and time interval. Each point has one or more
    * point values corresponding to the entries in `point_descriptors` field in
@@ -166,48 +129,43 @@ public interface PointDataOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
    */
-  public static final class PointData extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PointData extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData.PointData)
       PointDataOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PointData.newBuilder() to construct.
     private PointData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private PointData() {
       values_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PointData();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesData.PointData.class,
-              com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
+              com.google.monitoring.v3.TimeSeriesData.PointData.class, com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
     }
 
     public static final int VALUES_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private java.util.List values_;
     /**
-     *
-     *
      * 
      * The values that make up the point.
      * 
@@ -219,8 +177,6 @@ public java.util.List getValuesList() { return values_; } /** - * - * *
      * The values that make up the point.
      * 
@@ -228,13 +184,11 @@ public java.util.List getValuesList() { * repeated .google.monitoring.v3.TypedValue values = 1; */ @java.lang.Override - public java.util.List + public java.util.List getValuesOrBuilderList() { return values_; } /** - * - * *
      * The values that make up the point.
      * 
@@ -246,8 +200,6 @@ public int getValuesCount() { return values_.size(); } /** - * - * *
      * The values that make up the point.
      * 
@@ -259,8 +211,6 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { return values_.get(index); } /** - * - * *
      * The values that make up the point.
      * 
@@ -268,21 +218,19 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { * repeated .google.monitoring.v3.TypedValue values = 1; */ @java.lang.Override - public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) { + public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( + int index) { return values_.get(index); } public static final int TIME_INTERVAL_FIELD_NUMBER = 2; private com.google.monitoring.v3.TimeInterval timeInterval_; /** - * - * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return Whether the timeInterval field is set. */ @java.lang.Override @@ -290,25 +238,18 @@ public boolean hasTimeInterval() { return timeInterval_ != null; } /** - * - * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return The timeInterval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getTimeInterval() { - return timeInterval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : timeInterval_; + return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; } /** - * - * *
      * The time interval associated with the point.
      * 
@@ -317,13 +258,10 @@ public com.google.monitoring.v3.TimeInterval getTimeInterval() { */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() { - return timeInterval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : timeInterval_; + return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } @@ -352,10 +291,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); } if (timeInterval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -365,18 +306,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesData.PointData)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesData.PointData other = - (com.google.monitoring.v3.TimeSeriesData.PointData) obj; + com.google.monitoring.v3.TimeSeriesData.PointData other = (com.google.monitoring.v3.TimeSeriesData.PointData) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (hasTimeInterval() != other.hasTimeInterval()) return false; if (hasTimeInterval()) { - if (!getTimeInterval().equals(other.getTimeInterval())) return false; + if (!getTimeInterval() + .equals(other.getTimeInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -403,93 +345,89 @@ public int hashCode() { } public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesData.PointData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -499,8 +437,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A point's value columns and time interval. Each point has one or more
      * point values corresponding to the entries in `point_descriptors` field in
@@ -509,33 +445,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesData.PointData)
         com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.MetricProto
-            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.MetricProto
-            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
+        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.TimeSeriesData.PointData.class,
-                com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
+                com.google.monitoring.v3.TimeSeriesData.PointData.class, com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.TimeSeriesData.PointData.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -556,9 +492,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.MetricProto
-            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
       }
 
       @java.lang.Override
@@ -577,18 +513,14 @@ public com.google.monitoring.v3.TimeSeriesData.PointData build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.TimeSeriesData.PointData buildPartial() {
-        com.google.monitoring.v3.TimeSeriesData.PointData result =
-            new com.google.monitoring.v3.TimeSeriesData.PointData(this);
+        com.google.monitoring.v3.TimeSeriesData.PointData result = new com.google.monitoring.v3.TimeSeriesData.PointData(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.monitoring.v3.TimeSeriesData.PointData result) {
+      private void buildPartialRepeatedFields(com.google.monitoring.v3.TimeSeriesData.PointData result) {
         if (valuesBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             values_ = java.util.Collections.unmodifiableList(values_);
@@ -603,8 +535,9 @@ private void buildPartialRepeatedFields(
       private void buildPartial0(com.google.monitoring.v3.TimeSeriesData.PointData result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.timeInterval_ =
-              timeIntervalBuilder_ == null ? timeInterval_ : timeIntervalBuilder_.build();
+          result.timeInterval_ = timeIntervalBuilder_ == null
+              ? timeInterval_
+              : timeIntervalBuilder_.build();
         }
       }
 
@@ -612,41 +545,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesData.PointData res
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.TimeSeriesData.PointData) {
-          return mergeFrom((com.google.monitoring.v3.TimeSeriesData.PointData) other);
+          return mergeFrom((com.google.monitoring.v3.TimeSeriesData.PointData)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -654,8 +584,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData.PointData other) {
-        if (other == com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()) return this;
         if (valuesBuilder_ == null) {
           if (!other.values_.isEmpty()) {
             if (values_.isEmpty()) {
@@ -674,10 +603,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData.PointData other
               valuesBuilder_ = null;
               values_ = other.values_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              valuesBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getValuesFieldBuilder()
-                      : null;
+              valuesBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getValuesFieldBuilder() : null;
             } else {
               valuesBuilder_.addAllMessages(other.values_);
             }
@@ -712,32 +640,32 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.monitoring.v3.TypedValue m =
-                      input.readMessage(
-                          com.google.monitoring.v3.TypedValue.parser(), extensionRegistry);
-                  if (valuesBuilder_ == null) {
-                    ensureValuesIsMutable();
-                    values_.add(m);
-                  } else {
-                    valuesBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(getTimeIntervalFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.monitoring.v3.TypedValue m =
+                    input.readMessage(
+                        com.google.monitoring.v3.TypedValue.parser(),
+                        extensionRegistry);
+                if (valuesBuilder_ == null) {
+                  ensureValuesIsMutable();
+                  values_.add(m);
+                } else {
+                  valuesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getTimeIntervalFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -747,28 +675,21 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.util.List values_ =
-          java.util.Collections.emptyList();
-
+        java.util.Collections.emptyList();
       private void ensureValuesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           values_ = new java.util.ArrayList(values_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.monitoring.v3.TypedValue,
-              com.google.monitoring.v3.TypedValue.Builder,
-              com.google.monitoring.v3.TypedValueOrBuilder>
-          valuesBuilder_;
+          com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> valuesBuilder_;
 
       /**
-       *
-       *
        * 
        * The values that make up the point.
        * 
@@ -783,8 +704,6 @@ public java.util.List getValuesList() { } } /** - * - * *
        * The values that make up the point.
        * 
@@ -799,8 +718,6 @@ public int getValuesCount() { } } /** - * - * *
        * The values that make up the point.
        * 
@@ -815,15 +732,14 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { } } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder setValues(int index, com.google.monitoring.v3.TypedValue value) { + public Builder setValues( + int index, com.google.monitoring.v3.TypedValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -837,8 +753,6 @@ public Builder setValues(int index, com.google.monitoring.v3.TypedValue value) { return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -857,8 +771,6 @@ public Builder setValues( return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -879,15 +791,14 @@ public Builder addValues(com.google.monitoring.v3.TypedValue value) { return this; } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder addValues(int index, com.google.monitoring.v3.TypedValue value) { + public Builder addValues( + int index, com.google.monitoring.v3.TypedValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,15 +812,14 @@ public Builder addValues(int index, com.google.monitoring.v3.TypedValue value) { return this; } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder addValues(com.google.monitoring.v3.TypedValue.Builder builderForValue) { + public Builder addValues( + com.google.monitoring.v3.TypedValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -920,8 +830,6 @@ public Builder addValues(com.google.monitoring.v3.TypedValue.Builder builderForV return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -940,8 +848,6 @@ public Builder addValues( return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -952,7 +858,8 @@ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -960,8 +867,6 @@ public Builder addAllValues( return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -979,8 +884,6 @@ public Builder clearValues() { return this; } /** - * - * *
        * The values that make up the point.
        * 
@@ -998,44 +901,39 @@ public Builder removeValues(int index) { return this; } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValue.Builder getValuesBuilder(int index) { + public com.google.monitoring.v3.TypedValue.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) { + public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( + int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public java.util.List - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -1043,8 +941,6 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index } } /** - * - * *
        * The values that make up the point.
        * 
@@ -1052,47 +948,42 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index * repeated .google.monitoring.v3.TypedValue values = 1; */ public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder(com.google.monitoring.v3.TypedValue.getDefaultInstance()); + return getValuesFieldBuilder().addBuilder( + com.google.monitoring.v3.TypedValue.getDefaultInstance()); } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.TypedValue.getDefaultInstance()); + public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TypedValue.getDefaultInstance()); } /** - * - * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public java.util.List getValuesBuilderList() { + public java.util.List + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TypedValue, - com.google.monitoring.v3.TypedValue.Builder, - com.google.monitoring.v3.TypedValueOrBuilder> + com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TypedValue, - com.google.monitoring.v3.TypedValue.Builder, - com.google.monitoring.v3.TypedValueOrBuilder>( - values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; @@ -1100,47 +991,34 @@ public java.util.List getValuesBuil private com.google.monitoring.v3.TimeInterval timeInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> - timeIntervalBuilder_; + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> timeIntervalBuilder_; /** - * - * *
        * The time interval associated with the point.
        * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return Whether the timeInterval field is set. */ public boolean hasTimeInterval() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The time interval associated with the point.
        * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; - * * @return The timeInterval. */ public com.google.monitoring.v3.TimeInterval getTimeInterval() { if (timeIntervalBuilder_ == null) { - return timeInterval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : timeInterval_; + return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; } else { return timeIntervalBuilder_.getMessage(); } } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1161,8 +1039,6 @@ public Builder setTimeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1181,8 +1057,6 @@ public Builder setTimeInterval( return this; } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1191,9 +1065,9 @@ public Builder setTimeInterval( */ public Builder mergeTimeInterval(com.google.monitoring.v3.TimeInterval value) { if (timeIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && timeInterval_ != null - && timeInterval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + timeInterval_ != null && + timeInterval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getTimeIntervalBuilder().mergeFrom(value); } else { timeInterval_ = value; @@ -1206,8 +1080,6 @@ public Builder mergeTimeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1225,8 +1097,6 @@ public Builder clearTimeInterval() { return this; } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1239,8 +1109,6 @@ public com.google.monitoring.v3.TimeInterval.Builder getTimeIntervalBuilder() { return getTimeIntervalFieldBuilder().getBuilder(); } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1251,14 +1119,11 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() if (timeIntervalBuilder_ != null) { return timeIntervalBuilder_.getMessageOrBuilder(); } else { - return timeInterval_ == null - ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() - : timeInterval_; + return timeInterval_ == null ? + com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; } } /** - * - * *
        * The time interval associated with the point.
        * 
@@ -1266,22 +1131,18 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() * .google.monitoring.v3.TimeInterval time_interval = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> getTimeIntervalFieldBuilder() { if (timeIntervalBuilder_ == null) { - timeIntervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, - com.google.monitoring.v3.TimeInterval.Builder, - com.google.monitoring.v3.TimeIntervalOrBuilder>( - getTimeInterval(), getParentForChildren(), isClean()); + timeIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( + getTimeInterval(), + getParentForChildren(), + isClean()); timeInterval_ = null; } return timeIntervalBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1294,12 +1155,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesData.PointData) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData.PointData) private static final com.google.monitoring.v3.TimeSeriesData.PointData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesData.PointData(); } @@ -1308,28 +1169,27 @@ public static com.google.monitoring.v3.TimeSeriesData.PointData getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PointData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PointData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1344,15 +1204,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesData.PointData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LABEL_VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List labelValues_; /** - * - * *
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1367,8 +1225,6 @@ public java.util.List getLabelValuesList()
     return labelValues_;
   }
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1379,13 +1235,11 @@ public java.util.List getLabelValuesList()
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLabelValuesOrBuilderList() {
     return labelValues_;
   }
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1400,8 +1254,6 @@ public int getLabelValuesCount() {
     return labelValues_.size();
   }
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1416,8 +1268,6 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
     return labelValues_.get(index);
   }
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1428,17 +1278,15 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
+  public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
+      int index) {
     return labelValues_.get(index);
   }
 
   public static final int POINT_DATA_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List pointData_;
   /**
-   *
-   *
    * 
    * The points in the time series.
    * 
@@ -1450,8 +1298,6 @@ public java.util.List getPoin return pointData_; } /** - * - * *
    * The points in the time series.
    * 
@@ -1459,13 +1305,11 @@ public java.util.List getPoin * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPointDataOrBuilderList() { return pointData_; } /** - * - * *
    * The points in the time series.
    * 
@@ -1477,8 +1321,6 @@ public int getPointDataCount() { return pointData_.size(); } /** - * - * *
    * The points in the time series.
    * 
@@ -1490,8 +1332,6 @@ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) return pointData_.get(index); } /** - * - * *
    * The points in the time series.
    * 
@@ -1505,7 +1345,6 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1517,7 +1356,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < labelValues_.size(); i++) { output.writeMessage(1, labelValues_.get(i)); } @@ -1534,10 +1374,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < labelValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelValues_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, labelValues_.get(i)); } for (int i = 0; i < pointData_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pointData_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, pointData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1547,15 +1389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesData)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeriesData other = (com.google.monitoring.v3.TimeSeriesData) obj; - if (!getLabelValuesList().equals(other.getLabelValuesList())) return false; - if (!getPointDataList().equals(other.getPointDataList())) return false; + if (!getLabelValuesList() + .equals(other.getLabelValuesList())) return false; + if (!getPointDataList() + .equals(other.getPointDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1580,104 +1424,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the values of a time series associated with a
    * TimeSeriesDescriptor.
@@ -1685,32 +1524,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesData)
       com.google.monitoring.v3.TimeSeriesDataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesData.class,
-              com.google.monitoring.v3.TimeSeriesData.Builder.class);
+              com.google.monitoring.v3.TimeSeriesData.class, com.google.monitoring.v3.TimeSeriesData.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeriesData.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1733,9 +1573,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto
-          .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
     }
 
     @java.lang.Override
@@ -1754,12 +1594,9 @@ public com.google.monitoring.v3.TimeSeriesData build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeSeriesData buildPartial() {
-      com.google.monitoring.v3.TimeSeriesData result =
-          new com.google.monitoring.v3.TimeSeriesData(this);
+      com.google.monitoring.v3.TimeSeriesData result = new com.google.monitoring.v3.TimeSeriesData(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1793,39 +1630,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesData result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeriesData) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeriesData) other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeriesData)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1852,10 +1688,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData other) {
             labelValuesBuilder_ = null;
             labelValues_ = other.labelValues_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            labelValuesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLabelValuesFieldBuilder()
-                    : null;
+            labelValuesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLabelValuesFieldBuilder() : null;
           } else {
             labelValuesBuilder_.addAllMessages(other.labelValues_);
           }
@@ -1879,10 +1714,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData other) {
             pointDataBuilder_ = null;
             pointData_ = other.pointData_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            pointDataBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPointDataFieldBuilder()
-                    : null;
+            pointDataBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPointDataFieldBuilder() : null;
           } else {
             pointDataBuilder_.addAllMessages(other.pointData_);
           }
@@ -1914,40 +1748,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.monitoring.v3.LabelValue m =
-                    input.readMessage(
-                        com.google.monitoring.v3.LabelValue.parser(), extensionRegistry);
-                if (labelValuesBuilder_ == null) {
-                  ensureLabelValuesIsMutable();
-                  labelValues_.add(m);
-                } else {
-                  labelValuesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.monitoring.v3.TimeSeriesData.PointData m =
-                    input.readMessage(
-                        com.google.monitoring.v3.TimeSeriesData.PointData.parser(),
-                        extensionRegistry);
-                if (pointDataBuilder_ == null) {
-                  ensurePointDataIsMutable();
-                  pointData_.add(m);
-                } else {
-                  pointDataBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.monitoring.v3.LabelValue m =
+                  input.readMessage(
+                      com.google.monitoring.v3.LabelValue.parser(),
+                      extensionRegistry);
+              if (labelValuesBuilder_ == null) {
+                ensureLabelValuesIsMutable();
+                labelValues_.add(m);
+              } else {
+                labelValuesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.monitoring.v3.TimeSeriesData.PointData m =
+                  input.readMessage(
+                      com.google.monitoring.v3.TimeSeriesData.PointData.parser(),
+                      extensionRegistry);
+              if (pointDataBuilder_ == null) {
+                ensurePointDataIsMutable();
+                pointData_.add(m);
+              } else {
+                pointDataBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1957,28 +1789,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List labelValues_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLabelValuesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         labelValues_ = new java.util.ArrayList(labelValues_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.LabelValue,
-            com.google.monitoring.v3.LabelValue.Builder,
-            com.google.monitoring.v3.LabelValueOrBuilder>
-        labelValuesBuilder_;
+        com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder> labelValuesBuilder_;
 
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1996,8 +1821,6 @@ public java.util.List getLabelValuesList()
       }
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2015,8 +1838,6 @@ public int getLabelValuesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2034,8 +1855,6 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2045,7 +1864,8 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder setLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
+    public Builder setLabelValues(
+        int index, com.google.monitoring.v3.LabelValue value) {
       if (labelValuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2059,8 +1879,6 @@ public Builder setLabelValues(int index, com.google.monitoring.v3.LabelValue val
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2082,8 +1900,6 @@ public Builder setLabelValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2107,8 +1923,6 @@ public Builder addLabelValues(com.google.monitoring.v3.LabelValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2118,7 +1932,8 @@ public Builder addLabelValues(com.google.monitoring.v3.LabelValue value) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder addLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
+    public Builder addLabelValues(
+        int index, com.google.monitoring.v3.LabelValue value) {
       if (labelValuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2132,8 +1947,6 @@ public Builder addLabelValues(int index, com.google.monitoring.v3.LabelValue val
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2143,7 +1956,8 @@ public Builder addLabelValues(int index, com.google.monitoring.v3.LabelValue val
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder addLabelValues(com.google.monitoring.v3.LabelValue.Builder builderForValue) {
+    public Builder addLabelValues(
+        com.google.monitoring.v3.LabelValue.Builder builderForValue) {
       if (labelValuesBuilder_ == null) {
         ensureLabelValuesIsMutable();
         labelValues_.add(builderForValue.build());
@@ -2154,8 +1968,6 @@ public Builder addLabelValues(com.google.monitoring.v3.LabelValue.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2177,8 +1989,6 @@ public Builder addLabelValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2192,7 +2002,8 @@ public Builder addAllLabelValues(
         java.lang.Iterable values) {
       if (labelValuesBuilder_ == null) {
         ensureLabelValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelValues_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, labelValues_);
         onChanged();
       } else {
         labelValuesBuilder_.addAllMessages(values);
@@ -2200,8 +2011,6 @@ public Builder addAllLabelValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2222,8 +2031,6 @@ public Builder clearLabelValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2244,8 +2051,6 @@ public Builder removeLabelValues(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2255,12 +2060,11 @@ public Builder removeLabelValues(int index) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(int index) {
+    public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(
+        int index) {
       return getLabelValuesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2270,16 +2074,14 @@ public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(int ind
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
+    public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
+        int index) {
       if (labelValuesBuilder_ == null) {
-        return labelValues_.get(index);
-      } else {
+        return labelValues_.get(index);  } else {
         return labelValuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2289,8 +2091,8 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public java.util.List
-        getLabelValuesOrBuilderList() {
+    public java.util.List 
+         getLabelValuesOrBuilderList() {
       if (labelValuesBuilder_ != null) {
         return labelValuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2298,8 +2100,6 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2310,12 +2110,10 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
     public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder() {
-      return getLabelValuesFieldBuilder()
-          .addBuilder(com.google.monitoring.v3.LabelValue.getDefaultInstance());
+      return getLabelValuesFieldBuilder().addBuilder(
+          com.google.monitoring.v3.LabelValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2325,13 +2123,12 @@ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder() {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(int index) {
-      return getLabelValuesFieldBuilder()
-          .addBuilder(index, com.google.monitoring.v3.LabelValue.getDefaultInstance());
+    public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(
+        int index) {
+      return getLabelValuesFieldBuilder().addBuilder(
+          index, com.google.monitoring.v3.LabelValue.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2341,47 +2138,38 @@ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(int ind
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public java.util.List getLabelValuesBuilderList() {
+    public java.util.List 
+         getLabelValuesBuilderList() {
       return getLabelValuesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.LabelValue,
-            com.google.monitoring.v3.LabelValue.Builder,
-            com.google.monitoring.v3.LabelValueOrBuilder>
+        com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder> 
         getLabelValuesFieldBuilder() {
       if (labelValuesBuilder_ == null) {
-        labelValuesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.LabelValue,
-                com.google.monitoring.v3.LabelValue.Builder,
-                com.google.monitoring.v3.LabelValueOrBuilder>(
-                labelValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        labelValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder>(
+                labelValues_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         labelValues_ = null;
       }
       return labelValuesBuilder_;
     }
 
     private java.util.List pointData_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePointDataIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        pointData_ =
-            new java.util.ArrayList(pointData_);
+        pointData_ = new java.util.ArrayList(pointData_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.TimeSeriesData.PointData,
-            com.google.monitoring.v3.TimeSeriesData.PointData.Builder,
-            com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>
-        pointDataBuilder_;
+        com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> pointDataBuilder_;
 
     /**
-     *
-     *
      * 
      * The points in the time series.
      * 
@@ -2396,8 +2184,6 @@ public java.util.List getPoin } } /** - * - * *
      * The points in the time series.
      * 
@@ -2412,8 +2198,6 @@ public int getPointDataCount() { } } /** - * - * *
      * The points in the time series.
      * 
@@ -2428,8 +2212,6 @@ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) } } /** - * - * *
      * The points in the time series.
      * 
@@ -2451,8 +2233,6 @@ public Builder setPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2471,8 +2251,6 @@ public Builder setPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2493,8 +2271,6 @@ public Builder addPointData(com.google.monitoring.v3.TimeSeriesData.PointData va return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2516,8 +2292,6 @@ public Builder addPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2536,8 +2310,6 @@ public Builder addPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2556,8 +2328,6 @@ public Builder addPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2568,7 +2338,8 @@ public Builder addAllPointData( java.lang.Iterable values) { if (pointDataBuilder_ == null) { ensurePointDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointData_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pointData_); onChanged(); } else { pointDataBuilder_.addAllMessages(values); @@ -2576,8 +2347,6 @@ public Builder addAllPointData( return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2595,8 +2364,6 @@ public Builder clearPointData() { return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2614,8 +2381,6 @@ public Builder removePointData(int index) { return this; } /** - * - * *
      * The points in the time series.
      * 
@@ -2627,8 +2392,6 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder getPointDataBui return getPointDataFieldBuilder().getBuilder(index); } /** - * - * *
      * The points in the time series.
      * 
@@ -2638,22 +2401,19 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder getPointDataBui public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder( int index) { if (pointDataBuilder_ == null) { - return pointData_.get(index); - } else { + return pointData_.get(index); } else { return pointDataBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The points in the time series.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - public java.util.List - getPointDataOrBuilderList() { + public java.util.List + getPointDataOrBuilderList() { if (pointDataBuilder_ != null) { return pointDataBuilder_.getMessageOrBuilderList(); } else { @@ -2661,8 +2421,6 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr } } /** - * - * *
      * The points in the time series.
      * 
@@ -2670,12 +2428,10 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder() { - return getPointDataFieldBuilder() - .addBuilder(com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); + return getPointDataFieldBuilder().addBuilder( + com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); } /** - * - * *
      * The points in the time series.
      * 
@@ -2684,43 +2440,37 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBui */ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder( int index) { - return getPointDataFieldBuilder() - .addBuilder( - index, com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); + return getPointDataFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); } /** - * - * *
      * The points in the time series.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - public java.util.List - getPointDataBuilderList() { + public java.util.List + getPointDataBuilderList() { return getPointDataFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData.PointData, - com.google.monitoring.v3.TimeSeriesData.PointData.Builder, - com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> + com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> getPointDataFieldBuilder() { if (pointDataBuilder_ == null) { - pointDataBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData.PointData, - com.google.monitoring.v3.TimeSeriesData.PointData.Builder, - com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>( - pointData_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + pointDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>( + pointData_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); pointData_ = null; } return pointDataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2730,12 +2480,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesData) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData) private static final com.google.monitoring.v3.TimeSeriesData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesData(); } @@ -2744,27 +2494,27 @@ public static com.google.monitoring.v3.TimeSeriesData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2779,4 +2529,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java similarity index 80% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java index cf01a1516877..35fa4f98d061 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesDataOrBuilder - extends +public interface TimeSeriesDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesData) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -35,10 +17,9 @@ public interface TimeSeriesDataOrBuilder
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  java.util.List getLabelValuesList();
+  java.util.List 
+      getLabelValuesList();
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -50,8 +31,6 @@ public interface TimeSeriesDataOrBuilder
    */
   com.google.monitoring.v3.LabelValue getLabelValues(int index);
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -63,8 +42,6 @@ public interface TimeSeriesDataOrBuilder
    */
   int getLabelValuesCount();
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -74,11 +51,9 @@ public interface TimeSeriesDataOrBuilder
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  java.util.List
+  java.util.List 
       getLabelValuesOrBuilderList();
   /**
-   *
-   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -88,21 +63,19 @@ public interface TimeSeriesDataOrBuilder
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index);
+  com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - java.util.List getPointDataList(); + java.util.List + getPointDataList(); /** - * - * *
    * The points in the time series.
    * 
@@ -111,8 +84,6 @@ public interface TimeSeriesDataOrBuilder */ com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index); /** - * - * *
    * The points in the time series.
    * 
@@ -121,24 +92,21 @@ public interface TimeSeriesDataOrBuilder */ int getPointDataCount(); /** - * - * *
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - java.util.List + java.util.List getPointDataOrBuilderList(); /** - * - * *
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(int index); + com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder( + int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java index 583bb99f23d2..403ceef741a4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** - * - * *
  * A descriptor for the labels and points in a time series.
  * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor} */ -public final class TimeSeriesDescriptor extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimeSeriesDescriptor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor) TimeSeriesDescriptorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimeSeriesDescriptor.newBuilder() to construct. private TimeSeriesDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeSeriesDescriptor() { labelDescriptors_ = java.util.Collections.emptyList(); pointDescriptors_ = java.util.Collections.emptyList(); @@ -44,108 +26,87 @@ private TimeSeriesDescriptor() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeSeriesDescriptor(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.class, - com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); } - public interface ValueDescriptorOrBuilder - extends + public interface ValueDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The value key.
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The value key.
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** - * - * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** - * - * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** - * - * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** - * - * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -154,13 +115,10 @@ public interface ValueDescriptorOrBuilder
      * 
* * string unit = 4; - * * @return The unit. */ java.lang.String getUnit(); /** - * - * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -169,30 +127,27 @@ public interface ValueDescriptorOrBuilder
      * 
* * string unit = 4; - * * @return The bytes for unit. */ - com.google.protobuf.ByteString getUnitBytes(); + com.google.protobuf.ByteString + getUnitBytes(); } /** - * - * *
    * A descriptor for the value columns in a data point.
    * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor} */ - public static final class ValueDescriptor extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ValueDescriptor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) ValueDescriptorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValueDescriptor.newBuilder() to construct. private ValueDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValueDescriptor() { key_ = ""; valueType_ = 0; @@ -202,38 +157,33 @@ private ValueDescriptor() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValueDescriptor(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
      * The value key.
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -242,29 +192,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The value key.
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -275,80 +225,59 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int VALUE_TYPE_FIELD_NUMBER = 2; private int valueType_ = 0; /** - * - * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override - public int getValueTypeValue() { + @java.lang.Override public int getValueTypeValue() { return valueType_; } /** - * - * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The valueType. */ - @java.lang.Override - public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = - com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int METRIC_KIND_FIELD_NUMBER = 3; private int metricKind_ = 0; /** - * - * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override - public int getMetricKindValue() { + @java.lang.Override public int getMetricKindValue() { return metricKind_; } /** - * - * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ - @java.lang.Override - public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = - com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int UNIT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object unit_ = ""; /** - * - * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -357,7 +286,6 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
      * 
* * string unit = 4; - * * @return The unit. */ @java.lang.Override @@ -366,15 +294,14 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** - * - * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -383,15 +310,16 @@ public java.lang.String getUnit() {
      * 
* * string unit = 4; - * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -400,7 +328,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,16 +339,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - if (valueType_ - != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, valueType_); } - if (metricKind_ - != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { @@ -439,13 +365,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - if (valueType_ - != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); + if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, valueType_); } - if (metricKind_ - != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); + if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, metricKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, unit_); @@ -458,18 +384,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other = - (com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) obj; + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other = (com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) obj; - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; if (valueType_ != other.valueType_) return false; if (metricKind_ != other.metricKind_) return false; - if (!getUnit().equals(other.getUnit())) return false; + if (!getUnit() + .equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -495,94 +422,89 @@ public int hashCode() { } public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor prototype) { + public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -592,41 +514,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A descriptor for the value columns in a data point.
      * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); } // Construct using com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -639,14 +559,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor - getDefaultInstanceForType() { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType() { return com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance(); } @@ -661,17 +580,13 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor build() { @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor buildPartial() { - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result = - new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result = new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result) { + private void buildPartial0(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -691,52 +606,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) { - return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) other); + return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other) { - if (other - == com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other) { + if (other == com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -779,37 +688,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - valueType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - metricKind_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - unit_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + valueType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + metricKind_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -819,25 +723,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
        * The value key.
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -846,21 +747,20 @@ public java.lang.String getKey() { } } /** - * - * *
        * The value key.
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -868,35 +768,28 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The value key.
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The value key.
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -906,21 +799,17 @@ public Builder clearKey() { return this; } /** - * - * *
        * The value key.
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -930,29 +819,22 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private int valueType_ = 0; /** - * - * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override - public int getValueTypeValue() { + @java.lang.Override public int getValueTypeValue() { return valueType_; } /** - * - * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -963,31 +845,24 @@ public Builder setValueTypeValue(int value) { return this; } /** - * - * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = - com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** - * - * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @param value The valueType to set. * @return This builder for chaining. */ @@ -1001,14 +876,11 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** - * - * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; - * * @return This builder for chaining. */ public Builder clearValueType() { @@ -1020,29 +892,22 @@ public Builder clearValueType() { private int metricKind_ = 0; /** - * - * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override - public int getMetricKindValue() { + @java.lang.Override public int getMetricKindValue() { return metricKind_; } /** - * - * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -1053,31 +918,24 @@ public Builder setMetricKindValue(int value) { return this; } /** - * - * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = - com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** - * - * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -1091,14 +949,11 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** - * - * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -1110,8 +965,6 @@ public Builder clearMetricKind() { private java.lang.Object unit_ = ""; /** - * - * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1120,13 +973,13 @@ public Builder clearMetricKind() {
        * 
* * string unit = 4; - * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -1135,8 +988,6 @@ public java.lang.String getUnit() { } } /** - * - * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1145,14 +996,15 @@ public java.lang.String getUnit() {
        * 
* * string unit = 4; - * * @return The bytes for unit. */ - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -1160,8 +1012,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } } /** - * - * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1170,22 +1020,18 @@ public com.google.protobuf.ByteString getUnitBytes() {
        * 
* * string unit = 4; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1194,7 +1040,6 @@ public Builder setUnit(java.lang.String value) {
        * 
* * string unit = 4; - * * @return This builder for chaining. */ public Builder clearUnit() { @@ -1204,8 +1049,6 @@ public Builder clearUnit() { return this; } /** - * - * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1214,21 +1057,18 @@ public Builder clearUnit() {
        * 
* * string unit = 4; - * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1241,44 +1081,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) - private static final com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor - getDefaultInstance() { + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,19 +1127,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor - getDefaultInstanceForType() { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LABEL_DESCRIPTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List labelDescriptors_; /** - * - * *
    * Descriptors for the labels.
    * 
@@ -1314,8 +1148,6 @@ public java.util.List getLabelDescriptorsList() return labelDescriptors_; } /** - * - * *
    * Descriptors for the labels.
    * 
@@ -1323,13 +1155,11 @@ public java.util.List getLabelDescriptorsList() * repeated .google.api.LabelDescriptor label_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLabelDescriptorsOrBuilderList() { return labelDescriptors_; } /** - * - * *
    * Descriptors for the labels.
    * 
@@ -1341,8 +1171,6 @@ public int getLabelDescriptorsCount() { return labelDescriptors_.size(); } /** - * - * *
    * Descriptors for the labels.
    * 
@@ -1354,8 +1182,6 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { return labelDescriptors_.get(index); } /** - * - * *
    * Descriptors for the labels.
    * 
@@ -1363,98 +1189,73 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { * repeated .google.api.LabelDescriptor label_descriptors = 1; */ @java.lang.Override - public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) { + public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( + int index) { return labelDescriptors_.get(index); } public static final int POINT_DESCRIPTORS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List - pointDescriptors_; + private java.util.List pointDescriptors_; /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ @java.lang.Override - public java.util.List - getPointDescriptorsList() { + public java.util.List getPointDescriptorsList() { return pointDescriptors_; } /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> + public java.util.List getPointDescriptorsOrBuilderList() { return pointDescriptors_; } /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ @java.lang.Override public int getPointDescriptorsCount() { return pointDescriptors_.size(); } /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors( - int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index) { return pointDescriptors_.get(index); } /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder - getPointDescriptorsOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( + int index) { return pointDescriptors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1466,7 +1267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < labelDescriptors_.size(); i++) { output.writeMessage(1, labelDescriptors_.get(i)); } @@ -1483,10 +1285,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < labelDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, labelDescriptors_.get(i)); } for (int i = 0; i < pointDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pointDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, pointDescriptors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1496,16 +1300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesDescriptor other = - (com.google.monitoring.v3.TimeSeriesDescriptor) obj; + com.google.monitoring.v3.TimeSeriesDescriptor other = (com.google.monitoring.v3.TimeSeriesDescriptor) obj; - if (!getLabelDescriptorsList().equals(other.getLabelDescriptorsList())) return false; - if (!getPointDescriptorsList().equals(other.getPointDescriptorsList())) return false; + if (!getLabelDescriptorsList() + .equals(other.getLabelDescriptorsList())) return false; + if (!getPointDescriptorsList() + .equals(other.getPointDescriptorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1530,136 +1335,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A descriptor for the labels and points in a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesDescriptor) com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.class, - com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); } // Construct using com.google.monitoring.v3.TimeSeriesDescriptor.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1682,9 +1483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.MetricProto - .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override @@ -1703,12 +1504,9 @@ public com.google.monitoring.v3.TimeSeriesDescriptor build() { @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor buildPartial() { - com.google.monitoring.v3.TimeSeriesDescriptor result = - new com.google.monitoring.v3.TimeSeriesDescriptor(this); + com.google.monitoring.v3.TimeSeriesDescriptor result = new com.google.monitoring.v3.TimeSeriesDescriptor(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1742,39 +1540,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesDescriptor result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TimeSeriesDescriptor) { - return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor) other); + return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor)other); } else { super.mergeFrom(other); return this; @@ -1801,10 +1598,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor other) { labelDescriptorsBuilder_ = null; labelDescriptors_ = other.labelDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - labelDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelDescriptorsFieldBuilder() - : null; + labelDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLabelDescriptorsFieldBuilder() : null; } else { labelDescriptorsBuilder_.addAllMessages(other.labelDescriptors_); } @@ -1828,10 +1624,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor other) { pointDescriptorsBuilder_ = null; pointDescriptors_ = other.pointDescriptors_; bitField0_ = (bitField0_ & ~0x00000002); - pointDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPointDescriptorsFieldBuilder() - : null; + pointDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointDescriptorsFieldBuilder() : null; } else { pointDescriptorsBuilder_.addAllMessages(other.pointDescriptors_); } @@ -1863,39 +1658,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.LabelDescriptor m = - input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry); - if (labelDescriptorsBuilder_ == null) { - ensureLabelDescriptorsIsMutable(); - labelDescriptors_.add(m); - } else { - labelDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 42: - { - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor m = - input.readMessage( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.parser(), - extensionRegistry); - if (pointDescriptorsBuilder_ == null) { - ensurePointDescriptorsIsMutable(); - pointDescriptors_.add(m); - } else { - pointDescriptorsBuilder_.addMessage(m); - } - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.LabelDescriptor m = + input.readMessage( + com.google.api.LabelDescriptor.parser(), + extensionRegistry); + if (labelDescriptorsBuilder_ == null) { + ensureLabelDescriptorsIsMutable(); + labelDescriptors_.add(m); + } else { + labelDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 42: { + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor m = + input.readMessage( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.parser(), + extensionRegistry); + if (pointDescriptorsBuilder_ == null) { + ensurePointDescriptorsIsMutable(); + pointDescriptors_.add(m); + } else { + pointDescriptorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1905,29 +1699,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List labelDescriptors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLabelDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - labelDescriptors_ = - new java.util.ArrayList(labelDescriptors_); + labelDescriptors_ = new java.util.ArrayList(labelDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, - com.google.api.LabelDescriptor.Builder, - com.google.api.LabelDescriptorOrBuilder> - labelDescriptorsBuilder_; + com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelDescriptorsBuilder_; /** - * - * *
      * Descriptors for the labels.
      * 
@@ -1942,8 +1728,6 @@ public java.util.List getLabelDescriptorsList() } } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -1958,8 +1742,6 @@ public int getLabelDescriptorsCount() { } } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -1974,15 +1756,14 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { } } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder setLabelDescriptors(int index, com.google.api.LabelDescriptor value) { + public Builder setLabelDescriptors( + int index, com.google.api.LabelDescriptor value) { if (labelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1996,8 +1777,6 @@ public Builder setLabelDescriptors(int index, com.google.api.LabelDescriptor val return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2016,8 +1795,6 @@ public Builder setLabelDescriptors( return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2038,15 +1815,14 @@ public Builder addLabelDescriptors(com.google.api.LabelDescriptor value) { return this; } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder addLabelDescriptors(int index, com.google.api.LabelDescriptor value) { + public Builder addLabelDescriptors( + int index, com.google.api.LabelDescriptor value) { if (labelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2060,15 +1836,14 @@ public Builder addLabelDescriptors(int index, com.google.api.LabelDescriptor val return this; } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder addLabelDescriptors(com.google.api.LabelDescriptor.Builder builderForValue) { + public Builder addLabelDescriptors( + com.google.api.LabelDescriptor.Builder builderForValue) { if (labelDescriptorsBuilder_ == null) { ensureLabelDescriptorsIsMutable(); labelDescriptors_.add(builderForValue.build()); @@ -2079,8 +1854,6 @@ public Builder addLabelDescriptors(com.google.api.LabelDescriptor.Builder builde return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2099,8 +1872,6 @@ public Builder addLabelDescriptors( return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2111,7 +1882,8 @@ public Builder addAllLabelDescriptors( java.lang.Iterable values) { if (labelDescriptorsBuilder_ == null) { ensureLabelDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, labelDescriptors_); onChanged(); } else { labelDescriptorsBuilder_.addAllMessages(values); @@ -2119,8 +1891,6 @@ public Builder addAllLabelDescriptors( return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2138,8 +1908,6 @@ public Builder clearLabelDescriptors() { return this; } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2157,44 +1925,39 @@ public Builder removeLabelDescriptors(int index) { return this; } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptor.Builder getLabelDescriptorsBuilder(int index) { + public com.google.api.LabelDescriptor.Builder getLabelDescriptorsBuilder( + int index) { return getLabelDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) { + public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( + int index) { if (labelDescriptorsBuilder_ == null) { - return labelDescriptors_.get(index); - } else { + return labelDescriptors_.get(index); } else { return labelDescriptorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public java.util.List - getLabelDescriptorsOrBuilderList() { + public java.util.List + getLabelDescriptorsOrBuilderList() { if (labelDescriptorsBuilder_ != null) { return labelDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -2202,8 +1965,6 @@ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int } } /** - * - * *
      * Descriptors for the labels.
      * 
@@ -2211,46 +1972,38 @@ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int * repeated .google.api.LabelDescriptor label_descriptors = 1; */ public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder() { - return getLabelDescriptorsFieldBuilder() - .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance()); + return getLabelDescriptorsFieldBuilder().addBuilder( + com.google.api.LabelDescriptor.getDefaultInstance()); } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder(int index) { - return getLabelDescriptorsFieldBuilder() - .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance()); + public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder( + int index) { + return getLabelDescriptorsFieldBuilder().addBuilder( + index, com.google.api.LabelDescriptor.getDefaultInstance()); } /** - * - * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public java.util.List getLabelDescriptorsBuilderList() { + public java.util.List + getLabelDescriptorsBuilderList() { return getLabelDescriptorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, - com.google.api.LabelDescriptor.Builder, - com.google.api.LabelDescriptorOrBuilder> + com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> getLabelDescriptorsFieldBuilder() { if (labelDescriptorsBuilder_ == null) { - labelDescriptorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, - com.google.api.LabelDescriptor.Builder, - com.google.api.LabelDescriptorOrBuilder>( + labelDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>( labelDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2260,37 +2013,26 @@ public java.util.List getLabelDescriptor return labelDescriptorsBuilder_; } - private java.util.List - pointDescriptors_ = java.util.Collections.emptyList(); - + private java.util.List pointDescriptors_ = + java.util.Collections.emptyList(); private void ensurePointDescriptorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - pointDescriptors_ = - new java.util.ArrayList( - pointDescriptors_); + pointDescriptors_ = new java.util.ArrayList(pointDescriptors_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> - pointDescriptorsBuilder_; + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> pointDescriptorsBuilder_; /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public java.util.List - getPointDescriptorsList() { + public java.util.List getPointDescriptorsList() { if (pointDescriptorsBuilder_ == null) { return java.util.Collections.unmodifiableList(pointDescriptors_); } else { @@ -2298,15 +2040,11 @@ private void ensurePointDescriptorsIsMutable() { } } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public int getPointDescriptorsCount() { if (pointDescriptorsBuilder_ == null) { @@ -2316,18 +2054,13 @@ public int getPointDescriptorsCount() { } } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors( - int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index) { if (pointDescriptorsBuilder_ == null) { return pointDescriptors_.get(index); } else { @@ -2335,15 +2068,11 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDes } } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder setPointDescriptors( int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { @@ -2360,19 +2089,14 @@ public Builder setPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder setPointDescriptors( - int index, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { + int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); pointDescriptors_.set(index, builderForValue.build()); @@ -2383,18 +2107,13 @@ public Builder setPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public Builder addPointDescriptors( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { + public Builder addPointDescriptors(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { if (pointDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2408,15 +2127,11 @@ public Builder addPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder addPointDescriptors( int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { @@ -2433,15 +2148,11 @@ public Builder addPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder addPointDescriptors( com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { @@ -2455,19 +2166,14 @@ public Builder addPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder addPointDescriptors( - int index, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { + int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); pointDescriptors_.add(index, builderForValue.build()); @@ -2478,22 +2184,18 @@ public Builder addPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder addAllPointDescriptors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pointDescriptors_); onChanged(); } else { pointDescriptorsBuilder_.addAllMessages(values); @@ -2501,15 +2203,11 @@ public Builder addAllPointDescriptors( return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder clearPointDescriptors() { if (pointDescriptorsBuilder_ == null) { @@ -2522,15 +2220,11 @@ public Builder clearPointDescriptors() { return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ public Builder removePointDescriptors(int index) { if (pointDescriptorsBuilder_ == null) { @@ -2543,53 +2237,39 @@ public Builder removePointDescriptors(int index) { return this; } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder - getPointDescriptorsBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder getPointDescriptorsBuilder( + int index) { return getPointDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder - getPointDescriptorsOrBuilder(int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( + int index) { if (pointDescriptorsBuilder_ == null) { - return pointDescriptors_.get(index); - } else { + return pointDescriptors_.get(index); } else { return pointDescriptorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public java.util.List< - ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> - getPointDescriptorsOrBuilderList() { + public java.util.List + getPointDescriptorsOrBuilderList() { if (pointDescriptorsBuilder_ != null) { return pointDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -2597,67 +2277,45 @@ public Builder removePointDescriptors(int index) { } } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder - addPointDescriptorsBuilder() { - return getPointDescriptorsFieldBuilder() - .addBuilder( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder addPointDescriptorsBuilder() { + return getPointDescriptorsFieldBuilder().addBuilder( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder - addPointDescriptorsBuilder(int index) { - return getPointDescriptorsFieldBuilder() - .addBuilder( - index, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder addPointDescriptorsBuilder( + int index) { + return getPointDescriptorsFieldBuilder().addBuilder( + index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); } /** - * - * *
      * Descriptors for the point data value columns.
      * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - public java.util.List - getPointDescriptorsBuilderList() { + public java.util.List + getPointDescriptorsBuilderList() { return getPointDescriptorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> getPointDescriptorsFieldBuilder() { if (pointDescriptorsBuilder_ == null) { - pointDescriptorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>( + pointDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>( pointDescriptors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2666,9 +2324,9 @@ public Builder removePointDescriptors(int index) { } return pointDescriptorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2678,12 +2336,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor) private static final com.google.monitoring.v3.TimeSeriesDescriptor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesDescriptor(); } @@ -2692,27 +2350,27 @@ public static com.google.monitoring.v3.TimeSeriesDescriptor getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2727,4 +2385,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java similarity index 57% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java index 4e332b8bd906..28e2af7116ad 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesDescriptorOrBuilder - extends +public interface TimeSeriesDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesDescriptor) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - java.util.List getLabelDescriptorsList(); + java.util.List + getLabelDescriptorsList(); /** - * - * *
    * Descriptors for the labels.
    * 
@@ -44,8 +25,6 @@ public interface TimeSeriesDescriptorOrBuilder */ com.google.api.LabelDescriptor getLabelDescriptors(int index); /** - * - * *
    * Descriptors for the labels.
    * 
@@ -54,88 +33,65 @@ public interface TimeSeriesDescriptorOrBuilder */ int getLabelDescriptorsCount(); /** - * - * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - java.util.List + java.util.List getLabelDescriptorsOrBuilderList(); /** - * - * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index); + com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( + int index); /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - java.util.List + java.util.List getPointDescriptorsList(); /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index); /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ int getPointDescriptorsCount(); /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - java.util.List + java.util.List getPointDescriptorsOrBuilderList(); /** - * - * *
    * Descriptors for the point data value columns.
    * 
* - * - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; - * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; */ - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder - getPointDescriptorsOrBuilder(int index); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( + int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java similarity index 100% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java similarity index 90% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java index c72c31b4bc0a..55e7a4eb0418 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesOrBuilder - extends +public interface TimeSeriesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeries) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; - * * @return Whether the metric field is set. */ boolean hasMetric(); /** - * - * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; - * * @return The metric. */ com.google.api.Metric getMetric(); /** - * - * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
@@ -62,8 +38,6 @@ public interface TimeSeriesOrBuilder
   com.google.api.MetricOrBuilder getMetricOrBuilder();
 
   /**
-   *
-   *
    * 
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -72,13 +46,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MonitoredResource resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -87,13 +58,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MonitoredResource resource = 2; - * * @return The resource. */ com.google.api.MonitoredResource getResource(); /** - * - * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -106,8 +74,6 @@ public interface TimeSeriesOrBuilder
   com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -115,13 +81,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -129,13 +92,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; - * * @return The metadata. */ com.google.api.MonitoredResourceMetadata getMetadata(); /** - * - * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -147,8 +107,6 @@ public interface TimeSeriesOrBuilder
   com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -162,13 +120,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** - * - * *
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -182,14 +137,11 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** - * - * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -200,13 +152,10 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** - * - * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -217,14 +166,11 @@ public interface TimeSeriesOrBuilder
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; - * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** - * - * *
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -238,10 +184,9 @@ public interface TimeSeriesOrBuilder
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  java.util.List getPointsList();
+  java.util.List 
+      getPointsList();
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -257,8 +202,6 @@ public interface TimeSeriesOrBuilder
    */
   com.google.monitoring.v3.Point getPoints(int index);
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -274,8 +217,6 @@ public interface TimeSeriesOrBuilder
    */
   int getPointsCount();
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -289,10 +230,9 @@ public interface TimeSeriesOrBuilder
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  java.util.List getPointsOrBuilderList();
+  java.util.List 
+      getPointsOrBuilderList();
   /**
-   *
-   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -306,11 +246,10 @@ public interface TimeSeriesOrBuilder
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index);
+  com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -318,13 +257,10 @@ public interface TimeSeriesOrBuilder
    * 
* * string unit = 8; - * * @return The unit. */ java.lang.String getUnit(); /** - * - * *
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -332,8 +268,8 @@ public interface TimeSeriesOrBuilder
    * 
* * string unit = 8; - * * @return The bytes for unit. */ - com.google.protobuf.ByteString getUnitBytes(); + com.google.protobuf.ByteString + getUnitBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java index 2853822a5cef..5299dc23c226 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
  * `good_service / total_service` ratio. The specified `TimeSeries` must have
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeriesRatio}
  */
-public final class TimeSeriesRatio extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeSeriesRatio extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesRatio)
     TimeSeriesRatioOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeSeriesRatio.newBuilder() to construct.
   private TimeSeriesRatio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TimeSeriesRatio() {
     goodServiceFilter_ = "";
     badServiceFilter_ = "";
@@ -50,32 +32,28 @@ private TimeSeriesRatio() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeSeriesRatio();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeriesRatio.class,
-            com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
+            com.google.monitoring.v3.TimeSeriesRatio.class, com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
   }
 
   public static final int GOOD_SERVICE_FILTER_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object goodServiceFilter_ = "";
   /**
-   *
-   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -84,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string good_service_filter = 4; - * * @return The goodServiceFilter. */ @java.lang.Override @@ -93,15 +70,14 @@ public java.lang.String getGoodServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); goodServiceFilter_ = s; return s; } } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -110,15 +86,16 @@ public java.lang.String getGoodServiceFilter() {
    * 
* * string good_service_filter = 4; - * * @return The bytes for goodServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getGoodServiceFilterBytes() { + public com.google.protobuf.ByteString + getGoodServiceFilterBytes() { java.lang.Object ref = goodServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); goodServiceFilter_ = b; return b; } else { @@ -127,12 +104,9 @@ public com.google.protobuf.ByteString getGoodServiceFilterBytes() { } public static final int BAD_SERVICE_FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object badServiceFilter_ = ""; /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -142,7 +116,6 @@ public com.google.protobuf.ByteString getGoodServiceFilterBytes() {
    * 
* * string bad_service_filter = 5; - * * @return The badServiceFilter. */ @java.lang.Override @@ -151,15 +124,14 @@ public java.lang.String getBadServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); badServiceFilter_ = s; return s; } } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -169,15 +141,16 @@ public java.lang.String getBadServiceFilter() {
    * 
* * string bad_service_filter = 5; - * * @return The bytes for badServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getBadServiceFilterBytes() { + public com.google.protobuf.ByteString + getBadServiceFilterBytes() { java.lang.Object ref = badServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); badServiceFilter_ = b; return b; } else { @@ -186,12 +159,9 @@ public com.google.protobuf.ByteString getBadServiceFilterBytes() { } public static final int TOTAL_SERVICE_FILTER_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object totalServiceFilter_ = ""; /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -200,7 +170,6 @@ public com.google.protobuf.ByteString getBadServiceFilterBytes() {
    * 
* * string total_service_filter = 6; - * * @return The totalServiceFilter. */ @java.lang.Override @@ -209,15 +178,14 @@ public java.lang.String getTotalServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); totalServiceFilter_ = s; return s; } } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -226,15 +194,16 @@ public java.lang.String getTotalServiceFilter() {
    * 
* * string total_service_filter = 6; - * * @return The bytes for totalServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getTotalServiceFilterBytes() { + public com.google.protobuf.ByteString + getTotalServiceFilterBytes() { java.lang.Object ref = totalServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); totalServiceFilter_ = b; return b; } else { @@ -243,7 +212,6 @@ public com.google.protobuf.ByteString getTotalServiceFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goodServiceFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, goodServiceFilter_); } @@ -291,16 +260,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesRatio)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeriesRatio other = (com.google.monitoring.v3.TimeSeriesRatio) obj; - if (!getGoodServiceFilter().equals(other.getGoodServiceFilter())) return false; - if (!getBadServiceFilter().equals(other.getBadServiceFilter())) return false; - if (!getTotalServiceFilter().equals(other.getTotalServiceFilter())) return false; + if (!getGoodServiceFilter() + .equals(other.getGoodServiceFilter())) return false; + if (!getBadServiceFilter() + .equals(other.getBadServiceFilter())) return false; + if (!getTotalServiceFilter() + .equals(other.getTotalServiceFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,104 +295,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesRatio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
    * `good_service / total_service` ratio. The specified `TimeSeries` must have
@@ -432,32 +399,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesRatio}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesRatio)
       com.google.monitoring.v3.TimeSeriesRatioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesRatio.class,
-              com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
+              com.google.monitoring.v3.TimeSeriesRatio.class, com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeriesRatio.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -469,9 +437,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
     }
 
     @java.lang.Override
@@ -490,11 +458,8 @@ public com.google.monitoring.v3.TimeSeriesRatio build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeSeriesRatio buildPartial() {
-      com.google.monitoring.v3.TimeSeriesRatio result =
-          new com.google.monitoring.v3.TimeSeriesRatio(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.TimeSeriesRatio result = new com.google.monitoring.v3.TimeSeriesRatio(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -516,39 +481,38 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesRatio result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeriesRatio) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeriesRatio) other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeriesRatio)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,31 +562,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 34:
-              {
-                goodServiceFilter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 34
-            case 42:
-              {
-                badServiceFilter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 42
-            case 50:
-              {
-                totalServiceFilter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 34: {
+              goodServiceFilter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 34
+            case 42: {
+              badServiceFilter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 42
+            case 50: {
+              totalServiceFilter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -632,13 +592,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object goodServiceFilter_ = "";
     /**
-     *
-     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -647,13 +604,13 @@ public Builder mergeFrom(
      * 
* * string good_service_filter = 4; - * * @return The goodServiceFilter. */ public java.lang.String getGoodServiceFilter() { java.lang.Object ref = goodServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); goodServiceFilter_ = s; return s; @@ -662,8 +619,6 @@ public java.lang.String getGoodServiceFilter() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -672,14 +627,15 @@ public java.lang.String getGoodServiceFilter() {
      * 
* * string good_service_filter = 4; - * * @return The bytes for goodServiceFilter. */ - public com.google.protobuf.ByteString getGoodServiceFilterBytes() { + public com.google.protobuf.ByteString + getGoodServiceFilterBytes() { java.lang.Object ref = goodServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); goodServiceFilter_ = b; return b; } else { @@ -687,8 +643,6 @@ public com.google.protobuf.ByteString getGoodServiceFilterBytes() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -697,22 +651,18 @@ public com.google.protobuf.ByteString getGoodServiceFilterBytes() {
      * 
* * string good_service_filter = 4; - * * @param value The goodServiceFilter to set. * @return This builder for chaining. */ - public Builder setGoodServiceFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGoodServiceFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } goodServiceFilter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -721,7 +671,6 @@ public Builder setGoodServiceFilter(java.lang.String value) {
      * 
* * string good_service_filter = 4; - * * @return This builder for chaining. */ public Builder clearGoodServiceFilter() { @@ -731,8 +680,6 @@ public Builder clearGoodServiceFilter() { return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -741,14 +688,12 @@ public Builder clearGoodServiceFilter() {
      * 
* * string good_service_filter = 4; - * * @param value The bytes for goodServiceFilter to set. * @return This builder for chaining. */ - public Builder setGoodServiceFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGoodServiceFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); goodServiceFilter_ = value; bitField0_ |= 0x00000001; @@ -758,8 +703,6 @@ public Builder setGoodServiceFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object badServiceFilter_ = ""; /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -769,13 +712,13 @@ public Builder setGoodServiceFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string bad_service_filter = 5; - * * @return The badServiceFilter. */ public java.lang.String getBadServiceFilter() { java.lang.Object ref = badServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); badServiceFilter_ = s; return s; @@ -784,8 +727,6 @@ public java.lang.String getBadServiceFilter() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -795,14 +736,15 @@ public java.lang.String getBadServiceFilter() {
      * 
* * string bad_service_filter = 5; - * * @return The bytes for badServiceFilter. */ - public com.google.protobuf.ByteString getBadServiceFilterBytes() { + public com.google.protobuf.ByteString + getBadServiceFilterBytes() { java.lang.Object ref = badServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); badServiceFilter_ = b; return b; } else { @@ -810,8 +752,6 @@ public com.google.protobuf.ByteString getBadServiceFilterBytes() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -821,22 +761,18 @@ public com.google.protobuf.ByteString getBadServiceFilterBytes() {
      * 
* * string bad_service_filter = 5; - * * @param value The badServiceFilter to set. * @return This builder for chaining. */ - public Builder setBadServiceFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBadServiceFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } badServiceFilter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -846,7 +782,6 @@ public Builder setBadServiceFilter(java.lang.String value) {
      * 
* * string bad_service_filter = 5; - * * @return This builder for chaining. */ public Builder clearBadServiceFilter() { @@ -856,8 +791,6 @@ public Builder clearBadServiceFilter() { return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -867,14 +800,12 @@ public Builder clearBadServiceFilter() {
      * 
* * string bad_service_filter = 5; - * * @param value The bytes for badServiceFilter to set. * @return This builder for chaining. */ - public Builder setBadServiceFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBadServiceFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); badServiceFilter_ = value; bitField0_ |= 0x00000002; @@ -884,8 +815,6 @@ public Builder setBadServiceFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object totalServiceFilter_ = ""; /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -894,13 +823,13 @@ public Builder setBadServiceFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string total_service_filter = 6; - * * @return The totalServiceFilter. */ public java.lang.String getTotalServiceFilter() { java.lang.Object ref = totalServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); totalServiceFilter_ = s; return s; @@ -909,8 +838,6 @@ public java.lang.String getTotalServiceFilter() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -919,14 +846,15 @@ public java.lang.String getTotalServiceFilter() {
      * 
* * string total_service_filter = 6; - * * @return The bytes for totalServiceFilter. */ - public com.google.protobuf.ByteString getTotalServiceFilterBytes() { + public com.google.protobuf.ByteString + getTotalServiceFilterBytes() { java.lang.Object ref = totalServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); totalServiceFilter_ = b; return b; } else { @@ -934,8 +862,6 @@ public com.google.protobuf.ByteString getTotalServiceFilterBytes() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -944,22 +870,18 @@ public com.google.protobuf.ByteString getTotalServiceFilterBytes() {
      * 
* * string total_service_filter = 6; - * * @param value The totalServiceFilter to set. * @return This builder for chaining. */ - public Builder setTotalServiceFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTotalServiceFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } totalServiceFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -968,7 +890,6 @@ public Builder setTotalServiceFilter(java.lang.String value) {
      * 
* * string total_service_filter = 6; - * * @return This builder for chaining. */ public Builder clearTotalServiceFilter() { @@ -978,8 +899,6 @@ public Builder clearTotalServiceFilter() { return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -988,23 +907,21 @@ public Builder clearTotalServiceFilter() {
      * 
* * string total_service_filter = 6; - * * @param value The bytes for totalServiceFilter to set. * @return This builder for chaining. */ - public Builder setTotalServiceFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTotalServiceFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); totalServiceFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1014,12 +931,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesRatio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesRatio) private static final com.google.monitoring.v3.TimeSeriesRatio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesRatio(); } @@ -1028,27 +945,27 @@ public static com.google.monitoring.v3.TimeSeriesRatio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesRatio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesRatio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,4 +980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesRatio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java index f6a81bc31c0e..019f08e70621 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; -public interface TimeSeriesRatioOrBuilder - extends +public interface TimeSeriesRatioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesRatio) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -34,13 +16,10 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string good_service_filter = 4; - * * @return The goodServiceFilter. */ java.lang.String getGoodServiceFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -49,14 +28,12 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string good_service_filter = 4; - * * @return The bytes for goodServiceFilter. */ - com.google.protobuf.ByteString getGoodServiceFilterBytes(); + com.google.protobuf.ByteString + getGoodServiceFilterBytes(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -66,13 +43,10 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string bad_service_filter = 5; - * * @return The badServiceFilter. */ java.lang.String getBadServiceFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -82,14 +56,12 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string bad_service_filter = 5; - * * @return The bytes for badServiceFilter. */ - com.google.protobuf.ByteString getBadServiceFilterBytes(); + com.google.protobuf.ByteString + getBadServiceFilterBytes(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -98,13 +70,10 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string total_service_filter = 6; - * * @return The totalServiceFilter. */ java.lang.String getTotalServiceFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -113,8 +82,8 @@ public interface TimeSeriesRatioOrBuilder
    * 
* * string total_service_filter = 6; - * * @return The bytes for totalServiceFilter. */ - com.google.protobuf.ByteString getTotalServiceFilterBytes(); + com.google.protobuf.ByteString + getTotalServiceFilterBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java index d3553bdb19d6..49368c19f2aa 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java @@ -1,73 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** - * - * *
  * A single strongly-typed value.
  * 
* * Protobuf type {@code google.monitoring.v3.TypedValue} */ -public final class TypedValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TypedValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TypedValue) TypedValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TypedValue.newBuilder() to construct. private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TypedValue() {} + private TypedValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TypedValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.CommonProto - .internal_static_google_monitoring_v3_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.CommonProto - .internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable + return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TypedValue.class, - com.google.monitoring.v3.TypedValue.Builder.class); + com.google.monitoring.v3.TypedValue.class, com.google.monitoring.v3.TypedValue.Builder.class); } private int valueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object value_; - public enum ValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), @@ -76,7 +55,6 @@ public enum ValueCase DISTRIBUTION_VALUE(5), VALUE_NOT_SET(0); private final int value; - private ValueCase(int value) { this.value = value; } @@ -92,42 +70,33 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: - return BOOL_VALUE; - case 2: - return INT64_VALUE; - case 3: - return DOUBLE_VALUE; - case 4: - return STRING_VALUE; - case 5: - return DISTRIBUTION_VALUE; - case 0: - return VALUE_NOT_SET; - default: - return null; + case 1: return BOOL_VALUE; + case 2: return INT64_VALUE; + case 3: return DOUBLE_VALUE; + case 4: return STRING_VALUE; + case 5: return DISTRIBUTION_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** - * - * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -135,14 +104,11 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** - * - * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; - * * @return The boolValue. */ @java.lang.Override @@ -155,14 +121,11 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** - * - * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -170,14 +133,11 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** - * - * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; - * * @return The int64Value. */ @java.lang.Override @@ -190,8 +150,6 @@ public long getInt64Value() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** - * - * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -199,7 +157,6 @@ public long getInt64Value() {
    * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -207,8 +164,6 @@ public boolean hasDoubleValue() { return valueCase_ == 3; } /** - * - * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -216,7 +171,6 @@ public boolean hasDoubleValue() {
    * 
* * double double_value = 3; - * * @return The doubleValue. */ @java.lang.Override @@ -229,28 +183,22 @@ public double getDoubleValue() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 4; } /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -261,7 +209,8 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -270,24 +219,23 @@ public java.lang.String getStringValue() { } } /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueCase_ == 4) { value_ = b; } @@ -299,14 +247,11 @@ public com.google.protobuf.ByteString getStringValueBytes() { public static final int DISTRIBUTION_VALUE_FIELD_NUMBER = 5; /** - * - * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; - * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -314,26 +259,21 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** - * - * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; - * * @return The distributionValue. */ @java.lang.Override public com.google.api.Distribution getDistributionValue() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } /** - * - * *
    * A distribution value.
    * 
@@ -343,13 +283,12 @@ public com.google.api.Distribution getDistributionValue() { @java.lang.Override public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,15 +300,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); + output.writeBool( + 1, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) value_)); + output.writeInt64( + 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) value_)); + output.writeDouble( + 3, (double)((java.lang.Double) value_)); } if (valueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); @@ -387,27 +330,26 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, (boolean) ((java.lang.Boolean) value_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 2, (long) ((java.lang.Long) value_)); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 3, (double) ((java.lang.Double) value_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); } if (valueCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.api.Distribution) value_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.api.Distribution) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -417,7 +359,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TypedValue)) { return super.equals(obj); @@ -427,20 +369,25 @@ public boolean equals(final java.lang.Object obj) { if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() != other.getBoolValue()) return false; + if (getBoolValue() + != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() != other.getInt64Value()) return false; + if (getInt64Value() + != other.getInt64Value()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) return false; break; case 4: - if (!getStringValue().equals(other.getStringValue())) return false; + if (!getStringValue() + .equals(other.getStringValue())) return false; break; case 5: - if (!getDistributionValue().equals(other.getDistributionValue())) return false; + if (!getDistributionValue() + .equals(other.getDistributionValue())) return false; break; case 0: default: @@ -459,18 +406,18 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Value()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 4: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -488,135 +435,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TypedValue parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TypedValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TypedValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.TypedValue parseFrom(com.google.protobuf.ByteString data) + public static com.google.monitoring.v3.TypedValue parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TypedValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.TypedValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TypedValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TypedValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TypedValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TypedValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TypedValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.TypedValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TypedValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single strongly-typed value.
    * 
* * Protobuf type {@code google.monitoring.v3.TypedValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TypedValue) com.google.monitoring.v3.TypedValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.CommonProto - .internal_static_google_monitoring_v3_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.CommonProto - .internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable + return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TypedValue.class, - com.google.monitoring.v3.TypedValue.Builder.class); + com.google.monitoring.v3.TypedValue.class, com.google.monitoring.v3.TypedValue.Builder.class); } // Construct using com.google.monitoring.v3.TypedValue.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -630,9 +574,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.CommonProto - .internal_static_google_monitoring_v3_TypedValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override @@ -652,9 +596,7 @@ public com.google.monitoring.v3.TypedValue build() { @java.lang.Override public com.google.monitoring.v3.TypedValue buildPartial() { com.google.monitoring.v3.TypedValue result = new com.google.monitoring.v3.TypedValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -667,7 +609,8 @@ private void buildPartial0(com.google.monitoring.v3.TypedValue result) { private void buildPartialOneofs(com.google.monitoring.v3.TypedValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 5 && distributionValueBuilder_ != null) { + if (valueCase_ == 5 && + distributionValueBuilder_ != null) { result.value_ = distributionValueBuilder_.build(); } } @@ -676,39 +619,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.TypedValue result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TypedValue) { - return mergeFrom((com.google.monitoring.v3.TypedValue) other); + return mergeFrom((com.google.monitoring.v3.TypedValue)other); } else { super.mergeFrom(other); return this; @@ -718,37 +660,31 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.monitoring.v3.TypedValue other) { if (other == com.google.monitoring.v3.TypedValue.getDefaultInstance()) return this; switch (other.getValueCase()) { - case BOOL_VALUE: - { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: - { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: - { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case DISTRIBUTION_VALUE: - { - mergeDistributionValue(other.getDistributionValue()); - break; - } - case VALUE_NOT_SET: - { - break; - } + case BOOL_VALUE: { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case DISTRIBUTION_VALUE: { + mergeDistributionValue(other.getDistributionValue()); + break; + } + case VALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -776,45 +712,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: - { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: - { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - case 42: - { - input.readMessage( - getDistributionValueFieldBuilder().getBuilder(), extensionRegistry); - valueCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + case 42: { + input.readMessage( + getDistributionValueFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,12 +755,12 @@ public Builder mergeFrom( } // finally return this; } - private int valueCase_ = 0; private java.lang.Object value_; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public Builder clearValue() { @@ -842,28 +773,22 @@ public Builder clearValue() { private int bitField0_; /** - * - * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** - * - * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; - * * @return The boolValue. */ public boolean getBoolValue() { @@ -873,14 +798,11 @@ public boolean getBoolValue() { return false; } /** - * - * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; - * * @param value The boolValue to set. * @return This builder for chaining. */ @@ -892,14 +814,11 @@ public Builder setBoolValue(boolean value) { return this; } /** - * - * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; - * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -912,28 +831,22 @@ public Builder clearBoolValue() { } /** - * - * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** - * - * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; - * * @return The int64Value. */ public long getInt64Value() { @@ -943,14 +856,11 @@ public long getInt64Value() { return 0L; } /** - * - * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; - * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -962,14 +872,11 @@ public Builder setInt64Value(long value) { return this; } /** - * - * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; - * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -982,8 +889,6 @@ public Builder clearInt64Value() { } /** - * - * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -991,15 +896,12 @@ public Builder clearInt64Value() {
      * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueCase_ == 3; } /** - * - * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -1007,7 +909,6 @@ public boolean hasDoubleValue() {
      * 
* * double double_value = 3; - * * @return The doubleValue. */ public double getDoubleValue() { @@ -1017,8 +918,6 @@ public double getDoubleValue() { return 0D; } /** - * - * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -1026,7 +925,6 @@ public double getDoubleValue() {
      * 
* * double double_value = 3; - * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -1038,8 +936,6 @@ public Builder setDoubleValue(double value) { return this; } /** - * - * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -1047,7 +943,6 @@ public Builder setDoubleValue(double value) {
      * 
* * double double_value = 3; - * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -1060,14 +955,11 @@ public Builder clearDoubleValue() { } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1075,14 +967,11 @@ public boolean hasStringValue() { return valueCase_ == 4; } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @return The stringValue. */ @java.lang.Override @@ -1092,7 +981,8 @@ public java.lang.String getStringValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -1103,25 +993,24 @@ public java.lang.String getStringValue() { } } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (valueCase_ == 4) { value_ = b; } @@ -1131,35 +1020,28 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCase_ = 4; value_ = value; onChanged(); return this; } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1171,21 +1053,17 @@ public Builder clearStringValue() { return this; } /** - * - * *
      * A variable-length string value.
      * 
* * string string_value = 4; - * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 4; value_ = value; @@ -1194,19 +1072,13 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, - com.google.api.Distribution.Builder, - com.google.api.DistributionOrBuilder> - distributionValueBuilder_; + com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> distributionValueBuilder_; /** - * - * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; - * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -1214,14 +1086,11 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** - * - * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; - * * @return The distributionValue. */ @java.lang.Override @@ -1239,8 +1108,6 @@ public com.google.api.Distribution getDistributionValue() { } } /** - * - * *
      * A distribution value.
      * 
@@ -1261,15 +1128,14 @@ public Builder setDistributionValue(com.google.api.Distribution value) { return this; } /** - * - * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; */ - public Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue) { + public Builder setDistributionValue( + com.google.api.Distribution.Builder builderForValue) { if (distributionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1280,8 +1146,6 @@ public Builder setDistributionValue(com.google.api.Distribution.Builder builderF return this; } /** - * - * *
      * A distribution value.
      * 
@@ -1290,11 +1154,10 @@ public Builder setDistributionValue(com.google.api.Distribution.Builder builderF */ public Builder mergeDistributionValue(com.google.api.Distribution value) { if (distributionValueBuilder_ == null) { - if (valueCase_ == 5 && value_ != com.google.api.Distribution.getDefaultInstance()) { - value_ = - com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) - .mergeFrom(value) - .buildPartial(); + if (valueCase_ == 5 && + value_ != com.google.api.Distribution.getDefaultInstance()) { + value_ = com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) + .mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -1310,8 +1173,6 @@ public Builder mergeDistributionValue(com.google.api.Distribution value) { return this; } /** - * - * *
      * A distribution value.
      * 
@@ -1335,8 +1196,6 @@ public Builder clearDistributionValue() { return this; } /** - * - * *
      * A distribution value.
      * 
@@ -1347,8 +1206,6 @@ public com.google.api.Distribution.Builder getDistributionValueBuilder() { return getDistributionValueFieldBuilder().getBuilder(); } /** - * - * *
      * A distribution value.
      * 
@@ -1367,8 +1224,6 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { } } /** - * - * *
      * A distribution value.
      * 
@@ -1376,29 +1231,26 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { * .google.api.Distribution distribution_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, - com.google.api.Distribution.Builder, - com.google.api.DistributionOrBuilder> + com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> getDistributionValueFieldBuilder() { if (distributionValueBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = com.google.api.Distribution.getDefaultInstance(); } - distributionValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, - com.google.api.Distribution.Builder, - com.google.api.DistributionOrBuilder>( - (com.google.api.Distribution) value_, getParentForChildren(), isClean()); + distributionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder>( + (com.google.api.Distribution) value_, + getParentForChildren(), + isClean()); value_ = null; } valueCase_ = 5; onChanged(); return distributionValueBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1408,12 +1260,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TypedValue) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) private static final com.google.monitoring.v3.TypedValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TypedValue(); } @@ -1422,27 +1274,27 @@ public static com.google.monitoring.v3.TypedValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1457,4 +1309,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TypedValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java similarity index 77% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java index 1074b812fc7d..531417d1c226 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java @@ -1,81 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; -public interface TypedValueOrBuilder - extends +public interface TypedValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TypedValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; - * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** - * - * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; - * * @return The boolValue. */ boolean getBoolValue(); /** - * - * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; - * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** - * - * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; - * * @return The int64Value. */ long getInt64Value(); /** - * - * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -83,13 +53,10 @@ public interface TypedValueOrBuilder
    * 
* * double double_value = 3; - * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** - * - * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -97,75 +64,58 @@ public interface TypedValueOrBuilder
    * 
* * double double_value = 3; - * * @return The doubleValue. */ double getDoubleValue(); /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return The stringValue. */ java.lang.String getStringValue(); /** - * - * *
    * A variable-length string value.
    * 
* * string string_value = 4; - * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString getStringValueBytes(); + com.google.protobuf.ByteString + getStringValueBytes(); /** - * - * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; - * * @return Whether the distributionValue field is set. */ boolean hasDistributionValue(); /** - * - * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; - * * @return The distributionValue. */ com.google.api.Distribution getDistributionValue(); /** - * - * *
    * A distribution value.
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java index 50c978f0a638..2ac5295b075c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java @@ -1,70 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `UpdateAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateAlertPolicyRequest} */ -public final class UpdateAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAlertPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateAlertPolicyRequest) UpdateAlertPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAlertPolicyRequest.newBuilder() to construct. private UpdateAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAlertPolicyRequest() {} + private UpdateAlertPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateAlertPolicyRequest.class, - com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.UpdateAlertPolicyRequest.class, com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -90,7 +70,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,8 +77,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -125,7 +102,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -133,8 +109,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -169,8 +143,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int ALERT_POLICY_FIELD_NUMBER = 3;
   private com.google.monitoring.v3.AlertPolicy alertPolicy_;
   /**
-   *
-   *
    * 
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -178,10 +150,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ @java.lang.Override @@ -189,8 +158,6 @@ public boolean hasAlertPolicy() { return alertPolicy_ != null; } /** - * - * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -198,21 +165,14 @@ public boolean hasAlertPolicy() {
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } /** - * - * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -220,19 +180,14 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() {
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +199,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -261,10 +217,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (alertPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAlertPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAlertPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,21 +232,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateAlertPolicyRequest other = - (com.google.monitoring.v3.UpdateAlertPolicyRequest) obj; + com.google.monitoring.v3.UpdateAlertPolicyRequest other = (com.google.monitoring.v3.UpdateAlertPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasAlertPolicy() != other.hasAlertPolicy()) return false; if (hasAlertPolicy()) { - if (!getAlertPolicy().equals(other.getAlertPolicy())) return false; + if (!getAlertPolicy() + .equals(other.getAlertPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -315,135 +274,131 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `UpdateAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateAlertPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateAlertPolicyRequest) com.google.monitoring.v3.UpdateAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateAlertPolicyRequest.class, - com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.UpdateAlertPolicyRequest.class, com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateAlertPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto - .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override @@ -483,11 +438,8 @@ public com.google.monitoring.v3.UpdateAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.UpdateAlertPolicyRequest result = - new com.google.monitoring.v3.UpdateAlertPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateAlertPolicyRequest result = new com.google.monitoring.v3.UpdateAlertPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -495,11 +447,14 @@ public com.google.monitoring.v3.UpdateAlertPolicyRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateAlertPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.alertPolicy_ = - alertPolicyBuilder_ == null ? alertPolicy_ : alertPolicyBuilder_.build(); + result.alertPolicy_ = alertPolicyBuilder_ == null + ? alertPolicy_ + : alertPolicyBuilder_.build(); } } @@ -507,39 +462,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateAlertPolicyRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateAlertPolicyRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateAlertPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -581,25 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage(getAlertPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getAlertPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,18 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -646,15 +594,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -680,21 +625,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -735,8 +675,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -763,7 +701,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -774,8 +713,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -804,9 +741,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -819,8 +756,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -858,8 +793,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -892,8 +825,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -924,14 +855,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -959,17 +887,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -977,13 +902,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.monitoring.v3.AlertPolicy alertPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy,
-            com.google.monitoring.v3.AlertPolicy.Builder,
-            com.google.monitoring.v3.AlertPolicyOrBuilder>
-        alertPolicyBuilder_;
+        com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPolicyBuilder_;
     /**
-     *
-     *
      * 
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -991,18 +911,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ public boolean hasAlertPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1010,24 +925,17 @@ public boolean hasAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1035,9 +943,7 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { @@ -1053,8 +959,6 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1062,11 +966,10 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder setAlertPolicy( + com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPolicyBuilder_ == null) { alertPolicy_ = builderForValue.build(); } else { @@ -1077,8 +980,6 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder build return this; } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1086,15 +987,13 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder build
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && alertPolicy_ != null - && alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + alertPolicy_ != null && + alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { getAlertPolicyBuilder().mergeFrom(value); } else { alertPolicy_ = value; @@ -1107,8 +1006,6 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1116,9 +1013,7 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAlertPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1131,8 +1026,6 @@ public Builder clearAlertPolicy() { return this; } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1140,9 +1033,7 @@ public Builder clearAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { bitField0_ |= 0x00000002; @@ -1150,8 +1041,6 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { return getAlertPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1159,22 +1048,17 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { - return alertPolicy_ == null - ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() - : alertPolicy_; + return alertPolicy_ == null ? + com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } } /** - * - * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1182,29 +1066,24 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPolicyFieldBuilder() { if (alertPolicyBuilder_ == null) { - alertPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, - com.google.monitoring.v3.AlertPolicy.Builder, - com.google.monitoring.v3.AlertPolicyOrBuilder>( - getAlertPolicy(), getParentForChildren(), isClean()); + alertPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( + getAlertPolicy(), + getParentForChildren(), + isClean()); alertPolicy_ = null; } return alertPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1214,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) private static final com.google.monitoring.v3.UpdateAlertPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateAlertPolicyRequest(); } @@ -1228,27 +1107,27 @@ public static com.google.monitoring.v3.UpdateAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,4 +1142,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java similarity index 83% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java index a2a6b7051963..5aa4a388022f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface UpdateAlertPolicyRequestOrBuilder - extends +public interface UpdateAlertPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateAlertPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -51,13 +33,10 @@ public interface UpdateAlertPolicyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -83,13 +62,10 @@ public interface UpdateAlertPolicyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -119,8 +95,6 @@ public interface UpdateAlertPolicyRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -128,16 +102,11 @@ public interface UpdateAlertPolicyRequestOrBuilder
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the alertPolicy field is set. */ boolean hasAlertPolicy(); /** - * - * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -145,16 +114,11 @@ public interface UpdateAlertPolicyRequestOrBuilder
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The alertPolicy. */ com.google.monitoring.v3.AlertPolicy getAlertPolicy(); /** - * - * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -162,9 +126,7 @@ public interface UpdateAlertPolicyRequestOrBuilder
    * not in `update_mask` are ignored.
    * 
* - * - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java similarity index 70% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java index 59bd7dfa918d..96d1633f4036 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `UpdateGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateGroupRequest} */ -public final class UpdateGroupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateGroupRequest) UpdateGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateGroupRequest.newBuilder() to construct. private UpdateGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateGroupRequest() {} + private UpdateGroupRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateGroupRequest.class, - com.google.monitoring.v3.UpdateGroupRequest.Builder.class); + com.google.monitoring.v3.UpdateGroupRequest.class, com.google.monitoring.v3.UpdateGroupRequest.Builder.class); } public static final int GROUP_FIELD_NUMBER = 2; private com.google.monitoring.v3.Group group_; /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ @java.lang.Override @@ -79,15 +58,12 @@ public boolean hasGroup() { return group_ != null; } /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ @java.lang.Override @@ -95,8 +71,6 @@ public com.google.monitoring.v3.Group getGroup() { return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_; } /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
@@ -112,14 +86,11 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If true, validate this request but do not update the existing group.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -128,7 +99,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (group_ != null) { output.writeMessage(2, getGroup()); } @@ -157,10 +128,12 @@ public int getSerializedSize() { size = 0; if (group_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGroup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGroup()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,19 +143,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateGroupRequest other = - (com.google.monitoring.v3.UpdateGroupRequest) obj; + com.google.monitoring.v3.UpdateGroupRequest other = (com.google.monitoring.v3.UpdateGroupRequest) obj; if (hasGroup() != other.hasGroup()) return false; if (hasGroup()) { - if (!getGroup().equals(other.getGroup())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,142 +173,139 @@ public int hashCode() { hash = (53 * hash) + getGroup().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `UpdateGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateGroupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateGroupRequest) com.google.monitoring.v3.UpdateGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateGroupRequest.class, - com.google.monitoring.v3.UpdateGroupRequest.Builder.class); + com.google.monitoring.v3.UpdateGroupRequest.class, com.google.monitoring.v3.UpdateGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateGroupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto - .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override @@ -370,11 +341,8 @@ public com.google.monitoring.v3.UpdateGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateGroupRequest buildPartial() { - com.google.monitoring.v3.UpdateGroupRequest result = - new com.google.monitoring.v3.UpdateGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateGroupRequest result = new com.google.monitoring.v3.UpdateGroupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -382,7 +350,9 @@ public com.google.monitoring.v3.UpdateGroupRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateGroupRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.group_ = groupBuilder_ == null ? group_ : groupBuilder_.build(); + result.group_ = groupBuilder_ == null + ? group_ + : groupBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.validateOnly_ = validateOnly_; @@ -393,39 +363,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateGroupRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateGroupRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateGroupRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateGroupRequest)other); } else { super.mergeFrom(other); return this; @@ -466,25 +435,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,40 +462,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.Group group_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Group, - com.google.monitoring.v3.Group.Builder, - com.google.monitoring.v3.GroupOrBuilder> - groupBuilder_; + com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; /** - * - * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ public com.google.monitoring.v3.Group getGroup() { @@ -538,8 +496,6 @@ public com.google.monitoring.v3.Group getGroup() { } } /** - * - * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -561,8 +517,6 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -570,7 +524,8 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
      *
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue) {
+    public Builder setGroup(
+        com.google.monitoring.v3.Group.Builder builderForValue) {
       if (groupBuilder_ == null) {
         group_ = builderForValue.build();
       } else {
@@ -581,8 +536,6 @@ public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -592,9 +545,9 @@ public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue)
      */
     public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       if (groupBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && group_ != null
-            && group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          group_ != null &&
+          group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
           getGroupBuilder().mergeFrom(value);
         } else {
           group_ = value;
@@ -607,8 +560,6 @@ public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -627,8 +578,6 @@ public Builder clearGroup() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -642,8 +591,6 @@ public com.google.monitoring.v3.Group.Builder getGroupBuilder() {
       return getGroupFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -655,12 +602,11 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
       if (groupBuilder_ != null) {
         return groupBuilder_.getMessageOrBuilder();
       } else {
-        return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_;
+        return group_ == null ?
+            com.google.monitoring.v3.Group.getDefaultInstance() : group_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -669,32 +615,26 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Group,
-            com.google.monitoring.v3.Group.Builder,
-            com.google.monitoring.v3.GroupOrBuilder>
+        com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> 
         getGroupFieldBuilder() {
       if (groupBuilder_ == null) {
-        groupBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.Group,
-                com.google.monitoring.v3.Group.Builder,
-                com.google.monitoring.v3.GroupOrBuilder>(
-                getGroup(), getParentForChildren(), isClean());
+        groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>(
+                getGroup(),
+                getParentForChildren(),
+                isClean());
         group_ = null;
       }
       return groupBuilder_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -702,14 +642,11 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -721,14 +658,11 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -737,9 +671,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -749,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) private static final com.google.monitoring.v3.UpdateGroupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateGroupRequest(); } @@ -763,27 +697,27 @@ public static com.google.monitoring.v3.UpdateGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -798,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java similarity index 69% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java index dfde9f3960e7..4ea723dd2111 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface UpdateGroupRequestOrBuilder - extends +public interface UpdateGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateGroupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the group field is set. */ boolean hasGroup(); /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The group. */ com.google.monitoring.v3.Group getGroup(); /** - * - * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
@@ -62,14 +38,11 @@ public interface UpdateGroupRequestOrBuilder
   com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder();
 
   /**
-   *
-   *
    * 
    * If true, validate this request but do not update the existing group.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java similarity index 65% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java index 183cf5cc3762..137e0429eab8 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java @@ -1,77 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `UpdateNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateNotificationChannelRequest} */ -public final class UpdateNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNotificationChannelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateNotificationChannelRequest) UpdateNotificationChannelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNotificationChannelRequest.newBuilder() to construct. - private UpdateNotificationChannelRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNotificationChannelRequest() {} + private UpdateNotificationChannelRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateNotificationChannelRequest.class, - com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.UpdateNotificationChannelRequest.class, com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -79,14 +57,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -94,8 +69,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The fields to update.
    * 
@@ -110,8 +83,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int NOTIFICATION_CHANNEL_FIELD_NUMBER = 3; private com.google.monitoring.v3.NotificationChannel notificationChannel_; /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -119,10 +90,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ @java.lang.Override @@ -130,8 +98,6 @@ public boolean hasNotificationChannel() { return notificationChannel_ != null; } /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -139,21 +105,14 @@ public boolean hasNotificationChannel() {
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -161,19 +120,14 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() {
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -202,10 +157,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (notificationChannel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationChannel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNotificationChannel()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,21 +172,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateNotificationChannelRequest other = - (com.google.monitoring.v3.UpdateNotificationChannelRequest) obj; + com.google.monitoring.v3.UpdateNotificationChannelRequest other = (com.google.monitoring.v3.UpdateNotificationChannelRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasNotificationChannel() != other.hasNotificationChannel()) return false; if (hasNotificationChannel()) { - if (!getNotificationChannel().equals(other.getNotificationChannel())) return false; + if (!getNotificationChannel() + .equals(other.getNotificationChannel())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -256,136 +214,131 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UpdateNotificationChannelRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UpdateNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `UpdateNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateNotificationChannelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateNotificationChannelRequest) com.google.monitoring.v3.UpdateNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateNotificationChannelRequest.class, - com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.UpdateNotificationChannelRequest.class, com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateNotificationChannelRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override @@ -425,11 +378,8 @@ public com.google.monitoring.v3.UpdateNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.UpdateNotificationChannelRequest result = - new com.google.monitoring.v3.UpdateNotificationChannelRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateNotificationChannelRequest result = new com.google.monitoring.v3.UpdateNotificationChannelRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -437,13 +387,14 @@ public com.google.monitoring.v3.UpdateNotificationChannelRequest buildPartial() private void buildPartial0(com.google.monitoring.v3.UpdateNotificationChannelRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationChannel_ = - notificationChannelBuilder_ == null - ? notificationChannel_ - : notificationChannelBuilder_.build(); + result.notificationChannel_ = notificationChannelBuilder_ == null + ? notificationChannel_ + : notificationChannelBuilder_.build(); } } @@ -451,39 +402,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateNotificationChannelReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateNotificationChannelRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateNotificationChannelRequest)other); } else { super.mergeFrom(other); return this; @@ -491,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -525,26 +474,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage( - getNotificationChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getNotificationChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,52 +503,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The fields to update.
      * 
@@ -620,15 +555,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -639,8 +573,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The fields to update.
      * 
@@ -649,9 +581,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -664,8 +596,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The fields to update.
      * 
@@ -683,8 +613,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The fields to update.
      * 
@@ -697,8 +625,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The fields to update.
      * 
@@ -709,14 +635,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The fields to update.
      * 
@@ -724,17 +647,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -742,13 +662,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.monitoring.v3.NotificationChannel notificationChannel_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> - notificationChannelBuilder_; + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelBuilder_; /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -756,18 +671,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ public boolean hasNotificationChannel() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -775,24 +685,17 @@ public boolean hasNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { if (notificationChannelBuilder_ == null) { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -800,9 +703,7 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { @@ -818,8 +719,6 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann return this; } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -827,9 +726,7 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationChannel( com.google.monitoring.v3.NotificationChannel.Builder builderForValue) { @@ -843,8 +740,6 @@ public Builder setNotificationChannel( return this; } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -852,16 +747,13 @@ public Builder setNotificationChannel(
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && notificationChannel_ != null - && notificationChannel_ - != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + notificationChannel_ != null && + notificationChannel_ != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { getNotificationChannelBuilder().mergeFrom(value); } else { notificationChannel_ = value; @@ -874,8 +766,6 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha return this; } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -883,9 +773,7 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationChannel() { bitField0_ = (bitField0_ & ~0x00000002); @@ -898,8 +786,6 @@ public Builder clearNotificationChannel() { return this; } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -907,9 +793,7 @@ public Builder clearNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { bitField0_ |= 0x00000002; @@ -917,8 +801,6 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -926,22 +808,17 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { - return notificationChannel_ == null - ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() - : notificationChannel_; + return notificationChannel_ == null ? + com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } } /** - * - * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -949,29 +826,24 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan
      * included in the `update_mask`.
      * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelFieldBuilder() { if (notificationChannelBuilder_ == null) { - notificationChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, - com.google.monitoring.v3.NotificationChannel.Builder, - com.google.monitoring.v3.NotificationChannelOrBuilder>( - getNotificationChannel(), getParentForChildren(), isClean()); + notificationChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( + getNotificationChannel(), + getParentForChildren(), + isClean()); notificationChannel_ = null; } return notificationChannelBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -981,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) private static final com.google.monitoring.v3.UpdateNotificationChannelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateNotificationChannelRequest(); } @@ -995,27 +867,27 @@ public static com.google.monitoring.v3.UpdateNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,4 +902,6 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.UpdateNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java index 32f9874a181c..d2168eaec1ed 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface UpdateNotificationChannelRequestOrBuilder - extends +public interface UpdateNotificationChannelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The fields to update.
    * 
@@ -59,8 +35,6 @@ public interface UpdateNotificationChannelRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -68,16 +42,11 @@ public interface UpdateNotificationChannelRequestOrBuilder
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationChannel field is set. */ boolean hasNotificationChannel(); /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -85,16 +54,11 @@ public interface UpdateNotificationChannelRequestOrBuilder
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationChannel. */ com.google.monitoring.v3.NotificationChannel getNotificationChannel(); /** - * - * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -102,9 +66,7 @@ public interface UpdateNotificationChannelRequestOrBuilder
    * included in the `update_mask`.
    * 
* - * - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java similarity index 64% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java index 21d7fb780b51..8ffc69babf44 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java @@ -1,80 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `UpdateServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceLevelObjectiveRequest} */ -public final class UpdateServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateServiceLevelObjectiveRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) UpdateServiceLevelObjectiveRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateServiceLevelObjectiveRequest.newBuilder() to construct. - private UpdateServiceLevelObjectiveRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateServiceLevelObjectiveRequest() {} + private UpdateServiceLevelObjectiveRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); } public static final int SERVICE_LEVEL_OBJECTIVE_FIELD_NUMBER = 1; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ @java.lang.Override @@ -82,56 +58,39 @@ public boolean hasServiceLevelObjective() { return serviceLevelObjective_ != null; } /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder - getServiceLevelObjectiveOrBuilder() { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -139,14 +98,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -154,8 +110,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
@@ -168,7 +122,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +133,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (serviceLevelObjective_ != null) { output.writeMessage(1, getServiceLevelObjective()); } @@ -197,11 +151,12 @@ public int getSerializedSize() { size = 0; if (serviceLevelObjective_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getServiceLevelObjective()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getServiceLevelObjective()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,21 +166,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other = - (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other = (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) obj; if (hasServiceLevelObjective() != other.hasServiceLevelObjective()) return false; if (hasServiceLevelObjective()) { - if (!getServiceLevelObjective().equals(other.getServiceLevelObjective())) return false; + if (!getServiceLevelObjective() + .equals(other.getServiceLevelObjective())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,136 +208,131 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `UpdateServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceLevelObjectiveRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) com.google.monitoring.v3.UpdateServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -421,11 +372,8 @@ public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result = - new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result = new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -433,13 +381,14 @@ public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest buildPartial( private void buildPartial0(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.serviceLevelObjective_ = - serviceLevelObjectiveBuilder_ == null - ? serviceLevelObjective_ - : serviceLevelObjectiveBuilder_.build(); + result.serviceLevelObjective_ = serviceLevelObjectiveBuilder_ == null + ? serviceLevelObjective_ + : serviceLevelObjectiveBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -447,39 +396,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateServiceLevelObjectiveR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance()) return this; if (other.hasServiceLevelObjective()) { mergeServiceLevelObjective(other.getServiceLevelObjective()); } @@ -521,26 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getServiceLevelObjectiveFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getServiceLevelObjectiveFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,66 +497,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> - serviceLevelObjectiveBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectiveBuilder_; /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ public boolean hasServiceLevelObjective() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { if (serviceLevelObjectiveBuilder_ == null) { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } else { return serviceLevelObjectiveBuilder_.getMessage(); } } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { @@ -625,16 +552,12 @@ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObj return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServiceLevelObjective( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -648,24 +571,18 @@ public Builder setServiceLevelObjective( return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeServiceLevelObjective( - com.google.monitoring.v3.ServiceLevelObjective value) { + public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && serviceLevelObjective_ != null - && serviceLevelObjective_ - != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + serviceLevelObjective_ != null && + serviceLevelObjective_ != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { getServiceLevelObjectiveBuilder().mergeFrom(value); } else { serviceLevelObjective_ = value; @@ -678,16 +595,12 @@ public Builder mergeServiceLevelObjective( return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServiceLevelObjective() { bitField0_ = (bitField0_ & ~0x00000001); @@ -700,69 +613,51 @@ public Builder clearServiceLevelObjective() { return this; } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder - getServiceLevelObjectiveBuilder() { + public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectiveBuilder() { bitField0_ |= 0x00000001; onChanged(); return getServiceLevelObjectiveFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder - getServiceLevelObjectiveOrBuilder() { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { if (serviceLevelObjectiveBuilder_ != null) { return serviceLevelObjectiveBuilder_.getMessageOrBuilder(); } else { - return serviceLevelObjective_ == null - ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() - : serviceLevelObjective_; + return serviceLevelObjective_ == null ? + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; } } /** - * - * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectiveFieldBuilder() { if (serviceLevelObjectiveBuilder_ == null) { - serviceLevelObjectiveBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, - com.google.monitoring.v3.ServiceLevelObjective.Builder, - com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( - getServiceLevelObjective(), getParentForChildren(), isClean()); + serviceLevelObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + getServiceLevelObjective(), + getParentForChildren(), + isClean()); serviceLevelObjective_ = null; } return serviceLevelObjectiveBuilder_; @@ -770,47 +665,34 @@ public Builder clearServiceLevelObjective() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -831,15 +713,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -850,8 +731,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -860,9 +739,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -875,8 +754,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -894,8 +771,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -908,8 +783,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -920,14 +793,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -935,24 +805,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -962,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(); } @@ -976,27 +843,27 @@ public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1011,4 +878,6 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java similarity index 60% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java index 83d08701d62d..a4b20583482b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java @@ -1,99 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface UpdateServiceLevelObjectiveRequestOrBuilder - extends +public interface UpdateServiceLevelObjectiveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the serviceLevelObjective field is set. */ boolean hasServiceLevelObjective(); /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The serviceLevelObjective. */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(); /** - * - * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java similarity index 69% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java index 596052849cea..11b19e44173e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** - * - * *
  * The `UpdateService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceRequest} */ -public final class UpdateServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateServiceRequest) UpdateServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateServiceRequest.newBuilder() to construct. private UpdateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateServiceRequest() {} + private UpdateServiceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceRequest.class, - com.google.monitoring.v3.UpdateServiceRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceRequest.class, com.google.monitoring.v3.UpdateServiceRequest.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.monitoring.v3.Service service_; /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ @java.lang.Override @@ -80,16 +58,12 @@ public boolean hasService() { return service_ != null; } /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ @java.lang.Override @@ -97,15 +71,12 @@ public com.google.monitoring.v3.Service getService() { return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { @@ -115,14 +86,11 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -130,14 +98,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -145,8 +110,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
@@ -159,7 +122,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,7 +133,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (service_ != null) { output.writeMessage(1, getService()); } @@ -188,10 +151,12 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getService()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,21 +166,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateServiceRequest other = - (com.google.monitoring.v3.UpdateServiceRequest) obj; + com.google.monitoring.v3.UpdateServiceRequest other = (com.google.monitoring.v3.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -241,136 +207,132 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `UpdateService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateServiceRequest) com.google.monitoring.v3.UpdateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceRequest.class, - com.google.monitoring.v3.UpdateServiceRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceRequest.class, com.google.monitoring.v3.UpdateServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateServiceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto - .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override @@ -410,11 +372,8 @@ public com.google.monitoring.v3.UpdateServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateServiceRequest buildPartial() { - com.google.monitoring.v3.UpdateServiceRequest result = - new com.google.monitoring.v3.UpdateServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateServiceRequest result = new com.google.monitoring.v3.UpdateServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,10 +381,14 @@ public com.google.monitoring.v3.UpdateServiceRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateServiceRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + result.service_ = serviceBuilder_ == null + ? service_ + : serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -433,39 +396,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateServiceRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateServiceRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateServiceRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateServiceRequest)other); } else { super.mergeFrom(other); return this; @@ -506,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getServiceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,42 +497,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.monitoring.v3.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> - serviceBuilder_; + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> serviceBuilder_; /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ public boolean hasService() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ public com.google.monitoring.v3.Service getService() { @@ -580,15 +531,12 @@ public com.google.monitoring.v3.Service getService() { } } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { @@ -604,17 +552,15 @@ public Builder setService(com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setService(com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder setService( + com.google.monitoring.v3.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); } else { @@ -625,21 +571,18 @@ public Builder setService(com.google.monitoring.v3.Service.Builder builderForVal return this; } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && service_ != null - && service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + service_ != null && + service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { getServiceBuilder().mergeFrom(value); } else { service_ = value; @@ -652,15 +595,12 @@ public Builder mergeService(com.google.monitoring.v3.Service value) { return this; } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); @@ -673,15 +613,12 @@ public Builder clearService() { return this; } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { bitField0_ |= 0x00000001; @@ -689,46 +626,38 @@ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { return getServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; + return service_ == null ? + com.google.monitoring.v3.Service.getDefaultInstance() : service_; } } /** - * - * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, - com.google.monitoring.v3.Service.Builder, - com.google.monitoring.v3.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( + getService(), + getParentForChildren(), + isClean()); service_ = null; } return serviceBuilder_; @@ -736,47 +665,34 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -797,15 +713,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -816,8 +731,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -826,9 +739,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,8 +754,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -860,8 +771,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -874,8 +783,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -886,14 +793,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -901,24 +805,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -928,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceRequest) private static final com.google.monitoring.v3.UpdateServiceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateServiceRequest(); } @@ -942,27 +843,27 @@ public static com.google.monitoring.v3.UpdateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java similarity index 68% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java index 5e0938ee6573..18152641016c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java @@ -1,96 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface UpdateServiceRequestOrBuilder - extends +public interface UpdateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ boolean hasService(); /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ com.google.monitoring.v3.Service getService(); /** - * - * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * A set of field paths defining which fields to use for the update.
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java similarity index 76% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java index 7022dddbd695..9bd7d01d3236 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** - * - * *
  * The message definition for updating a `Snooze`. The field, `snooze.name`
  * identifies the `Snooze` to be updated. The remainder of `snooze` gives the
@@ -39,50 +22,46 @@
  *
  * Protobuf type {@code google.monitoring.v3.UpdateSnoozeRequest}
  */
-public final class UpdateSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSnoozeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateSnoozeRequest)
     UpdateSnoozeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSnoozeRequest.newBuilder() to construct.
   private UpdateSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateSnoozeRequest() {}
+  private UpdateSnoozeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto
-        .internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UpdateSnoozeRequest.class,
-            com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.UpdateSnoozeRequest.class, com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
   }
 
   public static final int SNOOZE_FIELD_NUMBER = 1;
   private com.google.monitoring.v3.Snooze snooze_;
   /**
-   *
-   *
    * 
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snooze field is set. */ @java.lang.Override @@ -90,14 +69,11 @@ public boolean hasSnooze() { return snooze_ != null; } /** - * - * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snooze. */ @java.lang.Override @@ -105,8 +81,6 @@ public com.google.monitoring.v3.Snooze getSnooze() { return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } /** - * - * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
@@ -121,8 +95,6 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The fields to update.
    *
@@ -148,9 +120,7 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -158,8 +128,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The fields to update.
    *
@@ -185,9 +153,7 @@ public boolean hasUpdateMask() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -195,8 +161,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The fields to update.
    *
@@ -222,8 +186,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -231,7 +194,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (snooze_ != null) { output.writeMessage(1, getSnooze()); } @@ -260,10 +223,12 @@ public int getSerializedSize() { size = 0; if (snooze_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnooze()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnooze()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,21 +238,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateSnoozeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateSnoozeRequest other = - (com.google.monitoring.v3.UpdateSnoozeRequest) obj; + com.google.monitoring.v3.UpdateSnoozeRequest other = (com.google.monitoring.v3.UpdateSnoozeRequest) obj; if (hasSnooze() != other.hasSnooze()) return false; if (hasSnooze()) { - if (!getSnooze().equals(other.getSnooze())) return false; + if (!getSnooze() + .equals(other.getSnooze())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -313,104 +279,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateSnoozeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message definition for updating a `Snooze`. The field, `snooze.name`
    * identifies the `Snooze` to be updated. The remainder of `snooze` gives the
@@ -429,32 +390,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.UpdateSnoozeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateSnoozeRequest)
       com.google.monitoring.v3.UpdateSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UpdateSnoozeRequest.class,
-              com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.UpdateSnoozeRequest.class, com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UpdateSnoozeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -473,9 +435,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto
-          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -494,11 +456,8 @@ public com.google.monitoring.v3.UpdateSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UpdateSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.UpdateSnoozeRequest result =
-          new com.google.monitoring.v3.UpdateSnoozeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.UpdateSnoozeRequest result = new com.google.monitoring.v3.UpdateSnoozeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -506,10 +465,14 @@ public com.google.monitoring.v3.UpdateSnoozeRequest buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.UpdateSnoozeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.snooze_ = snoozeBuilder_ == null ? snooze_ : snoozeBuilder_.build();
+        result.snooze_ = snoozeBuilder_ == null
+            ? snooze_
+            : snoozeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -517,39 +480,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateSnoozeRequest result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UpdateSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.UpdateSnoozeRequest) other);
+        return mergeFrom((com.google.monitoring.v3.UpdateSnoozeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,25 +552,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getSnoozeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getSnoozeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,40 +581,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.monitoring.v3.Snooze snooze_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Snooze,
-            com.google.monitoring.v3.Snooze.Builder,
-            com.google.monitoring.v3.SnoozeOrBuilder>
-        snoozeBuilder_;
+        com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozeBuilder_;
     /**
-     *
-     *
      * 
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snooze field is set. */ public boolean hasSnooze() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The snooze. */ public com.google.monitoring.v3.Snooze getSnooze() { @@ -662,14 +613,11 @@ public com.google.monitoring.v3.Snooze getSnooze() { } } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { @@ -685,16 +633,14 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnooze( + com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozeBuilder_ == null) { snooze_ = builderForValue.build(); } else { @@ -705,20 +651,17 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue return this; } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snooze_ != null - && snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snooze_ != null && + snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { getSnoozeBuilder().mergeFrom(value); } else { snooze_ = value; @@ -731,14 +674,11 @@ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSnooze() { bitField0_ = (bitField0_ & ~0x00000001); @@ -751,14 +691,11 @@ public Builder clearSnooze() { return this; } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { bitField0_ |= 0x00000001; @@ -766,44 +703,36 @@ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { return getSnoozeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { if (snoozeBuilder_ != null) { return snoozeBuilder_.getMessageOrBuilder(); } else { - return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; + return snooze_ == null ? + com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } } /** - * - * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> getSnoozeFieldBuilder() { if (snoozeBuilder_ == null) { - snoozeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, - com.google.monitoring.v3.Snooze.Builder, - com.google.monitoring.v3.SnoozeOrBuilder>( - getSnooze(), getParentForChildren(), isClean()); + snoozeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( + getSnooze(), + getParentForChildren(), + isClean()); snooze_ = null; } return snoozeBuilder_; @@ -811,13 +740,8 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The fields to update.
      *
@@ -843,17 +767,13 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The fields to update.
      *
@@ -879,23 +799,17 @@ public boolean hasUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The fields to update.
      *
@@ -921,8 +835,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -938,8 +851,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The fields to update.
      *
@@ -965,10 +876,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -979,8 +890,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The fields to update.
      *
@@ -1006,14 +915,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1026,8 +934,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The fields to update.
      *
@@ -1053,8 +959,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1067,8 +972,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The fields to update.
      *
@@ -1094,8 +997,7 @@ public Builder clearUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1103,8 +1005,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The fields to update.
      *
@@ -1130,21 +1030,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The fields to update.
      *
@@ -1170,28 +1066,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1201,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateSnoozeRequest) private static final com.google.monitoring.v3.UpdateSnoozeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateSnoozeRequest(); } @@ -1215,27 +1107,27 @@ public static com.google.monitoring.v3.UpdateSnoozeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,4 +1142,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java similarity index 83% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java index 2ef28bde74a4..aa2f2ab0ea20 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface UpdateSnoozeRequestOrBuilder - extends +public interface UpdateSnoozeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateSnoozeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snooze field is set. */ boolean hasSnooze(); /** - * - * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snooze. */ com.google.monitoring.v3.Snooze getSnooze(); /** - * - * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
@@ -59,8 +35,6 @@ public interface UpdateSnoozeRequestOrBuilder com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder(); /** - * - * *
    * Required. The fields to update.
    *
@@ -86,15 +60,11 @@ public interface UpdateSnoozeRequestOrBuilder
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The fields to update.
    *
@@ -120,15 +90,11 @@ public interface UpdateSnoozeRequestOrBuilder
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The fields to update.
    *
@@ -154,8 +120,7 @@ public interface UpdateSnoozeRequestOrBuilder
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java index dcac8e2e19c6..a4f34aca6880 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java @@ -1,71 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** - * - * *
  * The protocol for the `UpdateUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateUptimeCheckConfigRequest} */ -public final class UpdateUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateUptimeCheckConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateUptimeCheckConfigRequest) UpdateUptimeCheckConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateUptimeCheckConfigRequest.newBuilder() to construct. - private UpdateUptimeCheckConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateUptimeCheckConfigRequest() {} + private UpdateUptimeCheckConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -74,7 +53,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -82,8 +60,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -92,7 +68,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -100,8 +75,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -119,8 +92,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int UPTIME_CHECK_CONFIG_FIELD_NUMBER = 3;
   private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_;
   /**
-   *
-   *
    * 
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -135,10 +106,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the uptimeCheckConfig field is set. */ @java.lang.Override @@ -146,8 +114,6 @@ public boolean hasUptimeCheckConfig() { return uptimeCheckConfig_ != null; } /** - * - * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -162,21 +128,14 @@ public boolean hasUptimeCheckConfig() {
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The uptimeCheckConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } /** - * - * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -191,19 +150,14 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() {
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -232,10 +187,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (uptimeCheckConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUptimeCheckConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUptimeCheckConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,21 +202,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other = - (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other = (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasUptimeCheckConfig() != other.hasUptimeCheckConfig()) return false; if (hasUptimeCheckConfig()) { - if (!getUptimeCheckConfig().equals(other.getUptimeCheckConfig())) return false; + if (!getUptimeCheckConfig() + .equals(other.getUptimeCheckConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -286,136 +244,131 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The protocol for the `UpdateUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateUptimeCheckConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateUptimeCheckConfigRequest) com.google.monitoring.v3.UpdateUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto - .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -455,11 +408,8 @@ public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result = - new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result = new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -467,13 +417,14 @@ public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.uptimeCheckConfig_ = - uptimeCheckConfigBuilder_ == null - ? uptimeCheckConfig_ - : uptimeCheckConfigBuilder_.build(); + result.uptimeCheckConfig_ = uptimeCheckConfigBuilder_ == null + ? uptimeCheckConfig_ + : uptimeCheckConfigBuilder_.build(); } } @@ -481,39 +432,38 @@ private void buildPartial0(com.google.monitoring.v3.UpdateUptimeCheckConfigReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) other); + return mergeFrom((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -521,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -555,26 +504,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage( - getUptimeCheckConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getUptimeCheckConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,18 +533,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -604,15 +547,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -621,21 +561,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -659,8 +594,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -670,7 +603,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -681,8 +615,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -694,9 +626,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -709,8 +641,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -731,8 +661,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -748,8 +676,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -763,14 +689,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -781,17 +704,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -799,13 +719,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.UptimeCheckConfig,
-            com.google.monitoring.v3.UptimeCheckConfig.Builder,
-            com.google.monitoring.v3.UptimeCheckConfigOrBuilder>
-        uptimeCheckConfigBuilder_;
+        com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigBuilder_;
     /**
-     *
-     *
      * 
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -820,18 +735,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the uptimeCheckConfig field is set. */ public boolean hasUptimeCheckConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -846,24 +756,17 @@ public boolean hasUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The uptimeCheckConfig. */ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { if (uptimeCheckConfigBuilder_ == null) { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } else { return uptimeCheckConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -878,9 +781,7 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { @@ -896,8 +797,6 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v return this; } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -912,9 +811,7 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUptimeCheckConfig( com.google.monitoring.v3.UptimeCheckConfig.Builder builderForValue) { @@ -928,8 +825,6 @@ public Builder setUptimeCheckConfig( return this; } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -944,16 +839,13 @@ public Builder setUptimeCheckConfig(
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && uptimeCheckConfig_ != null - && uptimeCheckConfig_ - != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + uptimeCheckConfig_ != null && + uptimeCheckConfig_ != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { getUptimeCheckConfigBuilder().mergeFrom(value); } else { uptimeCheckConfig_ = value; @@ -966,8 +858,6 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig return this; } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -982,9 +872,7 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUptimeCheckConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -997,8 +885,6 @@ public Builder clearUptimeCheckConfig() { return this; } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -1013,9 +899,7 @@ public Builder clearUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBuilder() { bitField0_ |= 0x00000002; @@ -1023,8 +907,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu return getUptimeCheckConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -1039,22 +921,17 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { if (uptimeCheckConfigBuilder_ != null) { return uptimeCheckConfigBuilder_.getMessageOrBuilder(); } else { - return uptimeCheckConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() - : uptimeCheckConfig_; + return uptimeCheckConfig_ == null ? + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; } } /** - * - * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -1069,29 +946,24 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigO
      * `selected_regions`.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigFieldBuilder() { if (uptimeCheckConfigBuilder_ == null) { - uptimeCheckConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, - com.google.monitoring.v3.UptimeCheckConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( - getUptimeCheckConfig(), getParentForChildren(), isClean()); + uptimeCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + getUptimeCheckConfig(), + getParentForChildren(), + isClean()); uptimeCheckConfig_ = null; } return uptimeCheckConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) private static final com.google.monitoring.v3.UpdateUptimeCheckConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(); } @@ -1115,27 +987,27 @@ public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1022,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java similarity index 77% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java index 61d9565f0101..ead9ed2d6bca 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface UpdateUptimeCheckConfigRequestOrBuilder - extends +public interface UpdateUptimeCheckConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateUptimeCheckConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -34,13 +16,10 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -49,13 +28,10 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -68,8 +44,6 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -84,16 +58,11 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the uptimeCheckConfig field is set. */ boolean hasUptimeCheckConfig(); /** - * - * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -108,16 +77,11 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The uptimeCheckConfig. */ com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); /** - * - * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -132,9 +96,7 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder
    * `selected_regions`.
    * 
* - * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java index 4e111462978f..1271da603e72 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** - * - * *
  * This message configures which resources and services to monitor for
  * availability.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig}
  */
-public final class UptimeCheckConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UptimeCheckConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig)
     UptimeCheckConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UptimeCheckConfig.newBuilder() to construct.
   private UptimeCheckConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UptimeCheckConfig() {
     name_ = "";
     displayName_ = "";
@@ -49,49 +31,46 @@ private UptimeCheckConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UptimeCheckConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 20:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UptimeCheckConfig.class,
-            com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
+            com.google.monitoring.v3.UptimeCheckConfig.class, com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * What kind of checkers are available to be used by the check.
    * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.CheckerType} */ - public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum { + public enum CheckerType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default checker type. Currently converted to `STATIC_IP_CHECKERS`
      * on creation, the default conversion behavior may change in the future.
@@ -101,8 +80,6 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHECKER_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
      * across the public internet. `STATIC_IP_CHECKERS` use the static IP
@@ -113,8 +90,6 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATIC_IP_CHECKERS(1),
     /**
-     *
-     *
      * 
      * `VPC_CHECKERS` are used for uptime checks that perform egress using
      * Service Directory and private network access. When using `VPC_CHECKERS`,
@@ -128,8 +103,6 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The default checker type. Currently converted to `STATIC_IP_CHECKERS`
      * on creation, the default conversion behavior may change in the future.
@@ -139,8 +112,6 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHECKER_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
      * across the public internet. `STATIC_IP_CHECKERS` use the static IP
@@ -151,8 +122,6 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATIC_IP_CHECKERS_VALUE = 1;
     /**
-     *
-     *
      * 
      * `VPC_CHECKERS` are used for uptime checks that perform egress using
      * Service Directory and private network access. When using `VPC_CHECKERS`,
@@ -163,6 +132,7 @@ public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int VPC_CHECKERS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -187,49 +157,49 @@ public static CheckerType valueOf(int value) {
      */
     public static CheckerType forNumber(int value) {
       switch (value) {
-        case 0:
-          return CHECKER_TYPE_UNSPECIFIED;
-        case 1:
-          return STATIC_IP_CHECKERS;
-        case 3:
-          return VPC_CHECKERS;
-        default:
-          return null;
+        case 0: return CHECKER_TYPE_UNSPECIFIED;
+        case 1: return STATIC_IP_CHECKERS;
+        case 3: return VPC_CHECKERS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CheckerType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CheckerType findValueByNumber(int number) {
+              return CheckerType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public CheckerType findValueByNumber(int number) {
-            return CheckerType.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.monitoring.v3.UptimeCheckConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final CheckerType[] VALUES = values();
 
-    public static CheckerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static CheckerType valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -246,14 +216,11 @@ private CheckerType(int value) {
     // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.CheckerType)
   }
 
-  public interface ResourceGroupOrBuilder
-      extends
+  public interface ResourceGroupOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -261,13 +228,10 @@ public interface ResourceGroupOrBuilder
      * 
* * string group_id = 1; - * * @return The groupId. */ java.lang.String getGroupId(); /** - * - * *
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -275,39 +239,31 @@ public interface ResourceGroupOrBuilder
      * 
* * string group_id = 1; - * * @return The bytes for groupId. */ - com.google.protobuf.ByteString getGroupIdBytes(); + com.google.protobuf.ByteString + getGroupIdBytes(); /** - * - * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** - * - * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The resourceType. */ com.google.monitoring.v3.GroupResourceType getResourceType(); } /** - * - * *
    * The resource submessage for group checks. It can be used instead of a
    * monitored resource, when multiple resources are being monitored.
@@ -315,16 +271,15 @@ public interface ResourceGroupOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ResourceGroup}
    */
-  public static final class ResourceGroup extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ResourceGroup extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
       ResourceGroupOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ResourceGroup.newBuilder() to construct.
     private ResourceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ResourceGroup() {
       groupId_ = "";
       resourceType_ = 0;
@@ -332,32 +287,28 @@ private ResourceGroup() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ResourceGroup();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class,
-              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
     }
 
     public static final int GROUP_ID_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object groupId_ = "";
     /**
-     *
-     *
      * 
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -365,7 +316,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string group_id = 1; - * * @return The groupId. */ @java.lang.Override @@ -374,15 +324,14 @@ public java.lang.String getGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupId_ = s; return s; } } /** - * - * *
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -390,15 +339,16 @@ public java.lang.String getGroupId() {
      * 
* * string group_id = 1; - * * @return The bytes for groupId. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupIdBytes() { + public com.google.protobuf.ByteString + getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupId_ = b; return b; } else { @@ -409,40 +359,30 @@ public com.google.protobuf.ByteString getGroupIdBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_ = 0; /** - * - * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The resourceType. */ - @java.lang.Override - public com.google.monitoring.v3.GroupResourceType getResourceType() { - com.google.monitoring.v3.GroupResourceType result = - com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); + @java.lang.Override public com.google.monitoring.v3.GroupResourceType getResourceType() { + com.google.monitoring.v3.GroupResourceType result = com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); return result == null ? com.google.monitoring.v3.GroupResourceType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,12 +394,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupId_); } - if (resourceType_ - != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } getUnknownFields().writeTo(output); @@ -474,9 +414,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupId_); } - if (resourceType_ - != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + if (resourceType_ != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -486,15 +426,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other = - (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) obj; + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other = (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) obj; - if (!getGroupId().equals(other.getGroupId())) return false; + if (!getGroupId() + .equals(other.getGroupId())) return false; if (resourceType_ != other.resourceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -517,94 +457,89 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -614,8 +549,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The resource submessage for group checks. It can be used instead of a
      * monitored resource, when multiple resources are being monitored.
@@ -623,33 +556,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ResourceGroup}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
         com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class,
-                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -660,9 +593,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
       }
 
       @java.lang.Override
@@ -681,11 +614,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup result =
-            new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup result = new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -704,41 +634,38 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ResourceGr
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -746,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) return this;
         if (!other.getGroupId().isEmpty()) {
           groupId_ = other.groupId_;
           bitField0_ |= 0x00000001;
@@ -782,25 +708,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  groupId_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 16:
-                {
-                  resourceType_ = input.readEnum();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                groupId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 16: {
+                resourceType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -810,13 +733,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object groupId_ = "";
       /**
-       *
-       *
        * 
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -824,13 +744,13 @@ public Builder mergeFrom(
        * 
* * string group_id = 1; - * * @return The groupId. */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupId_ = s; return s; @@ -839,8 +759,6 @@ public java.lang.String getGroupId() { } } /** - * - * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -848,14 +766,15 @@ public java.lang.String getGroupId() {
        * 
* * string group_id = 1; - * * @return The bytes for groupId. */ - public com.google.protobuf.ByteString getGroupIdBytes() { + public com.google.protobuf.ByteString + getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupId_ = b; return b; } else { @@ -863,8 +782,6 @@ public com.google.protobuf.ByteString getGroupIdBytes() { } } /** - * - * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -872,22 +789,18 @@ public com.google.protobuf.ByteString getGroupIdBytes() {
        * 
* * string group_id = 1; - * * @param value The groupId to set. * @return This builder for chaining. */ - public Builder setGroupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGroupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } groupId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -895,7 +808,6 @@ public Builder setGroupId(java.lang.String value) {
        * 
* * string group_id = 1; - * * @return This builder for chaining. */ public Builder clearGroupId() { @@ -905,8 +817,6 @@ public Builder clearGroupId() { return this; } /** - * - * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -914,14 +824,12 @@ public Builder clearGroupId() {
        * 
* * string group_id = 1; - * * @param value The bytes for groupId to set. * @return This builder for chaining. */ - public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); groupId_ = value; bitField0_ |= 0x00000001; @@ -931,29 +839,22 @@ public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { private int resourceType_ = 0; /** - * - * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ @@ -964,31 +865,24 @@ public Builder setResourceTypeValue(int value) { return this; } /** - * - * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return The resourceType. */ @java.lang.Override public com.google.monitoring.v3.GroupResourceType getResourceType() { - com.google.monitoring.v3.GroupResourceType result = - com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); + com.google.monitoring.v3.GroupResourceType result = com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); return result == null ? com.google.monitoring.v3.GroupResourceType.UNRECOGNIZED : result; } /** - * - * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @param value The resourceType to set. * @return This builder for chaining. */ @@ -1002,14 +896,11 @@ public Builder setResourceType(com.google.monitoring.v3.GroupResourceType value) return this; } /** - * - * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; - * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -1018,7 +909,6 @@ public Builder clearResourceType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1031,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) private static final com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(); } @@ -1045,28 +935,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,29 +970,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PingConfigOrBuilder - extends + public interface PingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.PingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
      * 
* * int32 pings_count = 1; - * * @return The pingsCount. */ int getPingsCount(); } /** - * - * *
    * Information involved in sending ICMP pings alongside public HTTP/TCP
    * checks. For HTTP, the pings are performed for each part of the redirect
@@ -1112,50 +996,46 @@ public interface PingConfigOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.PingConfig}
    */
-  public static final class PingConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PingConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.PingConfig)
       PingConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PingConfig.newBuilder() to construct.
     private PingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private PingConfig() {}
+    private PingConfig() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PingConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class,
-              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
     }
 
     public static final int PINGS_COUNT_FIELD_NUMBER = 1;
     private int pingsCount_ = 0;
     /**
-     *
-     *
      * 
      * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
      * 
* * int32 pings_count = 1; - * * @return The pingsCount. */ @java.lang.Override @@ -1164,7 +1044,6 @@ public int getPingsCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1176,7 +1055,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pingsCount_ != 0) { output.writeInt32(1, pingsCount_); } @@ -1190,7 +1070,8 @@ public int getSerializedSize() { size = 0; if (pingsCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pingsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pingsCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1200,15 +1081,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.PingConfig)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.PingConfig other = - (com.google.monitoring.v3.UptimeCheckConfig.PingConfig) obj; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig other = (com.google.monitoring.v3.UptimeCheckConfig.PingConfig) obj; - if (getPingsCount() != other.getPingsCount()) return false; + if (getPingsCount() + != other.getPingsCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1228,94 +1109,89 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.PingConfig prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.PingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1325,8 +1201,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information involved in sending ICMP pings alongside public HTTP/TCP
      * checks. For HTTP, the pings are performed for each part of the redirect
@@ -1335,33 +1209,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.PingConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.PingConfig)
         com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class,
-                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.PingConfig.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1371,9 +1245,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
       }
 
       @java.lang.Override
@@ -1392,11 +1266,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.PingConfig buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.PingConfig result =
-            new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.UptimeCheckConfig.PingConfig result = new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -1412,41 +1283,38 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.PingConfig
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.PingConfig) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.PingConfig) other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.PingConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1454,8 +1322,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.PingConfig other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) return this;
         if (other.getPingsCount() != 0) {
           setPingsCount(other.getPingsCount());
         }
@@ -1485,19 +1352,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  pingsCount_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                pingsCount_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1507,19 +1372,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int pingsCount_;
+      private int pingsCount_ ;
       /**
-       *
-       *
        * 
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; - * * @return The pingsCount. */ @java.lang.Override @@ -1527,14 +1388,11 @@ public int getPingsCount() { return pingsCount_; } /** - * - * *
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; - * * @param value The pingsCount to set. * @return This builder for chaining. */ @@ -1546,14 +1404,11 @@ public Builder setPingsCount(int value) { return this; } /** - * - * *
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; - * * @return This builder for chaining. */ public Builder clearPingsCount() { @@ -1562,7 +1417,6 @@ public Builder clearPingsCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1575,12 +1429,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.PingConfig) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.PingConfig) private static final com.google.monitoring.v3.UptimeCheckConfig.PingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(); } @@ -1589,28 +1443,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,58 +1478,45 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface HttpCheckOrBuilder - extends + public interface HttpCheckOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The enum numeric value on the wire for requestMethod. */ int getRequestMethodValue(); /** - * - * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The requestMethod. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod(); /** - * - * *
      * If `true`, use HTTPS instead of HTTP to run the check.
      * 
* * bool use_ssl = 1; - * * @return The useSsl. */ boolean getUseSsl(); /** - * - * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -1686,13 +1526,10 @@ public interface HttpCheckOrBuilder
      * 
* * string path = 2; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -1702,14 +1539,12 @@ public interface HttpCheckOrBuilder
      * 
* * string path = 2; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
      * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -1718,56 +1553,41 @@ public interface HttpCheckOrBuilder
      * 
* * int32 port = 3; - * * @return The port. */ int getPort(); /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return Whether the authInfo field is set. */ boolean hasAuthInfo(); /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return The authInfo. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo(); /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder - getAuthInfoOrBuilder(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder(); /** - * - * *
      * Boolean specifying whether to encrypt the header information.
      * Encryption should be specified for any headers related to authentication
@@ -1778,14 +1598,11 @@ public interface HttpCheckOrBuilder
      * 
* * bool mask_headers = 5; - * * @return The maskHeaders. */ boolean getMaskHeaders(); /** - * - * *
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1801,8 +1618,6 @@ public interface HttpCheckOrBuilder
      */
     int getHeadersCount();
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1816,13 +1631,15 @@ public interface HttpCheckOrBuilder
      *
      * map<string, string> headers = 6;
      */
-    boolean containsHeaders(java.lang.String key);
-    /** Use {@link #getHeadersMap()} instead. */
+    boolean containsHeaders(
+        java.lang.String key);
+    /**
+     * Use {@link #getHeadersMap()} instead.
+     */
     @java.lang.Deprecated
-    java.util.Map getHeaders();
+    java.util.Map
+    getHeaders();
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1836,10 +1653,9 @@ public interface HttpCheckOrBuilder
      *
      * map<string, string> headers = 6;
      */
-    java.util.Map getHeadersMap();
+    java.util.Map
+    getHeadersMap();
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1854,13 +1670,11 @@ public interface HttpCheckOrBuilder
      * map<string, string> headers = 6;
      */
     /* nullable */
-    java.lang.String getHeadersOrDefault(
+java.lang.String getHeadersOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue);
+java.lang.String defaultValue);
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1874,11 +1688,10 @@ java.lang.String getHeadersOrDefault(
      *
      * map<string, string> headers = 6;
      */
-    java.lang.String getHeadersOrThrow(java.lang.String key);
+    java.lang.String getHeadersOrThrow(
+        java.lang.String key);
 
     /**
-     *
-     *
      * 
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -1891,13 +1704,10 @@ java.lang.String getHeadersOrDefault(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -1910,14 +1720,11 @@ java.lang.String getHeadersOrDefault(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * * @return The contentType. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType(); /** - * - * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -1928,13 +1735,10 @@ java.lang.String getHeadersOrDefault(
      * 
* * string custom_content_type = 13; - * * @return The customContentType. */ java.lang.String getCustomContentType(); /** - * - * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -1945,14 +1749,12 @@ java.lang.String getHeadersOrDefault(
      * 
* * string custom_content_type = 13; - * * @return The bytes for customContentType. */ - com.google.protobuf.ByteString getCustomContentTypeBytes(); + com.google.protobuf.ByteString + getCustomContentTypeBytes(); /** - * - * *
      * Boolean specifying whether to include SSL certificate validation as a
      * part of the Uptime check. Only applies to checks where
@@ -1961,14 +1763,11 @@ java.lang.String getHeadersOrDefault(
      * 
* * bool validate_ssl = 7; - * * @return The validateSsl. */ boolean getValidateSsl(); /** - * - * *
      * The request body associated with the HTTP POST request. If `content_type`
      * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -1982,115 +1781,83 @@ java.lang.String getHeadersOrDefault(
      * 
* * bytes body = 10; - * * @return The body. */ com.google.protobuf.ByteString getBody(); /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - java.util.List + java.util.List getAcceptedResponseStatusCodesList(); /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - getAcceptedResponseStatusCodes(int index); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index); /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ int getAcceptedResponseStatusCodesCount(); /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - java.util.List< - ? extends - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + java.util.List getAcceptedResponseStatusCodesOrBuilderList(); /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder - getAcceptedResponseStatusCodesOrBuilder(int index); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( + int index); /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return Whether the pingConfig field is set. */ boolean hasPingConfig(); /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return The pingConfig. */ com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig(); /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
@@ -2100,24 +1867,21 @@ java.lang.String getHeadersOrDefault( com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder(); } /** - * - * *
    * Information involved in an HTTP/HTTPS Uptime check request.
    * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck} */ - public static final class HttpCheck extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HttpCheck extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck) HttpCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpCheck.newBuilder() to construct. private HttpCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpCheck() { requestMethod_ = 0; path_ = ""; @@ -2129,49 +1893,46 @@ private HttpCheck() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetHeaders(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); } /** - * - * *
      * The HTTP request method options.
      * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod} */ - public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { + public enum RequestMethod + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * No request method specified.
        * 
@@ -2180,8 +1941,6 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { */ METHOD_UNSPECIFIED(0), /** - * - * *
        * GET request.
        * 
@@ -2190,8 +1949,6 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { */ GET(1), /** - * - * *
        * POST request.
        * 
@@ -2203,8 +1960,6 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * No request method specified.
        * 
@@ -2213,8 +1968,6 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METHOD_UNSPECIFIED_VALUE = 0; /** - * - * *
        * GET request.
        * 
@@ -2223,8 +1976,6 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GET_VALUE = 1; /** - * - * *
        * POST request.
        * 
@@ -2233,6 +1984,7 @@ public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2257,45 +2009,40 @@ public static RequestMethod valueOf(int value) { */ public static RequestMethod forNumber(int value) { switch (value) { - case 0: - return METHOD_UNSPECIFIED; - case 1: - return GET; - case 2: - return POST; - default: - return null; + case 0: return METHOD_UNSPECIFIED; + case 1: return GET; + case 2: return POST; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RequestMethod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RequestMethod findValueByNumber(int number) { + return RequestMethod.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RequestMethod findValueByNumber(int number) { - return RequestMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor().getEnumTypes().get(0); } private static final RequestMethod[] VALUES = values(); @@ -2303,7 +2050,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RequestMethod valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -2321,18 +2069,15 @@ private RequestMethod(int value) { } /** - * - * *
      * Header options corresponding to the content type of a HTTP request body.
      * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType} */ - public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { + public enum ContentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * No content type specified.
        * 
@@ -2341,8 +2086,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
        * `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
        * to `application/x-www-form-urlencoded` in the HTTP request.
@@ -2352,8 +2095,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       URL_ENCODED(1),
       /**
-       *
-       *
        * 
        * `body` is in `custom_content_type` form. Equivalent to setting the
        * `Content-Type` to the contents of `custom_content_type` in the HTTP
@@ -2367,8 +2108,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * No content type specified.
        * 
@@ -2377,8 +2116,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
        * to `application/x-www-form-urlencoded` in the HTTP request.
@@ -2388,8 +2125,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int URL_ENCODED_VALUE = 1;
       /**
-       *
-       *
        * 
        * `body` is in `custom_content_type` form. Equivalent to setting the
        * `Content-Type` to the contents of `custom_content_type` in the HTTP
@@ -2400,6 +2135,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int USER_PROVIDED_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -2424,51 +2160,49 @@ public static ContentType valueOf(int value) {
        */
       public static ContentType forNumber(int value) {
         switch (value) {
-          case 0:
-            return TYPE_UNSPECIFIED;
-          case 1:
-            return URL_ENCODED;
-          case 2:
-            return USER_PROVIDED;
-          default:
-            return null;
+          case 0: return TYPE_UNSPECIFIED;
+          case 1: return URL_ENCODED;
+          case 2: return USER_PROVIDED;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          ContentType> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public ContentType findValueByNumber(int number) {
+                return ContentType.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ContentType findValueByNumber(int number) {
-              return ContentType.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor()
-            .getEnumTypes()
-            .get(1);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final ContentType[] VALUES = values();
 
-      public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static ContentType valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -2485,64 +2219,51 @@ private ContentType(int value) {
       // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType)
     }
 
-    public interface BasicAuthenticationOrBuilder
-        extends
+    public interface BasicAuthenticationOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * The authentication parameters to provide to the specified resource or
      * URL that requires a username and password. Currently, only
@@ -2552,16 +2273,15 @@ public interface BasicAuthenticationOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication}
      */
-    public static final class BasicAuthentication extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class BasicAuthentication extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
         BasicAuthenticationOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use BasicAuthentication.newBuilder() to construct.
       private BasicAuthentication(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
       private BasicAuthentication() {
         username_ = "";
         password_ = "";
@@ -2569,39 +2289,33 @@ private BasicAuthentication() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new BasicAuthentication();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class,
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
-                    .class);
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder.class);
       }
 
       public static final int USERNAME_FIELD_NUMBER = 1;
-
       @SuppressWarnings("serial")
       private volatile java.lang.Object username_ = "";
       /**
-       *
-       *
        * 
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -2610,29 +2324,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2641,18 +2355,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -2661,29 +2371,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2692,7 +2402,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2704,7 +2413,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2734,17 +2444,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)) { + if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other = - (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2765,103 +2475,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2871,8 +2568,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The authentication parameters to provide to the specified resource or
        * URL that requires a username and password. Currently, only
@@ -2882,35 +2577,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication}
        */
-      public static final class Builder
-          extends com.google.protobuf.GeneratedMessageV3.Builder
-          implements
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
           com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class,
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
-                      .class);
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder.class);
         }
 
-        // Construct using
-        // com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.newBuilder()
-        private Builder() {}
+        // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.newBuilder()
+        private Builder() {
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
         }
 
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -2921,22 +2614,19 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
-            getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
-              .getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication build() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result =
-              buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -2944,19 +2634,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
-            buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result =
-              new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(
-            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result) {
+        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.username_ = username_;
@@ -2970,54 +2655,46 @@ private void buildPartial0(
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.setField(field, value);
         }
-
         @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(
+            com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-
         @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(
+            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
+            int index, java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other
-              instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) {
-            return mergeFrom(
-                (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) other);
+          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) {
+            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(
-            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other) {
-          if (other
-              == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
-                  .getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other) {
+          if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance()) return this;
           if (!other.getUsername().isEmpty()) {
             username_ = other.username_;
             bitField0_ |= 0x00000001;
@@ -3054,25 +2731,22 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10:
-                  {
-                    username_ = input.readStringRequireUtf8();
-                    bitField0_ |= 0x00000001;
-                    break;
-                  } // case 10
-                case 18:
-                  {
-                    password_ = input.readStringRequireUtf8();
-                    bitField0_ |= 0x00000002;
-                    break;
-                  } // case 18
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 10: {
+                  username_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+                case 18: {
+                  password_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3082,25 +2756,22 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int bitField0_;
 
         private java.lang.Object username_ = "";
         /**
-         *
-         *
          * 
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -3109,21 +2780,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -3131,35 +2801,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -3169,21 +2832,17 @@ public Builder clearUsername() { return this; } /** - * - * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -3193,20 +2852,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -3215,21 +2872,20 @@ public java.lang.String getPassword() { } } /** - * - * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -3237,35 +2893,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -3275,28 +2924,23 @@ public Builder clearPassword() { return this; } /** - * - * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3309,45 +2953,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) - private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAuthentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicAuthentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3359,92 +2999,66 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ResponseStatusCodeOrBuilder - extends + public interface ResponseStatusCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A status code to accept.
        * 
* * int32 status_value = 1; - * * @return Whether the statusValue field is set. */ boolean hasStatusValue(); /** - * - * *
        * A status code to accept.
        * 
* * int32 status_value = 1; - * * @return The statusValue. */ int getStatusValue(); /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return Whether the statusClass field is set. */ boolean hasStatusClass(); /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The enum numeric value on the wire for statusClass. */ int getStatusClassValue(); /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The statusClass. */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - getStatusClass(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass(); - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase - getStatusCodeCase(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase getStatusCodeCase(); } /** - * - * *
      * A status to accept. Either a status code class like "2xx", or an integer
      * status code like "200".
@@ -3452,54 +3066,48 @@ public interface ResponseStatusCodeOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode}
      */
-    public static final class ResponseStatusCode extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class ResponseStatusCode extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)
         ResponseStatusCodeOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use ResponseStatusCode.newBuilder() to construct.
       private ResponseStatusCode(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private ResponseStatusCode() {}
+      private ResponseStatusCode() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new ResponseStatusCode();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class,
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder
-                    .class);
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder.class);
       }
 
       /**
-       *
-       *
        * 
        * An HTTP status code class.
        * 
* - * Protobuf enum {@code - * google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass} + * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass} */ - public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { + public enum StatusClass + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Default value that matches no status codes.
          * 
@@ -3508,8 +3116,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_UNSPECIFIED(0), /** - * - * *
          * The class of status codes between 100 and 199.
          * 
@@ -3518,8 +3124,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_1XX(100), /** - * - * *
          * The class of status codes between 200 and 299.
          * 
@@ -3528,8 +3132,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_2XX(200), /** - * - * *
          * The class of status codes between 300 and 399.
          * 
@@ -3538,8 +3140,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_3XX(300), /** - * - * *
          * The class of status codes between 400 and 499.
          * 
@@ -3548,8 +3148,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_4XX(400), /** - * - * *
          * The class of status codes between 500 and 599.
          * 
@@ -3558,8 +3156,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_CLASS_5XX(500), /** - * - * *
          * The class of all status codes.
          * 
@@ -3571,8 +3167,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
          * Default value that matches no status codes.
          * 
@@ -3581,8 +3175,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_UNSPECIFIED_VALUE = 0; /** - * - * *
          * The class of status codes between 100 and 199.
          * 
@@ -3591,8 +3183,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_1XX_VALUE = 100; /** - * - * *
          * The class of status codes between 200 and 299.
          * 
@@ -3601,8 +3191,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_2XX_VALUE = 200; /** - * - * *
          * The class of status codes between 300 and 399.
          * 
@@ -3611,8 +3199,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_3XX_VALUE = 300; /** - * - * *
          * The class of status codes between 400 and 499.
          * 
@@ -3621,8 +3207,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_4XX_VALUE = 400; /** - * - * *
          * The class of status codes between 500 and 599.
          * 
@@ -3631,8 +3215,6 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_5XX_VALUE = 500; /** - * - * *
          * The class of all status codes.
          * 
@@ -3641,6 +3223,7 @@ public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_CLASS_ANY_VALUE = 1000; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3665,54 +3248,44 @@ public static StatusClass valueOf(int value) { */ public static StatusClass forNumber(int value) { switch (value) { - case 0: - return STATUS_CLASS_UNSPECIFIED; - case 100: - return STATUS_CLASS_1XX; - case 200: - return STATUS_CLASS_2XX; - case 300: - return STATUS_CLASS_3XX; - case 400: - return STATUS_CLASS_4XX; - case 500: - return STATUS_CLASS_5XX; - case 1000: - return STATUS_CLASS_ANY; - default: - return null; + case 0: return STATUS_CLASS_UNSPECIFIED; + case 100: return STATUS_CLASS_1XX; + case 200: return STATUS_CLASS_2XX; + case 300: return STATUS_CLASS_3XX; + case 400: return STATUS_CLASS_4XX; + case 500: return STATUS_CLASS_5XX; + case 1000: return STATUS_CLASS_ANY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + StatusClass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StatusClass findValueByNumber(int number) { + return StatusClass.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StatusClass findValueByNumber(int number) { - return StatusClass.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDescriptor().getEnumTypes().get(0); } private static final StatusClass[] VALUES = values(); @@ -3721,7 +3294,7 @@ public static StatusClass valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -3739,19 +3312,15 @@ private StatusClass(int value) { } private int statusCodeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object statusCode_; - public enum StatusCodeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATUS_VALUE(1), STATUS_CLASS(2), STATUSCODE_NOT_SET(0); private final int value; - private StatusCodeCase(int value) { this.value = value; } @@ -3767,36 +3336,30 @@ public static StatusCodeCase valueOf(int value) { public static StatusCodeCase forNumber(int value) { switch (value) { - case 1: - return STATUS_VALUE; - case 2: - return STATUS_CLASS; - case 0: - return STATUSCODE_NOT_SET; - default: - return null; + case 1: return STATUS_VALUE; + case 2: return STATUS_CLASS; + case 0: return STATUSCODE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public StatusCodeCase getStatusCodeCase() { - return StatusCodeCase.forNumber(statusCodeCase_); + public StatusCodeCase + getStatusCodeCase() { + return StatusCodeCase.forNumber( + statusCodeCase_); } public static final int STATUS_VALUE_FIELD_NUMBER = 1; /** - * - * *
        * A status code to accept.
        * 
* * int32 status_value = 1; - * * @return Whether the statusValue field is set. */ @java.lang.Override @@ -3804,14 +3367,11 @@ public boolean hasStatusValue() { return statusCodeCase_ == 1; } /** - * - * *
        * A status code to accept.
        * 
* * int32 status_value = 1; - * * @return The statusValue. */ @java.lang.Override @@ -3824,32 +3384,22 @@ public int getStatusValue() { public static final int STATUS_CLASS_FIELD_NUMBER = 2; /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return Whether the statusClass field is set. */ public boolean hasStatusClass() { return statusCodeCase_ == 2; } /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The enum numeric value on the wire for statusClass. */ public int getStatusClassValue() { @@ -3859,36 +3409,23 @@ public int getStatusClassValue() { return 0; } /** - * - * *
        * A class of status codes to accept.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The statusClass. */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - getStatusClass() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass() { if (statusCodeCase_ == 2) { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .StatusClass.forNumber((java.lang.Integer) statusCode_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - .UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.forNumber( + (java.lang.Integer) statusCode_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.UNRECOGNIZED : result; } - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - .STATUS_CLASS_UNSPECIFIED; + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.STATUS_CLASS_UNSPECIFIED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3900,9 +3437,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (statusCodeCase_ == 1) { - output.writeInt32(1, (int) ((java.lang.Integer) statusCode_)); + output.writeInt32( + 1, (int)((java.lang.Integer) statusCode_)); } if (statusCodeCase_ == 2) { output.writeEnum(2, ((java.lang.Integer) statusCode_)); @@ -3917,14 +3456,13 @@ public int getSerializedSize() { size = 0; if (statusCodeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, (int) ((java.lang.Integer) statusCode_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 1, (int)((java.lang.Integer) statusCode_)); } if (statusCodeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) statusCode_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, ((java.lang.Integer) statusCode_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3934,22 +3472,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)) { + if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other = - (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) obj; if (!getStatusCodeCase().equals(other.getStatusCodeCase())) return false; switch (statusCodeCase_) { case 1: - if (getStatusValue() != other.getStatusValue()) return false; + if (getStatusValue() + != other.getStatusValue()) return false; break; case 2: - if (getStatusClassValue() != other.getStatusClassValue()) return false; + if (getStatusClassValue() + != other.getStatusClassValue()) return false; break; case 0: default: @@ -3982,103 +3520,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4088,8 +3613,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A status to accept. Either a status code class like "2xx", or an integer
        * status code like "200".
@@ -4097,35 +3620,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode}
        */
-      public static final class Builder
-          extends com.google.protobuf.GeneratedMessageV3.Builder
-          implements
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)
           com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class,
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder
-                      .class);
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder.class);
         }
 
-        // Construct using
-        // com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.newBuilder()
-        private Builder() {}
+        // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.newBuilder()
+        private Builder() {
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
         }
 
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -4136,22 +3657,19 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
-            getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
-              .getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode build() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result =
-              buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -4159,25 +3677,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode b
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
-            buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result =
-              new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           buildPartialOneofs(result);
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(
-            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
+        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
           int from_bitField0_ = bitField0_;
         }
 
-        private void buildPartialOneofs(
-            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
+        private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
           result.statusCodeCase_ = statusCodeCase_;
           result.statusCode_ = this.statusCode_;
         }
@@ -4186,69 +3698,58 @@ private void buildPartialOneofs(
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.setField(field, value);
         }
-
         @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(
+            com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-
         @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(
+            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
+            int index, java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other
-              instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) {
-            return mergeFrom(
-                (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) other);
+          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) {
+            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(
-            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other) {
-          if (other
-              == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
-                  .getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other) {
+          if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()) return this;
           switch (other.getStatusCodeCase()) {
-            case STATUS_VALUE:
-              {
-                setStatusValue(other.getStatusValue());
-                break;
-              }
-            case STATUS_CLASS:
-              {
-                setStatusClassValue(other.getStatusClassValue());
-                break;
-              }
-            case STATUSCODE_NOT_SET:
-              {
-                break;
-              }
+            case STATUS_VALUE: {
+              setStatusValue(other.getStatusValue());
+              break;
+            }
+            case STATUS_CLASS: {
+              setStatusClassValue(other.getStatusClassValue());
+              break;
+            }
+            case STATUSCODE_NOT_SET: {
+              break;
+            }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
@@ -4276,26 +3777,23 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8:
-                  {
-                    statusCode_ = input.readInt32();
-                    statusCodeCase_ = 1;
-                    break;
-                  } // case 8
-                case 16:
-                  {
-                    int rawValue = input.readEnum();
-                    statusCodeCase_ = 2;
-                    statusCode_ = rawValue;
-                    break;
-                  } // case 16
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 8: {
+                  statusCode_ = input.readInt32();
+                  statusCodeCase_ = 1;
+                  break;
+                } // case 8
+                case 16: {
+                  int rawValue = input.readEnum();
+                  statusCodeCase_ = 2;
+                  statusCode_ = rawValue;
+                  break;
+                } // case 16
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4305,12 +3803,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int statusCodeCase_ = 0;
         private java.lang.Object statusCode_;
-
-        public StatusCodeCase getStatusCodeCase() {
-          return StatusCodeCase.forNumber(statusCodeCase_);
+        public StatusCodeCase
+            getStatusCodeCase() {
+          return StatusCodeCase.forNumber(
+              statusCodeCase_);
         }
 
         public Builder clearStatusCode() {
@@ -4323,28 +3821,22 @@ public Builder clearStatusCode() {
         private int bitField0_;
 
         /**
-         *
-         *
          * 
          * A status code to accept.
          * 
* * int32 status_value = 1; - * * @return Whether the statusValue field is set. */ public boolean hasStatusValue() { return statusCodeCase_ == 1; } /** - * - * *
          * A status code to accept.
          * 
* * int32 status_value = 1; - * * @return The statusValue. */ public int getStatusValue() { @@ -4354,14 +3846,11 @@ public int getStatusValue() { return 0; } /** - * - * *
          * A status code to accept.
          * 
* * int32 status_value = 1; - * * @param value The statusValue to set. * @return This builder for chaining. */ @@ -4373,14 +3862,11 @@ public Builder setStatusValue(int value) { return this; } /** - * - * *
          * A status code to accept.
          * 
* * int32 status_value = 1; - * * @return This builder for chaining. */ public Builder clearStatusValue() { @@ -4393,16 +3879,11 @@ public Builder clearStatusValue() { } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return Whether the statusClass field is set. */ @java.lang.Override @@ -4410,16 +3891,11 @@ public boolean hasStatusClass() { return statusCodeCase_ == 2; } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The enum numeric value on the wire for statusClass. */ @java.lang.Override @@ -4430,16 +3906,11 @@ public int getStatusClassValue() { return 0; } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @param value The enum numeric value on the wire for statusClass to set. * @return This builder for chaining. */ @@ -4450,51 +3921,32 @@ public Builder setStatusClassValue(int value) { return this; } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return The statusClass. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - getStatusClass() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass() { if (statusCodeCase_ == 2) { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .StatusClass.forNumber((java.lang.Integer) statusCode_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .StatusClass.UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.forNumber( + (java.lang.Integer) statusCode_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.UNRECOGNIZED : result; } - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - .STATUS_CLASS_UNSPECIFIED; + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.STATUS_CLASS_UNSPECIFIED; } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @param value The statusClass to set. * @return This builder for chaining. */ - public Builder setStatusClass( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass - value) { + public Builder setStatusClass(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass value) { if (value == null) { throw new NullPointerException(); } @@ -4504,16 +3956,11 @@ public Builder setStatusClass( return this; } /** - * - * *
          * A class of status codes to accept.
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; * @return This builder for chaining. */ public Builder clearStatusClass() { @@ -4524,7 +3971,6 @@ public Builder clearStatusClass() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4537,45 +3983,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) - private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseStatusCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseStatusCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4587,65 +4029,48 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int REQUEST_METHOD_FIELD_NUMBER = 8; private int requestMethod_ = 0; /** - * - * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The enum numeric value on the wire for requestMethod. */ - @java.lang.Override - public int getRequestMethodValue() { + @java.lang.Override public int getRequestMethodValue() { return requestMethod_; } /** - * - * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The requestMethod. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber( - requestMethod_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber(requestMethod_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED : result; } public static final int USE_SSL_FIELD_NUMBER = 1; private boolean useSsl_ = false; /** - * - * *
      * If `true`, use HTTPS instead of HTTP to run the check.
      * 
* * bool use_ssl = 1; - * * @return The useSsl. */ @java.lang.Override @@ -4654,12 +4079,9 @@ public boolean getUseSsl() { } public static final int PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -4669,7 +4091,6 @@ public boolean getUseSsl() {
      * 
* * string path = 2; - * * @return The path. */ @java.lang.Override @@ -4678,15 +4099,14 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -4696,15 +4116,16 @@ public java.lang.String getPath() {
      * 
* * string path = 2; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -4715,8 +4136,6 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** - * - * *
      * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
      * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -4725,7 +4144,6 @@ public com.google.protobuf.ByteString getPathBytes() {
      * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -4736,16 +4154,12 @@ public int getPort() { public static final int AUTH_INFO_FIELD_NUMBER = 4; private com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication authInfo_; /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return Whether the authInfo field is set. */ @java.lang.Override @@ -4753,50 +4167,34 @@ public boolean hasAuthInfo() { return authInfo_ != null; } /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return The authInfo. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo() { - return authInfo_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - .getDefaultInstance() - : authInfo_; + return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; } /** - * - * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder - getAuthInfoOrBuilder() { - return authInfo_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - .getDefaultInstance() - : authInfo_; + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder() { + return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; } public static final int MASK_HEADERS_FIELD_NUMBER = 5; private boolean maskHeaders_ = false; /** - * - * *
      * Boolean specifying whether to encrypt the header information.
      * Encryption should be specified for any headers related to authentication
@@ -4807,7 +4205,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
      * 
* * bool mask_headers = 5; - * * @return The maskHeaders. */ @java.lang.Override @@ -4816,34 +4213,32 @@ public boolean getMaskHeaders() { } public static final int HEADERS_FIELD_NUMBER = 6; - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField + internalGetHeaders() { if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); } return headers_; } - public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** - * - * *
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4858,21 +4253,20 @@ public int getHeadersCount() {
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public boolean containsHeaders(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsHeaders(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetHeaders().getMap().containsKey(key);
     }
-    /** Use {@link #getHeadersMap()} instead. */
+    /**
+     * Use {@link #getHeadersMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getHeaders() {
       return getHeadersMap();
     }
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4891,8 +4285,6 @@ public java.util.Map getHeadersMap() {
       return internalGetHeaders().getMap();
     }
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4907,19 +4299,17 @@ public java.util.Map getHeadersMap() {
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getHeadersOrDefault(
+    public /* nullable */
+java.lang.String getHeadersOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetHeaders().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4934,11 +4324,11 @@ public java.util.Map getHeadersMap() {
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public java.lang.String getHeadersOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetHeaders().getMap();
+    public java.lang.String getHeadersOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4948,8 +4338,6 @@ public java.lang.String getHeadersOrThrow(java.lang.String key) {
     public static final int CONTENT_TYPE_FIELD_NUMBER = 9;
     private int contentType_ = 0;
     /**
-     *
-     *
      * 
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -4962,16 +4350,12 @@ public java.lang.String getHeadersOrThrow(java.lang.String key) {
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -4984,25 +4368,17 @@ public int getContentTypeValue() {
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * * @return The contentType. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED : result; } public static final int CUSTOM_CONTENT_TYPE_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object customContentType_ = ""; /** - * - * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -5013,7 +4389,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getConte
      * 
* * string custom_content_type = 13; - * * @return The customContentType. */ @java.lang.Override @@ -5022,15 +4397,14 @@ public java.lang.String getCustomContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customContentType_ = s; return s; } } /** - * - * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -5041,15 +4415,16 @@ public java.lang.String getCustomContentType() {
      * 
* * string custom_content_type = 13; - * * @return The bytes for customContentType. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomContentTypeBytes() { + public com.google.protobuf.ByteString + getCustomContentTypeBytes() { java.lang.Object ref = customContentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customContentType_ = b; return b; } else { @@ -5060,8 +4435,6 @@ public com.google.protobuf.ByteString getCustomContentTypeBytes() { public static final int VALIDATE_SSL_FIELD_NUMBER = 7; private boolean validateSsl_ = false; /** - * - * *
      * Boolean specifying whether to include SSL certificate validation as a
      * part of the Uptime check. Only applies to checks where
@@ -5070,7 +4443,6 @@ public com.google.protobuf.ByteString getCustomContentTypeBytes() {
      * 
* * bool validate_ssl = 7; - * * @return The validateSsl. */ @java.lang.Override @@ -5081,8 +4453,6 @@ public boolean getValidateSsl() { public static final int BODY_FIELD_NUMBER = 10; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The request body associated with the HTTP POST request. If `content_type`
      * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -5096,7 +4466,6 @@ public boolean getValidateSsl() {
      * 
* * bytes body = 10; - * * @return The body. */ @java.lang.Override @@ -5105,113 +4474,84 @@ public com.google.protobuf.ByteString getBody() { } public static final int ACCEPTED_RESPONSE_STATUS_CODES_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private java.util.List - acceptedResponseStatusCodes_; + private java.util.List acceptedResponseStatusCodes_; /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ @java.lang.Override - public java.util.List - getAcceptedResponseStatusCodesList() { + public java.util.List getAcceptedResponseStatusCodesList() { return acceptedResponseStatusCodes_; } /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ @java.lang.Override - public java.util.List< - ? extends - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + public java.util.List getAcceptedResponseStatusCodesOrBuilderList() { return acceptedResponseStatusCodes_; } /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ @java.lang.Override public int getAcceptedResponseStatusCodesCount() { return acceptedResponseStatusCodes_.size(); } /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - getAcceptedResponseStatusCodes(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index) { return acceptedResponseStatusCodes_.get(index); } /** - * - * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder - getAcceptedResponseStatusCodesOrBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( + int index) { return acceptedResponseStatusCodes_.get(index); } public static final int PING_CONFIG_FIELD_NUMBER = 12; private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return Whether the pingConfig field is set. */ @java.lang.Override @@ -5219,25 +4559,18 @@ public boolean hasPingConfig() { return pingConfig_ != null; } /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return The pingConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } /** - * - * *
      * Contains information needed to add pings to an HTTP check.
      * 
@@ -5246,13 +4579,10 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5264,7 +4594,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (useSsl_ != false) { output.writeBool(1, useSsl_); } @@ -5280,19 +4611,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maskHeaders_ != false) { output.writeBool(5, maskHeaders_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHeaders(), + HeadersDefaultEntryHolder.defaultEntry, + 6); if (validateSsl_ != false) { output.writeBool(7, validateSsl_); } - if (requestMethod_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED - .getNumber()) { + if (requestMethod_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED.getNumber()) { output.writeEnum(8, requestMethod_); } - if (contentType_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED - .getNumber()) { + if (contentType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, contentType_); } if (!body_.isEmpty()) { @@ -5317,53 +4648,57 @@ public int getSerializedSize() { size = 0; if (useSsl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useSsl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useSsl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); } if (authInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAuthInfo()); } if (maskHeaders_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, maskHeaders_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, headers__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, maskHeaders_); + } + for (java.util.Map.Entry entry + : internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry + headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, headers__); } if (validateSsl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, validateSsl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, validateSsl_); } - if (requestMethod_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, requestMethod_); + if (requestMethod_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, requestMethod_); } - if (contentType_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, contentType_); + if (contentType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, contentType_); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, body_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, body_); } for (int i = 0; i < acceptedResponseStatusCodes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, acceptedResponseStatusCodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, acceptedResponseStatusCodes_.get(i)); } if (pingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getPingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customContentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, customContentType_); @@ -5376,33 +4711,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other = - (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) obj; if (requestMethod_ != other.requestMethod_) return false; - if (getUseSsl() != other.getUseSsl()) return false; - if (!getPath().equals(other.getPath())) return false; - if (getPort() != other.getPort()) return false; + if (getUseSsl() + != other.getUseSsl()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (getPort() + != other.getPort()) return false; if (hasAuthInfo() != other.hasAuthInfo()) return false; if (hasAuthInfo()) { - if (!getAuthInfo().equals(other.getAuthInfo())) return false; + if (!getAuthInfo() + .equals(other.getAuthInfo())) return false; } - if (getMaskHeaders() != other.getMaskHeaders()) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; + if (getMaskHeaders() + != other.getMaskHeaders()) return false; + if (!internalGetHeaders().equals( + other.internalGetHeaders())) return false; if (contentType_ != other.contentType_) return false; - if (!getCustomContentType().equals(other.getCustomContentType())) return false; - if (getValidateSsl() != other.getValidateSsl()) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getAcceptedResponseStatusCodesList().equals(other.getAcceptedResponseStatusCodesList())) - return false; + if (!getCustomContentType() + .equals(other.getCustomContentType())) return false; + if (getValidateSsl() + != other.getValidateSsl()) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getAcceptedResponseStatusCodesList() + .equals(other.getAcceptedResponseStatusCodesList())) return false; if (hasPingConfig() != other.hasPingConfig()) return false; if (hasPingConfig()) { - if (!getPingConfig().equals(other.getPingConfig())) return false; + if (!getPingConfig() + .equals(other.getPingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5418,7 +4762,8 @@ public int hashCode() { hash = (37 * hash) + REQUEST_METHOD_FIELD_NUMBER; hash = (53 * hash) + requestMethod_; hash = (37 * hash) + USE_SSL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseSsl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseSsl()); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; @@ -5428,7 +4773,8 @@ public int hashCode() { hash = (53 * hash) + getAuthInfo().hashCode(); } hash = (37 * hash) + MASK_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMaskHeaders()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMaskHeaders()); if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); @@ -5438,7 +4784,8 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getCustomContentType().hashCode(); hash = (37 * hash) + VALIDATE_SSL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateSsl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateSsl()); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (getAcceptedResponseStatusCodesCount() > 0) { @@ -5455,94 +4802,89 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5552,61 +4894,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information involved in an HTTP/HTTPS Uptime check request.
      * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck) com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetHeaders(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableHeaders(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); } // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5642,9 +4984,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @java.lang.Override @@ -5663,22 +5005,17 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck build() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck buildPartial() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result = - new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(this); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result) { + private void buildPartialRepeatedFields(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result) { if (acceptedResponseStatusCodesBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { - acceptedResponseStatusCodes_ = - java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); + acceptedResponseStatusCodes_ = java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); bitField0_ = (bitField0_ & ~0x00000800); } result.acceptedResponseStatusCodes_ = acceptedResponseStatusCodes_; @@ -5702,7 +5039,9 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result.port_ = port_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authInfo_ = authInfoBuilder_ == null ? authInfo_ : authInfoBuilder_.build(); + result.authInfo_ = authInfoBuilder_ == null + ? authInfo_ + : authInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.maskHeaders_ = maskHeaders_; @@ -5724,8 +5063,9 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result.body_ = body_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.pingConfig_ = - pingConfigBuilder_ == null ? pingConfig_ : pingConfigBuilder_.build(); + result.pingConfig_ = pingConfigBuilder_ == null + ? pingConfig_ + : pingConfigBuilder_.build(); } } @@ -5733,41 +5073,38 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) { - return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) other); + return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck)other); } else { super.mergeFrom(other); return this; @@ -5775,8 +5112,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other) { - if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) return this; if (other.requestMethod_ != 0) { setRequestMethodValue(other.getRequestMethodValue()); } @@ -5797,7 +5133,8 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck ot if (other.getMaskHeaders() != false) { setMaskHeaders(other.getMaskHeaders()); } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + internalGetMutableHeaders().mergeFrom( + other.internalGetHeaders()); bitField0_ |= 0x00000040; if (other.contentType_ != 0) { setContentTypeValue(other.getContentTypeValue()); @@ -5831,13 +5168,11 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck ot acceptedResponseStatusCodesBuilder_ = null; acceptedResponseStatusCodes_ = other.acceptedResponseStatusCodes_; bitField0_ = (bitField0_ & ~0x00000800); - acceptedResponseStatusCodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceptedResponseStatusCodesFieldBuilder() - : null; + acceptedResponseStatusCodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceptedResponseStatusCodesFieldBuilder() : null; } else { - acceptedResponseStatusCodesBuilder_.addAllMessages( - other.acceptedResponseStatusCodes_); + acceptedResponseStatusCodesBuilder_.addAllMessages(other.acceptedResponseStatusCodes_); } } } @@ -5870,106 +5205,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - useSsl_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - input.readMessage(getAuthInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - maskHeaders_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - validateSsl_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 56 - case 64: - { - requestMethod_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 64 - case 72: - { - contentType_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - body_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 82 - case 90: - { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .parser(), - extensionRegistry); - if (acceptedResponseStatusCodesBuilder_ == null) { - ensureAcceptedResponseStatusCodesIsMutable(); - acceptedResponseStatusCodes_.add(m); - } else { - acceptedResponseStatusCodesBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - input.readMessage(getPingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 106: - { - customContentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + useSsl_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: { + port_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + input.readMessage( + getAuthInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: { + maskHeaders_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: { + com.google.protobuf.MapEntry + headers__ = input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableHeaders().getMutableMap().put( + headers__.getKey(), headers__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: { + validateSsl_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 56 + case 64: { + requestMethod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 64 + case 72: { + contentType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + body_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.parser(), + extensionRegistry); + if (acceptedResponseStatusCodesBuilder_ == null) { + ensureAcceptedResponseStatusCodesIsMutable(); + acceptedResponseStatusCodes_.add(m); + } else { + acceptedResponseStatusCodesBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + input.readMessage( + getPingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: { + customContentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5979,38 +5301,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int requestMethod_ = 0; /** - * - * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The enum numeric value on the wire for requestMethod. */ - @java.lang.Override - public int getRequestMethodValue() { + @java.lang.Override public int getRequestMethodValue() { return requestMethod_; } /** - * - * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @param value The enum numeric value on the wire for requestMethod to set. * @return This builder for chaining. */ @@ -6021,43 +5333,30 @@ public Builder setRequestMethodValue(int value) { return this; } /** - * - * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return The requestMethod. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber( - requestMethod_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber(requestMethod_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED : result; } /** - * - * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @param value The requestMethod to set. * @return This builder for chaining. */ - public Builder setRequestMethod( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod value) { + public Builder setRequestMethod(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod value) { if (value == null) { throw new NullPointerException(); } @@ -6067,16 +5366,12 @@ public Builder setRequestMethod( return this; } /** - * - * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; * @return This builder for chaining. */ public Builder clearRequestMethod() { @@ -6086,16 +5381,13 @@ public Builder clearRequestMethod() { return this; } - private boolean useSsl_; + private boolean useSsl_ ; /** - * - * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; - * * @return The useSsl. */ @java.lang.Override @@ -6103,14 +5395,11 @@ public boolean getUseSsl() { return useSsl_; } /** - * - * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; - * * @param value The useSsl to set. * @return This builder for chaining. */ @@ -6122,14 +5411,11 @@ public Builder setUseSsl(boolean value) { return this; } /** - * - * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; - * * @return This builder for chaining. */ public Builder clearUseSsl() { @@ -6141,8 +5427,6 @@ public Builder clearUseSsl() { private java.lang.Object path_ = ""; /** - * - * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -6152,13 +5436,13 @@ public Builder clearUseSsl() {
        * 
* * string path = 2; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -6167,8 +5451,6 @@ public java.lang.String getPath() { } } /** - * - * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -6178,14 +5460,15 @@ public java.lang.String getPath() {
        * 
* * string path = 2; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -6193,8 +5476,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -6204,22 +5485,18 @@ public com.google.protobuf.ByteString getPathBytes() {
        * 
* * string path = 2; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -6229,7 +5506,6 @@ public Builder setPath(java.lang.String value) {
        * 
* * string path = 2; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -6239,8 +5515,6 @@ public Builder clearPath() { return this; } /** - * - * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -6250,14 +5524,12 @@ public Builder clearPath() {
        * 
* * string path = 2; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000004; @@ -6265,10 +5537,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -6277,7 +5547,6 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) {
        * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -6285,8 +5554,6 @@ public int getPort() { return port_; } /** - * - * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -6295,7 +5562,6 @@ public int getPort() {
        * 
* * int32 port = 3; - * * @param value The port to set. * @return This builder for chaining. */ @@ -6307,8 +5573,6 @@ public Builder setPort(int value) { return this; } /** - * - * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -6317,7 +5581,6 @@ public Builder setPort(int value) {
        * 
* * int32 port = 3; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -6329,63 +5592,44 @@ public Builder clearPort() { private com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication authInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> - authInfoBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> authInfoBuilder_; /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return Whether the authInfo field is set. */ public boolean hasAuthInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; * @return The authInfo. */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - getAuthInfo() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo() { if (authInfoBuilder_ == null) { - return authInfo_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - .getDefaultInstance() - : authInfo_; + return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; } else { return authInfoBuilder_.getMessage(); } } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ - public Builder setAuthInfo( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { + public Builder setAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { if (authInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6399,19 +5643,15 @@ public Builder setAuthInfo( return this; } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ public Builder setAuthInfo( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder - builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder builderForValue) { if (authInfoBuilder_ == null) { authInfo_ = builderForValue.build(); } else { @@ -6422,24 +5662,18 @@ public Builder setAuthInfo( return this; } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ - public Builder mergeAuthInfo( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { + public Builder mergeAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { if (authInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && authInfo_ != null - && authInfo_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + authInfo_ != null && + authInfo_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance()) { getAuthInfoBuilder().mergeFrom(value); } else { authInfo_ = value; @@ -6452,15 +5686,12 @@ public Builder mergeAuthInfo( return this; } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ public Builder clearAuthInfo() { bitField0_ = (bitField0_ & ~0x00000010); @@ -6473,77 +5704,58 @@ public Builder clearAuthInfo() { return this; } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder - getAuthInfoBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder getAuthInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAuthInfoFieldBuilder().getBuilder(); } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder - getAuthInfoOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder() { if (authInfoBuilder_ != null) { return authInfoBuilder_.getMessageOrBuilder(); } else { - return authInfo_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication - .getDefaultInstance() - : authInfo_; + return authInfo_ == null ? + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; } } /** - * - * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> getAuthInfoFieldBuilder() { if (authInfoBuilder_ == null) { - authInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck - .BasicAuthenticationOrBuilder>( - getAuthInfo(), getParentForChildren(), isClean()); + authInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder>( + getAuthInfo(), + getParentForChildren(), + isClean()); authInfo_ = null; } return authInfoBuilder_; } - private boolean maskHeaders_; + private boolean maskHeaders_ ; /** - * - * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -6554,7 +5766,6 @@ public Builder clearAuthInfo() {
        * 
* * bool mask_headers = 5; - * * @return The maskHeaders. */ @java.lang.Override @@ -6562,8 +5773,6 @@ public boolean getMaskHeaders() { return maskHeaders_; } /** - * - * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -6574,7 +5783,6 @@ public boolean getMaskHeaders() {
        * 
* * bool mask_headers = 5; - * * @param value The maskHeaders to set. * @return This builder for chaining. */ @@ -6586,8 +5794,6 @@ public Builder setMaskHeaders(boolean value) { return this; } /** - * - * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -6598,7 +5804,6 @@ public Builder setMaskHeaders(boolean value) {
        * 
* * bool mask_headers = 5; - * * @return This builder for chaining. */ public Builder clearMaskHeaders() { @@ -6608,21 +5813,21 @@ public Builder clearMaskHeaders() { return this; } - private com.google.protobuf.MapField headers_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> headers_; private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HeadersDefaultEntryHolder.defaultEntry); } return headers_; } - private com.google.protobuf.MapField internalGetMutableHeaders() { if (headers_ == null) { - headers_ = - com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + headers_ = com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); @@ -6631,13 +5836,10 @@ public Builder clearMaskHeaders() { onChanged(); return headers_; } - public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** - * - * *
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6652,21 +5854,20 @@ public int getHeadersCount() {
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public boolean containsHeaders(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
+      public boolean containsHeaders(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
         return internalGetHeaders().getMap().containsKey(key);
       }
-      /** Use {@link #getHeadersMap()} instead. */
+      /**
+       * Use {@link #getHeadersMap()} instead.
+       */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getHeaders() {
         return getHeadersMap();
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6685,8 +5886,6 @@ public java.util.Map getHeadersMap() {
         return internalGetHeaders().getMap();
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6701,19 +5900,17 @@ public java.util.Map getHeadersMap() {
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public /* nullable */ java.lang.String getHeadersOrDefault(
+      public /* nullable */
+java.lang.String getHeadersOrDefault(
           java.lang.String key,
           /* nullable */
-          java.lang.String defaultValue) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetHeaders().getMap();
+java.lang.String defaultValue) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetHeaders().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6728,25 +5925,23 @@ public java.util.Map getHeadersMap() {
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public java.lang.String getHeadersOrThrow(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetHeaders().getMap();
+      public java.lang.String getHeadersOrThrow(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetHeaders().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
         return map.get(key);
       }
-
       public Builder clearHeaders() {
         bitField0_ = (bitField0_ & ~0x00000040);
-        internalGetMutableHeaders().getMutableMap().clear();
+        internalGetMutableHeaders().getMutableMap()
+            .clear();
         return this;
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6760,22 +5955,23 @@ public Builder clearHeaders() {
        *
        * map<string, string> headers = 6;
        */
-      public Builder removeHeaders(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        internalGetMutableHeaders().getMutableMap().remove(key);
+      public Builder removeHeaders(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        internalGetMutableHeaders().getMutableMap()
+            .remove(key);
         return this;
       }
-      /** Use alternate mutation accessors instead. */
+      /**
+       * Use alternate mutation accessors instead.
+       */
       @java.lang.Deprecated
-      public java.util.Map getMutableHeaders() {
+      public java.util.Map
+          getMutableHeaders() {
         bitField0_ |= 0x00000040;
         return internalGetMutableHeaders().getMutableMap();
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6789,20 +5985,17 @@ public java.util.Map getMutableHeaders() {
        *
        * map<string, string> headers = 6;
        */
-      public Builder putHeaders(java.lang.String key, java.lang.String value) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        if (value == null) {
-          throw new NullPointerException("map value");
-        }
-        internalGetMutableHeaders().getMutableMap().put(key, value);
+      public Builder putHeaders(
+          java.lang.String key,
+          java.lang.String value) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        if (value == null) { throw new NullPointerException("map value"); }
+        internalGetMutableHeaders().getMutableMap()
+            .put(key, value);
         bitField0_ |= 0x00000040;
         return this;
       }
       /**
-       *
-       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6816,16 +6009,16 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) {
        *
        * map<string, string> headers = 6;
        */
-      public Builder putAllHeaders(java.util.Map values) {
-        internalGetMutableHeaders().getMutableMap().putAll(values);
+      public Builder putAllHeaders(
+          java.util.Map values) {
+        internalGetMutableHeaders().getMutableMap()
+            .putAll(values);
         bitField0_ |= 0x00000040;
         return this;
       }
 
       private int contentType_ = 0;
       /**
-       *
-       *
        * 
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6837,18 +6030,13 @@ public Builder putAllHeaders(java.util.Map v
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6860,9 +6048,7 @@ public int getContentTypeValue() {
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ @@ -6873,8 +6059,6 @@ public Builder setContentTypeValue(int value) { return this; } /** - * - * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6886,23 +6070,15 @@ public Builder setContentTypeValue(int value) {
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; * @return The contentType. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber( - contentType_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED : result; } /** - * - * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6914,14 +6090,11 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getConte
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType value) { + public Builder setContentType(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType value) { if (value == null) { throw new NullPointerException(); } @@ -6931,8 +6104,6 @@ public Builder setContentType( return this; } /** - * - * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6944,9 +6115,7 @@ public Builder setContentType(
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; - * - * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; * @return This builder for chaining. */ public Builder clearContentType() { @@ -6958,8 +6127,6 @@ public Builder clearContentType() { private java.lang.Object customContentType_ = ""; /** - * - * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6970,13 +6137,13 @@ public Builder clearContentType() {
        * 
* * string custom_content_type = 13; - * * @return The customContentType. */ public java.lang.String getCustomContentType() { java.lang.Object ref = customContentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customContentType_ = s; return s; @@ -6985,8 +6152,6 @@ public java.lang.String getCustomContentType() { } } /** - * - * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6997,14 +6162,15 @@ public java.lang.String getCustomContentType() {
        * 
* * string custom_content_type = 13; - * * @return The bytes for customContentType. */ - public com.google.protobuf.ByteString getCustomContentTypeBytes() { + public com.google.protobuf.ByteString + getCustomContentTypeBytes() { java.lang.Object ref = customContentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customContentType_ = b; return b; } else { @@ -7012,8 +6178,6 @@ public com.google.protobuf.ByteString getCustomContentTypeBytes() { } } /** - * - * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -7024,22 +6188,18 @@ public com.google.protobuf.ByteString getCustomContentTypeBytes() {
        * 
* * string custom_content_type = 13; - * * @param value The customContentType to set. * @return This builder for chaining. */ - public Builder setCustomContentType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomContentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customContentType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -7050,7 +6210,6 @@ public Builder setCustomContentType(java.lang.String value) {
        * 
* * string custom_content_type = 13; - * * @return This builder for chaining. */ public Builder clearCustomContentType() { @@ -7060,8 +6219,6 @@ public Builder clearCustomContentType() { return this; } /** - * - * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -7072,14 +6229,12 @@ public Builder clearCustomContentType() {
        * 
* * string custom_content_type = 13; - * * @param value The bytes for customContentType to set. * @return This builder for chaining. */ - public Builder setCustomContentTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customContentType_ = value; bitField0_ |= 0x00000100; @@ -7087,10 +6242,8 @@ public Builder setCustomContentTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateSsl_; + private boolean validateSsl_ ; /** - * - * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -7099,7 +6252,6 @@ public Builder setCustomContentTypeBytes(com.google.protobuf.ByteString value) {
        * 
* * bool validate_ssl = 7; - * * @return The validateSsl. */ @java.lang.Override @@ -7107,8 +6259,6 @@ public boolean getValidateSsl() { return validateSsl_; } /** - * - * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -7117,7 +6267,6 @@ public boolean getValidateSsl() {
        * 
* * bool validate_ssl = 7; - * * @param value The validateSsl to set. * @return This builder for chaining. */ @@ -7129,8 +6278,6 @@ public Builder setValidateSsl(boolean value) { return this; } /** - * - * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -7139,7 +6286,6 @@ public Builder setValidateSsl(boolean value) {
        * 
* * bool validate_ssl = 7; - * * @return This builder for chaining. */ public Builder clearValidateSsl() { @@ -7151,8 +6297,6 @@ public Builder clearValidateSsl() { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -7166,7 +6310,6 @@ public Builder clearValidateSsl() {
        * 
* * bytes body = 10; - * * @return The body. */ @java.lang.Override @@ -7174,8 +6317,6 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** - * - * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -7189,22 +6330,17 @@ public com.google.protobuf.ByteString getBody() {
        * 
* * bytes body = 10; - * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -7218,7 +6354,6 @@ public Builder setBody(com.google.protobuf.ByteString value) {
        * 
* * bytes body = 10; - * * @return This builder for chaining. */ public Builder clearBody() { @@ -7228,41 +6363,28 @@ public Builder clearBody() { return this; } - private java.util.List< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode> - acceptedResponseStatusCodes_ = java.util.Collections.emptyList(); - + private java.util.List acceptedResponseStatusCodes_ = + java.util.Collections.emptyList(); private void ensureAcceptedResponseStatusCodesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - acceptedResponseStatusCodes_ = - new java.util.ArrayList< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode>( - acceptedResponseStatusCodes_); + acceptedResponseStatusCodes_ = new java.util.ArrayList(acceptedResponseStatusCodes_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> - acceptedResponseStatusCodesBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> acceptedResponseStatusCodesBuilder_; /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public java.util.List - getAcceptedResponseStatusCodesList() { + public java.util.List getAcceptedResponseStatusCodesList() { if (acceptedResponseStatusCodesBuilder_ == null) { return java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); } else { @@ -7270,17 +6392,13 @@ private void ensureAcceptedResponseStatusCodesIsMutable() { } } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public int getAcceptedResponseStatusCodesCount() { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -7290,20 +6408,15 @@ public int getAcceptedResponseStatusCodesCount() { } } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - getAcceptedResponseStatusCodes(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index) { if (acceptedResponseStatusCodesBuilder_ == null) { return acceptedResponseStatusCodes_.get(index); } else { @@ -7311,21 +6424,16 @@ public int getAcceptedResponseStatusCodesCount() { } } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder setAcceptedResponseStatusCodes( - int index, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7339,22 +6447,16 @@ public Builder setAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder setAcceptedResponseStatusCodes( - int index, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - builderForValue) { + int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.set(index, builderForValue.build()); @@ -7365,20 +6467,15 @@ public Builder setAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public Builder addAcceptedResponseStatusCodes( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + public Builder addAcceptedResponseStatusCodes(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7392,21 +6489,16 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder addAcceptedResponseStatusCodes( - int index, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7420,21 +6512,16 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder addAcceptedResponseStatusCodes( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.add(builderForValue.build()); @@ -7445,22 +6532,16 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder addAcceptedResponseStatusCodes( - int index, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - builderForValue) { + int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.add(index, builderForValue.build()); @@ -7471,22 +6552,16 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder addAllAcceptedResponseStatusCodes( - java.lang.Iterable< - ? extends com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode> - values) { + java.lang.Iterable values) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -7498,17 +6573,13 @@ public Builder addAllAcceptedResponseStatusCodes( return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder clearAcceptedResponseStatusCodes() { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -7521,17 +6592,13 @@ public Builder clearAcceptedResponseStatusCodes() { return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ public Builder removeAcceptedResponseStatusCodes(int index) { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -7544,60 +6611,45 @@ public Builder removeAcceptedResponseStatusCodes(int index) { return this; } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - getAcceptedResponseStatusCodesBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder getAcceptedResponseStatusCodesBuilder( + int index) { return getAcceptedResponseStatusCodesFieldBuilder().getBuilder(index); } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder - getAcceptedResponseStatusCodesOrBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( + int index) { if (acceptedResponseStatusCodesBuilder_ == null) { - return acceptedResponseStatusCodes_.get(index); - } else { + return acceptedResponseStatusCodes_.get(index); } else { return acceptedResponseStatusCodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public java.util.List< - ? extends - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> - getAcceptedResponseStatusCodesOrBuilderList() { + public java.util.List + getAcceptedResponseStatusCodesOrBuilderList() { if (acceptedResponseStatusCodesBuilder_ != null) { return acceptedResponseStatusCodesBuilder_.getMessageOrBuilderList(); } else { @@ -7605,76 +6657,51 @@ public Builder removeAcceptedResponseStatusCodes(int index) { } } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - addAcceptedResponseStatusCodesBuilder() { - return getAcceptedResponseStatusCodesFieldBuilder() - .addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder addAcceptedResponseStatusCodesBuilder() { + return getAcceptedResponseStatusCodesFieldBuilder().addBuilder( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()); } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder - addAcceptedResponseStatusCodesBuilder(int index) { - return getAcceptedResponseStatusCodesFieldBuilder() - .addBuilder( - index, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode - .getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder addAcceptedResponseStatusCodesBuilder( + int index) { + return getAcceptedResponseStatusCodesFieldBuilder().addBuilder( + index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()); } /** - * - * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; */ - public java.util.List< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder> - getAcceptedResponseStatusCodesBuilderList() { + public java.util.List + getAcceptedResponseStatusCodesBuilderList() { return getAcceptedResponseStatusCodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> getAcceptedResponseStatusCodesFieldBuilder() { if (acceptedResponseStatusCodesBuilder_ == null) { - acceptedResponseStatusCodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder>( + acceptedResponseStatusCodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder>( acceptedResponseStatusCodes_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -7686,47 +6713,34 @@ public Builder removeAcceptedResponseStatusCodes(int index) { private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> - pingConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> pingConfigBuilder_; /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return Whether the pingConfig field is set. */ public boolean hasPingConfig() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; - * * @return The pingConfig. */ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { if (pingConfigBuilder_ == null) { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } else { return pingConfigBuilder_.getMessage(); } } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7747,8 +6761,6 @@ public Builder setPingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConf return this; } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7767,8 +6779,6 @@ public Builder setPingConfig( return this; } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7777,10 +6787,9 @@ public Builder setPingConfig( */ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConfig value) { if (pingConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && pingConfig_ != null - && pingConfig_ - != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + pingConfig_ != null && + pingConfig_ != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { getPingConfigBuilder().mergeFrom(value); } else { pingConfig_ = value; @@ -7793,8 +6802,6 @@ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingCo return this; } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7812,8 +6819,6 @@ public Builder clearPingConfig() { return this; } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7826,27 +6831,21 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf return getPingConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; */ - public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder - getPingConfigOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { if (pingConfigBuilder_ != null) { return pingConfigBuilder_.getMessageOrBuilder(); } else { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } } /** - * - * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -7854,22 +6853,18 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> getPingConfigFieldBuilder() { if (pingConfigBuilder_ == null) { - pingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( - getPingConfig(), getParentForChildren(), isClean()); + pingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( + getPingConfig(), + getParentForChildren(), + isClean()); pingConfig_ = null; } return pingConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7882,12 +6877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(); } @@ -7896,28 +6891,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7932,16 +6926,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TcpCheckOrBuilder - extends + public interface TcpCheckOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.TcpCheck) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The TCP port on the server against which to run the check. Will be
      * combined with host (specified within the `monitored_resource`) to
@@ -7949,38 +6941,29 @@ public interface TcpCheckOrBuilder
      * 
* * int32 port = 1; - * * @return The port. */ int getPort(); /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return Whether the pingConfig field is set. */ boolean hasPingConfig(); /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return The pingConfig. */ com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig(); /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
@@ -7990,52 +6973,47 @@ public interface TcpCheckOrBuilder com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder(); } /** - * - * *
    * Information required for a TCP Uptime check request.
    * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.TcpCheck} */ - public static final class TcpCheck extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TcpCheck extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.TcpCheck) TcpCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TcpCheck.newBuilder() to construct. private TcpCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TcpCheck() {} + private TcpCheck() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TcpCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private int port_ = 0; /** - * - * *
      * The TCP port on the server against which to run the check. Will be
      * combined with host (specified within the `monitored_resource`) to
@@ -8043,7 +7021,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int32 port = 1; - * * @return The port. */ @java.lang.Override @@ -8054,14 +7031,11 @@ public int getPort() { public static final int PING_CONFIG_FIELD_NUMBER = 2; private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return Whether the pingConfig field is set. */ @java.lang.Override @@ -8069,25 +7043,18 @@ public boolean hasPingConfig() { return pingConfig_ != null; } /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return The pingConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } /** - * - * *
      * Contains information needed to add pings to a TCP check.
      * 
@@ -8096,13 +7063,10 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8114,7 +7078,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (port_ != 0) { output.writeInt32(1, port_); } @@ -8131,10 +7096,12 @@ public int getSerializedSize() { size = 0; if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, port_); } if (pingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8144,18 +7111,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.TcpCheck)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other = - (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) obj; + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other = (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) obj; - if (getPort() != other.getPort()) return false; + if (getPort() + != other.getPort()) return false; if (hasPingConfig() != other.hasPingConfig()) return false; if (hasPingConfig()) { - if (!getPingConfig().equals(other.getPingConfig())) return false; + if (!getPingConfig() + .equals(other.getPingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -8180,94 +7148,89 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8277,41 +7240,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information required for a TCP Uptime check request.
      * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.TcpCheck} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.TcpCheck) com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); } // Construct using com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -8326,9 +7287,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override @@ -8347,11 +7308,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck build() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck buildPartial() { - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck result = - new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck result = new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -8362,8 +7320,9 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck r result.port_ = port_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pingConfig_ = - pingConfigBuilder_ == null ? pingConfig_ : pingConfigBuilder_.build(); + result.pingConfig_ = pingConfigBuilder_ == null + ? pingConfig_ + : pingConfigBuilder_.build(); } } @@ -8371,41 +7330,38 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) { - return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) other); + return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck)other); } else { super.mergeFrom(other); return this; @@ -8413,8 +7369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other) { - if (other == com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) return this; if (other.getPort() != 0) { setPort(other.getPort()); } @@ -8447,25 +7402,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getPingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + port_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getPingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8475,13 +7429,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int port_; + private int port_ ; /** - * - * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -8489,7 +7440,6 @@ public Builder mergeFrom(
        * 
* * int32 port = 1; - * * @return The port. */ @java.lang.Override @@ -8497,8 +7447,6 @@ public int getPort() { return port_; } /** - * - * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -8506,7 +7454,6 @@ public int getPort() {
        * 
* * int32 port = 1; - * * @param value The port to set. * @return This builder for chaining. */ @@ -8518,8 +7465,6 @@ public Builder setPort(int value) { return this; } /** - * - * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -8527,7 +7472,6 @@ public Builder setPort(int value) {
        * 
* * int32 port = 1; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -8539,47 +7483,34 @@ public Builder clearPort() { private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> - pingConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> pingConfigBuilder_; /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return Whether the pingConfig field is set. */ public boolean hasPingConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; - * * @return The pingConfig. */ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { if (pingConfigBuilder_ == null) { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } else { return pingConfigBuilder_.getMessage(); } } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8600,8 +7531,6 @@ public Builder setPingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConf return this; } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8620,8 +7549,6 @@ public Builder setPingConfig( return this; } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8630,10 +7557,9 @@ public Builder setPingConfig( */ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConfig value) { if (pingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && pingConfig_ != null - && pingConfig_ - != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + pingConfig_ != null && + pingConfig_ != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { getPingConfigBuilder().mergeFrom(value); } else { pingConfig_ = value; @@ -8646,8 +7572,6 @@ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingCo return this; } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8665,8 +7589,6 @@ public Builder clearPingConfig() { return this; } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8679,27 +7601,21 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf return getPingConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; */ - public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder - getPingConfigOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { if (pingConfigBuilder_ != null) { return pingConfigBuilder_.getMessageOrBuilder(); } else { - return pingConfig_ == null - ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() - : pingConfig_; + return pingConfig_ == null ? + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; } } /** - * - * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -8707,22 +7623,18 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> getPingConfigFieldBuilder() { if (pingConfigBuilder_ == null) { - pingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, - com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( - getPingConfig(), getParentForChildren(), isClean()); + pingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( + getPingConfig(), + getParentForChildren(), + isClean()); pingConfig_ = null; } return pingConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8735,12 +7647,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) private static final com.google.monitoring.v3.UptimeCheckConfig.TcpCheck DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(); } @@ -8749,28 +7661,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TcpCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TcpCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8785,119 +7696,86 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContentMatcherOrBuilder - extends + public interface ContentMatcherOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The enum numeric value on the wire for matcher. */ int getMatcherValue(); /** - * - * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The matcher. */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher(); /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return Whether the jsonPathMatcher field is set. */ boolean hasJsonPathMatcher(); /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return The jsonPathMatcher. */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher(); /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder - getJsonPathMatcherOrBuilder(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder(); - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase - getAdditionalMatcherInfoCase(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase getAdditionalMatcherInfoCase(); } /** - * - * *
    * Optional. Used to perform content matching. This allows matching based on
    * substrings and regular expressions, together with their negations. Only the
@@ -8908,16 +7786,15 @@ public interface ContentMatcherOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher}
    */
-  public static final class ContentMatcher extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ContentMatcher extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher)
       ContentMatcherOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ContentMatcher.newBuilder() to construct.
     private ContentMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ContentMatcher() {
       content_ = "";
       matcher_ = 0;
@@ -8925,39 +7802,34 @@ private ContentMatcher() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ContentMatcher();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class,
-              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Options to perform content matching.
      * 
* - * Protobuf enum {@code - * google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption} + * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption} */ - public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageEnum { + public enum ContentMatcherOption + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * No content matcher type specified (maintained for backward
        * compatibility, but deprecated for future use).
@@ -8968,8 +7840,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       CONTENT_MATCHER_OPTION_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Selects substring matching. The match succeeds if the output contains
        * the `content` string.  This is the default value for checks without
@@ -8981,8 +7851,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       CONTAINS_STRING(1),
       /**
-       *
-       *
        * 
        * Selects negation of substring matching. The match succeeds if the
        * output does _NOT_ contain the `content` string.
@@ -8992,8 +7860,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       NOT_CONTAINS_STRING(2),
       /**
-       *
-       *
        * 
        * Selects regular-expression matching. The match succeeds if the output
        * matches the regular expression specified in the `content` string.
@@ -9004,8 +7870,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       MATCHES_REGEX(3),
       /**
-       *
-       *
        * 
        * Selects negation of regular-expression matching. The match succeeds if
        * the output does _NOT_ match the regular expression specified in the
@@ -9017,8 +7881,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       NOT_MATCHES_REGEX(4),
       /**
-       *
-       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
@@ -9029,8 +7891,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       MATCHES_JSON_PATH(5),
       /**
-       *
-       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. Succeeds when output does _NOT_ match as specified.
@@ -9044,8 +7904,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
       ;
 
       /**
-       *
-       *
        * 
        * No content matcher type specified (maintained for backward
        * compatibility, but deprecated for future use).
@@ -9056,8 +7914,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int CONTENT_MATCHER_OPTION_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Selects substring matching. The match succeeds if the output contains
        * the `content` string.  This is the default value for checks without
@@ -9069,8 +7925,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int CONTAINS_STRING_VALUE = 1;
       /**
-       *
-       *
        * 
        * Selects negation of substring matching. The match succeeds if the
        * output does _NOT_ contain the `content` string.
@@ -9080,8 +7934,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int NOT_CONTAINS_STRING_VALUE = 2;
       /**
-       *
-       *
        * 
        * Selects regular-expression matching. The match succeeds if the output
        * matches the regular expression specified in the `content` string.
@@ -9092,8 +7944,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int MATCHES_REGEX_VALUE = 3;
       /**
-       *
-       *
        * 
        * Selects negation of regular-expression matching. The match succeeds if
        * the output does _NOT_ match the regular expression specified in the
@@ -9105,8 +7955,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int NOT_MATCHES_REGEX_VALUE = 4;
       /**
-       *
-       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
@@ -9117,8 +7965,6 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int MATCHES_JSON_PATH_VALUE = 5;
       /**
-       *
-       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. Succeeds when output does _NOT_ match as specified.
@@ -9129,6 +7975,7 @@ public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageE
        */
       public static final int NOT_MATCHES_JSON_PATH_VALUE = 6;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -9153,22 +8000,14 @@ public static ContentMatcherOption valueOf(int value) {
        */
       public static ContentMatcherOption forNumber(int value) {
         switch (value) {
-          case 0:
-            return CONTENT_MATCHER_OPTION_UNSPECIFIED;
-          case 1:
-            return CONTAINS_STRING;
-          case 2:
-            return NOT_CONTAINS_STRING;
-          case 3:
-            return MATCHES_REGEX;
-          case 4:
-            return NOT_MATCHES_REGEX;
-          case 5:
-            return MATCHES_JSON_PATH;
-          case 6:
-            return NOT_MATCHES_JSON_PATH;
-          default:
-            return null;
+          case 0: return CONTENT_MATCHER_OPTION_UNSPECIFIED;
+          case 1: return CONTAINS_STRING;
+          case 2: return NOT_CONTAINS_STRING;
+          case 3: return MATCHES_REGEX;
+          case 4: return NOT_MATCHES_REGEX;
+          case 5: return MATCHES_JSON_PATH;
+          case 6: return NOT_MATCHES_JSON_PATH;
+          default: return null;
         }
       }
 
@@ -9176,31 +8015,29 @@ public static ContentMatcherOption forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          ContentMatcherOption> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public ContentMatcherOption findValueByNumber(int number) {
+                return ContentMatcherOption.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public ContentMatcherOption findValueByNumber(int number) {
-                  return ContentMatcherOption.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final ContentMatcherOption[] VALUES = values();
@@ -9208,7 +8045,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static ContentMatcherOption valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -9225,74 +8063,54 @@ private ContentMatcherOption(int value) {
       // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption)
     }
 
-    public interface JsonPathMatcherOrBuilder
-        extends
+    public interface JsonPathMatcherOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; - * * @return The jsonPath. */ java.lang.String getJsonPath(); /** - * - * *
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; - * * @return The bytes for jsonPath. */ - com.google.protobuf.ByteString getJsonPathBytes(); + com.google.protobuf.ByteString + getJsonPathBytes(); /** - * - * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The enum numeric value on the wire for jsonMatcher. */ int getJsonMatcherValue(); /** - * - * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The jsonMatcher. */ - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - getJsonMatcher(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher(); } /** - * - * *
      * Information needed to perform a JSONPath content match.
      * Used for `ContentMatcherOption::MATCHES_JSON_PATH` and
@@ -9301,16 +8119,15 @@ public interface JsonPathMatcherOrBuilder
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher}
      */
-    public static final class JsonPathMatcher extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class JsonPathMatcher extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
         JsonPathMatcherOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use JsonPathMatcher.newBuilder() to construct.
       private JsonPathMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
       private JsonPathMatcher() {
         jsonPath_ = "";
         jsonMatcher_ = 0;
@@ -9318,40 +8135,34 @@ private JsonPathMatcher() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new JsonPathMatcher();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class,
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder
-                    .class);
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder.class);
       }
 
       /**
-       *
-       *
        * 
        * Options to perform JSONPath content matching.
        * 
* - * Protobuf enum {@code - * google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption} + * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption} */ - public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonPathMatcherOption + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * No JSONPath matcher type specified (not valid).
          * 
@@ -9360,8 +8171,6 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage */ JSON_PATH_MATCHER_OPTION_UNSPECIFIED(0), /** - * - * *
          * Selects 'exact string' matching. The match succeeds if the content at
          * the `json_path` within the output is exactly the same as the
@@ -9372,8 +8181,6 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage
          */
         EXACT_MATCH(1),
         /**
-         *
-         *
          * 
          * Selects regular-expression matching. The match succeeds if the
          * content at the `json_path` within the output matches the regular
@@ -9386,9 +8193,7 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage
         UNRECOGNIZED(-1),
         ;
 
-        /**
-         *
-         *
+        /**
          * 
          * No JSONPath matcher type specified (not valid).
          * 
@@ -9397,8 +8202,6 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage */ public static final int JSON_PATH_MATCHER_OPTION_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Selects 'exact string' matching. The match succeeds if the content at
          * the `json_path` within the output is exactly the same as the
@@ -9409,8 +8212,6 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage
          */
         public static final int EXACT_MATCH_VALUE = 1;
         /**
-         *
-         *
          * 
          * Selects regular-expression matching. The match succeeds if the
          * content at the `json_path` within the output matches the regular
@@ -9421,6 +8222,7 @@ public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessage
          */
         public static final int REGEX_MATCH_VALUE = 2;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -9445,14 +8247,10 @@ public static JsonPathMatcherOption valueOf(int value) {
          */
         public static JsonPathMatcherOption forNumber(int value) {
           switch (value) {
-            case 0:
-              return JSON_PATH_MATCHER_OPTION_UNSPECIFIED;
-            case 1:
-              return EXACT_MATCH;
-            case 2:
-              return REGEX_MATCH;
-            default:
-              return null;
+            case 0: return JSON_PATH_MATCHER_OPTION_UNSPECIFIED;
+            case 1: return EXACT_MATCH;
+            case 2: return REGEX_MATCH;
+            default: return null;
           }
         }
 
@@ -9460,32 +8258,29 @@ public static JsonPathMatcherOption forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            JsonPathMatcherOption> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public JsonPathMatcherOption findValueByNumber(int number) {
+                  return JsonPathMatcherOption.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap
-            internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public JsonPathMatcherOption findValueByNumber(int number) {
-                    return JsonPathMatcherOption.forNumber(number);
-                  }
-                };
-
-        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+        public final com.google.protobuf.Descriptors.EnumValueDescriptor
+            getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
-
-        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+        public final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptorForType() {
           return getDescriptor();
         }
-
-        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
-              .getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final JsonPathMatcherOption[] VALUES = values();
@@ -9494,7 +8289,7 @@ public static JsonPathMatcherOption valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -9512,19 +8307,15 @@ private JsonPathMatcherOption(int value) {
       }
 
       public static final int JSON_PATH_FIELD_NUMBER = 1;
-
       @SuppressWarnings("serial")
       private volatile java.lang.Object jsonPath_ = "";
       /**
-       *
-       *
        * 
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; - * * @return The jsonPath. */ @java.lang.Override @@ -9533,30 +8324,30 @@ public java.lang.String getJsonPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jsonPath_ = s; return s; } } /** - * - * *
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; - * * @return The bytes for jsonPath. */ @java.lang.Override - public com.google.protobuf.ByteString getJsonPathBytes() { + public com.google.protobuf.ByteString + getJsonPathBytes() { java.lang.Object ref = jsonPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jsonPath_ = b; return b; } else { @@ -9567,54 +8358,32 @@ public com.google.protobuf.ByteString getJsonPathBytes() { public static final int JSON_MATCHER_FIELD_NUMBER = 2; private int jsonMatcher_ = 0; /** - * - * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The enum numeric value on the wire for jsonMatcher. */ - @java.lang.Override - public int getJsonMatcherValue() { + @java.lang.Override public int getJsonMatcherValue() { return jsonMatcher_; } /** - * - * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The jsonMatcher. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - getJsonMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - result = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.forNumber(jsonMatcher_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.forNumber(jsonMatcher_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9626,14 +8395,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jsonPath_); } - if (jsonMatcher_ - != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED - .getNumber()) { + if (jsonMatcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, jsonMatcher_); } getUnknownFields().writeTo(output); @@ -9648,11 +8415,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jsonPath_); } - if (jsonMatcher_ - != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, jsonMatcher_); + if (jsonMatcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, jsonMatcher_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9662,16 +8427,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)) { + if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other = - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) obj; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other = (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) obj; - if (!getJsonPath().equals(other.getJsonPath())) return false; + if (!getJsonPath() + .equals(other.getJsonPath())) return false; if (jsonMatcher_ != other.jsonMatcher_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -9693,103 +8457,90 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9799,8 +8550,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Information needed to perform a JSONPath content match.
        * Used for `ContentMatcherOption::MATCHES_JSON_PATH` and
@@ -9809,35 +8558,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher}
        */
-      public static final class Builder
-          extends com.google.protobuf.GeneratedMessageV3.Builder
-          implements
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
           com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class,
-                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder
-                      .class);
+                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder.class);
         }
 
-        // Construct using
-        // com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder()
-        private Builder() {}
+        // Construct using com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder()
+        private Builder() {
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
         }
 
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -9848,22 +8595,19 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto
-              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
-            getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
-              .getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher build() {
-          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result =
-              buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -9871,19 +8615,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
-            buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result =
-              new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(
-            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result) {
+        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.jsonPath_ = jsonPath_;
@@ -9897,55 +8636,46 @@ private void buildPartial0(
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.setField(field, value);
         }
-
         @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(
+            com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-
         @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(
+            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
+            int index, java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other
-              instanceof
-              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) {
-            return mergeFrom(
-                (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) other);
+          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) {
+            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(
-            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other) {
-          if (other
-              == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
-                  .getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other) {
+          if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance()) return this;
           if (!other.getJsonPath().isEmpty()) {
             jsonPath_ = other.jsonPath_;
             bitField0_ |= 0x00000001;
@@ -9980,25 +8710,22 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10:
-                  {
-                    jsonPath_ = input.readStringRequireUtf8();
-                    bitField0_ |= 0x00000001;
-                    break;
-                  } // case 10
-                case 16:
-                  {
-                    jsonMatcher_ = input.readEnum();
-                    bitField0_ |= 0x00000002;
-                    break;
-                  } // case 16
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 10: {
+                  jsonPath_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+                case 16: {
+                  jsonMatcher_ = input.readEnum();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10008,26 +8735,23 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int bitField0_;
 
         private java.lang.Object jsonPath_ = "";
         /**
-         *
-         *
          * 
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; - * * @return The jsonPath. */ public java.lang.String getJsonPath() { java.lang.Object ref = jsonPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jsonPath_ = s; return s; @@ -10036,22 +8760,21 @@ public java.lang.String getJsonPath() { } } /** - * - * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; - * * @return The bytes for jsonPath. */ - public com.google.protobuf.ByteString getJsonPathBytes() { + public com.google.protobuf.ByteString + getJsonPathBytes() { java.lang.Object ref = jsonPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jsonPath_ = b; return b; } else { @@ -10059,37 +8782,30 @@ public com.google.protobuf.ByteString getJsonPathBytes() { } } /** - * - * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; - * * @param value The jsonPath to set. * @return This builder for chaining. */ - public Builder setJsonPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } jsonPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; - * * @return This builder for chaining. */ public Builder clearJsonPath() { @@ -10099,22 +8815,18 @@ public Builder clearJsonPath() { return this; } /** - * - * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; - * * @param value The bytes for jsonPath to set. * @return This builder for chaining. */ - public Builder setJsonPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jsonPath_ = value; bitField0_ |= 0x00000001; @@ -10124,35 +8836,24 @@ public Builder setJsonPathBytes(com.google.protobuf.ByteString value) { private int jsonMatcher_ = 0; /** - * - * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The enum numeric value on the wire for jsonMatcher. */ - @java.lang.Override - public int getJsonMatcherValue() { + @java.lang.Override public int getJsonMatcherValue() { return jsonMatcher_; } /** - * - * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @param value The enum numeric value on the wire for jsonMatcher to set. * @return This builder for chaining. */ @@ -10163,52 +8864,30 @@ public Builder setJsonMatcherValue(int value) { return this; } /** - * - * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return The jsonMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - getJsonMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - result = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.forNumber(jsonMatcher_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption.UNRECOGNIZED - : result; + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.forNumber(jsonMatcher_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.UNRECOGNIZED : result; } /** - * - * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @param value The jsonMatcher to set. * @return This builder for chaining. */ - public Builder setJsonMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .JsonPathMatcherOption - value) { + public Builder setJsonMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption value) { if (value == null) { throw new NullPointerException(); } @@ -10218,17 +8897,12 @@ public Builder setJsonMatcher( return this; } /** - * - * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; * @return This builder for chaining. */ public Builder clearJsonMatcher() { @@ -10237,7 +8911,6 @@ public Builder clearJsonMatcher() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10250,45 +8923,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(); + DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonPathMatcher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonPathMatcher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10300,25 +8969,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int additionalMatcherInfoCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object additionalMatcherInfo_; - public enum AdditionalMatcherInfoCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { JSON_PATH_MATCHER(3), ADDITIONALMATCHERINFO_NOT_SET(0); private final int value; - private AdditionalMatcherInfoCase(int value) { this.value = value; } @@ -10334,38 +8999,32 @@ public static AdditionalMatcherInfoCase valueOf(int value) { public static AdditionalMatcherInfoCase forNumber(int value) { switch (value) { - case 3: - return JSON_PATH_MATCHER; - case 0: - return ADDITIONALMATCHERINFO_NOT_SET; - default: - return null; + case 3: return JSON_PATH_MATCHER; + case 0: return ADDITIONALMATCHERINFO_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AdditionalMatcherInfoCase getAdditionalMatcherInfoCase() { - return AdditionalMatcherInfoCase.forNumber(additionalMatcherInfoCase_); + public AdditionalMatcherInfoCase + getAdditionalMatcherInfoCase() { + return AdditionalMatcherInfoCase.forNumber( + additionalMatcherInfoCase_); } public static final int CONTENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** - * - * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -10374,30 +9033,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** - * - * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -10408,61 +9067,38 @@ public com.google.protobuf.ByteString getContentBytes() { public static final int MATCHER_FIELD_NUMBER = 2; private int matcher_ = 0; /** - * - * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The enum numeric value on the wire for matcher. */ - @java.lang.Override - public int getMatcherValue() { + @java.lang.Override public int getMatcherValue() { return matcher_; } /** - * - * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The matcher. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - getMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber( - matcher_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber(matcher_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.UNRECOGNIZED : result; } public static final int JSON_PATH_MATCHER_FIELD_NUMBER = 3; /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return Whether the jsonPathMatcher field is set. */ @java.lang.Override @@ -10470,52 +9106,36 @@ public boolean hasJsonPathMatcher() { return additionalMatcherInfoCase_ == 3; } /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return The jsonPathMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - getJsonPathMatcher() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher() { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } /** - * - * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder - getJsonPathMatcherOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder() { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10527,21 +9147,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } - if (matcher_ - != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - .CONTENT_MATCHER_OPTION_UNSPECIFIED - .getNumber()) { + if (matcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.CONTENT_MATCHER_OPTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, matcher_); } if (additionalMatcherInfoCase_ == 3) { - output.writeMessage( - 3, - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_); + output.writeMessage(3, (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_); } getUnknownFields().writeTo(output); } @@ -10555,18 +9170,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } - if (matcher_ - != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - .CONTENT_MATCHER_OPTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, matcher_); + if (matcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.CONTENT_MATCHER_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, matcher_); } if (additionalMatcherInfoCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10576,21 +9186,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other = - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) obj; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other = (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) obj; - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; if (matcher_ != other.matcher_) return false; - if (!getAdditionalMatcherInfoCase().equals(other.getAdditionalMatcherInfoCase())) - return false; + if (!getAdditionalMatcherInfoCase().equals(other.getAdditionalMatcherInfoCase())) return false; switch (additionalMatcherInfoCase_) { case 3: - if (!getJsonPathMatcher().equals(other.getJsonPathMatcher())) return false; + if (!getJsonPathMatcher() + .equals(other.getJsonPathMatcher())) return false; break; case 0: default: @@ -10624,94 +9234,89 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher prototype) { + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10721,8 +9326,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Optional. Used to perform content matching. This allows matching based on
      * substrings and regular expressions, together with their negations. Only the
@@ -10733,33 +9336,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher)
         com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class,
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10775,9 +9378,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto
-            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
       }
 
       @java.lang.Override
@@ -10796,11 +9399,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result =
-            new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -10816,11 +9416,11 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ContentMat
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result) {
+      private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result) {
         result.additionalMatcherInfoCase_ = additionalMatcherInfoCase_;
         result.additionalMatcherInfo_ = this.additionalMatcherInfo_;
-        if (additionalMatcherInfoCase_ == 3 && jsonPathMatcherBuilder_ != null) {
+        if (additionalMatcherInfoCase_ == 3 &&
+            jsonPathMatcherBuilder_ != null) {
           result.additionalMatcherInfo_ = jsonPathMatcherBuilder_.build();
         }
       }
@@ -10829,41 +9429,38 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -10871,8 +9468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()) return this;
         if (!other.getContent().isEmpty()) {
           content_ = other.content_;
           bitField0_ |= 0x00000001;
@@ -10882,15 +9478,13 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatch
           setMatcherValue(other.getMatcherValue());
         }
         switch (other.getAdditionalMatcherInfoCase()) {
-          case JSON_PATH_MATCHER:
-            {
-              mergeJsonPathMatcher(other.getJsonPathMatcher());
-              break;
-            }
-          case ADDITIONALMATCHERINFO_NOT_SET:
-            {
-              break;
-            }
+          case JSON_PATH_MATCHER: {
+            mergeJsonPathMatcher(other.getJsonPathMatcher());
+            break;
+          }
+          case ADDITIONALMATCHERINFO_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -10918,32 +9512,29 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  content_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 16:
-                {
-                  matcher_ = input.readEnum();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              case 26:
-                {
-                  input.readMessage(
-                      getJsonPathMatcherFieldBuilder().getBuilder(), extensionRegistry);
-                  additionalMatcherInfoCase_ = 3;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                content_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 16: {
+                matcher_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              case 26: {
+                input.readMessage(
+                    getJsonPathMatcherFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                additionalMatcherInfoCase_ = 3;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10953,12 +9544,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int additionalMatcherInfoCase_ = 0;
       private java.lang.Object additionalMatcherInfo_;
-
-      public AdditionalMatcherInfoCase getAdditionalMatcherInfoCase() {
-        return AdditionalMatcherInfoCase.forNumber(additionalMatcherInfoCase_);
+      public AdditionalMatcherInfoCase
+          getAdditionalMatcherInfoCase() {
+        return AdditionalMatcherInfoCase.forNumber(
+            additionalMatcherInfoCase_);
       }
 
       public Builder clearAdditionalMatcherInfo() {
@@ -10972,21 +9563,19 @@ public Builder clearAdditionalMatcherInfo() {
 
       private java.lang.Object content_ = "";
       /**
-       *
-       *
        * 
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -10995,22 +9584,21 @@ public java.lang.String getContent() { } } /** - * - * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); content_ = b; return b; } else { @@ -11018,37 +9606,30 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -11058,22 +9639,18 @@ public Builder clearContent() { return this; } /** - * - * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -11083,35 +9660,24 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private int matcher_ = 0; /** - * - * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The enum numeric value on the wire for matcher. */ - @java.lang.Override - public int getMatcherValue() { + @java.lang.Override public int getMatcherValue() { return matcher_; } /** - * - * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @param value The enum numeric value on the wire for matcher to set. * @return This builder for chaining. */ @@ -11122,47 +9688,30 @@ public Builder setMatcherValue(int value) { return this; } /** - * - * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return The matcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - getMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - .forNumber(matcher_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption - .UNRECOGNIZED - : result; + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber(matcher_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.UNRECOGNIZED : result; } /** - * - * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @param value The matcher to set. * @return This builder for chaining. */ - public Builder setMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption value) { + public Builder setMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption value) { if (value == null) { throw new NullPointerException(); } @@ -11172,17 +9721,12 @@ public Builder setMatcher( return this; } /** - * - * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; * @return This builder for chaining. */ public Builder clearMatcher() { @@ -11193,21 +9737,13 @@ public Builder clearMatcher() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> - jsonPathMatcherBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> jsonPathMatcherBuilder_; /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return Whether the jsonPathMatcher field is set. */ @java.lang.Override @@ -11215,49 +9751,35 @@ public boolean hasJsonPathMatcher() { return additionalMatcherInfoCase_ == 3; } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; * @return The jsonPathMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - getJsonPathMatcher() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher() { if (jsonPathMatcherBuilder_ == null) { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } else { if (additionalMatcherInfoCase_ == 3) { return jsonPathMatcherBuilder_.getMessage(); } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ - public Builder setJsonPathMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { + public Builder setJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { if (jsonPathMatcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11271,19 +9793,14 @@ public Builder setJsonPathMatcher( return this; } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ public Builder setJsonPathMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder - builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder builderForValue) { if (jsonPathMatcherBuilder_ == null) { additionalMatcherInfo_ = builderForValue.build(); onChanged(); @@ -11294,30 +9811,18 @@ public Builder setJsonPathMatcher( return this; } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ - public Builder mergeJsonPathMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { + public Builder mergeJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { if (jsonPathMatcherBuilder_ == null) { - if (additionalMatcherInfoCase_ == 3 - && additionalMatcherInfo_ - != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance()) { - additionalMatcherInfo_ = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .newBuilder( - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_) - .mergeFrom(value) - .buildPartial(); + if (additionalMatcherInfoCase_ == 3 && + additionalMatcherInfo_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance()) { + additionalMatcherInfo_ = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_) + .mergeFrom(value).buildPartial(); } else { additionalMatcherInfo_ = value; } @@ -11333,15 +9838,11 @@ public Builder mergeJsonPathMatcher( return this; } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ public Builder clearJsonPathMatcher() { if (jsonPathMatcherBuilder_ == null) { @@ -11360,75 +9861,50 @@ public Builder clearJsonPathMatcher() { return this; } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder - getJsonPathMatcherBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder getJsonPathMatcherBuilder() { return getJsonPathMatcherFieldBuilder().getBuilder(); } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder - getJsonPathMatcherOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder() { if ((additionalMatcherInfoCase_ == 3) && (jsonPathMatcherBuilder_ != null)) { return jsonPathMatcherBuilder_.getMessageOrBuilder(); } else { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } } /** - * - * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; - * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> getJsonPathMatcherFieldBuilder() { if (jsonPathMatcherBuilder_ == null) { if (!(additionalMatcherInfoCase_ == 3)) { - additionalMatcherInfo_ = - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher - .getDefaultInstance(); + additionalMatcherInfo_ = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); } - jsonPathMatcherBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher - .JsonPathMatcherOrBuilder>( - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - additionalMatcherInfo_, + jsonPathMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder>( + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_, getParentForChildren(), isClean()); additionalMatcherInfo_ = null; @@ -11437,7 +9913,6 @@ public Builder clearJsonPathMatcher() { onChanged(); return jsonPathMatcherBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11450,12 +9925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(); } @@ -11464,28 +9939,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentMatcher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentMatcher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11500,22 +9974,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int resourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object resource_; - public enum ResourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MONITORED_RESOURCE(3), RESOURCE_GROUP(4), RESOURCE_NOT_SET(0); private final int value; - private ResourceCase(int value) { this.value = value; } @@ -11531,40 +10002,33 @@ public static ResourceCase valueOf(int value) { public static ResourceCase forNumber(int value) { switch (value) { - case 3: - return MONITORED_RESOURCE; - case 4: - return RESOURCE_GROUP; - case 0: - return RESOURCE_NOT_SET; - default: - return null; + case 3: return MONITORED_RESOURCE; + case 4: return RESOURCE_GROUP; + case 0: return RESOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResourceCase getResourceCase() { - return ResourceCase.forNumber(resourceCase_); + public ResourceCase + getResourceCase() { + return ResourceCase.forNumber( + resourceCase_); } private int checkRequestTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object checkRequestType_; - public enum CheckRequestTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HTTP_CHECK(5), TCP_CHECK(6), CHECKREQUESTTYPE_NOT_SET(0); private final int value; - private CheckRequestTypeCase(int value) { this.value = value; } @@ -11580,33 +10044,27 @@ public static CheckRequestTypeCase valueOf(int value) { public static CheckRequestTypeCase forNumber(int value) { switch (value) { - case 5: - return HTTP_CHECK; - case 6: - return TCP_CHECK; - case 0: - return CHECKREQUESTTYPE_NOT_SET; - default: - return null; + case 5: return HTTP_CHECK; + case 6: return TCP_CHECK; + case 0: return CHECKREQUESTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CheckRequestTypeCase getCheckRequestTypeCase() { - return CheckRequestTypeCase.forNumber(checkRequestTypeCase_); + public CheckRequestTypeCase + getCheckRequestTypeCase() { + return CheckRequestTypeCase.forNumber( + checkRequestTypeCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -11621,7 +10079,6 @@ public CheckRequestTypeCase getCheckRequestTypeCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -11630,15 +10087,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -11653,15 +10109,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -11670,12 +10127,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -11683,7 +10137,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -11692,15 +10145,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -11708,15 +10160,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -11726,8 +10179,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MONITORED_RESOURCE_FIELD_NUMBER = 3; /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -11744,7 +10195,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return Whether the monitoredResource field is set. */ @java.lang.Override @@ -11752,8 +10202,6 @@ public boolean hasMonitoredResource() { return resourceCase_ == 3; } /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -11770,19 +10218,16 @@ public boolean hasMonitoredResource() {
    * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return The monitoredResource. */ @java.lang.Override public com.google.api.MonitoredResource getMonitoredResource() { if (resourceCase_ == 3) { - return (com.google.api.MonitoredResource) resource_; + return (com.google.api.MonitoredResource) resource_; } return com.google.api.MonitoredResource.getDefaultInstance(); } /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -11803,21 +10248,18 @@ public com.google.api.MonitoredResource getMonitoredResource() {
   @java.lang.Override
   public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder() {
     if (resourceCase_ == 3) {
-      return (com.google.api.MonitoredResource) resource_;
+       return (com.google.api.MonitoredResource) resource_;
     }
     return com.google.api.MonitoredResource.getDefaultInstance();
   }
 
   public static final int RESOURCE_GROUP_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return Whether the resourceGroup field is set. */ @java.lang.Override @@ -11825,26 +10267,21 @@ public boolean hasResourceGroup() { return resourceCase_ == 4; } /** - * - * *
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return The resourceGroup. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup() { if (resourceCase_ == 4) { - return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; + return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; } return com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } /** - * - * *
    * The group resource associated with the configuration.
    * 
@@ -11852,24 +10289,20 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder - getResourceGroupOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder() { if (resourceCase_ == 4) { - return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; + return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; } return com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } public static final int HTTP_CHECK_FIELD_NUMBER = 5; /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return Whether the httpCheck field is set. */ @java.lang.Override @@ -11877,26 +10310,21 @@ public boolean hasHttpCheck() { return checkRequestTypeCase_ == 5; } /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return The httpCheck. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { if (checkRequestTypeCase_ == 5) { - return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); } /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
@@ -11906,21 +10334,18 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpCheckOrBuilder() { if (checkRequestTypeCase_ == 5) { - return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); } public static final int TCP_CHECK_FIELD_NUMBER = 6; /** - * - * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return Whether the tcpCheck field is set. */ @java.lang.Override @@ -11928,26 +10353,21 @@ public boolean hasTcpCheck() { return checkRequestTypeCase_ == 6; } /** - * - * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return The tcpCheck. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { if (checkRequestTypeCase_ == 6) { - return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); } /** - * - * *
    * Contains information needed to make a TCP check.
    * 
@@ -11957,7 +10377,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckOrBuilder() { if (checkRequestTypeCase_ == 6) { - return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); } @@ -11965,8 +10385,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO public static final int PERIOD_FIELD_NUMBER = 7; private com.google.protobuf.Duration period_; /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -11975,7 +10393,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO
    * 
* * .google.protobuf.Duration period = 7; - * * @return Whether the period field is set. */ @java.lang.Override @@ -11983,8 +10400,6 @@ public boolean hasPeriod() { return period_ != null; } /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -11993,7 +10408,6 @@ public boolean hasPeriod() {
    * 
* * .google.protobuf.Duration period = 7; - * * @return The period. */ @java.lang.Override @@ -12001,8 +10415,6 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12020,15 +10432,12 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
-   *
-   *
    * 
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -12036,15 +10445,12 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ @java.lang.Override @@ -12052,8 +10458,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
@@ -12067,13 +10471,9 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   }
 
   public static final int CONTENT_MATCHERS_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      contentMatchers_;
+  private java.util.List contentMatchers_;
   /**
-   *
-   *
    * 
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -12082,17 +10482,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ @java.lang.Override - public java.util.List - getContentMatchersList() { + public java.util.List getContentMatchersList() { return contentMatchers_; } /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -12101,18 +10497,14 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ @java.lang.Override - public java.util.List< - ? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> + public java.util.List getContentMatchersOrBuilderList() { return contentMatchers_; } /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -12121,16 +10513,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ @java.lang.Override public int getContentMatchersCount() { return contentMatchers_.size(); } /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -12139,16 +10528,13 @@ public int getContentMatchersCount() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index) { return contentMatchers_.get(index); } /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -12157,73 +10543,53 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder - getContentMatchersOrBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( + int index) { return contentMatchers_.get(index); } public static final int CHECKER_TYPE_FIELD_NUMBER = 17; private int checkerType_ = 0; /** - * - * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The enum numeric value on the wire for checkerType. */ - @java.lang.Override - public int getCheckerTypeValue() { + @java.lang.Override public int getCheckerTypeValue() { return checkerType_; } /** - * - * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The checkerType. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { - com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = - com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { + com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED : result; } public static final int SELECTED_REGIONS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List selectedRegions_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion> - selectedRegions_converter_ = + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion> selectedRegions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>() { public com.google.monitoring.v3.UptimeCheckRegion convert(java.lang.Integer from) { - com.google.monitoring.v3.UptimeCheckRegion result = - com.google.monitoring.v3.UptimeCheckRegion.forNumber(from); - return result == null - ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(from); + return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; } }; /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -12233,18 +10599,14 @@ public com.google.monitoring.v3.UptimeCheckRegion convert(java.lang.Integer from
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the selectedRegions. */ @java.lang.Override public java.util.List getSelectedRegionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>( - selectedRegions_, selectedRegions_converter_); + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>(selectedRegions_, selectedRegions_converter_); } /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -12254,7 +10616,6 @@ public java.util.List getSelectedReg
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return The count of selectedRegions. */ @java.lang.Override @@ -12262,8 +10623,6 @@ public int getSelectedRegionsCount() { return selectedRegions_.size(); } /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -12273,7 +10632,6 @@ public int getSelectedRegionsCount() {
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ @@ -12282,8 +10640,6 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index) return selectedRegions_converter_.convert(selectedRegions_.get(index)); } /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -12293,16 +10649,14 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index)
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the enum numeric values on the wire for selectedRegions. */ @java.lang.Override - public java.util.List getSelectedRegionsValueList() { + public java.util.List + getSelectedRegionsValueList() { return selectedRegions_; } /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -12312,7 +10666,6 @@ public java.util.List getSelectedRegionsValueList() {
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ @@ -12320,14 +10673,11 @@ public java.util.List getSelectedRegionsValueList() { public int getSelectedRegionsValue(int index) { return selectedRegions_.get(index); } - private int selectedRegionsMemoizedSerializedSize; public static final int IS_INTERNAL_FIELD_NUMBER = 15; private boolean isInternal_ = false; /** - * - * *
    * If this is `true`, then checks are made only from the 'internal_checkers'.
    * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -12336,24 +10686,19 @@ public int getSelectedRegionsValue(int index) {
    * 
* * bool is_internal = 15 [deprecated = true]; - * - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See - * google/monitoring/v3/uptime.proto;l=478 + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. + * See google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ @java.lang.Override - @java.lang.Deprecated - public boolean getIsInternal() { + @java.lang.Deprecated public boolean getIsInternal() { return isInternal_; } public static final int INTERNAL_CHECKERS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List internalCheckers_; /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -12361,18 +10706,13 @@ public boolean getIsInternal() {
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getInternalCheckersList() { + @java.lang.Deprecated public java.util.List getInternalCheckersList() { return internalCheckers_; } /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -12380,19 +10720,14 @@ public java.util.List getInternalCheck
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getInternalCheckersOrBuilderList() { return internalCheckers_; } /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -12400,18 +10735,13 @@ public java.util.List getInternalCheck
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getInternalCheckersCount() { + @java.lang.Deprecated public int getInternalCheckersCount() { return internalCheckers_.size(); } /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -12419,18 +10749,13 @@ public int getInternalCheckersCount() {
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { return internalCheckers_.get(index); } /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -12438,45 +10763,41 @@ public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) {
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + int index) { return internalCheckers_.get(index); } public static final int USER_LABELS_FIELD_NUMBER = 20; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.monitoring.v3.UptimeProto - .internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -12490,21 +10811,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -12522,8 +10842,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -12537,19 +10855,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -12563,11 +10879,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -12575,7 +10891,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -12587,7 +10902,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     getSerializedSize();
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -12602,12 +10918,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       output.writeMessage(4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
     }
     if (checkRequestTypeCase_ == 5) {
-      output.writeMessage(
-          5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
+      output.writeMessage(5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
     }
     if (checkRequestTypeCase_ == 6) {
-      output.writeMessage(
-          6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
+      output.writeMessage(6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
     }
     if (period_ != null) {
       output.writeMessage(7, getPeriod());
@@ -12631,13 +10945,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (isInternal_ != false) {
       output.writeBool(15, isInternal_);
     }
-    if (checkerType_
-        != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED
-            .getNumber()) {
+    if (checkerType_ != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(17, checkerType_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 20);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        20);
     getUnknownFields().writeTo(output);
   }
 
@@ -12654,68 +10970,66 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (resourceCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.api.MonitoredResource) resource_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.api.MonitoredResource) resource_);
     }
     if (resourceCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
     }
     if (checkRequestTypeCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
     }
     if (checkRequestTypeCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
     }
     if (period_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPeriod());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getPeriod());
     }
     if (timeout_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getTimeout());
     }
     for (int i = 0; i < contentMatchers_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, contentMatchers_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, contentMatchers_.get(i));
     }
     {
       int dataSize = 0;
       for (int i = 0; i < selectedRegions_.size(); i++) {
-        dataSize +=
-            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(selectedRegions_.get(i));
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeEnumSizeNoTag(selectedRegions_.get(i));
       }
       size += dataSize;
-      if (!getSelectedRegionsList().isEmpty()) {
-        size += 1;
-        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
-      }
-      selectedRegionsMemoizedSerializedSize = dataSize;
+      if (!getSelectedRegionsList().isEmpty()) {  size += 1;
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt32SizeNoTag(dataSize);
+      }selectedRegionsMemoizedSerializedSize = dataSize;
     }
     for (int i = 0; i < internalCheckers_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, internalCheckers_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, internalCheckers_.get(i));
     }
     if (isInternal_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, isInternal_);
-    }
-    if (checkerType_
-        != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, checkerType_);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, userLabels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(15, isInternal_);
+    }
+    if (checkerType_ != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(17, checkerType_);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(20, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -12725,37 +11039,46 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.UptimeCheckConfig other =
-        (com.google.monitoring.v3.UptimeCheckConfig) obj;
+    com.google.monitoring.v3.UptimeCheckConfig other = (com.google.monitoring.v3.UptimeCheckConfig) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
     if (hasPeriod() != other.hasPeriod()) return false;
     if (hasPeriod()) {
-      if (!getPeriod().equals(other.getPeriod())) return false;
+      if (!getPeriod()
+          .equals(other.getPeriod())) return false;
     }
     if (hasTimeout() != other.hasTimeout()) return false;
     if (hasTimeout()) {
-      if (!getTimeout().equals(other.getTimeout())) return false;
+      if (!getTimeout()
+          .equals(other.getTimeout())) return false;
     }
-    if (!getContentMatchersList().equals(other.getContentMatchersList())) return false;
+    if (!getContentMatchersList()
+        .equals(other.getContentMatchersList())) return false;
     if (checkerType_ != other.checkerType_) return false;
     if (!selectedRegions_.equals(other.selectedRegions_)) return false;
-    if (getIsInternal() != other.getIsInternal()) return false;
-    if (!getInternalCheckersList().equals(other.getInternalCheckersList())) return false;
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+    if (getIsInternal()
+        != other.getIsInternal()) return false;
+    if (!getInternalCheckersList()
+        .equals(other.getInternalCheckersList())) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getResourceCase().equals(other.getResourceCase())) return false;
     switch (resourceCase_) {
       case 3:
-        if (!getMonitoredResource().equals(other.getMonitoredResource())) return false;
+        if (!getMonitoredResource()
+            .equals(other.getMonitoredResource())) return false;
         break;
       case 4:
-        if (!getResourceGroup().equals(other.getResourceGroup())) return false;
+        if (!getResourceGroup()
+            .equals(other.getResourceGroup())) return false;
         break;
       case 0:
       default:
@@ -12763,10 +11086,12 @@ public boolean equals(final java.lang.Object obj) {
     if (!getCheckRequestTypeCase().equals(other.getCheckRequestTypeCase())) return false;
     switch (checkRequestTypeCase_) {
       case 5:
-        if (!getHttpCheck().equals(other.getHttpCheck())) return false;
+        if (!getHttpCheck()
+            .equals(other.getHttpCheck())) return false;
         break;
       case 6:
-        if (!getTcpCheck().equals(other.getTcpCheck())) return false;
+        if (!getTcpCheck()
+            .equals(other.getTcpCheck())) return false;
         break;
       case 0:
       default:
@@ -12805,7 +11130,8 @@ public int hashCode() {
       hash = (53 * hash) + selectedRegions_.hashCode();
     }
     hash = (37 * hash) + IS_INTERNAL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsInternal());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getIsInternal());
     if (getInternalCheckersCount() > 0) {
       hash = (37 * hash) + INTERNAL_CHECKERS_FIELD_NUMBER;
       hash = (53 * hash) + getInternalCheckersList().hashCode();
@@ -12843,104 +11169,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * This message configures which resources and services to monitor for
    * availability.
@@ -12948,52 +11269,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig)
       com.google.monitoring.v3.UptimeCheckConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 20:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 20:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.class,
-              com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.class, com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UptimeCheckConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
+
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-    }
 
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -13049,9 +11373,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
     }
 
     @java.lang.Override
@@ -13070,12 +11394,9 @@ public com.google.monitoring.v3.UptimeCheckConfig build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UptimeCheckConfig buildPartial() {
-      com.google.monitoring.v3.UptimeCheckConfig result =
-          new com.google.monitoring.v3.UptimeCheckConfig(this);
+      com.google.monitoring.v3.UptimeCheckConfig result = new com.google.monitoring.v3.UptimeCheckConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -13116,10 +11437,14 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build();
+        result.period_ = periodBuilder_ == null
+            ? period_
+            : periodBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
+        result.timeout_ = timeoutBuilder_ == null
+            ? timeout_
+            : timeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.checkerType_ = checkerType_;
@@ -13136,18 +11461,22 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig result) {
     private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig result) {
       result.resourceCase_ = resourceCase_;
       result.resource_ = this.resource_;
-      if (resourceCase_ == 3 && monitoredResourceBuilder_ != null) {
+      if (resourceCase_ == 3 &&
+          monitoredResourceBuilder_ != null) {
         result.resource_ = monitoredResourceBuilder_.build();
       }
-      if (resourceCase_ == 4 && resourceGroupBuilder_ != null) {
+      if (resourceCase_ == 4 &&
+          resourceGroupBuilder_ != null) {
         result.resource_ = resourceGroupBuilder_.build();
       }
       result.checkRequestTypeCase_ = checkRequestTypeCase_;
       result.checkRequestType_ = this.checkRequestType_;
-      if (checkRequestTypeCase_ == 5 && httpCheckBuilder_ != null) {
+      if (checkRequestTypeCase_ == 5 &&
+          httpCheckBuilder_ != null) {
         result.checkRequestType_ = httpCheckBuilder_.build();
       }
-      if (checkRequestTypeCase_ == 6 && tcpCheckBuilder_ != null) {
+      if (checkRequestTypeCase_ == 6 &&
+          tcpCheckBuilder_ != null) {
         result.checkRequestType_ = tcpCheckBuilder_.build();
       }
     }
@@ -13156,39 +11485,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UptimeCheckConfig) {
-        return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig) other);
+        return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -13231,10 +11559,9 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) {
             contentMatchersBuilder_ = null;
             contentMatchers_ = other.contentMatchers_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            contentMatchersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getContentMatchersFieldBuilder()
-                    : null;
+            contentMatchersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getContentMatchersFieldBuilder() : null;
           } else {
             contentMatchersBuilder_.addAllMessages(other.contentMatchers_);
           }
@@ -13274,48 +11601,42 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) {
             internalCheckersBuilder_ = null;
             internalCheckers_ = other.internalCheckers_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            internalCheckersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getInternalCheckersFieldBuilder()
-                    : null;
+            internalCheckersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getInternalCheckersFieldBuilder() : null;
           } else {
             internalCheckersBuilder_.addAllMessages(other.internalCheckers_);
           }
         }
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00002000;
       switch (other.getResourceCase()) {
-        case MONITORED_RESOURCE:
-          {
-            mergeMonitoredResource(other.getMonitoredResource());
-            break;
-          }
-        case RESOURCE_GROUP:
-          {
-            mergeResourceGroup(other.getResourceGroup());
-            break;
-          }
-        case RESOURCE_NOT_SET:
-          {
-            break;
-          }
+        case MONITORED_RESOURCE: {
+          mergeMonitoredResource(other.getMonitoredResource());
+          break;
+        }
+        case RESOURCE_GROUP: {
+          mergeResourceGroup(other.getResourceGroup());
+          break;
+        }
+        case RESOURCE_NOT_SET: {
+          break;
+        }
       }
       switch (other.getCheckRequestTypeCase()) {
-        case HTTP_CHECK:
-          {
-            mergeHttpCheck(other.getHttpCheck());
-            break;
-          }
-        case TCP_CHECK:
-          {
-            mergeTcpCheck(other.getTcpCheck());
-            break;
-          }
-        case CHECKREQUESTTYPE_NOT_SET:
-          {
-            break;
-          }
+        case HTTP_CHECK: {
+          mergeHttpCheck(other.getHttpCheck());
+          break;
+        }
+        case TCP_CHECK: {
+          mergeTcpCheck(other.getTcpCheck());
+          break;
+        }
+        case CHECKREQUESTTYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -13343,132 +11664,126 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(
-                    getMonitoredResourceFieldBuilder().getBuilder(), extensionRegistry);
-                resourceCase_ = 3;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getResourceGroupFieldBuilder().getBuilder(), extensionRegistry);
-                resourceCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getHttpCheckFieldBuilder().getBuilder(), extensionRegistry);
-                checkRequestTypeCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getTcpCheckFieldBuilder().getBuilder(), extensionRegistry);
-                checkRequestTypeCase_ = 6;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher m =
-                    input.readMessage(
-                        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.parser(),
-                        extensionRegistry);
-                if (contentMatchersBuilder_ == null) {
-                  ensureContentMatchersIsMutable();
-                  contentMatchers_.add(m);
-                } else {
-                  contentMatchersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 80:
-              {
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getMonitoredResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              resourceCase_ = 3;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getResourceGroupFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              resourceCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getHttpCheckFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              checkRequestTypeCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getTcpCheckFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              checkRequestTypeCase_ = 6;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getPeriodFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher m =
+                  input.readMessage(
+                      com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.parser(),
+                      extensionRegistry);
+              if (contentMatchersBuilder_ == null) {
+                ensureContentMatchersIsMutable();
+                contentMatchers_.add(m);
+              } else {
+                contentMatchersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 80: {
+              int tmpRaw = input.readEnum();
+              ensureSelectedRegionsIsMutable();
+              selectedRegions_.add(tmpRaw);
+              break;
+            } // case 80
+            case 82: {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while(input.getBytesUntilLimit() > 0) {
                 int tmpRaw = input.readEnum();
                 ensureSelectedRegionsIsMutable();
                 selectedRegions_.add(tmpRaw);
-                break;
-              } // case 80
-            case 82:
-              {
-                int length = input.readRawVarint32();
-                int oldLimit = input.pushLimit(length);
-                while (input.getBytesUntilLimit() > 0) {
-                  int tmpRaw = input.readEnum();
-                  ensureSelectedRegionsIsMutable();
-                  selectedRegions_.add(tmpRaw);
-                }
-                input.popLimit(oldLimit);
-                break;
-              } // case 82
-            case 114:
-              {
-                com.google.monitoring.v3.InternalChecker m =
-                    input.readMessage(
-                        com.google.monitoring.v3.InternalChecker.parser(), extensionRegistry);
-                if (internalCheckersBuilder_ == null) {
-                  ensureInternalCheckersIsMutable();
-                  internalCheckers_.add(m);
-                } else {
-                  internalCheckersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 120:
-              {
-                isInternal_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 120
-            case 136:
-              {
-                checkerType_ = input.readEnum();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 136
-            case 162:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 162
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              }
+              input.popLimit(oldLimit);
+              break;
+            } // case 82
+            case 114: {
+              com.google.monitoring.v3.InternalChecker m =
+                  input.readMessage(
+                      com.google.monitoring.v3.InternalChecker.parser(),
+                      extensionRegistry);
+              if (internalCheckersBuilder_ == null) {
+                ensureInternalCheckersIsMutable();
+                internalCheckers_.add(m);
+              } else {
+                internalCheckersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 120: {
+              isInternal_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 120
+            case 136: {
+              checkerType_ = input.readEnum();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 136
+            case 162: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 162
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -13478,12 +11793,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int resourceCase_ = 0;
     private java.lang.Object resource_;
-
-    public ResourceCase getResourceCase() {
-      return ResourceCase.forNumber(resourceCase_);
+    public ResourceCase
+        getResourceCase() {
+      return ResourceCase.forNumber(
+          resourceCase_);
     }
 
     public Builder clearResource() {
@@ -13495,9 +11810,10 @@ public Builder clearResource() {
 
     private int checkRequestTypeCase_ = 0;
     private java.lang.Object checkRequestType_;
-
-    public CheckRequestTypeCase getCheckRequestTypeCase() {
-      return CheckRequestTypeCase.forNumber(checkRequestTypeCase_);
+    public CheckRequestTypeCase
+        getCheckRequestTypeCase() {
+      return CheckRequestTypeCase.forNumber(
+          checkRequestTypeCase_);
     }
 
     public Builder clearCheckRequestType() {
@@ -13511,8 +11827,6 @@ public Builder clearCheckRequestType() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -13527,13 +11841,13 @@ public Builder clearCheckRequestType() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -13542,8 +11856,6 @@ public java.lang.String getName() { } } /** - * - * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -13558,14 +11870,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -13573,8 +11886,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -13589,22 +11900,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -13619,7 +11926,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -13629,8 +11935,6 @@ public Builder clearName() { return this; } /** - * - * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -13645,14 +11949,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -13662,8 +11964,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -13671,13 +11971,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -13686,8 +11986,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -13695,14 +11993,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -13710,8 +12009,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -13719,22 +12016,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -13742,7 +12035,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -13752,8 +12044,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -13761,14 +12051,12 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -13777,13 +12065,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, - com.google.api.MonitoredResource.Builder, - com.google.api.MonitoredResourceOrBuilder> - monitoredResourceBuilder_; + com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> monitoredResourceBuilder_; /** - * - * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13800,7 +12083,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return Whether the monitoredResource field is set. */ @java.lang.Override @@ -13808,8 +12090,6 @@ public boolean hasMonitoredResource() { return resourceCase_ == 3; } /** - * - * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13826,7 +12106,6 @@ public boolean hasMonitoredResource() {
      * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return The monitoredResource. */ @java.lang.Override @@ -13844,8 +12123,6 @@ public com.google.api.MonitoredResource getMonitoredResource() { } } /** - * - * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13877,8 +12154,6 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13896,7 +12171,8 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) {
      *
      * .google.api.MonitoredResource monitored_resource = 3;
      */
-    public Builder setMonitoredResource(com.google.api.MonitoredResource.Builder builderForValue) {
+    public Builder setMonitoredResource(
+        com.google.api.MonitoredResource.Builder builderForValue) {
       if (monitoredResourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -13907,8 +12183,6 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13928,13 +12202,10 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource.Builder bui
      */
     public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) {
       if (monitoredResourceBuilder_ == null) {
-        if (resourceCase_ == 3
-            && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
-          resource_ =
-              com.google.api.MonitoredResource.newBuilder(
-                      (com.google.api.MonitoredResource) resource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (resourceCase_ == 3 &&
+            resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
+          resource_ = com.google.api.MonitoredResource.newBuilder((com.google.api.MonitoredResource) resource_)
+              .mergeFrom(value).buildPartial();
         } else {
           resource_ = value;
         }
@@ -13950,8 +12221,6 @@ public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -13986,8 +12255,6 @@ public Builder clearMonitoredResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -14009,8 +12276,6 @@ public com.google.api.MonitoredResource.Builder getMonitoredResourceBuilder() {
       return getMonitoredResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -14040,8 +12305,6 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -14060,20 +12323,17 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
      * .google.api.MonitoredResource monitored_resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResource,
-            com.google.api.MonitoredResource.Builder,
-            com.google.api.MonitoredResourceOrBuilder>
+        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> 
         getMonitoredResourceFieldBuilder() {
       if (monitoredResourceBuilder_ == null) {
         if (!(resourceCase_ == 3)) {
           resource_ = com.google.api.MonitoredResource.getDefaultInstance();
         }
-        monitoredResourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.api.MonitoredResource,
-                com.google.api.MonitoredResource.Builder,
-                com.google.api.MonitoredResourceOrBuilder>(
-                (com.google.api.MonitoredResource) resource_, getParentForChildren(), isClean());
+        monitoredResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>(
+                (com.google.api.MonitoredResource) resource_,
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       resourceCase_ = 3;
@@ -14082,19 +12342,13 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup,
-            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder,
-            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>
-        resourceGroupBuilder_;
+        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> resourceGroupBuilder_;
     /**
-     *
-     *
      * 
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return Whether the resourceGroup field is set. */ @java.lang.Override @@ -14102,14 +12356,11 @@ public boolean hasResourceGroup() { return resourceCase_ == 4; } /** - * - * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return The resourceGroup. */ @java.lang.Override @@ -14127,16 +12378,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup } } /** - * - * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public Builder setResourceGroup( - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { + public Builder setResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { if (resourceGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14150,8 +12398,6 @@ public Builder setResourceGroup( return this; } /** - * - * *
      * The group resource associated with the configuration.
      * 
@@ -14170,25 +12416,18 @@ public Builder setResourceGroup( return this; } /** - * - * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public Builder mergeResourceGroup( - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { + public Builder mergeResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { if (resourceGroupBuilder_ == null) { - if (resourceCase_ == 4 - && resource_ - != com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) { - resource_ = - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder( - (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_) - .mergeFrom(value) - .buildPartial(); + if (resourceCase_ == 4 && + resource_ != com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) { + resource_ = com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_) + .mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -14204,8 +12443,6 @@ public Builder mergeResourceGroup( return this; } /** - * - * *
      * The group resource associated with the configuration.
      * 
@@ -14229,21 +12466,16 @@ public Builder clearResourceGroup() { return this; } /** - * - * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder - getResourceGroupBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder getResourceGroupBuilder() { return getResourceGroupFieldBuilder().getBuilder(); } /** - * - * *
      * The group resource associated with the configuration.
      * 
@@ -14251,8 +12483,7 @@ public Builder clearResourceGroup() { * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder - getResourceGroupOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder() { if ((resourceCase_ == 4) && (resourceGroupBuilder_ != null)) { return resourceGroupBuilder_.getMessageOrBuilder(); } else { @@ -14263,8 +12494,6 @@ public Builder clearResourceGroup() { } } /** - * - * *
      * The group resource associated with the configuration.
      * 
@@ -14272,19 +12501,14 @@ public Builder clearResourceGroup() { * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> getResourceGroupFieldBuilder() { if (resourceGroupBuilder_ == null) { if (!(resourceCase_ == 4)) { resource_ = com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } - resourceGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>( + resourceGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_, getParentForChildren(), isClean()); @@ -14296,19 +12520,13 @@ public Builder clearResourceGroup() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> - httpCheckBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> httpCheckBuilder_; /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return Whether the httpCheck field is set. */ @java.lang.Override @@ -14316,14 +12534,11 @@ public boolean hasHttpCheck() { return checkRequestTypeCase_ == 5; } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return The httpCheck. */ @java.lang.Override @@ -14341,8 +12556,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { } } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14363,8 +12576,6 @@ public Builder setHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck return this; } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14383,8 +12594,6 @@ public Builder setHttpCheck( return this; } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14393,14 +12602,10 @@ public Builder setHttpCheck( */ public Builder mergeHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck value) { if (httpCheckBuilder_ == null) { - if (checkRequestTypeCase_ == 5 - && checkRequestType_ - != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) { - checkRequestType_ = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder( - (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_) - .mergeFrom(value) - .buildPartial(); + if (checkRequestTypeCase_ == 5 && + checkRequestType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) { + checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_) + .mergeFrom(value).buildPartial(); } else { checkRequestType_ = value; } @@ -14416,8 +12621,6 @@ public Builder mergeHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpChe return this; } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14441,8 +12644,6 @@ public Builder clearHttpCheck() { return this; } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14453,8 +12654,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder getHttpCheck return getHttpCheckFieldBuilder().getBuilder(); } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14473,8 +12672,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec } } /** - * - * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -14482,20 +12679,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> getHttpCheckFieldBuilder() { if (httpCheckBuilder_ == null) { if (!(checkRequestTypeCase_ == 5)) { - checkRequestType_ = - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); - } - httpCheckBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder>( + checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); + } + httpCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_, getParentForChildren(), isClean()); @@ -14507,19 +12698,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> - tcpCheckBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> tcpCheckBuilder_; /** - * - * *
      * Contains information needed to make a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return Whether the tcpCheck field is set. */ @java.lang.Override @@ -14527,14 +12712,11 @@ public boolean hasTcpCheck() { return checkRequestTypeCase_ == 6; } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return The tcpCheck. */ @java.lang.Override @@ -14552,8 +12734,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { } } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14574,8 +12754,6 @@ public Builder setTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck v return this; } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14594,8 +12772,6 @@ public Builder setTcpCheck( return this; } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14604,14 +12780,10 @@ public Builder setTcpCheck( */ public Builder mergeTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck value) { if (tcpCheckBuilder_ == null) { - if (checkRequestTypeCase_ == 6 - && checkRequestType_ - != com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) { - checkRequestType_ = - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder( - (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_) - .mergeFrom(value) - .buildPartial(); + if (checkRequestTypeCase_ == 6 && + checkRequestType_ != com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) { + checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_) + .mergeFrom(value).buildPartial(); } else { checkRequestType_ = value; } @@ -14627,8 +12799,6 @@ public Builder mergeTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck return this; } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14652,8 +12822,6 @@ public Builder clearTcpCheck() { return this; } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14664,8 +12832,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder getTcpCheckBu return getTcpCheckFieldBuilder().getBuilder(); } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14684,8 +12850,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO } } /** - * - * *
      * Contains information needed to make a TCP check.
      * 
@@ -14693,20 +12857,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> getTcpCheckFieldBuilder() { if (tcpCheckBuilder_ == null) { if (!(checkRequestTypeCase_ == 6)) { - checkRequestType_ = - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); - } - tcpCheckBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, - com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder>( + checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); + } + tcpCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_, getParentForChildren(), isClean()); @@ -14719,13 +12877,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO private com.google.protobuf.Duration period_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - periodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; /** - * - * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14734,15 +12887,12 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO
      * 
* * .google.protobuf.Duration period = 7; - * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14751,7 +12901,6 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 7; - * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -14762,8 +12911,6 @@ public com.google.protobuf.Duration getPeriod() { } } /** - * - * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14787,8 +12934,6 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14798,7 +12943,8 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration period = 7;
      */
-    public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setPeriod(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (periodBuilder_ == null) {
         period_ = builderForValue.build();
       } else {
@@ -14809,8 +12955,6 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14822,9 +12966,9 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
      */
     public Builder mergePeriod(com.google.protobuf.Duration value) {
       if (periodBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && period_ != null
-            && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          period_ != null &&
+          period_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getPeriodBuilder().mergeFrom(value);
         } else {
           period_ = value;
@@ -14837,8 +12981,6 @@ public Builder mergePeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14859,8 +13001,6 @@ public Builder clearPeriod() {
       return this;
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14876,8 +13016,6 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
       return getPeriodFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14891,12 +13029,11 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
       if (periodBuilder_ != null) {
         return periodBuilder_.getMessageOrBuilder();
       } else {
-        return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
+        return period_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : period_;
       }
     }
     /**
-     *
-     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -14907,17 +13044,14 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
      * .google.protobuf.Duration period = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getPeriodFieldBuilder() {
       if (periodBuilder_ == null) {
-        periodBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getPeriod(), getParentForChildren(), isClean());
+        periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getPeriod(),
+                getParentForChildren(),
+                isClean());
         period_ = null;
       }
       return periodBuilder_;
@@ -14925,35 +13059,26 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
 
     private com.google.protobuf.Duration timeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        timeoutBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_;
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -14964,8 +13089,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -14987,8 +13110,6 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -14996,7 +13117,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 8;
      */
-    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeout(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (timeoutBuilder_ == null) {
         timeout_ = builderForValue.build();
       } else {
@@ -15007,8 +13129,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -15018,9 +13138,9 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeTimeout(com.google.protobuf.Duration value) {
       if (timeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && timeout_ != null
-            && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          timeout_ != null &&
+          timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTimeoutBuilder().mergeFrom(value);
         } else {
           timeout_ = value;
@@ -15033,8 +13153,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -15053,8 +13171,6 @@ public Builder clearTimeout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -15068,8 +13184,6 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -15081,12 +13195,11 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
       if (timeoutBuilder_ != null) {
         return timeoutBuilder_.getMessageOrBuilder();
       } else {
-        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
+        return timeout_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -15095,43 +13208,32 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTimeoutFieldBuilder() {
       if (timeoutBuilder_ == null) {
-        timeoutBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTimeout(), getParentForChildren(), isClean());
+        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTimeout(),
+                getParentForChildren(),
+                isClean());
         timeout_ = null;
       }
       return timeoutBuilder_;
     }
 
-    private java.util.List
-        contentMatchers_ = java.util.Collections.emptyList();
-
+    private java.util.List contentMatchers_ =
+      java.util.Collections.emptyList();
     private void ensureContentMatchersIsMutable() {
       if (!((bitField0_ & 0x00000100) != 0)) {
-        contentMatchers_ =
-            new java.util.ArrayList(
-                contentMatchers_);
+        contentMatchers_ = new java.util.ArrayList(contentMatchers_);
         bitField0_ |= 0x00000100;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher,
-            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder,
-            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>
-        contentMatchersBuilder_;
+        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> contentMatchersBuilder_;
 
     /**
-     *
-     *
      * 
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15140,11 +13242,9 @@ private void ensureContentMatchersIsMutable() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public java.util.List - getContentMatchersList() { + public java.util.List getContentMatchersList() { if (contentMatchersBuilder_ == null) { return java.util.Collections.unmodifiableList(contentMatchers_); } else { @@ -15152,8 +13252,6 @@ private void ensureContentMatchersIsMutable() { } } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15162,8 +13260,7 @@ private void ensureContentMatchersIsMutable() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public int getContentMatchersCount() { if (contentMatchersBuilder_ == null) { @@ -15173,8 +13270,6 @@ public int getContentMatchersCount() { } } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15183,8 +13278,7 @@ public int getContentMatchersCount() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index) { if (contentMatchersBuilder_ == null) { @@ -15194,8 +13288,6 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch } } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15204,8 +13296,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder setContentMatchers( int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { @@ -15222,8 +13313,6 @@ public Builder setContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15232,12 +13321,10 @@ public Builder setContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder setContentMatchers( - int index, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { + int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); contentMatchers_.set(index, builderForValue.build()); @@ -15248,8 +13335,6 @@ public Builder setContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15258,11 +13343,9 @@ public Builder setContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public Builder addContentMatchers( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { + public Builder addContentMatchers(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { if (contentMatchersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15276,8 +13359,6 @@ public Builder addContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15286,8 +13367,7 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder addContentMatchers( int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { @@ -15304,8 +13384,6 @@ public Builder addContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15314,8 +13392,7 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder addContentMatchers( com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { @@ -15329,8 +13406,6 @@ public Builder addContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15339,12 +13414,10 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder addContentMatchers( - int index, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { + int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); contentMatchers_.add(index, builderForValue.build()); @@ -15355,8 +13428,6 @@ public Builder addContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15365,15 +13436,14 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder addAllContentMatchers( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentMatchers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contentMatchers_); onChanged(); } else { contentMatchersBuilder_.addAllMessages(values); @@ -15381,8 +13451,6 @@ public Builder addAllContentMatchers( return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15391,8 +13459,7 @@ public Builder addAllContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder clearContentMatchers() { if (contentMatchersBuilder_ == null) { @@ -15405,8 +13472,6 @@ public Builder clearContentMatchers() { return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15415,8 +13480,7 @@ public Builder clearContentMatchers() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ public Builder removeContentMatchers(int index) { if (contentMatchersBuilder_ == null) { @@ -15429,8 +13493,6 @@ public Builder removeContentMatchers(int index) { return this; } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15439,16 +13501,13 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder - getContentMatchersBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder getContentMatchersBuilder( + int index) { return getContentMatchersFieldBuilder().getBuilder(index); } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15457,20 +13516,16 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder - getContentMatchersOrBuilder(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( + int index) { if (contentMatchersBuilder_ == null) { - return contentMatchers_.get(index); - } else { + return contentMatchers_.get(index); } else { return contentMatchersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15479,12 +13534,10 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public java.util.List< - ? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> - getContentMatchersOrBuilderList() { + public java.util.List + getContentMatchersOrBuilderList() { if (contentMatchersBuilder_ != null) { return contentMatchersBuilder_.getMessageOrBuilderList(); } else { @@ -15492,8 +13545,6 @@ public Builder removeContentMatchers(int index) { } } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15502,18 +13553,13 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder - addContentMatchersBuilder() { - return getContentMatchersFieldBuilder() - .addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder() { + return getContentMatchersFieldBuilder().addBuilder( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15522,19 +13568,14 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder - addContentMatchersBuilder(int index) { - return getContentMatchersFieldBuilder() - .addBuilder( - index, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder( + int index) { + return getContentMatchersFieldBuilder().addBuilder( + index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); } /** - * - * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -15543,25 +13584,18 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - public java.util.List - getContentMatchersBuilderList() { + public java.util.List + getContentMatchersBuilderList() { return getContentMatchersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> getContentMatchersFieldBuilder() { if (contentMatchersBuilder_ == null) { - contentMatchersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>( + contentMatchersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>( contentMatchers_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -15573,29 +13607,22 @@ public Builder removeContentMatchers(int index) { private int checkerType_ = 0; /** - * - * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The enum numeric value on the wire for checkerType. */ - @java.lang.Override - public int getCheckerTypeValue() { + @java.lang.Override public int getCheckerTypeValue() { return checkerType_; } /** - * - * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @param value The enum numeric value on the wire for checkerType to set. * @return This builder for chaining. */ @@ -15606,33 +13633,24 @@ public Builder setCheckerTypeValue(int value) { return this; } /** - * - * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The checkerType. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { - com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = - com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); - return result == null - ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED - : result; + com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); + return result == null ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED : result; } /** - * - * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @param value The checkerType to set. * @return This builder for chaining. */ @@ -15646,14 +13664,11 @@ public Builder setCheckerType(com.google.monitoring.v3.UptimeCheckConfig.Checker return this; } /** - * - * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return This builder for chaining. */ public Builder clearCheckerType() { @@ -15663,8 +13678,8 @@ public Builder clearCheckerType() { return this; } - private java.util.List selectedRegions_ = java.util.Collections.emptyList(); - + private java.util.List selectedRegions_ = + java.util.Collections.emptyList(); private void ensureSelectedRegionsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { selectedRegions_ = new java.util.ArrayList(selectedRegions_); @@ -15672,8 +13687,6 @@ private void ensureSelectedRegionsIsMutable() { } } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15683,17 +13696,13 @@ private void ensureSelectedRegionsIsMutable() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the selectedRegions. */ public java.util.List getSelectedRegionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>( - selectedRegions_, selectedRegions_converter_); + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>(selectedRegions_, selectedRegions_converter_); } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15703,15 +13712,12 @@ public java.util.List getSelectedReg
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return The count of selectedRegions. */ public int getSelectedRegionsCount() { return selectedRegions_.size(); } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15721,7 +13727,6 @@ public int getSelectedRegionsCount() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ @@ -15729,8 +13734,6 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index) return selectedRegions_converter_.convert(selectedRegions_.get(index)); } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15740,12 +13743,12 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index)
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index to set the value at. * @param value The selectedRegions to set. * @return This builder for chaining. */ - public Builder setSelectedRegions(int index, com.google.monitoring.v3.UptimeCheckRegion value) { + public Builder setSelectedRegions( + int index, com.google.monitoring.v3.UptimeCheckRegion value) { if (value == null) { throw new NullPointerException(); } @@ -15755,8 +13758,6 @@ public Builder setSelectedRegions(int index, com.google.monitoring.v3.UptimeChec return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15766,7 +13767,6 @@ public Builder setSelectedRegions(int index, com.google.monitoring.v3.UptimeChec
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param value The selectedRegions to add. * @return This builder for chaining. */ @@ -15780,8 +13780,6 @@ public Builder addSelectedRegions(com.google.monitoring.v3.UptimeCheckRegion val return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15791,7 +13789,6 @@ public Builder addSelectedRegions(com.google.monitoring.v3.UptimeCheckRegion val
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param values The selectedRegions to add. * @return This builder for chaining. */ @@ -15805,8 +13802,6 @@ public Builder addAllSelectedRegions( return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15816,7 +13811,6 @@ public Builder addAllSelectedRegions(
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return This builder for chaining. */ public Builder clearSelectedRegions() { @@ -15826,8 +13820,6 @@ public Builder clearSelectedRegions() { return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15837,15 +13829,13 @@ public Builder clearSelectedRegions() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the enum numeric values on the wire for selectedRegions. */ - public java.util.List getSelectedRegionsValueList() { + public java.util.List + getSelectedRegionsValueList() { return java.util.Collections.unmodifiableList(selectedRegions_); } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15855,7 +13845,6 @@ public java.util.List getSelectedRegionsValueList() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ @@ -15863,8 +13852,6 @@ public int getSelectedRegionsValue(int index) { return selectedRegions_.get(index); } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15874,20 +13861,18 @@ public int getSelectedRegionsValue(int index) {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for selectedRegions to set. * @return This builder for chaining. */ - public Builder setSelectedRegionsValue(int index, int value) { + public Builder setSelectedRegionsValue( + int index, int value) { ensureSelectedRegionsIsMutable(); selectedRegions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15897,7 +13882,6 @@ public Builder setSelectedRegionsValue(int index, int value) {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param value The enum numeric value on the wire for selectedRegions to add. * @return This builder for chaining. */ @@ -15908,8 +13892,6 @@ public Builder addSelectedRegionsValue(int value) { return this; } /** - * - * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -15919,11 +13901,11 @@ public Builder addSelectedRegionsValue(int value) {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param values The enum numeric values on the wire for selectedRegions to add. * @return This builder for chaining. */ - public Builder addAllSelectedRegionsValue(java.lang.Iterable values) { + public Builder addAllSelectedRegionsValue( + java.lang.Iterable values) { ensureSelectedRegionsIsMutable(); for (int value : values) { selectedRegions_.add(value); @@ -15932,10 +13914,8 @@ public Builder addAllSelectedRegionsValue(java.lang.Iterable return this; } - private boolean isInternal_; + private boolean isInternal_ ; /** - * - * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -15944,19 +13924,15 @@ public Builder addAllSelectedRegionsValue(java.lang.Iterable
      * 
* * bool is_internal = 15 [deprecated = true]; - * - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See - * google/monitoring/v3/uptime.proto;l=478 + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. + * See google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ @java.lang.Override - @java.lang.Deprecated - public boolean getIsInternal() { + @java.lang.Deprecated public boolean getIsInternal() { return isInternal_; } /** - * - * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -15965,14 +13941,12 @@ public boolean getIsInternal() {
      * 
* * bool is_internal = 15 [deprecated = true]; - * - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See - * google/monitoring/v3/uptime.proto;l=478 + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. + * See google/monitoring/v3/uptime.proto;l=478 * @param value The isInternal to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setIsInternal(boolean value) { + @java.lang.Deprecated public Builder setIsInternal(boolean value) { isInternal_ = value; bitField0_ |= 0x00000800; @@ -15980,8 +13954,6 @@ public Builder setIsInternal(boolean value) { return this; } /** - * - * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -15990,13 +13962,11 @@ public Builder setIsInternal(boolean value) {
      * 
* * bool is_internal = 15 [deprecated = true]; - * - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See - * google/monitoring/v3/uptime.proto;l=478 + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. + * See google/monitoring/v3/uptime.proto;l=478 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearIsInternal() { + @java.lang.Deprecated public Builder clearIsInternal() { bitField0_ = (bitField0_ & ~0x00000800); isInternal_ = false; onChanged(); @@ -16004,25 +13974,18 @@ public Builder clearIsInternal() { } private java.util.List internalCheckers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInternalCheckersIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - internalCheckers_ = - new java.util.ArrayList(internalCheckers_); + internalCheckers_ = new java.util.ArrayList(internalCheckers_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, - com.google.monitoring.v3.InternalChecker.Builder, - com.google.monitoring.v3.InternalCheckerOrBuilder> - internalCheckersBuilder_; + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> internalCheckersBuilder_; /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16030,12 +13993,9 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getInternalCheckersList() { + @java.lang.Deprecated public java.util.List getInternalCheckersList() { if (internalCheckersBuilder_ == null) { return java.util.Collections.unmodifiableList(internalCheckers_); } else { @@ -16043,8 +14003,6 @@ public java.util.List getInternalCheck } } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16052,12 +14010,9 @@ public java.util.List getInternalCheck
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public int getInternalCheckersCount() { + @java.lang.Deprecated public int getInternalCheckersCount() { if (internalCheckersBuilder_ == null) { return internalCheckers_.size(); } else { @@ -16065,8 +14020,6 @@ public int getInternalCheckersCount() { } } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16074,12 +14027,9 @@ public int getInternalCheckersCount() {
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { return internalCheckers_.get(index); } else { @@ -16087,8 +14037,6 @@ public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { } } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16096,12 +14044,10 @@ public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) {
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setInternalCheckers(int index, com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated public Builder setInternalCheckers( + int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16115,8 +14061,6 @@ public Builder setInternalCheckers(int index, com.google.monitoring.v3.InternalC return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16124,12 +14068,9 @@ public Builder setInternalCheckers(int index, com.google.monitoring.v3.InternalC
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setInternalCheckers( + @java.lang.Deprecated public Builder setInternalCheckers( int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -16141,8 +14082,6 @@ public Builder setInternalCheckers( return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16150,12 +14089,9 @@ public Builder setInternalCheckers(
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16169,8 +14105,6 @@ public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker valu return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16178,12 +14112,10 @@ public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker valu
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addInternalCheckers(int index, com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated public Builder addInternalCheckers( + int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16197,8 +14129,6 @@ public Builder addInternalCheckers(int index, com.google.monitoring.v3.InternalC return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16206,12 +14136,9 @@ public Builder addInternalCheckers(int index, com.google.monitoring.v3.InternalC
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addInternalCheckers( + @java.lang.Deprecated public Builder addInternalCheckers( com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -16223,8 +14150,6 @@ public Builder addInternalCheckers( return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16232,12 +14157,9 @@ public Builder addInternalCheckers(
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addInternalCheckers( + @java.lang.Deprecated public Builder addInternalCheckers( int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -16249,8 +14171,6 @@ public Builder addInternalCheckers( return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16258,16 +14178,14 @@ public Builder addInternalCheckers(
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllInternalCheckers( + @java.lang.Deprecated public Builder addAllInternalCheckers( java.lang.Iterable values) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalCheckers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, internalCheckers_); onChanged(); } else { internalCheckersBuilder_.addAllMessages(values); @@ -16275,8 +14193,6 @@ public Builder addAllInternalCheckers( return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16284,12 +14200,9 @@ public Builder addAllInternalCheckers(
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearInternalCheckers() { + @java.lang.Deprecated public Builder clearInternalCheckers() { if (internalCheckersBuilder_ == null) { internalCheckers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); @@ -16300,8 +14213,6 @@ public Builder clearInternalCheckers() { return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16309,12 +14220,9 @@ public Builder clearInternalCheckers() {
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeInternalCheckers(int index) { + @java.lang.Deprecated public Builder removeInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); internalCheckers_.remove(index); @@ -16325,8 +14233,6 @@ public Builder removeInternalCheckers(int index) { return this; } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16334,17 +14240,13 @@ public Builder removeInternalCheckers(int index) {
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuilder(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuilder( + int index) { return getInternalCheckersFieldBuilder().getBuilder(index); } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16352,22 +14254,16 @@ public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuild
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + @java.lang.Deprecated public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( int index) { if (internalCheckersBuilder_ == null) { - return internalCheckers_.get(index); - } else { + return internalCheckers_.get(index); } else { return internalCheckersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16375,13 +14271,10 @@ public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBu
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getInternalCheckersOrBuilderList() { + @java.lang.Deprecated public java.util.List + getInternalCheckersOrBuilderList() { if (internalCheckersBuilder_ != null) { return internalCheckersBuilder_.getMessageOrBuilderList(); } else { @@ -16389,8 +14282,6 @@ public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBu } } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16398,18 +14289,13 @@ public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBu
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder() { - return getInternalCheckersFieldBuilder() - .addBuilder(com.google.monitoring.v3.InternalChecker.getDefaultInstance()); + @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder() { + return getInternalCheckersFieldBuilder().addBuilder( + com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16417,18 +14303,14 @@ public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuild
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder(int index) { - return getInternalCheckersFieldBuilder() - .addBuilder(index, com.google.monitoring.v3.InternalChecker.getDefaultInstance()); + @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder( + int index) { + return getInternalCheckersFieldBuilder().addBuilder( + index, com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** - * - * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -16436,27 +14318,18 @@ public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuild
      * `UptimeCheckConfig`.
      * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getInternalCheckersBuilderList() { + @java.lang.Deprecated public java.util.List + getInternalCheckersBuilderList() { return getInternalCheckersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, - com.google.monitoring.v3.InternalChecker.Builder, - com.google.monitoring.v3.InternalCheckerOrBuilder> + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> getInternalCheckersFieldBuilder() { if (internalCheckersBuilder_ == null) { - internalCheckersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, - com.google.monitoring.v3.InternalChecker.Builder, - com.google.monitoring.v3.InternalCheckerOrBuilder>( + internalCheckersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder>( internalCheckers_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), @@ -16466,8 +14339,8 @@ public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuild return internalCheckersBuilder_; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -16476,12 +14349,11 @@ public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuild } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -16490,13 +14362,10 @@ public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuild onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16510,21 +14379,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16542,8 +14410,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16557,19 +14423,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16583,25 +14447,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00002000);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16614,22 +14476,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00002000;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16642,20 +14505,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00002000;
       return this;
     }
     /**
-     *
-     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -16668,14 +14528,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00002000;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -16685,12 +14547,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig)
   private static final com.google.monitoring.v3.UptimeCheckConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig();
   }
@@ -16699,27 +14561,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UptimeCheckConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UptimeCheckConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -16734,4 +14596,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.UptimeCheckConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
similarity index 85%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
index c81032cc51c5..46fda1477eaa 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/uptime.proto
 
 package com.google.monitoring.v3;
 
-public interface UptimeCheckConfigOrBuilder
-    extends
+public interface UptimeCheckConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -40,13 +22,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -61,14 +40,12 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -76,13 +53,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -90,14 +64,12 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -114,13 +86,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return Whether the monitoredResource field is set. */ boolean hasMonitoredResource(); /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -137,13 +106,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * .google.api.MonitoredResource monitored_resource = 3; - * * @return The monitoredResource. */ com.google.api.MonitoredResource getMonitoredResource(); /** - * - * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -164,32 +130,24 @@ public interface UptimeCheckConfigOrBuilder
   com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return Whether the resourceGroup field is set. */ boolean hasResourceGroup(); /** - * - * *
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; - * * @return The resourceGroup. */ com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup(); /** - * - * *
    * The group resource associated with the configuration.
    * 
@@ -199,32 +157,24 @@ public interface UptimeCheckConfigOrBuilder com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder(); /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return Whether the httpCheck field is set. */ boolean hasHttpCheck(); /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; - * * @return The httpCheck. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck(); /** - * - * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
@@ -234,32 +184,24 @@ public interface UptimeCheckConfigOrBuilder com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpCheckOrBuilder(); /** - * - * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return Whether the tcpCheck field is set. */ boolean hasTcpCheck(); /** - * - * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; - * * @return The tcpCheck. */ com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck(); /** - * - * *
    * Contains information needed to make a TCP check.
    * 
@@ -269,8 +211,6 @@ public interface UptimeCheckConfigOrBuilder com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckOrBuilder(); /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -279,13 +219,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * .google.protobuf.Duration period = 7; - * * @return Whether the period field is set. */ boolean hasPeriod(); /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -294,13 +231,10 @@ public interface UptimeCheckConfigOrBuilder
    * 
* * .google.protobuf.Duration period = 7; - * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** - * - * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -313,34 +247,26 @@ public interface UptimeCheckConfigOrBuilder
   com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
 
   /**
-   *
-   *
    * 
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
@@ -351,8 +277,6 @@ public interface UptimeCheckConfigOrBuilder
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
-   *
-   *
    * 
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -361,14 +285,11 @@ public interface UptimeCheckConfigOrBuilder
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - java.util.List + java.util.List getContentMatchersList(); /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -377,13 +298,10 @@ public interface UptimeCheckConfigOrBuilder
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index); /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -392,13 +310,10 @@ public interface UptimeCheckConfigOrBuilder
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ int getContentMatchersCount(); /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -407,14 +322,11 @@ public interface UptimeCheckConfigOrBuilder
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ - java.util.List + java.util.List getContentMatchersOrBuilderList(); /** - * - * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -423,40 +335,31 @@ public interface UptimeCheckConfigOrBuilder
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; - * + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( int index); /** - * - * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The enum numeric value on the wire for checkerType. */ int getCheckerTypeValue(); /** - * - * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; - * * @return The checkerType. */ com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType(); /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -466,13 +369,10 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the selectedRegions. */ java.util.List getSelectedRegionsList(); /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -482,13 +382,10 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return The count of selectedRegions. */ int getSelectedRegionsCount(); /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -498,14 +395,11 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index); /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -515,13 +409,11 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @return A list containing the enum numeric values on the wire for selectedRegions. */ - java.util.List getSelectedRegionsValueList(); + java.util.List + getSelectedRegionsValueList(); /** - * - * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -531,15 +423,12 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ int getSelectedRegionsValue(int index); /** - * - * *
    * If this is `true`, then checks are made only from the 'internal_checkers'.
    * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -548,17 +437,13 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * bool is_internal = 15 [deprecated = true]; - * - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See - * google/monitoring/v3/uptime.proto;l=478 + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. + * See google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ - @java.lang.Deprecated - boolean getIsInternal(); + @java.lang.Deprecated boolean getIsInternal(); /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -566,15 +451,11 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getInternalCheckersList(); + @java.lang.Deprecated java.util.List + getInternalCheckersList(); /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -582,15 +463,10 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.monitoring.v3.InternalChecker getInternalCheckers(int index); + @java.lang.Deprecated com.google.monitoring.v3.InternalChecker getInternalCheckers(int index); /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -598,15 +474,10 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - int getInternalCheckersCount(); + @java.lang.Deprecated int getInternalCheckersCount(); /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -614,16 +485,11 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getInternalCheckersOrBuilderList(); /** - * - * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -631,16 +497,12 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; - * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder(int index); + @java.lang.Deprecated com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + int index); /** - * - * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -655,8 +517,6 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -669,13 +529,15 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    *
    * map<string, string> user_labels = 20;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -688,10 +550,9 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    *
    * map<string, string> user_labels = 20;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -705,13 +566,11 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * map<string, string> user_labels = 20;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -724,7 +583,8 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 20;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   com.google.monitoring.v3.UptimeCheckConfig.ResourceCase getResourceCase();
 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
similarity index 72%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
index c333e56506b7..8311ed067bae 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/uptime.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * Contains the region, location, and list of IP
  * addresses where checkers in the location run from.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.monitoring.v3.UptimeCheckIp}
  */
-public final class UptimeCheckIp extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UptimeCheckIp extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckIp)
     UptimeCheckIpOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UptimeCheckIp.newBuilder() to construct.
   private UptimeCheckIp(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UptimeCheckIp() {
     region_ = 0;
     location_ = "";
@@ -46,67 +28,54 @@ private UptimeCheckIp() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UptimeCheckIp();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto
-        .internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UptimeCheckIp.class,
-            com.google.monitoring.v3.UptimeCheckIp.Builder.class);
+            com.google.monitoring.v3.UptimeCheckIp.class, com.google.monitoring.v3.UptimeCheckIp.Builder.class);
   }
 
   public static final int REGION_FIELD_NUMBER = 1;
   private int region_ = 0;
   /**
-   *
-   *
    * 
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The enum numeric value on the wire for region. */ - @java.lang.Override - public int getRegionValue() { + @java.lang.Override public int getRegionValue() { return region_; } /** - * - * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The region. */ - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckRegion getRegion() { - com.google.monitoring.v3.UptimeCheckRegion result = - com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); + @java.lang.Override public com.google.monitoring.v3.UptimeCheckRegion getRegion() { + com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; } public static final int LOCATION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -114,7 +83,6 @@ public com.google.monitoring.v3.UptimeCheckRegion getRegion() {
    * 
* * string location = 2; - * * @return The location. */ @java.lang.Override @@ -123,15 +91,14 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -139,15 +106,16 @@ public java.lang.String getLocation() {
    * 
* * string location = 2; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -156,12 +124,9 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -171,7 +136,6 @@ public com.google.protobuf.ByteString getLocationBytes() {
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -180,15 +144,14 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -198,15 +161,16 @@ public java.lang.String getIpAddress() {
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -215,7 +179,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +190,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) { output.writeEnum(1, region_); } @@ -247,7 +211,8 @@ public int getSerializedSize() { size = 0; if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, region_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, region_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); @@ -263,7 +228,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckIp)) { return super.equals(obj); @@ -271,8 +236,10 @@ public boolean equals(final java.lang.Object obj) { com.google.monitoring.v3.UptimeCheckIp other = (com.google.monitoring.v3.UptimeCheckIp) obj; if (region_ != other.region_) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,104 +262,99 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom(java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.UptimeCheckIp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckIp parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckIp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains the region, location, and list of IP
    * addresses where checkers in the location run from.
@@ -400,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckIp}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckIp)
       com.google.monitoring.v3.UptimeCheckIpOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckIp.class,
-              com.google.monitoring.v3.UptimeCheckIp.Builder.class);
+              com.google.monitoring.v3.UptimeCheckIp.class, com.google.monitoring.v3.UptimeCheckIp.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UptimeCheckIp.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto
-          .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
     }
 
     @java.lang.Override
@@ -458,11 +421,8 @@ public com.google.monitoring.v3.UptimeCheckIp build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UptimeCheckIp buildPartial() {
-      com.google.monitoring.v3.UptimeCheckIp result =
-          new com.google.monitoring.v3.UptimeCheckIp(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.UptimeCheckIp result = new com.google.monitoring.v3.UptimeCheckIp(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -484,39 +444,38 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckIp result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UptimeCheckIp) {
-        return mergeFrom((com.google.monitoring.v3.UptimeCheckIp) other);
+        return mergeFrom((com.google.monitoring.v3.UptimeCheckIp)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -564,31 +523,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                region_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                location_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              region_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              location_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -598,34 +553,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int region_ = 0;
     /**
-     *
-     *
      * 
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The enum numeric value on the wire for region. */ - @java.lang.Override - public int getRegionValue() { + @java.lang.Override public int getRegionValue() { return region_; } /** - * - * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @param value The enum numeric value on the wire for region to set. * @return This builder for chaining. */ @@ -636,31 +583,24 @@ public Builder setRegionValue(int value) { return this; } /** - * - * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The region. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckRegion getRegion() { - com.google.monitoring.v3.UptimeCheckRegion result = - com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); + com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; } /** - * - * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @param value The region to set. * @return This builder for chaining. */ @@ -674,14 +614,11 @@ public Builder setRegion(com.google.monitoring.v3.UptimeCheckRegion value) { return this; } /** - * - * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return This builder for chaining. */ public Builder clearRegion() { @@ -693,8 +630,6 @@ public Builder clearRegion() { private java.lang.Object location_ = ""; /** - * - * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -702,13 +637,13 @@ public Builder clearRegion() {
      * 
* * string location = 2; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -717,8 +652,6 @@ public java.lang.String getLocation() { } } /** - * - * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -726,14 +659,15 @@ public java.lang.String getLocation() {
      * 
* * string location = 2; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -741,8 +675,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -750,22 +682,18 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * string location = 2; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -773,7 +701,6 @@ public Builder setLocation(java.lang.String value) {
      * 
* * string location = 2; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -783,8 +710,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -792,14 +717,12 @@ public Builder clearLocation() {
      * 
* * string location = 2; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000002; @@ -809,8 +732,6 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -820,13 +741,13 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
      * 
* * string ip_address = 3; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -835,8 +756,6 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -846,14 +765,15 @@ public java.lang.String getIpAddress() {
      * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -861,8 +781,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -872,22 +790,18 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
      * 
* * string ip_address = 3; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -897,7 +811,6 @@ public Builder setIpAddress(java.lang.String value) {
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -907,8 +820,6 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -918,23 +829,21 @@ public Builder clearIpAddress() {
      * 
* * string ip_address = 3; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -944,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckIp) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) private static final com.google.monitoring.v3.UptimeCheckIp DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckIp(); } @@ -958,27 +867,27 @@ public static com.google.monitoring.v3.UptimeCheckIp getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UptimeCheckIp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UptimeCheckIp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,4 +902,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckIp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java similarity index 74% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java index 0f16a36eda6e..010c4bff20b6 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; -public interface UptimeCheckIpOrBuilder - extends +public interface UptimeCheckIpOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckIp) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The enum numeric value on the wire for region. */ int getRegionValue(); /** - * - * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; - * * @return The region. */ com.google.monitoring.v3.UptimeCheckRegion getRegion(); /** - * - * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -58,13 +34,10 @@ public interface UptimeCheckIpOrBuilder
    * 
* * string location = 2; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -72,14 +45,12 @@ public interface UptimeCheckIpOrBuilder
    * 
* * string location = 2; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -89,13 +60,10 @@ public interface UptimeCheckIpOrBuilder
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -105,8 +73,8 @@ public interface UptimeCheckIpOrBuilder
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java similarity index 75% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java index ef7e11a00970..6b4435da60f3 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** - * - * *
  * The regions from which an Uptime check can be run.
  * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckRegion} */ -public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum { +public enum UptimeCheckRegion + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Default value if no region is specified. Will result in Uptime checks
    * running from all regions.
@@ -40,8 +22,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   REGION_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the United States of America.
    * 
@@ -50,8 +30,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum */ USA(1), /** - * - * *
    * Allows checks to run from locations within the continent of Europe.
    * 
@@ -60,8 +38,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum */ EUROPE(2), /** - * - * *
    * Allows checks to run from locations within the continent of South
    * America.
@@ -71,8 +47,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   SOUTH_AMERICA(3),
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the Asia Pacific area (ex:
    * Singapore).
@@ -82,8 +56,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   ASIA_PACIFIC(4),
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the western United States of
    * America
@@ -93,8 +65,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   USA_OREGON(5),
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the central United States of
    * America
@@ -104,8 +74,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   USA_IOWA(6),
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the eastern United States of
    * America
@@ -118,8 +86,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * Default value if no region is specified. Will result in Uptime checks
    * running from all regions.
@@ -129,8 +95,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int REGION_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the United States of America.
    * 
@@ -139,8 +103,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum */ public static final int USA_VALUE = 1; /** - * - * *
    * Allows checks to run from locations within the continent of Europe.
    * 
@@ -149,8 +111,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum */ public static final int EUROPE_VALUE = 2; /** - * - * *
    * Allows checks to run from locations within the continent of South
    * America.
@@ -160,8 +120,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int SOUTH_AMERICA_VALUE = 3;
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the Asia Pacific area (ex:
    * Singapore).
@@ -171,8 +129,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ASIA_PACIFIC_VALUE = 4;
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the western United States of
    * America
@@ -182,8 +138,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int USA_OREGON_VALUE = 5;
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the central United States of
    * America
@@ -193,8 +147,6 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int USA_IOWA_VALUE = 6;
   /**
-   *
-   *
    * 
    * Allows checks to run from locations within the eastern United States of
    * America
@@ -204,6 +156,7 @@ public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int USA_VIRGINIA_VALUE = 7;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -228,52 +181,44 @@ public static UptimeCheckRegion valueOf(int value) {
    */
   public static UptimeCheckRegion forNumber(int value) {
     switch (value) {
-      case 0:
-        return REGION_UNSPECIFIED;
-      case 1:
-        return USA;
-      case 2:
-        return EUROPE;
-      case 3:
-        return SOUTH_AMERICA;
-      case 4:
-        return ASIA_PACIFIC;
-      case 5:
-        return USA_OREGON;
-      case 6:
-        return USA_IOWA;
-      case 7:
-        return USA_VIRGINIA;
-      default:
-        return null;
+      case 0: return REGION_UNSPECIFIED;
+      case 1: return USA;
+      case 2: return EUROPE;
+      case 3: return SOUTH_AMERICA;
+      case 4: return ASIA_PACIFIC;
+      case 5: return USA_OREGON;
+      case 6: return USA_IOWA;
+      case 7: return USA_VIRGINIA;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap
-      internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public UptimeCheckRegion findValueByNumber(int number) {
-              return UptimeCheckRegion.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      UptimeCheckRegion> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public UptimeCheckRegion findValueByNumber(int number) {
+            return UptimeCheckRegion.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.monitoring.v3.UptimeProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -282,7 +227,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static UptimeCheckRegion valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -298,3 +244,4 @@ private UptimeCheckRegion(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckRegion)
 }
+
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
new file mode 100644
index 000000000000..e6214230403e
--- /dev/null
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
@@ -0,0 +1,302 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/uptime.proto
+
+package com.google.monitoring.v3;
+
+public final class UptimeProto {
+  private UptimeProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_InternalChecker_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/monitoring/v3/uptime.proto\022\024goo" +
+      "gle.monitoring.v3\032\037google/api/field_beha" +
+      "vior.proto\032#google/api/monitored_resourc" +
+      "e.proto\032\031google/api/resource.proto\032\036goog" +
+      "le/protobuf/duration.proto\"\346\001\n\017InternalC" +
+      "hecker\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" +
+      "(\t\022\017\n\007network\030\003 \001(\t\022\020\n\010gcp_zone\030\004 \001(\t\022\027\n" +
+      "\017peer_project_id\030\006 \001(\t\022:\n\005state\030\007 \001(\0162+." +
+      "google.monitoring.v3.InternalChecker.Sta" +
+      "te\"3\n\005State\022\017\n\013UNSPECIFIED\020\000\022\014\n\010CREATING" +
+      "\020\001\022\013\n\007RUNNING\020\002:\002\030\001\"\202\033\n\021UptimeCheckConfi" +
+      "g\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022;\n" +
+      "\022monitored_resource\030\003 \001(\0132\035.google.api.M" +
+      "onitoredResourceH\000\022O\n\016resource_group\030\004 \001" +
+      "(\01325.google.monitoring.v3.UptimeCheckCon" +
+      "fig.ResourceGroupH\000\022G\n\nhttp_check\030\005 \001(\0132" +
+      "1.google.monitoring.v3.UptimeCheckConfig" +
+      ".HttpCheckH\001\022E\n\ttcp_check\030\006 \001(\01320.google" +
+      ".monitoring.v3.UptimeCheckConfig.TcpChec" +
+      "kH\001\022)\n\006period\030\007 \001(\0132\031.google.protobuf.Du" +
+      "ration\022*\n\007timeout\030\010 \001(\0132\031.google.protobu" +
+      "f.Duration\022P\n\020content_matchers\030\t \003(\01326.g" +
+      "oogle.monitoring.v3.UptimeCheckConfig.Co" +
+      "ntentMatcher\022I\n\014checker_type\030\021 \001(\01623.goo" +
+      "gle.monitoring.v3.UptimeCheckConfig.Chec" +
+      "kerType\022A\n\020selected_regions\030\n \003(\0162\'.goog" +
+      "le.monitoring.v3.UptimeCheckRegion\022\027\n\013is" +
+      "_internal\030\017 \001(\010B\002\030\001\022D\n\021internal_checkers" +
+      "\030\016 \003(\0132%.google.monitoring.v3.InternalCh" +
+      "eckerB\002\030\001\022L\n\013user_labels\030\024 \003(\01327.google." +
+      "monitoring.v3.UptimeCheckConfig.UserLabe" +
+      "lsEntry\032a\n\rResourceGroup\022\020\n\010group_id\030\001 \001" +
+      "(\t\022>\n\rresource_type\030\002 \001(\0162\'.google.monit" +
+      "oring.v3.GroupResourceType\032!\n\nPingConfig" +
+      "\022\023\n\013pings_count\030\001 \001(\005\032\356\t\n\tHttpCheck\022W\n\016r" +
+      "equest_method\030\010 \001(\0162?.google.monitoring." +
+      "v3.UptimeCheckConfig.HttpCheck.RequestMe" +
+      "thod\022\017\n\007use_ssl\030\001 \001(\010\022\014\n\004path\030\002 \001(\t\022\014\n\004p" +
+      "ort\030\003 \001(\005\022X\n\tauth_info\030\004 \001(\0132E.google.mo" +
+      "nitoring.v3.UptimeCheckConfig.HttpCheck." +
+      "BasicAuthentication\022\024\n\014mask_headers\030\005 \001(" +
+      "\010\022O\n\007headers\030\006 \003(\0132>.google.monitoring.v" +
+      "3.UptimeCheckConfig.HttpCheck.HeadersEnt" +
+      "ry\022S\n\014content_type\030\t \001(\0162=.google.monito" +
+      "ring.v3.UptimeCheckConfig.HttpCheck.Cont" +
+      "entType\022\033\n\023custom_content_type\030\r \001(\t\022\024\n\014" +
+      "validate_ssl\030\007 \001(\010\022\014\n\004body\030\n \001(\014\022l\n\036acce" +
+      "pted_response_status_codes\030\013 \003(\0132D.googl" +
+      "e.monitoring.v3.UptimeCheckConfig.HttpCh" +
+      "eck.ResponseStatusCode\022G\n\013ping_config\030\014 " +
+      "\001(\01322.google.monitoring.v3.UptimeCheckCo" +
+      "nfig.PingConfig\0329\n\023BasicAuthentication\022\020" +
+      "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\032\334\002\n\022R" +
+      "esponseStatusCode\022\026\n\014status_value\030\001 \001(\005H" +
+      "\000\022h\n\014status_class\030\002 \001(\0162P.google.monitor" +
+      "ing.v3.UptimeCheckConfig.HttpCheck.Respo" +
+      "nseStatusCode.StatusClassH\000\"\264\001\n\013StatusCl" +
+      "ass\022\034\n\030STATUS_CLASS_UNSPECIFIED\020\000\022\024\n\020STA" +
+      "TUS_CLASS_1XX\020d\022\025\n\020STATUS_CLASS_2XX\020\310\001\022\025" +
+      "\n\020STATUS_CLASS_3XX\020\254\002\022\025\n\020STATUS_CLASS_4X" +
+      "X\020\220\003\022\025\n\020STATUS_CLASS_5XX\020\364\003\022\025\n\020STATUS_CL" +
+      "ASS_ANY\020\350\007B\r\n\013status_code\032.\n\014HeadersEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rReq" +
+      "uestMethod\022\026\n\022METHOD_UNSPECIFIED\020\000\022\007\n\003GE" +
+      "T\020\001\022\010\n\004POST\020\002\"G\n\013ContentType\022\024\n\020TYPE_UNS" +
+      "PECIFIED\020\000\022\017\n\013URL_ENCODED\020\001\022\021\n\rUSER_PROV" +
+      "IDED\020\002\032a\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\022G\n\013ping" +
+      "_config\030\002 \001(\01322.google.monitoring.v3.Upt" +
+      "imeCheckConfig.PingConfig\032\312\005\n\016ContentMat" +
+      "cher\022\017\n\007content\030\001 \001(\t\022\\\n\007matcher\030\002 \001(\0162K" +
+      ".google.monitoring.v3.UptimeCheckConfig." +
+      "ContentMatcher.ContentMatcherOption\022c\n\021j" +
+      "son_path_matcher\030\003 \001(\0132F.google.monitori" +
+      "ng.v3.UptimeCheckConfig.ContentMatcher.J" +
+      "sonPathMatcherH\000\032\375\001\n\017JsonPathMatcher\022\021\n\t" +
+      "json_path\030\001 \001(\t\022r\n\014json_matcher\030\002 \001(\0162\\." +
+      "google.monitoring.v3.UptimeCheckConfig.C" +
+      "ontentMatcher.JsonPathMatcher.JsonPathMa" +
+      "tcherOption\"c\n\025JsonPathMatcherOption\022(\n$" +
+      "JSON_PATH_MATCHER_OPTION_UNSPECIFIED\020\000\022\017" +
+      "\n\013EXACT_MATCH\020\001\022\017\n\013REGEX_MATCH\020\002\"\310\001\n\024Con" +
+      "tentMatcherOption\022&\n\"CONTENT_MATCHER_OPT" +
+      "ION_UNSPECIFIED\020\000\022\023\n\017CONTAINS_STRING\020\001\022\027" +
+      "\n\023NOT_CONTAINS_STRING\020\002\022\021\n\rMATCHES_REGEX" +
+      "\020\003\022\025\n\021NOT_MATCHES_REGEX\020\004\022\025\n\021MATCHES_JSO" +
+      "N_PATH\020\005\022\031\n\025NOT_MATCHES_JSON_PATH\020\006B\031\n\027a" +
+      "dditional_matcher_info\0321\n\017UserLabelsEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\013Che" +
+      "ckerType\022\034\n\030CHECKER_TYPE_UNSPECIFIED\020\000\022\026" +
+      "\n\022STATIC_IP_CHECKERS\020\001\022\020\n\014VPC_CHECKERS\020\003" +
+      ":\363\001\352A\357\001\n+monitoring.googleapis.com/Uptim" +
+      "eCheckConfig\022;projects/{project}/uptimeC" +
+      "heckConfigs/{uptime_check_config}\022Eorgan" +
+      "izations/{organization}/uptimeCheckConfi" +
+      "gs/{uptime_check_config}\0229folders/{folde" +
+      "r}/uptimeCheckConfigs/{uptime_check_conf" +
+      "ig}\022\001*B\n\n\010resourceB\024\n\022check_request_type" +
+      "\"n\n\rUptimeCheckIp\0227\n\006region\030\001 \001(\0162\'.goog" +
+      "le.monitoring.v3.UptimeCheckRegion\022\020\n\010lo" +
+      "cation\030\002 \001(\t\022\022\n\nip_address\030\003 \001(\t*\225\001\n\021Upt" +
+      "imeCheckRegion\022\026\n\022REGION_UNSPECIFIED\020\000\022\007" +
+      "\n\003USA\020\001\022\n\n\006EUROPE\020\002\022\021\n\rSOUTH_AMERICA\020\003\022\020" +
+      "\n\014ASIA_PACIFIC\020\004\022\016\n\nUSA_OREGON\020\005\022\014\n\010USA_" +
+      "IOWA\020\006\022\020\n\014USA_VIRGINIA\020\007*[\n\021GroupResourc" +
+      "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\014\n\010" +
+      "INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_BALANCER\020\002B\306\001" +
+      "\n\030com.google.monitoring.v3B\013UptimeProtoP" +
+      "\001ZAcloud.google.com/go/monitoring/apiv3/" +
+      "v2/monitoringpb;monitoringpb\252\002\032Google.Cl" +
+      "oud.Monitoring.V3\312\002\032Google\\Cloud\\Monitor" +
+      "ing\\V3\352\002\035Google::Cloud::Monitoring::V3b\006" +
+      "proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.MonitoredResourceProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.DurationProto.getDescriptor(),
+        });
+    internal_static_google_monitoring_v3_InternalChecker_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_InternalChecker_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "Network", "GcpZone", "PeerProjectId", "State", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "MonitoredResource", "ResourceGroup", "HttpCheck", "TcpCheck", "Period", "Timeout", "ContentMatchers", "CheckerType", "SelectedRegions", "IsInternal", "InternalCheckers", "UserLabels", "Resource", "CheckRequestType", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor,
+        new java.lang.String[] { "GroupId", "ResourceType", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor,
+        new java.lang.String[] { "PingsCount", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(2);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor,
+        new java.lang.String[] { "RequestMethod", "UseSsl", "Path", "Port", "AuthInfo", "MaskHeaders", "Headers", "ContentType", "CustomContentType", "ValidateSsl", "Body", "AcceptedResponseStatusCodes", "PingConfig", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor,
+        new java.lang.String[] { "Username", "Password", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor,
+        new java.lang.String[] { "StatusValue", "StatusClass", "StatusCode", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(2);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(3);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor,
+        new java.lang.String[] { "Port", "PingConfig", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(4);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor,
+        new java.lang.String[] { "Content", "Matcher", "JsonPathMatcher", "AdditionalMatcherInfo", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor,
+        new java.lang.String[] { "JsonPath", "JsonMatcher", });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor =
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(5);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_monitoring_v3_UptimeCheckIp_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UptimeCheckIp_descriptor,
+        new java.lang.String[] { "Region", "Location", "IpAddress", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.MonitoredResourceProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
new file mode 100644
index 000000000000..ef2921b9e9b0
--- /dev/null
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
@@ -0,0 +1,218 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/uptime_service.proto
+
+package com.google.monitoring.v3;
+
+public final class UptimeServiceProto {
+  private UptimeServiceProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)google/monitoring/v3/uptime_service.pr" +
+      "oto\022\024google.monitoring.v3\032\034google/api/an" +
+      "notations.proto\032\027google/api/client.proto" +
+      "\032\037google/api/field_behavior.proto\032\031googl" +
+      "e/api/resource.proto\032!google/monitoring/" +
+      "v3/uptime.proto\032\033google/protobuf/empty.p" +
+      "roto\032 google/protobuf/field_mask.proto\"\234" +
+      "\001\n\035ListUptimeCheckConfigsRequest\022D\n\006pare" +
+      "nt\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring.googleapis" +
+      ".com/UptimeCheckConfig\022\016\n\006filter\030\002 \001(\t\022\021" +
+      "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\224\001" +
+      "\n\036ListUptimeCheckConfigsResponse\022E\n\024upti" +
+      "me_check_configs\030\001 \003(\0132\'.google.monitori" +
+      "ng.v3.UptimeCheckConfig\022\027\n\017next_page_tok" +
+      "en\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"a\n\033GetUptim" +
+      "eCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372" +
+      "A-\n+monitoring.googleapis.com/UptimeChec" +
+      "kConfig\"\262\001\n\036CreateUptimeCheckConfigReque" +
+      "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring." +
+      "googleapis.com/UptimeCheckConfig\022J\n\023upti" +
+      "me_check_config\030\002 \001(\0132\'.google.monitorin" +
+      "g.v3.UptimeCheckConfigB\004\342A\001\002\"\235\001\n\036UpdateU" +
+      "ptimeCheckConfigRequest\022/\n\013update_mask\030\002" +
+      " \001(\0132\032.google.protobuf.FieldMask\022J\n\023upti" +
+      "me_check_config\030\003 \001(\0132\'.google.monitorin" +
+      "g.v3.UptimeCheckConfigB\004\342A\001\002\"d\n\036DeleteUp" +
+      "timeCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A" +
+      "\001\002\372A-\n+monitoring.googleapis.com/UptimeC" +
+      "heckConfig\"B\n\031ListUptimeCheckIpsRequest\022" +
+      "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t" +
+      "\n\032ListUptimeCheckIpsResponse\022=\n\020uptime_c" +
+      "heck_ips\030\001 \003(\0132#.google.monitoring.v3.Up" +
+      "timeCheckIp\022\027\n\017next_page_token\030\002 \001(\t2\275\n\n" +
+      "\022UptimeCheckService\022\300\001\n\026ListUptimeCheckC" +
+      "onfigs\0223.google.monitoring.v3.ListUptime" +
+      "CheckConfigsRequest\0324.google.monitoring." +
+      "v3.ListUptimeCheckConfigsResponse\";\332A\006pa" +
+      "rent\202\323\344\223\002,\022*/v3/{parent=projects/*}/upti" +
+      "meCheckConfigs\022\255\001\n\024GetUptimeCheckConfig\022" +
+      "1.google.monitoring.v3.GetUptimeCheckCon" +
+      "figRequest\032\'.google.monitoring.v3.Uptime" +
+      "CheckConfig\"9\332A\004name\202\323\344\223\002,\022*/v3/{name=pr" +
+      "ojects/*/uptimeCheckConfigs/*}\022\336\001\n\027Creat" +
+      "eUptimeCheckConfig\0224.google.monitoring.v" +
+      "3.CreateUptimeCheckConfigRequest\032\'.googl" +
+      "e.monitoring.v3.UptimeCheckConfig\"d\332A\032pa" +
+      "rent,uptime_check_config\202\323\344\223\002A\"*/v3/{par" +
+      "ent=projects/*}/uptimeCheckConfigs:\023upti" +
+      "me_check_config\022\353\001\n\027UpdateUptimeCheckCon" +
+      "fig\0224.google.monitoring.v3.UpdateUptimeC" +
+      "heckConfigRequest\032\'.google.monitoring.v3" +
+      ".UptimeCheckConfig\"q\332A\023uptime_check_conf" +
+      "ig\202\323\344\223\002U2>/v3/{uptime_check_config.name=" +
+      "projects/*/uptimeCheckConfigs/*}:\023uptime" +
+      "_check_config\022\242\001\n\027DeleteUptimeCheckConfi" +
+      "g\0224.google.monitoring.v3.DeleteUptimeChe" +
+      "ckConfigRequest\032\026.google.protobuf.Empty\"" +
+      "9\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/upt" +
+      "imeCheckConfigs/*}\022\223\001\n\022ListUptimeCheckIp" +
+      "s\022/.google.monitoring.v3.ListUptimeCheck" +
+      "IpsRequest\0320.google.monitoring.v3.ListUp" +
+      "timeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3/uptime" +
+      "CheckIps\032\251\001\312A\031monitoring.googleapis.com\322" +
+      "A\211\001https://www.googleapis.com/auth/cloud" +
+      "-platform,https://www.googleapis.com/aut" +
+      "h/monitoring,https://www.googleapis.com/" +
+      "auth/monitoring.readB\315\001\n\030com.google.moni" +
+      "toring.v3B\022UptimeServiceProtoP\001ZAcloud.g" +
+      "oogle.com/go/monitoring/apiv3/v2/monitor" +
+      "ingpb;monitoringpb\252\002\032Google.Cloud.Monito" +
+      "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035G" +
+      "oogle::Cloud::Monitoring::V3b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.monitoring.v3.UptimeProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+        });
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor,
+        new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", });
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor,
+        new java.lang.String[] { "UptimeCheckConfigs", "NextPageToken", "TotalSize", });
+    internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor,
+        new java.lang.String[] { "Parent", "UptimeCheckConfig", });
+    internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor,
+        new java.lang.String[] { "UpdateMask", "UptimeCheckConfig", });
+    internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor,
+        new java.lang.String[] { "PageSize", "PageToken", });
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor,
+        new java.lang.String[] { "UptimeCheckIps", "NextPageToken", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.monitoring.v3.UptimeProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
similarity index 67%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
index b671117f68a4..62370ecdf9e7 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
@@ -1,43 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
- *
- *
  * 
  * The `VerifyNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.VerifyNotificationChannelRequest} */ -public final class VerifyNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VerifyNotificationChannelRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.VerifyNotificationChannelRequest) VerifyNotificationChannelRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VerifyNotificationChannelRequest.newBuilder() to construct. - private VerifyNotificationChannelRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VerifyNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VerifyNotificationChannelRequest() { name_ = ""; code_ = ""; @@ -45,40 +26,33 @@ private VerifyNotificationChannelRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VerifyNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.VerifyNotificationChannelRequest.class, - com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.VerifyNotificationChannelRequest.class, com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The notification channel to verify.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The notification channel to verify.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,12 +92,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -137,7 +106,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The code. */ @java.lang.Override @@ -146,15 +114,14 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -166,15 +133,16 @@ public java.lang.String getCode() {
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -183,7 +151,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -225,16 +193,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.VerifyNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.VerifyNotificationChannelRequest other = - (com.google.monitoring.v3.VerifyNotificationChannelRequest) obj; + com.google.monitoring.v3.VerifyNotificationChannelRequest other = (com.google.monitoring.v3.VerifyNotificationChannelRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,136 +225,131 @@ public int hashCode() { } public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.VerifyNotificationChannelRequest prototype) { + public static Builder newBuilder(com.google.monitoring.v3.VerifyNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The `VerifyNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.VerifyNotificationChannelRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.VerifyNotificationChannelRequest) com.google.monitoring.v3.VerifyNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.VerifyNotificationChannelRequest.class, - com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.VerifyNotificationChannelRequest.class, com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.VerifyNotificationChannelRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto - .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override @@ -417,11 +381,8 @@ public com.google.monitoring.v3.VerifyNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.VerifyNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.VerifyNotificationChannelRequest result = - new com.google.monitoring.v3.VerifyNotificationChannelRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.monitoring.v3.VerifyNotificationChannelRequest result = new com.google.monitoring.v3.VerifyNotificationChannelRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -440,39 +401,38 @@ private void buildPartial0(com.google.monitoring.v3.VerifyNotificationChannelReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.VerifyNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.VerifyNotificationChannelRequest) other); + return mergeFrom((com.google.monitoring.v3.VerifyNotificationChannelRequest)other); } else { super.mergeFrom(other); return this; @@ -480,8 +440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.VerifyNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance()) - return this; + if (other == com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -518,25 +477,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,27 +502,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The notification channel to verify.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -575,23 +526,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The notification channel to verify.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -599,39 +547,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The notification channel to verify.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The notification channel to verify.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -641,23 +578,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The notification channel to verify.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -667,8 +598,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object code_ = ""; /** - * - * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -680,13 +609,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -695,8 +624,6 @@ public java.lang.String getCode() { } } /** - * - * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -708,14 +635,15 @@ public java.lang.String getCode() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -723,8 +651,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -736,22 +662,18 @@ public com.google.protobuf.ByteString getCodeBytes() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -763,7 +685,6 @@ public Builder setCode(java.lang.String value) {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -773,8 +694,6 @@ public Builder clearCode() { return this; } /** - * - * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -786,23 +705,21 @@ public Builder clearCode() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.VerifyNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) private static final com.google.monitoring.v3.VerifyNotificationChannelRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.monitoring.v3.VerifyNotificationChannelRequest(); } @@ -826,27 +743,27 @@ public static com.google.monitoring.v3.VerifyNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,4 +778,6 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.VerifyNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java similarity index 63% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java index 1424978b584e..d0fff2179aa4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface VerifyNotificationChannelRequestOrBuilder - extends +public interface VerifyNotificationChannelRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.VerifyNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The notification channel to verify.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The notification channel to verify.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -66,13 +39,10 @@ public interface VerifyNotificationChannelRequestOrBuilder
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -84,8 +54,8 @@ public interface VerifyNotificationChannelRequestOrBuilder
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java similarity index 71% rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java index fdef7ad6f108..dc897eadac8b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java +++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** - * - * *
  * A `WindowsBasedSli` defines `good_service` as the count of time windows for
  * which the provided service was of good quality. Criteria for determining
@@ -29,71 +12,61 @@
  *
  * Protobuf type {@code google.monitoring.v3.WindowsBasedSli}
  */
-public final class WindowsBasedSli extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WindowsBasedSli extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli)
     WindowsBasedSliOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WindowsBasedSli.newBuilder() to construct.
   private WindowsBasedSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private WindowsBasedSli() {}
+  private WindowsBasedSli() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WindowsBasedSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto
-        .internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.WindowsBasedSli.class,
-            com.google.monitoring.v3.WindowsBasedSli.Builder.class);
+            com.google.monitoring.v3.WindowsBasedSli.class, com.google.monitoring.v3.WindowsBasedSli.Builder.class);
   }
 
-  public interface PerformanceThresholdOrBuilder
-      extends
+  public interface PerformanceThresholdOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return Whether the performance field is set. */ boolean hasPerformance(); /** - * - * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return The performance. */ com.google.monitoring.v3.RequestBasedSli getPerformance(); /** - * - * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
@@ -103,32 +76,24 @@ public interface PerformanceThresholdOrBuilder com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder(); /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return Whether the basicSliPerformance field is set. */ boolean hasBasicSliPerformance(); /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return The basicSliPerformance. */ com.google.monitoring.v3.BasicSli getBasicSliPerformance(); /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
@@ -138,14 +103,11 @@ public interface PerformanceThresholdOrBuilder com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilder(); /** - * - * *
      * If window `performance >= threshold`, the window is counted as good.
      * 
* * double threshold = 2; - * * @return The threshold. */ double getThreshold(); @@ -153,8 +115,6 @@ public interface PerformanceThresholdOrBuilder com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.TypeCase getTypeCase(); } /** - * - * *
    * A `PerformanceThreshold` is used when each window is good when that window
    * has a sufficiently high `performance`.
@@ -162,53 +122,48 @@ public interface PerformanceThresholdOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.PerformanceThreshold}
    */
-  public static final class PerformanceThreshold extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PerformanceThreshold extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
       PerformanceThresholdOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PerformanceThreshold.newBuilder() to construct.
     private PerformanceThreshold(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private PerformanceThreshold() {}
+    private PerformanceThreshold() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PerformanceThreshold();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class,
-              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
     }
 
     private int typeCase_ = 0;
-
     @SuppressWarnings("serial")
     private java.lang.Object type_;
-
     public enum TypeCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PERFORMANCE(1),
       BASIC_SLI_PERFORMANCE(3),
       TYPE_NOT_SET(0);
       private final int value;
-
       private TypeCase(int value) {
         this.value = value;
       }
@@ -224,36 +179,30 @@ public static TypeCase valueOf(int value) {
 
       public static TypeCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return PERFORMANCE;
-          case 3:
-            return BASIC_SLI_PERFORMANCE;
-          case 0:
-            return TYPE_NOT_SET;
-          default:
-            return null;
+          case 1: return PERFORMANCE;
+          case 3: return BASIC_SLI_PERFORMANCE;
+          case 0: return TYPE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+    getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public static final int PERFORMANCE_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return Whether the performance field is set. */ @java.lang.Override @@ -261,26 +210,21 @@ public boolean hasPerformance() { return typeCase_ == 1; } /** - * - * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return The performance. */ @java.lang.Override public com.google.monitoring.v3.RequestBasedSli getPerformance() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } /** - * - * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
@@ -290,21 +234,18 @@ public com.google.monitoring.v3.RequestBasedSli getPerformance() { @java.lang.Override public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } public static final int BASIC_SLI_PERFORMANCE_FIELD_NUMBER = 3; /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return Whether the basicSliPerformance field is set. */ @java.lang.Override @@ -312,26 +253,21 @@ public boolean hasBasicSliPerformance() { return typeCase_ == 3; } /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return The basicSliPerformance. */ @java.lang.Override public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { if (typeCase_ == 3) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } /** - * - * *
      * `BasicSli` to evaluate to judge window quality.
      * 
@@ -341,7 +277,7 @@ public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { @java.lang.Override public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } @@ -349,14 +285,11 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde public static final int THRESHOLD_FIELD_NUMBER = 2; private double threshold_ = 0D; /** - * - * *
      * If window `performance >= threshold`, the window is counted as good.
      * 
* * double threshold = 2; - * * @return The threshold. */ @java.lang.Override @@ -365,7 +298,6 @@ public double getThreshold() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +309,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.monitoring.v3.RequestBasedSli) type_); } @@ -397,17 +330,16 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.monitoring.v3.RequestBasedSli) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.monitoring.v3.RequestBasedSli) type_); } if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, threshold_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, threshold_); } if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.monitoring.v3.BasicSli) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.monitoring.v3.BasicSli) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -417,23 +349,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)) { return super.equals(obj); } - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other = - (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) obj; + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other = (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) obj; if (java.lang.Double.doubleToLongBits(getThreshold()) - != java.lang.Double.doubleToLongBits(other.getThreshold())) return false; + != java.lang.Double.doubleToLongBits( + other.getThreshold())) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (!getPerformance().equals(other.getPerformance())) return false; + if (!getPerformance() + .equals(other.getPerformance())) return false; break; case 3: - if (!getBasicSliPerformance().equals(other.getBasicSliPerformance())) return false; + if (!getBasicSliPerformance() + .equals(other.getBasicSliPerformance())) return false; break; case 0: default: @@ -450,10 +384,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThreshold())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreshold())); switch (typeCase_) { case 1: hash = (37 * hash) + PERFORMANCE_FIELD_NUMBER; @@ -472,94 +404,89 @@ public int hashCode() { } public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold prototype) { + public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -569,8 +496,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A `PerformanceThreshold` is used when each window is good when that window
      * has a sufficiently high `performance`.
@@ -578,33 +503,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.PerformanceThreshold}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
         com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class,
-                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
+                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -622,14 +547,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
       }
 
       @java.lang.Override
-      public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold
-          getDefaultInstanceForType() {
+      public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstanceForType() {
         return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance();
       }
 
@@ -644,32 +568,29 @@ public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold buildPartial() {
-        com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result =
-            new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result = new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
+      private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.threshold_ = threshold_;
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
+      private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
         result.typeCase_ = typeCase_;
         result.type_ = this.type_;
-        if (typeCase_ == 1 && performanceBuilder_ != null) {
+        if (typeCase_ == 1 &&
+            performanceBuilder_ != null) {
           result.type_ = performanceBuilder_.build();
         }
-        if (typeCase_ == 3 && basicSliPerformanceBuilder_ != null) {
+        if (typeCase_ == 3 &&
+            basicSliPerformanceBuilder_ != null) {
           result.type_ = basicSliPerformanceBuilder_.build();
         }
       }
@@ -678,70 +599,61 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) {
-          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) other);
+          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other) {
-        if (other
-            == com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other) {
+        if (other == com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance()) return this;
         if (other.getThreshold() != 0D) {
           setThreshold(other.getThreshold());
         }
         switch (other.getTypeCase()) {
-          case PERFORMANCE:
-            {
-              mergePerformance(other.getPerformance());
-              break;
-            }
-          case BASIC_SLI_PERFORMANCE:
-            {
-              mergeBasicSliPerformance(other.getBasicSliPerformance());
-              break;
-            }
-          case TYPE_NOT_SET:
-            {
-              break;
-            }
+          case PERFORMANCE: {
+            mergePerformance(other.getPerformance());
+            break;
+          }
+          case BASIC_SLI_PERFORMANCE: {
+            mergeBasicSliPerformance(other.getBasicSliPerformance());
+            break;
+          }
+          case TYPE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -769,32 +681,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getPerformanceFieldBuilder().getBuilder(), extensionRegistry);
-                  typeCase_ = 1;
-                  break;
-                } // case 10
-              case 17:
-                {
-                  threshold_ = input.readDouble();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 17
-              case 26:
-                {
-                  input.readMessage(
-                      getBasicSliPerformanceFieldBuilder().getBuilder(), extensionRegistry);
-                  typeCase_ = 3;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getPerformanceFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                typeCase_ = 1;
+                break;
+              } // case 10
+              case 17: {
+                threshold_ = input.readDouble();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 17
+              case 26: {
+                input.readMessage(
+                    getBasicSliPerformanceFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                typeCase_ = 3;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -804,12 +715,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int typeCase_ = 0;
       private java.lang.Object type_;
-
-      public TypeCase getTypeCase() {
-        return TypeCase.forNumber(typeCase_);
+      public TypeCase
+          getTypeCase() {
+        return TypeCase.forNumber(
+            typeCase_);
       }
 
       public Builder clearType() {
@@ -822,19 +733,13 @@ public Builder clearType() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.monitoring.v3.RequestBasedSli,
-              com.google.monitoring.v3.RequestBasedSli.Builder,
-              com.google.monitoring.v3.RequestBasedSliOrBuilder>
-          performanceBuilder_;
+          com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> performanceBuilder_;
       /**
-       *
-       *
        * 
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return Whether the performance field is set. */ @java.lang.Override @@ -842,14 +747,11 @@ public boolean hasPerformance() { return typeCase_ == 1; } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; - * * @return The performance. */ @java.lang.Override @@ -867,8 +769,6 @@ public com.google.monitoring.v3.RequestBasedSli getPerformance() { } } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -889,8 +789,6 @@ public Builder setPerformance(com.google.monitoring.v3.RequestBasedSli value) { return this; } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -909,8 +807,6 @@ public Builder setPerformance( return this; } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -919,13 +815,10 @@ public Builder setPerformance( */ public Builder mergePerformance(com.google.monitoring.v3.RequestBasedSli value) { if (performanceBuilder_ == null) { - if (typeCase_ == 1 - && type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { - type_ = - com.google.monitoring.v3.RequestBasedSli.newBuilder( - (com.google.monitoring.v3.RequestBasedSli) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 1 && + type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { + type_ = com.google.monitoring.v3.RequestBasedSli.newBuilder((com.google.monitoring.v3.RequestBasedSli) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -941,8 +834,6 @@ public Builder mergePerformance(com.google.monitoring.v3.RequestBasedSli value) return this; } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -966,8 +857,6 @@ public Builder clearPerformance() { return this; } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -978,8 +867,6 @@ public com.google.monitoring.v3.RequestBasedSli.Builder getPerformanceBuilder() return getPerformanceFieldBuilder().getBuilder(); } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -998,8 +885,6 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder } } /** - * - * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -1007,19 +892,14 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder * .google.monitoring.v3.RequestBasedSli performance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, - com.google.monitoring.v3.RequestBasedSli.Builder, - com.google.monitoring.v3.RequestBasedSliOrBuilder> + com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> getPerformanceFieldBuilder() { if (performanceBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } - performanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, - com.google.monitoring.v3.RequestBasedSli.Builder, - com.google.monitoring.v3.RequestBasedSliOrBuilder>( + performanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder>( (com.google.monitoring.v3.RequestBasedSli) type_, getParentForChildren(), isClean()); @@ -1031,19 +911,13 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, - com.google.monitoring.v3.BasicSli.Builder, - com.google.monitoring.v3.BasicSliOrBuilder> - basicSliPerformanceBuilder_; + com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> basicSliPerformanceBuilder_; /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return Whether the basicSliPerformance field is set. */ @java.lang.Override @@ -1051,14 +925,11 @@ public boolean hasBasicSliPerformance() { return typeCase_ == 3; } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; - * * @return The basicSliPerformance. */ @java.lang.Override @@ -1076,8 +947,6 @@ public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { } } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1098,8 +967,6 @@ public Builder setBasicSliPerformance(com.google.monitoring.v3.BasicSli value) { return this; } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1118,8 +985,6 @@ public Builder setBasicSliPerformance( return this; } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1128,12 +993,10 @@ public Builder setBasicSliPerformance( */ public Builder mergeBasicSliPerformance(com.google.monitoring.v3.BasicSli value) { if (basicSliPerformanceBuilder_ == null) { - if (typeCase_ == 3 && type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { - type_ = - com.google.monitoring.v3.BasicSli.newBuilder( - (com.google.monitoring.v3.BasicSli) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 3 && + type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { + type_ = com.google.monitoring.v3.BasicSli.newBuilder((com.google.monitoring.v3.BasicSli) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1149,8 +1012,6 @@ public Builder mergeBasicSliPerformance(com.google.monitoring.v3.BasicSli value) return this; } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1174,8 +1035,6 @@ public Builder clearBasicSliPerformance() { return this; } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1186,8 +1045,6 @@ public com.google.monitoring.v3.BasicSli.Builder getBasicSliPerformanceBuilder() return getBasicSliPerformanceFieldBuilder().getBuilder(); } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1206,8 +1063,6 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde } } /** - * - * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1215,20 +1070,17 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde * .google.monitoring.v3.BasicSli basic_sli_performance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, - com.google.monitoring.v3.BasicSli.Builder, - com.google.monitoring.v3.BasicSliOrBuilder> + com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> getBasicSliPerformanceFieldBuilder() { if (basicSliPerformanceBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = com.google.monitoring.v3.BasicSli.getDefaultInstance(); } - basicSliPerformanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, - com.google.monitoring.v3.BasicSli.Builder, - com.google.monitoring.v3.BasicSliOrBuilder>( - (com.google.monitoring.v3.BasicSli) type_, getParentForChildren(), isClean()); + basicSliPerformanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder>( + (com.google.monitoring.v3.BasicSli) type_, + getParentForChildren(), + isClean()); type_ = null; } typeCase_ = 3; @@ -1236,16 +1088,13 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde return basicSliPerformanceBuilder_; } - private double threshold_; + private double threshold_ ; /** - * - * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; - * * @return The threshold. */ @java.lang.Override @@ -1253,14 +1102,11 @@ public double getThreshold() { return threshold_; } /** - * - * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; - * * @param value The threshold to set. * @return This builder for chaining. */ @@ -1272,14 +1118,11 @@ public Builder setThreshold(double value) { return this; } /** - * - * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; - * * @return This builder for chaining. */ public Builder clearThreshold() { @@ -1288,7 +1131,6 @@ public Builder clearThreshold() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1301,44 +1143,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) - private static final com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - DEFAULT_INSTANCE; - + private static final com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - getDefaultInstance() { + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PerformanceThreshold parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformanceThreshold parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,73 +1189,59 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - getDefaultInstanceForType() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MetricRangeOrBuilder - extends + public interface MetricRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli.MetricRange) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; - * * @return The timeSeries. */ java.lang.String getTimeSeries(); /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; - * * @return The bytes for timeSeries. */ - com.google.protobuf.ByteString getTimeSeriesBytes(); + com.google.protobuf.ByteString + getTimeSeriesBytes(); /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; - * * @return Whether the range field is set. */ boolean hasRange(); /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; - * * @return The range. */ com.google.monitoring.v3.Range getRange(); /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
@@ -1427,8 +1252,6 @@ public interface MetricRangeOrBuilder
     com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder();
   }
   /**
-   *
-   *
    * 
    * A `MetricRange` is used when each window is good when the value x of a
    * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
@@ -1438,55 +1261,49 @@ public interface MetricRangeOrBuilder
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.MetricRange}
    */
-  public static final class MetricRange extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class MetricRange extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli.MetricRange)
       MetricRangeOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use MetricRange.newBuilder() to construct.
     private MetricRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private MetricRange() {
       timeSeries_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new MetricRange();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.class,
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.class, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
     }
 
     public static final int TIME_SERIES_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object timeSeries_ = "";
     /**
-     *
-     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; - * * @return The timeSeries. */ @java.lang.Override @@ -1495,30 +1312,30 @@ public java.lang.String getTimeSeries() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeSeries_ = s; return s; } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; - * * @return The bytes for timeSeries. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeSeriesBytes() { + public com.google.protobuf.ByteString + getTimeSeriesBytes() { java.lang.Object ref = timeSeries_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeSeries_ = b; return b; } else { @@ -1529,15 +1346,12 @@ public com.google.protobuf.ByteString getTimeSeriesBytes() { public static final int RANGE_FIELD_NUMBER = 4; private com.google.monitoring.v3.Range range_; /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; - * * @return Whether the range field is set. */ @java.lang.Override @@ -1545,15 +1359,12 @@ public boolean hasRange() { return range_ != null; } /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; - * * @return The range. */ @java.lang.Override @@ -1561,8 +1372,6 @@ public com.google.monitoring.v3.Range getRange() { return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_; } /** - * - * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
@@ -1576,7 +1385,6 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1588,7 +1396,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeSeries_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeSeries_);
       }
@@ -1608,7 +1417,8 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeSeries_);
       }
       if (range_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, getRange());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -1618,18 +1428,19 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli.MetricRange)) {
         return super.equals(obj);
       }
-      com.google.monitoring.v3.WindowsBasedSli.MetricRange other =
-          (com.google.monitoring.v3.WindowsBasedSli.MetricRange) obj;
+      com.google.monitoring.v3.WindowsBasedSli.MetricRange other = (com.google.monitoring.v3.WindowsBasedSli.MetricRange) obj;
 
-      if (!getTimeSeries().equals(other.getTimeSeries())) return false;
+      if (!getTimeSeries()
+          .equals(other.getTimeSeries())) return false;
       if (hasRange() != other.hasRange()) return false;
       if (hasRange()) {
-        if (!getRange().equals(other.getRange())) return false;
+        if (!getRange()
+            .equals(other.getRange())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1654,94 +1465,89 @@ public int hashCode() {
     }
 
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange prototype) {
+    public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli.MetricRange prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1751,8 +1557,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * A `MetricRange` is used when each window is good when the value x of a
      * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
@@ -1762,33 +1566,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.MetricRange}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli.MetricRange)
         com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange.class,
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange.class, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1803,9 +1607,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto
-            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
       }
 
       @java.lang.Override
@@ -1824,11 +1628,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.WindowsBasedSli.MetricRange buildPartial() {
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange result =
-            new com.google.monitoring.v3.WindowsBasedSli.MetricRange(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange result = new com.google.monitoring.v3.WindowsBasedSli.MetricRange(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -1839,7 +1640,9 @@ private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.MetricRange
           result.timeSeries_ = timeSeries_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build();
+          result.range_ = rangeBuilder_ == null
+              ? range_
+              : rangeBuilder_.build();
         }
       }
 
@@ -1847,41 +1650,38 @@ private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.MetricRange
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.WindowsBasedSli.MetricRange) {
-          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.MetricRange) other);
+          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.MetricRange)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1889,8 +1689,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli.MetricRange other) {
-        if (other == com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance())
-          return this;
+        if (other == com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) return this;
         if (!other.getTimeSeries().isEmpty()) {
           timeSeries_ = other.timeSeries_;
           bitField0_ |= 0x00000001;
@@ -1925,25 +1724,24 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  timeSeries_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 34:
-                {
-                  input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                timeSeries_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 34: {
+                input.readMessage(
+                    getRangeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1953,26 +1751,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object timeSeries_ = "";
       /**
-       *
-       *
        * 
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; - * * @return The timeSeries. */ public java.lang.String getTimeSeries() { java.lang.Object ref = timeSeries_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeSeries_ = s; return s; @@ -1981,22 +1776,21 @@ public java.lang.String getTimeSeries() { } } /** - * - * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; - * * @return The bytes for timeSeries. */ - public com.google.protobuf.ByteString getTimeSeriesBytes() { + public com.google.protobuf.ByteString + getTimeSeriesBytes() { java.lang.Object ref = timeSeries_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeSeries_ = b; return b; } else { @@ -2004,37 +1798,30 @@ public com.google.protobuf.ByteString getTimeSeriesBytes() { } } /** - * - * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; - * * @param value The timeSeries to set. * @return This builder for chaining. */ - public Builder setTimeSeries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeSeries( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } timeSeries_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; - * * @return This builder for chaining. */ public Builder clearTimeSeries() { @@ -2044,22 +1831,18 @@ public Builder clearTimeSeries() { return this; } /** - * - * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; - * * @param value The bytes for timeSeries to set. * @return This builder for chaining. */ - public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeSeriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeSeries_ = value; bitField0_ |= 0x00000001; @@ -2069,35 +1852,26 @@ public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { private com.google.monitoring.v3.Range range_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Range, - com.google.monitoring.v3.Range.Builder, - com.google.monitoring.v3.RangeOrBuilder> - rangeBuilder_; + com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> rangeBuilder_; /** - * - * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
        * 
* * .google.monitoring.v3.Range range = 4; - * * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
        * 
* * .google.monitoring.v3.Range range = 4; - * * @return The range. */ public com.google.monitoring.v3.Range getRange() { @@ -2108,8 +1882,6 @@ public com.google.monitoring.v3.Range getRange() { } } /** - * - * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2131,8 +1903,6 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2140,7 +1910,8 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
        *
        * .google.monitoring.v3.Range range = 4;
        */
-      public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue) {
+      public Builder setRange(
+          com.google.monitoring.v3.Range.Builder builderForValue) {
         if (rangeBuilder_ == null) {
           range_ = builderForValue.build();
         } else {
@@ -2151,8 +1922,6 @@ public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2162,9 +1931,9 @@ public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue)
        */
       public Builder mergeRange(com.google.monitoring.v3.Range value) {
         if (rangeBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && range_ != null
-              && range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            range_ != null &&
+            range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
             getRangeBuilder().mergeFrom(value);
           } else {
             range_ = value;
@@ -2177,8 +1946,6 @@ public Builder mergeRange(com.google.monitoring.v3.Range value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2197,8 +1964,6 @@ public Builder clearRange() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2212,8 +1977,6 @@ public com.google.monitoring.v3.Range.Builder getRangeBuilder() {
         return getRangeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2225,12 +1988,11 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
         if (rangeBuilder_ != null) {
           return rangeBuilder_.getMessageOrBuilder();
         } else {
-          return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_;
+          return range_ == null ?
+              com.google.monitoring.v3.Range.getDefaultInstance() : range_;
         }
       }
       /**
-       *
-       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2239,22 +2001,18 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
        * .google.monitoring.v3.Range range = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.monitoring.v3.Range,
-              com.google.monitoring.v3.Range.Builder,
-              com.google.monitoring.v3.RangeOrBuilder>
+          com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> 
           getRangeFieldBuilder() {
         if (rangeBuilder_ == null) {
-          rangeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.monitoring.v3.Range,
-                  com.google.monitoring.v3.Range.Builder,
-                  com.google.monitoring.v3.RangeOrBuilder>(
-                  getRange(), getParentForChildren(), isClean());
+          rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder>(
+                  getRange(),
+                  getParentForChildren(),
+                  isClean());
           range_ = null;
         }
         return rangeBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2267,12 +2025,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli.MetricRange)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.MetricRange)
     private static final com.google.monitoring.v3.WindowsBasedSli.MetricRange DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli.MetricRange();
     }
@@ -2281,28 +2039,27 @@ public static com.google.monitoring.v3.WindowsBasedSli.MetricRange getDefaultIns
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public MetricRange parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public MetricRange parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2317,16 +2074,14 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.WindowsBasedSli.MetricRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int windowCriterionCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object windowCriterion_;
-
   public enum WindowCriterionCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GOOD_BAD_METRIC_FILTER(5),
     GOOD_TOTAL_RATIO_THRESHOLD(2),
@@ -2334,7 +2089,6 @@ public enum WindowCriterionCase
     METRIC_SUM_IN_RANGE(7),
     WINDOWCRITERION_NOT_SET(0);
     private final int value;
-
     private WindowCriterionCase(int value) {
       this.value = value;
     }
@@ -2350,34 +2104,27 @@ public static WindowCriterionCase valueOf(int value) {
 
     public static WindowCriterionCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return GOOD_BAD_METRIC_FILTER;
-        case 2:
-          return GOOD_TOTAL_RATIO_THRESHOLD;
-        case 6:
-          return METRIC_MEAN_IN_RANGE;
-        case 7:
-          return METRIC_SUM_IN_RANGE;
-        case 0:
-          return WINDOWCRITERION_NOT_SET;
-        default:
-          return null;
+        case 5: return GOOD_BAD_METRIC_FILTER;
+        case 2: return GOOD_TOTAL_RATIO_THRESHOLD;
+        case 6: return METRIC_MEAN_IN_RANGE;
+        case 7: return METRIC_SUM_IN_RANGE;
+        case 0: return WINDOWCRITERION_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public WindowCriterionCase getWindowCriterionCase() {
-    return WindowCriterionCase.forNumber(windowCriterionCase_);
+  public WindowCriterionCase
+  getWindowCriterionCase() {
+    return WindowCriterionCase.forNumber(
+        windowCriterionCase_);
   }
 
   public static final int GOOD_BAD_METRIC_FILTER_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2385,15 +2132,12 @@ public WindowCriterionCase getWindowCriterionCase() {
    * 
* * string good_bad_metric_filter = 5; - * * @return Whether the goodBadMetricFilter field is set. */ public boolean hasGoodBadMetricFilter() { return windowCriterionCase_ == 5; } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2401,7 +2145,6 @@ public boolean hasGoodBadMetricFilter() {
    * 
* * string good_bad_metric_filter = 5; - * * @return The goodBadMetricFilter. */ public java.lang.String getGoodBadMetricFilter() { @@ -2412,7 +2155,8 @@ public java.lang.String getGoodBadMetricFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (windowCriterionCase_ == 5) { windowCriterion_ = s; @@ -2421,8 +2165,6 @@ public java.lang.String getGoodBadMetricFilter() { } } /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2430,17 +2172,18 @@ public java.lang.String getGoodBadMetricFilter() {
    * 
* * string good_bad_metric_filter = 5; - * * @return The bytes for goodBadMetricFilter. */ - public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { + public com.google.protobuf.ByteString + getGoodBadMetricFilterBytes() { java.lang.Object ref = ""; if (windowCriterionCase_ == 5) { ref = windowCriterion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (windowCriterionCase_ == 5) { windowCriterion_ = b; } @@ -2452,16 +2195,11 @@ public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { public static final int GOOD_TOTAL_RATIO_THRESHOLD_FIELD_NUMBER = 2; /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return Whether the goodTotalRatioThreshold field is set. */ @java.lang.Override @@ -2469,57 +2207,43 @@ public boolean hasGoodTotalRatioThreshold() { return windowCriterionCase_ == 2; } /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return The goodTotalRatioThreshold. */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - getGoodTotalRatioThreshold() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold() { if (windowCriterionCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder - getGoodTotalRatioThresholdOrBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder() { if (windowCriterionCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } public static final int METRIC_MEAN_IN_RANGE_FIELD_NUMBER = 6; /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return Whether the metricMeanInRange field is set. */ @java.lang.Override @@ -2527,27 +2251,22 @@ public boolean hasMetricMeanInRange() { return windowCriterionCase_ == 6; } /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return The metricMeanInRange. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange() { if (windowCriterionCase_ == 6) { - return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance(); } /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
@@ -2556,25 +2275,21 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange
    * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
-      getMetricMeanInRangeOrBuilder() {
+  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder() {
     if (windowCriterionCase_ == 6) {
-      return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
+       return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
     }
     return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
   }
 
   public static final int METRIC_SUM_IN_RANGE_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return Whether the metricSumInRange field is set. */ @java.lang.Override @@ -2582,27 +2297,22 @@ public boolean hasMetricSumInRange() { return windowCriterionCase_ == 7; } /** - * - * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return The metricSumInRange. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange() { if (windowCriterionCase_ == 7) { - return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance(); } /** - * - * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
@@ -2611,10 +2321,9 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange(
    * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
-      getMetricSumInRangeOrBuilder() {
+  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder() {
     if (windowCriterionCase_ == 7) {
-      return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
+       return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
     }
     return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
   }
@@ -2622,15 +2331,12 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange(
   public static final int WINDOW_PERIOD_FIELD_NUMBER = 4;
   private com.google.protobuf.Duration windowPeriod_;
   /**
-   *
-   *
    * 
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; - * * @return Whether the windowPeriod field is set. */ @java.lang.Override @@ -2638,26 +2344,19 @@ public boolean hasWindowPeriod() { return windowPeriod_ != null; } /** - * - * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; - * * @return The windowPeriod. */ @java.lang.Override public com.google.protobuf.Duration getWindowPeriod() { - return windowPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : windowPeriod_; + return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } /** - * - * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
@@ -2667,13 +2366,10 @@ public com.google.protobuf.Duration getWindowPeriod() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
-    return windowPeriod_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : windowPeriod_;
+    return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2685,10 +2381,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (windowCriterionCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
+      output.writeMessage(2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
     }
     if (windowPeriod_ != null) {
       output.writeMessage(4, getWindowPeriod());
@@ -2697,12 +2393,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, windowCriterion_);
     }
     if (windowCriterionCase_ == 6) {
-      output.writeMessage(
-          6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      output.writeMessage(6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     if (windowCriterionCase_ == 7) {
-      output.writeMessage(
-          7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      output.writeMessage(7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -2714,25 +2408,23 @@ public int getSerializedSize() {
 
     size = 0;
     if (windowCriterionCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
     }
     if (windowPeriod_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWindowPeriod());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getWindowPeriod());
     }
     if (windowCriterionCase_ == 5) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, windowCriterion_);
     }
     if (windowCriterionCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     if (windowCriterionCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2742,7 +2434,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli)) {
       return super.equals(obj);
@@ -2751,21 +2443,26 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasWindowPeriod() != other.hasWindowPeriod()) return false;
     if (hasWindowPeriod()) {
-      if (!getWindowPeriod().equals(other.getWindowPeriod())) return false;
+      if (!getWindowPeriod()
+          .equals(other.getWindowPeriod())) return false;
     }
     if (!getWindowCriterionCase().equals(other.getWindowCriterionCase())) return false;
     switch (windowCriterionCase_) {
       case 5:
-        if (!getGoodBadMetricFilter().equals(other.getGoodBadMetricFilter())) return false;
+        if (!getGoodBadMetricFilter()
+            .equals(other.getGoodBadMetricFilter())) return false;
         break;
       case 2:
-        if (!getGoodTotalRatioThreshold().equals(other.getGoodTotalRatioThreshold())) return false;
+        if (!getGoodTotalRatioThreshold()
+            .equals(other.getGoodTotalRatioThreshold())) return false;
         break;
       case 6:
-        if (!getMetricMeanInRange().equals(other.getMetricMeanInRange())) return false;
+        if (!getMetricMeanInRange()
+            .equals(other.getMetricMeanInRange())) return false;
         break;
       case 7:
-        if (!getMetricSumInRange().equals(other.getMetricSumInRange())) return false;
+        if (!getMetricSumInRange()
+            .equals(other.getMetricSumInRange())) return false;
         break;
       case 0:
       default:
@@ -2810,104 +2507,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.WindowsBasedSli parseFrom(java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A `WindowsBasedSli` defines `good_service` as the count of time windows for
    * which the provided service was of good quality. Criteria for determining
@@ -2916,32 +2608,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli)
       com.google.monitoring.v3.WindowsBasedSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.class,
-              com.google.monitoring.v3.WindowsBasedSli.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.class, com.google.monitoring.v3.WindowsBasedSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.WindowsBasedSli.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2966,9 +2659,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto
-          .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
     }
 
     @java.lang.Override
@@ -2987,11 +2680,8 @@ public com.google.monitoring.v3.WindowsBasedSli build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.WindowsBasedSli buildPartial() {
-      com.google.monitoring.v3.WindowsBasedSli result =
-          new com.google.monitoring.v3.WindowsBasedSli(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.monitoring.v3.WindowsBasedSli result = new com.google.monitoring.v3.WindowsBasedSli(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -3000,21 +2690,25 @@ public com.google.monitoring.v3.WindowsBasedSli buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.windowPeriod_ =
-            windowPeriodBuilder_ == null ? windowPeriod_ : windowPeriodBuilder_.build();
+        result.windowPeriod_ = windowPeriodBuilder_ == null
+            ? windowPeriod_
+            : windowPeriodBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli result) {
       result.windowCriterionCase_ = windowCriterionCase_;
       result.windowCriterion_ = this.windowCriterion_;
-      if (windowCriterionCase_ == 2 && goodTotalRatioThresholdBuilder_ != null) {
+      if (windowCriterionCase_ == 2 &&
+          goodTotalRatioThresholdBuilder_ != null) {
         result.windowCriterion_ = goodTotalRatioThresholdBuilder_.build();
       }
-      if (windowCriterionCase_ == 6 && metricMeanInRangeBuilder_ != null) {
+      if (windowCriterionCase_ == 6 &&
+          metricMeanInRangeBuilder_ != null) {
         result.windowCriterion_ = metricMeanInRangeBuilder_.build();
       }
-      if (windowCriterionCase_ == 7 && metricSumInRangeBuilder_ != null) {
+      if (windowCriterionCase_ == 7 &&
+          metricSumInRangeBuilder_ != null) {
         result.windowCriterion_ = metricSumInRangeBuilder_.build();
       }
     }
@@ -3023,39 +2717,38 @@ private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.WindowsBasedSli) {
-        return mergeFrom((com.google.monitoring.v3.WindowsBasedSli) other);
+        return mergeFrom((com.google.monitoring.v3.WindowsBasedSli)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3068,32 +2761,27 @@ public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli other) {
         mergeWindowPeriod(other.getWindowPeriod());
       }
       switch (other.getWindowCriterionCase()) {
-        case GOOD_BAD_METRIC_FILTER:
-          {
-            windowCriterionCase_ = 5;
-            windowCriterion_ = other.windowCriterion_;
-            onChanged();
-            break;
-          }
-        case GOOD_TOTAL_RATIO_THRESHOLD:
-          {
-            mergeGoodTotalRatioThreshold(other.getGoodTotalRatioThreshold());
-            break;
-          }
-        case METRIC_MEAN_IN_RANGE:
-          {
-            mergeMetricMeanInRange(other.getMetricMeanInRange());
-            break;
-          }
-        case METRIC_SUM_IN_RANGE:
-          {
-            mergeMetricSumInRange(other.getMetricSumInRange());
-            break;
-          }
-        case WINDOWCRITERION_NOT_SET:
-          {
-            break;
-          }
+        case GOOD_BAD_METRIC_FILTER: {
+          windowCriterionCase_ = 5;
+          windowCriterion_ = other.windowCriterion_;
+          onChanged();
+          break;
+        }
+        case GOOD_TOTAL_RATIO_THRESHOLD: {
+          mergeGoodTotalRatioThreshold(other.getGoodTotalRatioThreshold());
+          break;
+        }
+        case METRIC_MEAN_IN_RANGE: {
+          mergeMetricMeanInRange(other.getMetricMeanInRange());
+          break;
+        }
+        case METRIC_SUM_IN_RANGE: {
+          mergeMetricSumInRange(other.getMetricSumInRange());
+          break;
+        }
+        case WINDOWCRITERION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -3121,47 +2809,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(
-                    getGoodTotalRatioThresholdFieldBuilder().getBuilder(), extensionRegistry);
-                windowCriterionCase_ = 2;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getWindowPeriodFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                windowCriterionCase_ = 5;
-                windowCriterion_ = s;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getMetricMeanInRangeFieldBuilder().getBuilder(), extensionRegistry);
-                windowCriterionCase_ = 6;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(
-                    getMetricSumInRangeFieldBuilder().getBuilder(), extensionRegistry);
-                windowCriterionCase_ = 7;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getGoodTotalRatioThresholdFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              windowCriterionCase_ = 2;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getWindowPeriodFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              windowCriterionCase_ = 5;
+              windowCriterion_ = s;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getMetricMeanInRangeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              windowCriterionCase_ = 6;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getMetricSumInRangeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              windowCriterionCase_ = 7;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3171,12 +2858,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int windowCriterionCase_ = 0;
     private java.lang.Object windowCriterion_;
-
-    public WindowCriterionCase getWindowCriterionCase() {
-      return WindowCriterionCase.forNumber(windowCriterionCase_);
+    public WindowCriterionCase
+        getWindowCriterionCase() {
+      return WindowCriterionCase.forNumber(
+          windowCriterionCase_);
     }
 
     public Builder clearWindowCriterion() {
@@ -3189,8 +2876,6 @@ public Builder clearWindowCriterion() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3198,7 +2883,6 @@ public Builder clearWindowCriterion() {
      * 
* * string good_bad_metric_filter = 5; - * * @return Whether the goodBadMetricFilter field is set. */ @java.lang.Override @@ -3206,8 +2890,6 @@ public boolean hasGoodBadMetricFilter() { return windowCriterionCase_ == 5; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3215,7 +2897,6 @@ public boolean hasGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; - * * @return The goodBadMetricFilter. */ @java.lang.Override @@ -3225,7 +2906,8 @@ public java.lang.String getGoodBadMetricFilter() { ref = windowCriterion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (windowCriterionCase_ == 5) { windowCriterion_ = s; @@ -3236,8 +2918,6 @@ public java.lang.String getGoodBadMetricFilter() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3245,18 +2925,19 @@ public java.lang.String getGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; - * * @return The bytes for goodBadMetricFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { + public com.google.protobuf.ByteString + getGoodBadMetricFilterBytes() { java.lang.Object ref = ""; if (windowCriterionCase_ == 5) { ref = windowCriterion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (windowCriterionCase_ == 5) { windowCriterion_ = b; } @@ -3266,8 +2947,6 @@ public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { } } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3275,22 +2954,18 @@ public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() {
      * 
* * string good_bad_metric_filter = 5; - * * @param value The goodBadMetricFilter to set. * @return This builder for chaining. */ - public Builder setGoodBadMetricFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGoodBadMetricFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } windowCriterionCase_ = 5; windowCriterion_ = value; onChanged(); return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3298,7 +2973,6 @@ public Builder setGoodBadMetricFilter(java.lang.String value) {
      * 
* * string good_bad_metric_filter = 5; - * * @return This builder for chaining. */ public Builder clearGoodBadMetricFilter() { @@ -3310,8 +2984,6 @@ public Builder clearGoodBadMetricFilter() { return this; } /** - * - * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -3319,14 +2991,12 @@ public Builder clearGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; - * * @param value The bytes for goodBadMetricFilter to set. * @return This builder for chaining. */ - public Builder setGoodBadMetricFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGoodBadMetricFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); windowCriterionCase_ = 5; windowCriterion_ = value; @@ -3335,21 +3005,13 @@ public Builder setGoodBadMetricFilterBytes(com.google.protobuf.ByteString value) } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> - goodTotalRatioThresholdBuilder_; + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> goodTotalRatioThresholdBuilder_; /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return Whether the goodTotalRatioThreshold field is set. */ @java.lang.Override @@ -3357,21 +3019,15 @@ public boolean hasGoodTotalRatioThreshold() { return windowCriterionCase_ == 2; } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return The goodTotalRatioThreshold. */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - getGoodTotalRatioThreshold() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold() { if (goodTotalRatioThresholdBuilder_ == null) { if (windowCriterionCase_ == 2) { return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; @@ -3385,18 +3041,13 @@ public boolean hasGoodTotalRatioThreshold() { } } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ - public Builder setGoodTotalRatioThreshold( - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { + public Builder setGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { if (goodTotalRatioThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3410,15 +3061,11 @@ public Builder setGoodTotalRatioThreshold( return this; } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ public Builder setGoodTotalRatioThreshold( com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder builderForValue) { @@ -3432,29 +3079,18 @@ public Builder setGoodTotalRatioThreshold( return this; } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ - public Builder mergeGoodTotalRatioThreshold( - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { + public Builder mergeGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { if (goodTotalRatioThresholdBuilder_ == null) { - if (windowCriterionCase_ == 2 - && windowCriterion_ - != com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold - .getDefaultInstance()) { - windowCriterion_ = - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder( - (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) - windowCriterion_) - .mergeFrom(value) - .buildPartial(); + if (windowCriterionCase_ == 2 && + windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance()) { + windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_) + .mergeFrom(value).buildPartial(); } else { windowCriterion_ = value; } @@ -3470,15 +3106,11 @@ public Builder mergeGoodTotalRatioThreshold( return this; } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ public Builder clearGoodTotalRatioThreshold() { if (goodTotalRatioThresholdBuilder_ == null) { @@ -3497,34 +3129,24 @@ public Builder clearGoodTotalRatioThreshold() { return this; } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder - getGoodTotalRatioThresholdBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder getGoodTotalRatioThresholdBuilder() { return getGoodTotalRatioThresholdFieldBuilder().getBuilder(); } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder - getGoodTotalRatioThresholdOrBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder() { if ((windowCriterionCase_ == 2) && (goodTotalRatioThresholdBuilder_ != null)) { return goodTotalRatioThresholdBuilder_.getMessageOrBuilder(); } else { @@ -3535,31 +3157,21 @@ public Builder clearGoodTotalRatioThreshold() { } } /** - * - * *
      * A window is good if its `performance` is high enough.
      * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> getGoodTotalRatioThresholdFieldBuilder() { if (goodTotalRatioThresholdBuilder_ == null) { if (!(windowCriterionCase_ == 2)) { - windowCriterion_ = - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); + windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } - goodTotalRatioThresholdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, - com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder>( + goodTotalRatioThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder>( (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_, getParentForChildren(), isClean()); @@ -3571,20 +3183,14 @@ public Builder clearGoodTotalRatioThreshold() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.MetricRange, - com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, - com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> - metricMeanInRangeBuilder_; + com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> metricMeanInRangeBuilder_; /** - * - * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return Whether the metricMeanInRange field is set. */ @java.lang.Override @@ -3592,15 +3198,12 @@ public boolean hasMetricMeanInRange() { return windowCriterionCase_ == 6; } /** - * - * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return The metricMeanInRange. */ @java.lang.Override @@ -3618,8 +3221,6 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange } } /** - * - * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3627,8 +3228,7 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public Builder setMetricMeanInRange(
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder setMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricMeanInRangeBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3642,8 +3242,6 @@ public Builder setMetricMeanInRange(
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3663,8 +3261,6 @@ public Builder setMetricMeanInRange(
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3672,17 +3268,12 @@ public Builder setMetricMeanInRange(
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public Builder mergeMetricMeanInRange(
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder mergeMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricMeanInRangeBuilder_ == null) {
-        if (windowCriterionCase_ == 6
-            && windowCriterion_
-                != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
-          windowCriterion_ =
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder(
-                      (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (windowCriterionCase_ == 6 &&
+            windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
+          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder((com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
+              .mergeFrom(value).buildPartial();
         } else {
           windowCriterion_ = value;
         }
@@ -3698,8 +3289,6 @@ public Builder mergeMetricMeanInRange(
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3724,8 +3313,6 @@ public Builder clearMetricMeanInRange() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3733,13 +3320,10 @@ public Builder clearMetricMeanInRange() {
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder
-        getMetricMeanInRangeBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricMeanInRangeBuilder() {
       return getMetricMeanInRangeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3748,8 +3332,7 @@ public Builder clearMetricMeanInRange() {
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
-        getMetricMeanInRangeOrBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder() {
       if ((windowCriterionCase_ == 6) && (metricMeanInRangeBuilder_ != null)) {
         return metricMeanInRangeBuilder_.getMessageOrBuilder();
       } else {
@@ -3760,8 +3343,6 @@ public Builder clearMetricMeanInRange() {
       }
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3770,20 +3351,14 @@ public Builder clearMetricMeanInRange() {
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> 
         getMetricMeanInRangeFieldBuilder() {
       if (metricMeanInRangeBuilder_ == null) {
         if (!(windowCriterionCase_ == 6)) {
-          windowCriterion_ =
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
+          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
         }
-        metricMeanInRangeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange,
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
-                com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
+        metricMeanInRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
                 (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_,
                 getParentForChildren(),
                 isClean());
@@ -3795,20 +3370,14 @@ public Builder clearMetricMeanInRange() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
-        metricSumInRangeBuilder_;
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> metricSumInRangeBuilder_;
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return Whether the metricSumInRange field is set. */ @java.lang.Override @@ -3816,15 +3385,12 @@ public boolean hasMetricSumInRange() { return windowCriterionCase_ == 7; } /** - * - * *
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return The metricSumInRange. */ @java.lang.Override @@ -3842,8 +3408,6 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange( } } /** - * - * *
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3865,8 +3429,6 @@ public Builder setMetricSumInRange(com.google.monitoring.v3.WindowsBasedSli.Metr
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3886,8 +3448,6 @@ public Builder setMetricSumInRange(
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3895,17 +3455,12 @@ public Builder setMetricSumInRange(
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
-    public Builder mergeMetricSumInRange(
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder mergeMetricSumInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricSumInRangeBuilder_ == null) {
-        if (windowCriterionCase_ == 7
-            && windowCriterion_
-                != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
-          windowCriterion_ =
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder(
-                      (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (windowCriterionCase_ == 7 &&
+            windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
+          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder((com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
+              .mergeFrom(value).buildPartial();
         } else {
           windowCriterion_ = value;
         }
@@ -3921,8 +3476,6 @@ public Builder mergeMetricSumInRange(
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3947,8 +3500,6 @@ public Builder clearMetricSumInRange() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3956,13 +3507,10 @@ public Builder clearMetricSumInRange() {
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder
-        getMetricSumInRangeBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricSumInRangeBuilder() {
       return getMetricSumInRangeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3971,8 +3519,7 @@ public Builder clearMetricSumInRange() {
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
-        getMetricSumInRangeOrBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder() {
       if ((windowCriterionCase_ == 7) && (metricSumInRangeBuilder_ != null)) {
         return metricSumInRangeBuilder_.getMessageOrBuilder();
       } else {
@@ -3983,8 +3530,6 @@ public Builder clearMetricSumInRange() {
       }
     }
     /**
-     *
-     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3993,20 +3538,14 @@ public Builder clearMetricSumInRange() {
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
-            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> 
         getMetricSumInRangeFieldBuilder() {
       if (metricSumInRangeBuilder_ == null) {
         if (!(windowCriterionCase_ == 7)) {
-          windowCriterion_ =
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
+          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
         }
-        metricSumInRangeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange,
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
-                com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
+        metricSumInRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
                 (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_,
                 getParentForChildren(),
                 isClean());
@@ -4019,49 +3558,36 @@ public Builder clearMetricSumInRange() {
 
     private com.google.protobuf.Duration windowPeriod_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        windowPeriodBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> windowPeriodBuilder_;
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
      * 
* * .google.protobuf.Duration window_period = 4; - * * @return Whether the windowPeriod field is set. */ public boolean hasWindowPeriod() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
      * 
* * .google.protobuf.Duration window_period = 4; - * * @return The windowPeriod. */ public com.google.protobuf.Duration getWindowPeriod() { if (windowPeriodBuilder_ == null) { - return windowPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : windowPeriod_; + return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } else { return windowPeriodBuilder_.getMessage(); } } /** - * - * *
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4083,8 +3609,6 @@ public Builder setWindowPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4092,7 +3616,8 @@ public Builder setWindowPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration window_period = 4;
      */
-    public Builder setWindowPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setWindowPeriod(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (windowPeriodBuilder_ == null) {
         windowPeriod_ = builderForValue.build();
       } else {
@@ -4103,8 +3628,6 @@ public Builder setWindowPeriod(com.google.protobuf.Duration.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4114,9 +3637,9 @@ public Builder setWindowPeriod(com.google.protobuf.Duration.Builder builderForVa
      */
     public Builder mergeWindowPeriod(com.google.protobuf.Duration value) {
       if (windowPeriodBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && windowPeriod_ != null
-            && windowPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          windowPeriod_ != null &&
+          windowPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getWindowPeriodBuilder().mergeFrom(value);
         } else {
           windowPeriod_ = value;
@@ -4129,8 +3652,6 @@ public Builder mergeWindowPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4149,8 +3670,6 @@ public Builder clearWindowPeriod() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4164,8 +3683,6 @@ public com.google.protobuf.Duration.Builder getWindowPeriodBuilder() {
       return getWindowPeriodFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4177,14 +3694,11 @@ public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
       if (windowPeriodBuilder_ != null) {
         return windowPeriodBuilder_.getMessageOrBuilder();
       } else {
-        return windowPeriod_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : windowPeriod_;
+        return windowPeriod_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_;
       }
     }
     /**
-     *
-     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -4193,24 +3707,21 @@ public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
      * .google.protobuf.Duration window_period = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getWindowPeriodFieldBuilder() {
       if (windowPeriodBuilder_ == null) {
-        windowPeriodBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getWindowPeriod(), getParentForChildren(), isClean());
+        windowPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getWindowPeriod(),
+                getParentForChildren(),
+                isClean());
         windowPeriod_ = null;
       }
       return windowPeriodBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4220,12 +3731,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli)
   private static final com.google.monitoring.v3.WindowsBasedSli DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli();
   }
@@ -4234,27 +3745,27 @@ public static com.google.monitoring.v3.WindowsBasedSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public WindowsBasedSli parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WindowsBasedSli parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4269,4 +3780,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.WindowsBasedSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
similarity index 78%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
index 6acc54c005ae..4cf8105fbd6a 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface WindowsBasedSliOrBuilder
-    extends
+public interface WindowsBasedSliOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -33,13 +15,10 @@ public interface WindowsBasedSliOrBuilder
    * 
* * string good_bad_metric_filter = 5; - * * @return Whether the goodBadMetricFilter field is set. */ boolean hasGoodBadMetricFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -47,13 +26,10 @@ public interface WindowsBasedSliOrBuilder
    * 
* * string good_bad_metric_filter = 5; - * * @return The goodBadMetricFilter. */ java.lang.String getGoodBadMetricFilter(); /** - * - * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -61,82 +37,59 @@ public interface WindowsBasedSliOrBuilder
    * 
* * string good_bad_metric_filter = 5; - * * @return The bytes for goodBadMetricFilter. */ - com.google.protobuf.ByteString getGoodBadMetricFilterBytes(); + com.google.protobuf.ByteString + getGoodBadMetricFilterBytes(); /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return Whether the goodTotalRatioThreshold field is set. */ boolean hasGoodTotalRatioThreshold(); /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; * @return The goodTotalRatioThreshold. */ com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold(); /** - * - * *
    * A window is good if its `performance` is high enough.
    * 
* - * - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; - * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; */ - com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder - getGoodTotalRatioThresholdOrBuilder(); + com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder(); /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return Whether the metricMeanInRange field is set. */ boolean hasMetricMeanInRange(); /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; - * * @return The metricMeanInRange. */ com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange(); /** - * - * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
@@ -147,34 +100,26 @@ public interface WindowsBasedSliOrBuilder
   com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder();
 
   /**
-   *
-   *
    * 
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return Whether the metricSumInRange field is set. */ boolean hasMetricSumInRange(); /** - * - * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; - * * @return The metricSumInRange. */ com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange(); /** - * - * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
@@ -185,34 +130,26 @@ public interface WindowsBasedSliOrBuilder
   com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; - * * @return Whether the windowPeriod field is set. */ boolean hasWindowPeriod(); /** - * - * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; - * * @return The windowPeriod. */ com.google.protobuf.Duration getWindowPeriod(); /** - * - * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
similarity index 70%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
index f0a54b9cc314..b746a5e47d52 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -36,6 +36,7 @@ option ruby_package = "Google::Cloud::Monitoring::V3";
 // considered to be "unhealthy" and the ways to notify people or services about
 // this state. For an overview of alert policies, see
 // [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/).
+//
 message AlertPolicy {
   option (google.api.resource) = {
     type: "monitoring.googleapis.com/AlertPolicy"
@@ -48,7 +49,7 @@ message AlertPolicy {
   // A content string and a MIME type that describes the content string's
   // format.
   message Documentation {
-    // The text of the documentation, interpreted according to `mime_type`.
+    // The body of the documentation, interpreted according to `mime_type`.
     // The content may not exceed 8,192 Unicode characters and may not exceed
     // more than 10,240 bytes when encoded in UTF-8 format, whichever is
     // smaller. This text can be [templatized by using
@@ -59,6 +60,21 @@ message AlertPolicy {
     // `"text/markdown"` is supported. See
     // [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
     string mime_type = 2;
+
+    // Optional. The subject line of the notification. The subject line may not
+    // exceed 10,240 bytes. In notifications generated by this policy, the
+    // contents of the subject line after variable expansion will be truncated
+    // to 255 bytes or shorter at the latest UTF-8 character boundary. The
+    // 255-byte limit is recommended by [this
+    // thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
+    // It is both the limit imposed by some third-party ticketing products and
+    // it is common to define textual fields in databases as VARCHAR(255).
+    //
+    // The contents of the subject line can be [templatized by using
+    // variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+    // If this field is missing or empty, a default subject line will be
+    // generated.
+    string subject = 3 [(google.api.field_behavior) = OPTIONAL];
   }
 
   // A condition is a true/false test that determines when an alerting policy
@@ -111,7 +127,20 @@ message AlertPolicy {
     // A condition type that compares a collection of time series
     // against a threshold.
     message MetricThreshold {
-      // Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+      // Options used when forecasting the time series and testing
+      // the predicted value against the threshold.
+      message ForecastOptions {
+        // Required. The length of time into the future to forecast whether a
+        // time series will violate the threshold. If the predicted value is
+        // found to violate the threshold, and the violation is observed in all
+        // forecasts made for the configured `duration`, then the time series is
+        // considered to be failing.
+        google.protobuf.Duration forecast_horizon = 1
+            [(google.api.field_behavior) = REQUIRED];
+      }
+
+      // Required. A
+      // [filter](https://cloud.google.com/monitoring/api/v3/filters) that
       // identifies which time series should be compared with the threshold.
       //
       // The filter is similar to the one that is specified in the
@@ -159,6 +188,13 @@ message AlertPolicy {
       // and produce time series that have the same periodicity and labels.
       repeated Aggregation denominator_aggregations = 10;
 
+      // When this field is present, the `MetricThreshold` condition forecasts
+      // whether the time series is predicted to violate the threshold within
+      // the `forecast_horizon`. When this field is not set, the
+      // `MetricThreshold` tests the current value of the timeseries against the
+      // threshold.
+      ForecastOptions forecast_options = 12;
+
       // The comparison to apply between the time series (indicated by `filter`
       // and `aggregation`) and the threshold (indicated by `threshold_value`).
       // The comparison is applied on each time series, with the time series
@@ -201,7 +237,8 @@ message AlertPolicy {
     // when a time series for the specified metric of a monitored
     // resource does not include any data in the specified `duration`.
     message MetricAbsence {
-      // Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
+      // Required. A
+      // [filter](https://cloud.google.com/monitoring/api/v3/filters) that
       // identifies which time series should be compared with the threshold.
       //
       // The filter is similar to the one that is specified in the
@@ -298,6 +335,100 @@ message AlertPolicy {
       EvaluationMissingData evaluation_missing_data = 4;
     }
 
+    // A condition type that allows alert policies to be defined using
+    // [Prometheus Query Language
+    // (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
+    //
+    // The PrometheusQueryLanguageCondition message contains information
+    // from a Prometheus alerting rule and its associated rule group.
+    //
+    // A Prometheus alerting rule is described
+    // [here](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/).
+    // The semantics of a Prometheus alerting rule is described
+    // [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule).
+    //
+    // A Prometheus rule group is described
+    // [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/).
+    // The semantics of a Prometheus rule group is described
+    // [here](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule_group).
+    //
+    // Because Cloud Alerting has no representation of a Prometheus rule
+    // group resource, we must embed the information of the parent rule
+    // group inside each of the conditions that refer to it. We must also
+    // update the contents of all Prometheus alerts in case the information
+    // of their rule group changes.
+    //
+    // The PrometheusQueryLanguageCondition protocol buffer combines the
+    // information of the corresponding rule group and alerting rule.
+    // The structure of the PrometheusQueryLanguageCondition protocol buffer
+    // does NOT mimic the structure of the Prometheus rule group and alerting
+    // rule YAML declarations. The PrometheusQueryLanguageCondition protocol
+    // buffer may change in the future to support future rule group and/or
+    // alerting rule features. There are no new such features at the present
+    // time (2023-06-26).
+    message PrometheusQueryLanguageCondition {
+      // Required. The PromQL expression to evaluate. Every evaluation cycle
+      // this expression is evaluated at the current time, and all resultant
+      // time series become pending/firing alerts. This field must not be empty.
+      string query = 1 [(google.api.field_behavior) = REQUIRED];
+
+      // Optional. Alerts are considered firing once their PromQL expression was
+      // evaluated to be "true" for this long.
+      // Alerts whose PromQL expression was not evaluated to be "true" for
+      // long enough are considered pending.
+      // Must be a non-negative duration or missing.
+      // This field is optional. Its default value is zero.
+      google.protobuf.Duration duration = 2
+          [(google.api.field_behavior) = OPTIONAL];
+
+      // Optional. How often this rule should be evaluated.
+      // Must be a positive multiple of 30 seconds or missing.
+      // This field is optional. Its default value is 30 seconds.
+      // If this PrometheusQueryLanguageCondition was generated from a
+      // Prometheus alerting rule, then this value should be taken from the
+      // enclosing rule group.
+      google.protobuf.Duration evaluation_interval = 3
+          [(google.api.field_behavior) = OPTIONAL];
+
+      // Optional. Labels to add to or overwrite in the PromQL query result.
+      // Label names [must be
+      // valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+      // Label values can be [templatized by using
+      // variables](https://cloud.google.com/monitoring/alerts/doc-variables).
+      // The only available variable names are the names of the labels in the
+      // PromQL result, including "__name__" and "value". "labels" may be empty.
+      map labels = 4 [(google.api.field_behavior) = OPTIONAL];
+
+      // Optional. The rule group name of this alert in the corresponding
+      // Prometheus configuration file.
+      //
+      // Some external tools may require this field to be populated correctly
+      // in order to refer to the original Prometheus configuration file.
+      // The rule group name and the alert name are necessary to update the
+      // relevant AlertPolicies in case the definition of the rule group changes
+      // in the future.
+      //
+      // This field is optional. If this field is not empty, then it must
+      // contain a valid UTF-8 string.
+      // This field may not exceed 2048 Unicode characters in length.
+      string rule_group = 5 [(google.api.field_behavior) = OPTIONAL];
+
+      // Optional. The alerting rule name of this alert in the corresponding
+      // Prometheus configuration file.
+      //
+      // Some external tools may require this field to be populated correctly
+      // in order to refer to the original Prometheus configuration file.
+      // The rule group name and the alert name are necessary to update the
+      // relevant AlertPolicies in case the definition of the rule group changes
+      // in the future.
+      //
+      // This field is optional. If this field is not empty, then it must be a
+      // [valid Prometheus label
+      // name](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
+      // This field may not exceed 2048 Unicode characters in length.
+      string alert_rule = 6 [(google.api.field_behavior) = OPTIONAL];
+    }
+
     // Required if the condition exists. The unique resource name for this
     // condition. Its format is:
     //
@@ -346,6 +477,9 @@ message AlertPolicy {
       // A condition that uses the Monitoring Query Language to define
       // alerts.
       MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
+
+      // A condition that uses the Prometheus query language to define alerts.
+      PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
     }
   }
 
@@ -380,6 +514,23 @@ message AlertPolicy {
       google.protobuf.Duration period = 1;
     }
 
+    // Control over how the notification channels in `notification_channels`
+    // are notified when this alert fires, on a per-channel basis.
+    message NotificationChannelStrategy {
+      // The full REST resource name for the notification channels that these
+      // settings apply to. Each of these correspond to the name field in one
+      // of the NotificationChannel objects referenced in the
+      // notification_channels field of this AlertPolicy.
+      // The format is:
+      //
+      //     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+      repeated string notification_channel_names = 1;
+
+      // The frequency at which to send reminder notifications for open
+      // incidents.
+      google.protobuf.Duration renotify_interval = 2;
+    }
+
     // Required for alert policies with a `LogMatch` condition.
     //
     // This limit is not implemented for alert policies that are not log-based.
@@ -388,6 +539,9 @@ message AlertPolicy {
     // If an alert policy that was active has no data for this long, any open
     // incidents will close
     google.protobuf.Duration auto_close = 3;
+
+    // Control how notifications will be sent out, on a per-channel basis.
+    repeated NotificationChannelStrategy notification_channel_strategy = 4;
   }
 
   // Required if the policy exists. The resource name for this policy. The
@@ -406,6 +560,12 @@ message AlertPolicy {
   // notifications, and incidents. To avoid confusion, don't use the same
   // display name for multiple policies in the same project. The name is
   // limited to 512 Unicode characters.
+  //
+  // The convention for the display_name of a PrometheusQueryLanguageCondition
+  // is "{rule group name}/{alert name}", where the {rule group name} and
+  // {alert name} should be taken from the corresponding Prometheus
+  // configuration file. This convention is not enforced.
+  // In any case the display_name is not a unique key of the AlertPolicy.
   string display_name = 2;
 
   // Documentation that is included with notifications and incidents related to
@@ -422,6 +582,13 @@ message AlertPolicy {
   // 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
   // values can contain only lowercase letters, numerals, underscores, and
   // dashes. Keys must begin with a letter.
+  //
+  // Note that Prometheus {alert name} is a
+  // [valid Prometheus label
+  // names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels),
+  // whereas Prometheus {rule group} is an unrestricted UTF-8 string.
+  // This means that they cannot be stored as-is in user labels, because
+  // they may contain characters that are not allowed in user-label values.
   map user_labels = 16;
 
   // A list of conditions for the policy. The conditions are combined by AND or
@@ -430,6 +597,8 @@ message AlertPolicy {
   // conditions.
   // If `condition_time_series_query_language` is present, it must be the only
   // `condition`.
+  // If `condition_monitoring_query_language` is present, it must be the only
+  // `condition`.
   repeated Condition conditions = 12;
 
   // How to combine the results of multiple conditions to determine if an
@@ -445,8 +614,9 @@ message AlertPolicy {
   // a field projection has been specified that strips it out.
   google.protobuf.BoolValue enabled = 17;
 
-  // Read-only description of how the alert policy is invalid. OK if the alert
-  // policy is valid. If not OK, the alert policy will not generate incidents.
+  // Read-only description of how the alert policy is invalid. This field is
+  // only set when the alert policy is invalid. An invalid alert policy will not
+  // generate incidents.
   google.rpc.Status validity = 18;
 
   // Identifies the notification channels to which notifications should be sent
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
similarity index 87%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
index 5d8d81854cf3..d93ad0bada41 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -49,7 +49,8 @@ service AlertPolicyService {
       "https://www.googleapis.com/auth/monitoring.read";
 
   // Lists the existing alerting policies for the workspace.
-  rpc ListAlertPolicies(ListAlertPoliciesRequest) returns (ListAlertPoliciesResponse) {
+  rpc ListAlertPolicies(ListAlertPoliciesRequest)
+      returns (ListAlertPoliciesResponse) {
     option (google.api.http) = {
       get: "/v3/{name=projects/*}/alertPolicies"
     };
@@ -65,6 +66,10 @@ service AlertPolicyService {
   }
 
   // Creates a new alerting policy.
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // alerting policies in a single project. This includes calls to
+  // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
   rpc CreateAlertPolicy(CreateAlertPolicyRequest) returns (AlertPolicy) {
     option (google.api.http) = {
       post: "/v3/{name=projects/*}/alertPolicies"
@@ -74,7 +79,12 @@ service AlertPolicyService {
   }
 
   // Deletes an alerting policy.
-  rpc DeleteAlertPolicy(DeleteAlertPolicyRequest) returns (google.protobuf.Empty) {
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // alerting policies in a single project. This includes calls to
+  // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
+  rpc DeleteAlertPolicy(DeleteAlertPolicyRequest)
+      returns (google.protobuf.Empty) {
     option (google.api.http) = {
       delete: "/v3/{name=projects/*/alertPolicies/*}"
     };
@@ -85,6 +95,10 @@ service AlertPolicyService {
   // a new one or replace only certain fields in the current alerting policy by
   // specifying the fields to be updated via `updateMask`. Returns the
   // updated alerting policy.
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // alerting policies in a single project. This includes calls to
+  // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
   rpc UpdateAlertPolicy(UpdateAlertPolicyRequest) returns (AlertPolicy) {
     option (google.api.http) = {
       patch: "/v3/{alert_policy.name=projects/*/alertPolicies/*}"
@@ -96,8 +110,9 @@ service AlertPolicyService {
 
 // The protocol for the `CreateAlertPolicy` request.
 message CreateAlertPolicyRequest {
-  // Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
-  // which to create the alerting policy. The format is:
+  // Required. The
+  // [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+  // to create the alerting policy. The format is:
   //
   //     projects/[PROJECT_ID_OR_NUMBER]
   //
@@ -115,9 +130,9 @@ message CreateAlertPolicyRequest {
     }
   ];
 
-  // Required. The requested alerting policy. You should omit the `name` field in this
-  // policy. The name will be returned in the new policy, including
-  // a new `[ALERT_POLICY_ID]` value.
+  // Required. The requested alerting policy. You should omit the `name` field
+  // in this policy. The name will be returned in the new policy, including a
+  // new `[ALERT_POLICY_ID]` value.
   AlertPolicy alert_policy = 2 [(google.api.field_behavior) = REQUIRED];
 }
 
@@ -136,8 +151,9 @@ message GetAlertPolicyRequest {
 
 // The protocol for the `ListAlertPolicies` request.
 message ListAlertPoliciesRequest {
-  // Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
-  // whose alert policies are to be listed. The format is:
+  // Required. The
+  // [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
+  // alert policies are to be listed. The format is:
   //
   //     projects/[PROJECT_ID_OR_NUMBER]
   //
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
similarity index 96%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
index cbd287527efe..67df55bada2a 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -118,7 +118,9 @@ message NotificationChannel {
   }
 
   // The type of the notification channel. This field matches the
-  // value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field.
+  // value of the
+  // [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type]
+  // field.
   string type = 1;
 
   // The full REST resource name for this channel. The format is:
@@ -141,8 +143,8 @@ message NotificationChannel {
 
   // Configuration fields that define the channel and its behavior. The
   // permissible and required labels are specified in the
-  // [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels] of the
-  // `NotificationChannelDescriptor` corresponding to the `type` field.
+  // [NotificationChannelDescriptor.labels][google.monitoring.v3.NotificationChannelDescriptor.labels]
+  // of the `NotificationChannelDescriptor` corresponding to the `type` field.
   map labels = 5;
 
   // User-supplied key/value data that does not need to conform to
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
similarity index 87%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
index a27404321dfd..8b14dcf41bb6 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -44,7 +44,9 @@ service NotificationChannelService {
 
   // Lists the descriptors for supported channel types. The use of descriptors
   // makes it possible for new channel types to be dynamically added.
-  rpc ListNotificationChannelDescriptors(ListNotificationChannelDescriptorsRequest) returns (ListNotificationChannelDescriptorsResponse) {
+  rpc ListNotificationChannelDescriptors(
+      ListNotificationChannelDescriptorsRequest)
+      returns (ListNotificationChannelDescriptorsResponse) {
     option (google.api.http) = {
       get: "/v3/{name=projects/*}/notificationChannelDescriptors"
     };
@@ -53,7 +55,8 @@ service NotificationChannelService {
 
   // Gets a single channel descriptor. The descriptor indicates which fields
   // are expected / permitted for a notification channel of the given type.
-  rpc GetNotificationChannelDescriptor(GetNotificationChannelDescriptorRequest) returns (NotificationChannelDescriptor) {
+  rpc GetNotificationChannelDescriptor(GetNotificationChannelDescriptorRequest)
+      returns (NotificationChannelDescriptor) {
     option (google.api.http) = {
       get: "/v3/{name=projects/*/notificationChannelDescriptors/*}"
     };
@@ -61,7 +64,10 @@ service NotificationChannelService {
   }
 
   // Lists the notification channels that have been created for the project.
-  rpc ListNotificationChannels(ListNotificationChannelsRequest) returns (ListNotificationChannelsResponse) {
+  // To list the types of notification channels that are supported, use
+  // the `ListNotificationChannelDescriptors` method.
+  rpc ListNotificationChannels(ListNotificationChannelsRequest)
+      returns (ListNotificationChannelsResponse) {
     option (google.api.http) = {
       get: "/v3/{name=projects/*}/notificationChannels"
     };
@@ -73,7 +79,8 @@ service NotificationChannelService {
   // response may truncate or omit passwords, API keys, or other private key
   // matter and thus the response may not be 100% identical to the information
   // that was supplied in the call to the create method.
-  rpc GetNotificationChannel(GetNotificationChannelRequest) returns (NotificationChannel) {
+  rpc GetNotificationChannel(GetNotificationChannelRequest)
+      returns (NotificationChannel) {
     option (google.api.http) = {
       get: "/v3/{name=projects/*/notificationChannels/*}"
     };
@@ -82,7 +89,13 @@ service NotificationChannelService {
 
   // Creates a new notification channel, representing a single notification
   // endpoint such as an email address, SMS number, or PagerDuty service.
-  rpc CreateNotificationChannel(CreateNotificationChannelRequest) returns (NotificationChannel) {
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // notification channels in a single project. This includes calls to
+  // CreateNotificationChannel, DeleteNotificationChannel and
+  // UpdateNotificationChannel.
+  rpc CreateNotificationChannel(CreateNotificationChannelRequest)
+      returns (NotificationChannel) {
     option (google.api.http) = {
       post: "/v3/{name=projects/*}/notificationChannels"
       body: "notification_channel"
@@ -92,7 +105,13 @@ service NotificationChannelService {
 
   // Updates a notification channel. Fields not specified in the field mask
   // remain unchanged.
-  rpc UpdateNotificationChannel(UpdateNotificationChannelRequest) returns (NotificationChannel) {
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // notification channels in a single project. This includes calls to
+  // CreateNotificationChannel, DeleteNotificationChannel and
+  // UpdateNotificationChannel.
+  rpc UpdateNotificationChannel(UpdateNotificationChannelRequest)
+      returns (NotificationChannel) {
     option (google.api.http) = {
       patch: "/v3/{notification_channel.name=projects/*/notificationChannels/*}"
       body: "notification_channel"
@@ -101,7 +120,13 @@ service NotificationChannelService {
   }
 
   // Deletes a notification channel.
-  rpc DeleteNotificationChannel(DeleteNotificationChannelRequest) returns (google.protobuf.Empty) {
+  //
+  // Design your application to single-thread API calls that modify the state of
+  // notification channels in a single project. This includes calls to
+  // CreateNotificationChannel, DeleteNotificationChannel and
+  // UpdateNotificationChannel.
+  rpc DeleteNotificationChannel(DeleteNotificationChannelRequest)
+      returns (google.protobuf.Empty) {
     option (google.api.http) = {
       delete: "/v3/{name=projects/*/notificationChannels/*}"
     };
@@ -110,7 +135,9 @@ service NotificationChannelService {
 
   // Causes a verification code to be delivered to the channel. The code
   // can then be supplied in `VerifyNotificationChannel` to verify the channel.
-  rpc SendNotificationChannelVerificationCode(SendNotificationChannelVerificationCodeRequest) returns (google.protobuf.Empty) {
+  rpc SendNotificationChannelVerificationCode(
+      SendNotificationChannelVerificationCodeRequest)
+      returns (google.protobuf.Empty) {
     option (google.api.http) = {
       post: "/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode"
       body: "*"
@@ -139,7 +166,9 @@ service NotificationChannelService {
   // have a shorter expiration (e.g. codes such as "G-123456") whereas
   // GetVerificationCode() will typically return a much longer, websafe base
   // 64 encoded string that has a longer expiration time.
-  rpc GetNotificationChannelVerificationCode(GetNotificationChannelVerificationCodeRequest) returns (GetNotificationChannelVerificationCodeResponse) {
+  rpc GetNotificationChannelVerificationCode(
+      GetNotificationChannelVerificationCodeRequest)
+      returns (GetNotificationChannelVerificationCodeResponse) {
     option (google.api.http) = {
       post: "/v3/{name=projects/*/notificationChannels/*}:getVerificationCode"
       body: "*"
@@ -150,7 +179,8 @@ service NotificationChannelService {
   // Verifies a `NotificationChannel` by proving receipt of the code
   // delivered to the channel as a result of calling
   // `SendNotificationChannelVerificationCode`.
-  rpc VerifyNotificationChannel(VerifyNotificationChannelRequest) returns (NotificationChannel) {
+  rpc VerifyNotificationChannel(VerifyNotificationChannelRequest)
+      returns (NotificationChannel) {
     option (google.api.http) = {
       post: "/v3/{name=projects/*/notificationChannels/*}:verify"
       body: "*"
@@ -218,8 +248,9 @@ message GetNotificationChannelDescriptorRequest {
 
 // The `CreateNotificationChannel` request.
 message CreateNotificationChannelRequest {
-  // Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-  // which to execute the request. The format is:
+  // Required. The
+  // [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+  // to execute the request. The format is:
   //
   //     projects/[PROJECT_ID_OR_NUMBER]
   //
@@ -235,13 +266,15 @@ message CreateNotificationChannelRequest {
   ];
 
   // Required. The definition of the `NotificationChannel` to create.
-  NotificationChannel notification_channel = 2 [(google.api.field_behavior) = REQUIRED];
+  NotificationChannel notification_channel = 2
+      [(google.api.field_behavior) = REQUIRED];
 }
 
 // The `ListNotificationChannels` request.
 message ListNotificationChannelsRequest {
-  // Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
-  // which to execute the request. The format is:
+  // Required. The
+  // [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
+  // to execute the request. The format is:
   //
   //     projects/[PROJECT_ID_OR_NUMBER]
   //
@@ -322,7 +355,8 @@ message UpdateNotificationChannelRequest {
   // notification channel. The description must provide a definition for
   // fields to be updated; the names of these fields should also be
   // included in the `update_mask`.
-  NotificationChannel notification_channel = 3 [(google.api.field_behavior) = REQUIRED];
+  NotificationChannel notification_channel = 3
+      [(google.api.field_behavior) = REQUIRED];
 }
 
 // The `DeleteNotificationChannel` request.
@@ -357,9 +391,9 @@ message SendNotificationChannelVerificationCodeRequest {
 
 // The `GetNotificationChannelVerificationCode` request.
 message GetNotificationChannelVerificationCodeRequest {
-  // Required. The notification channel for which a verification code is to be generated
-  // and retrieved. This must name a channel that is already verified; if
-  // the specified channel is not verified, the request will fail.
+  // Required. The notification channel for which a verification code is to be
+  // generated and retrieved. This must name a channel that is already verified;
+  // if the specified channel is not verified, the request will fail.
   string name = 1 [
     (google.api.field_behavior) = REQUIRED,
     (google.api.resource_reference) = {
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
similarity index 97%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
index cbaa49bb4f62..f20e1a0bd84f 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ message Snooze {
     //
     //     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
     //
-    // There is a limit of 10 policies per snooze. This limit is checked during
+    // There is a limit of 16 policies per snooze. This limit is checked during
     // snooze creation.
     repeated string policies = 1 [(google.api.resource_reference) = {
       type: "monitoring.googleapis.com/AlertPolicy"
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
similarity index 99%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
index 622f7cd1491b..286551a5a611 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
+++ b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
similarity index 100%
rename from java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
rename to owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java

From 57628f07ea7d28bc5e87145638fe68510512d043 Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Mon, 11 Sep 2023 19:02:25 +0000
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 .../v3/AlertPolicyServiceClient.java          |    10 +-
 .../v3/AlertPolicyServiceSettings.java        |     1 -
 .../monitoring/v3/GroupServiceClient.java     |    10 +-
 .../monitoring/v3/GroupServiceSettings.java   |     1 -
 .../monitoring/v3/MetricServiceClient.java    |    18 +-
 .../monitoring/v3/MetricServiceSettings.java  |     1 -
 .../v3/NotificationChannelServiceClient.java  |    14 +-
 .../NotificationChannelServiceSettings.java   |     1 -
 .../monitoring/v3/QueryServiceClient.java     |     0
 .../monitoring/v3/QueryServiceSettings.java   |     1 -
 .../v3/ServiceMonitoringServiceClient.java    |    12 +-
 .../v3/ServiceMonitoringServiceSettings.java  |     1 -
 .../monitoring/v3/SnoozeServiceClient.java    |     0
 .../monitoring/v3/SnoozeServiceSettings.java  |     1 -
 .../v3/UptimeCheckServiceClient.java          |    10 +-
 .../v3/UptimeCheckServiceSettings.java        |     1 -
 .../cloud/monitoring/v3/gapic_metadata.json   |     0
 .../cloud/monitoring/v3/package-info.java     |     0
 .../v3/stub/AlertPolicyServiceStub.java       |     0
 .../stub/AlertPolicyServiceStubSettings.java  |     0
 .../monitoring/v3/stub/GroupServiceStub.java  |     0
 .../v3/stub/GroupServiceStubSettings.java     |     0
 ...GrpcAlertPolicyServiceCallableFactory.java |     0
 .../v3/stub/GrpcAlertPolicyServiceStub.java   |     1 -
 .../stub/GrpcGroupServiceCallableFactory.java |     0
 .../v3/stub/GrpcGroupServiceStub.java         |     1 -
 .../GrpcMetricServiceCallableFactory.java     |     0
 .../v3/stub/GrpcMetricServiceStub.java        |     1 -
 ...ficationChannelServiceCallableFactory.java |     0
 .../GrpcNotificationChannelServiceStub.java   |     1 -
 .../stub/GrpcQueryServiceCallableFactory.java |     0
 .../v3/stub/GrpcQueryServiceStub.java         |     1 -
 ...rviceMonitoringServiceCallableFactory.java |     0
 .../GrpcServiceMonitoringServiceStub.java     |     1 -
 .../GrpcSnoozeServiceCallableFactory.java     |     0
 .../v3/stub/GrpcSnoozeServiceStub.java        |     1 -
 ...GrpcUptimeCheckServiceCallableFactory.java |     0
 .../v3/stub/GrpcUptimeCheckServiceStub.java   |     1 -
 .../monitoring/v3/stub/MetricServiceStub.java |     0
 .../v3/stub/MetricServiceStubSettings.java    |     0
 .../stub/NotificationChannelServiceStub.java  |     0
 ...otificationChannelServiceStubSettings.java |     0
 .../monitoring/v3/stub/QueryServiceStub.java  |     0
 .../v3/stub/QueryServiceStubSettings.java     |     0
 .../v3/stub/ServiceMonitoringServiceStub.java |     0
 .../ServiceMonitoringServiceStubSettings.java |     0
 .../monitoring/v3/stub/SnoozeServiceStub.java |     0
 .../v3/stub/SnoozeServiceStubSettings.java    |     0
 .../v3/stub/UptimeCheckServiceStub.java       |     0
 .../stub/UptimeCheckServiceStubSettings.java  |     0
 .../reflect-config.json                       |     0
 .../v3/AlertPolicyServiceClientTest.java      |     0
 .../monitoring/v3/GroupServiceClientTest.java |     0
 .../v3/MetricServiceClientTest.java           |     0
 .../monitoring/v3/MockAlertPolicyService.java |     0
 .../v3/MockAlertPolicyServiceImpl.java        |     0
 .../cloud/monitoring/v3/MockGroupService.java |     0
 .../monitoring/v3/MockGroupServiceImpl.java   |     0
 .../monitoring/v3/MockMetricService.java      |     0
 .../monitoring/v3/MockMetricServiceImpl.java  |     0
 .../v3/MockNotificationChannelService.java    |     0
 .../MockNotificationChannelServiceImpl.java   |     0
 .../cloud/monitoring/v3/MockQueryService.java |     0
 .../monitoring/v3/MockQueryServiceImpl.java   |     0
 .../v3/MockServiceMonitoringService.java      |     0
 .../v3/MockServiceMonitoringServiceImpl.java  |     0
 .../monitoring/v3/MockSnoozeService.java      |     0
 .../monitoring/v3/MockSnoozeServiceImpl.java  |     0
 .../monitoring/v3/MockUptimeCheckService.java |     0
 .../v3/MockUptimeCheckServiceImpl.java        |     0
 .../NotificationChannelServiceClientTest.java |     0
 .../monitoring/v3/QueryServiceClientTest.java |     0
 .../ServiceMonitoringServiceClientTest.java   |     0
 .../v3/SnoozeServiceClientTest.java           |     0
 .../v3/UptimeCheckServiceClientTest.java      |     0
 .../monitoring/v3/AlertPolicyServiceGrpc.java |   576 +-
 .../monitoring/v3/GroupServiceGrpc.java       |   634 +-
 .../monitoring/v3/MetricServiceGrpc.java      |  1402 ++
 .../v3/NotificationChannelServiceGrpc.java    |  1730 +++
 .../monitoring/v3/QueryServiceGrpc.java       |   218 +-
 .../v3/ServiceMonitoringServiceGrpc.java      |  1469 ++
 .../monitoring/v3/SnoozeServiceGrpc.java      |   465 +-
 .../monitoring/v3/UptimeCheckServiceGrpc.java |  1054 ++
 .../com/google/monitoring/v3/Aggregation.java |   862 +-
 .../monitoring/v3/AggregationOrBuilder.java   |    56 +-
 .../com/google/monitoring/v3/AlertPolicy.java | 11069 ++++++++++------
 .../google/monitoring/v3/AlertPolicyName.java |     0
 .../monitoring/v3/AlertPolicyOrBuilder.java   |   156 +-
 .../com/google/monitoring/v3/AlertProto.java  |   431 +
 .../monitoring/v3/AlertServiceProto.java      |   202 +
 .../com/google/monitoring/v3/BasicSli.java    |  1355 +-
 .../monitoring/v3/BasicSliOrBuilder.java      |    88 +-
 .../com/google/monitoring/v3/CommonProto.java |   137 +
 .../google/monitoring/v3/ComparisonType.java  |   110 +-
 .../v3/CreateAlertPolicyRequest.java          |   493 +-
 .../v3/CreateAlertPolicyRequestOrBuilder.java |    55 +-
 .../monitoring/v3/CreateGroupRequest.java     |   457 +-
 .../v3/CreateGroupRequestOrBuilder.java       |    46 +-
 .../v3/CreateMetricDescriptorRequest.java     |   497 +-
 ...reateMetricDescriptorRequestOrBuilder.java |    55 +-
 .../v3/CreateNotificationChannelRequest.java  |   500 +-
 ...teNotificationChannelRequestOrBuilder.java |    55 +-
 .../CreateServiceLevelObjectiveRequest.java   |   585 +-
 ...ServiceLevelObjectiveRequestOrBuilder.java |    64 +-
 .../monitoring/v3/CreateServiceRequest.java   |   531 +-
 .../v3/CreateServiceRequestOrBuilder.java     |    61 +-
 .../monitoring/v3/CreateSnoozeRequest.java    |   450 +-
 .../v3/CreateSnoozeRequestOrBuilder.java      |    43 +-
 .../monitoring/v3/CreateTimeSeriesError.java  |   512 +-
 .../v3/CreateTimeSeriesErrorOrBuilder.java    |    68 +-
 .../v3/CreateTimeSeriesRequest.java           |   599 +-
 .../v3/CreateTimeSeriesRequestOrBuilder.java  |    73 +-
 .../v3/CreateTimeSeriesSummary.java           |   814 +-
 .../v3/CreateTimeSeriesSummaryOrBuilder.java  |    42 +-
 .../v3/CreateUptimeCheckConfigRequest.java    |   500 +-
 ...eateUptimeCheckConfigRequestOrBuilder.java |   103 +
 .../v3/DeleteAlertPolicyRequest.java          |   347 +-
 .../v3/DeleteAlertPolicyRequestOrBuilder.java |    62 +
 .../monitoring/v3/DeleteGroupRequest.java     |   374 +-
 .../v3/DeleteGroupRequestOrBuilder.java       |    38 +-
 .../v3/DeleteMetricDescriptorRequest.java     |   350 +-
 ...eleteMetricDescriptorRequestOrBuilder.java |    64 +
 .../v3/DeleteNotificationChannelRequest.java  |   387 +-
 ...teNotificationChannelRequestOrBuilder.java |    38 +-
 .../DeleteServiceLevelObjectiveRequest.java   |   353 +-
 ...ServiceLevelObjectiveRequestOrBuilder.java |    58 +
 .../monitoring/v3/DeleteServiceRequest.java   |   340 +-
 .../v3/DeleteServiceRequestOrBuilder.java     |    58 +
 .../v3/DeleteUptimeCheckConfigRequest.java    |   353 +-
 ...leteUptimeCheckConfigRequestOrBuilder.java |    58 +
 .../google/monitoring/v3/DistributionCut.java |   392 +-
 .../v3/DistributionCutOrBuilder.java          |    35 +-
 .../google/monitoring/v3/DroppedLabels.java   |   482 +-
 .../monitoring/v3/DroppedLabelsOrBuilder.java |    48 +-
 .../monitoring/v3/DroppedLabelsProto.java     |    81 +
 .../com/google/monitoring/v3/FolderName.java  |     0
 .../monitoring/v3/GetAlertPolicyRequest.java  |   340 +-
 .../v3/GetAlertPolicyRequestOrBuilder.java    |    58 +
 .../google/monitoring/v3/GetGroupRequest.java |   337 +-
 .../v3/GetGroupRequestOrBuilder.java          |    58 +
 .../v3/GetMetricDescriptorRequest.java        |   347 +-
 .../GetMetricDescriptorRequestOrBuilder.java  |    35 +-
 ...GetMonitoredResourceDescriptorRequest.java |   374 +-
 ...redResourceDescriptorRequestOrBuilder.java |    64 +
 ...tNotificationChannelDescriptorRequest.java |   377 +-
 ...tionChannelDescriptorRequestOrBuilder.java |    58 +
 .../v3/GetNotificationChannelRequest.java     |   350 +-
 ...etNotificationChannelRequestOrBuilder.java |    58 +
 ...icationChannelVerificationCodeRequest.java |   484 +-
 ...annelVerificationCodeRequestOrBuilder.java |    43 +-
 ...cationChannelVerificationCodeResponse.java |   466 +-
 ...nnelVerificationCodeResponseOrBuilder.java |    35 +-
 .../v3/GetServiceLevelObjectiveRequest.java   |   411 +-
 ...ServiceLevelObjectiveRequestOrBuilder.java |    41 +-
 .../monitoring/v3/GetServiceRequest.java      |   340 +-
 .../v3/GetServiceRequestOrBuilder.java        |    58 +
 .../monitoring/v3/GetSnoozeRequest.java       |   340 +-
 .../v3/GetSnoozeRequestOrBuilder.java         |    58 +
 .../v3/GetUptimeCheckConfigRequest.java       |   347 +-
 .../GetUptimeCheckConfigRequestOrBuilder.java |    58 +
 .../java/com/google/monitoring/v3/Group.java  |   549 +-
 .../com/google/monitoring/v3/GroupName.java   |     0
 .../google/monitoring/v3/GroupOrBuilder.java  |    57 +-
 .../com/google/monitoring/v3/GroupProto.java  |    81 +
 .../monitoring/v3/GroupResourceType.java      |    80 +-
 .../monitoring/v3/GroupServiceProto.java      |   245 +
 .../google/monitoring/v3/InternalChecker.java |   712 +-
 .../v3/InternalCheckerOrBuilder.java          |    70 +-
 .../com/google/monitoring/v3/LabelValue.java  |   476 +-
 .../monitoring/v3/LabelValueOrBuilder.java    |    42 +-
 .../v3/ListAlertPoliciesRequest.java          |   596 +-
 .../v3/ListAlertPoliciesRequestOrBuilder.java |    65 +-
 .../v3/ListAlertPoliciesResponse.java         |   511 +-
 .../ListAlertPoliciesResponseOrBuilder.java   |    48 +-
 .../v3/ListGroupMembersRequest.java           |   619 +-
 .../v3/ListGroupMembersRequestOrBuilder.java  |    64 +-
 .../v3/ListGroupMembersResponse.java          |   517 +-
 .../v3/ListGroupMembersResponseOrBuilder.java |    49 +-
 .../monitoring/v3/ListGroupsRequest.java      |   761 +-
 .../v3/ListGroupsRequestOrBuilder.java        |    83 +-
 .../monitoring/v3/ListGroupsResponse.java     |   474 +-
 .../v3/ListGroupsResponseOrBuilder.java       |    46 +-
 .../v3/ListMetricDescriptorsRequest.java      |   527 +-
 ...ListMetricDescriptorsRequestOrBuilder.java |    56 +-
 .../v3/ListMetricDescriptorsResponse.java     |   481 +-
 ...istMetricDescriptorsResponseOrBuilder.java |    45 +-
 ...stMonitoredResourceDescriptorsRequest.java |   554 +-
 ...edResourceDescriptorsRequestOrBuilder.java |    56 +-
 ...tMonitoredResourceDescriptorsResponse.java |   497 +-
 ...dResourceDescriptorsResponseOrBuilder.java |    45 +-
 ...NotificationChannelDescriptorsRequest.java |   492 +-
 ...ionChannelDescriptorsRequestOrBuilder.java |    47 +-
 ...otificationChannelDescriptorsResponse.java |   608 +-
 ...onChannelDescriptorsResponseOrBuilder.java |    56 +-
 .../v3/ListNotificationChannelsRequest.java   |   602 +-
 ...tNotificationChannelsRequestOrBuilder.java |    65 +-
 .../v3/ListNotificationChannelsResponse.java  |   504 +-
 ...NotificationChannelsResponseOrBuilder.java |    48 +-
 .../v3/ListServiceLevelObjectivesRequest.java |   588 +-
 ...erviceLevelObjectivesRequestOrBuilder.java |    62 +-
 .../ListServiceLevelObjectivesResponse.java   |   534 +-
 ...rviceLevelObjectivesResponseOrBuilder.java |    42 +-
 .../monitoring/v3/ListServicesRequest.java    |   517 +-
 .../v3/ListServicesRequestOrBuilder.java      |    56 +-
 .../monitoring/v3/ListServicesResponse.java   |   468 +-
 .../v3/ListServicesResponseOrBuilder.java     |    46 +-
 .../monitoring/v3/ListSnoozesRequest.java     |   517 +-
 .../v3/ListSnoozesRequestOrBuilder.java       |    56 +-
 .../monitoring/v3/ListSnoozesResponse.java    |   474 +-
 .../v3/ListSnoozesResponseOrBuilder.java      |    46 +-
 .../monitoring/v3/ListTimeSeriesRequest.java  |  1072 +-
 .../v3/ListTimeSeriesRequestOrBuilder.java    |   115 +-
 .../monitoring/v3/ListTimeSeriesResponse.java |   700 +-
 .../v3/ListTimeSeriesResponseOrBuilder.java   |    73 +-
 .../v3/ListUptimeCheckConfigsRequest.java     |   527 +-
 ...istUptimeCheckConfigsRequestOrBuilder.java |    56 +-
 .../v3/ListUptimeCheckConfigsResponse.java    |   498 +-
 ...stUptimeCheckConfigsResponseOrBuilder.java |    48 +-
 .../v3/ListUptimeCheckIpsRequest.java         |   350 +-
 .../ListUptimeCheckIpsRequestOrBuilder.java   |    30 +-
 .../v3/ListUptimeCheckIpsResponse.java        |   475 +-
 .../ListUptimeCheckIpsResponseOrBuilder.java  |    45 +-
 .../monitoring/v3/MetricDescriptorName.java   |     0
 .../com/google/monitoring/v3/MetricProto.java |   226 +
 .../monitoring/v3/MetricServiceProto.java     |   444 +
 .../v3/MonitoredResourceDescriptorName.java   |     0
 .../google/monitoring/v3/MutationRecord.java  |   398 +-
 .../v3/MutationRecordOrBuilder.java           |    35 +-
 .../monitoring/v3/MutationRecordProto.java    |    73 +
 .../monitoring/v3/NotificationChannel.java    |  1488 ++-
 .../v3/NotificationChannelDescriptor.java     |   969 +-
 .../v3/NotificationChannelDescriptorName.java |     0
 ...otificationChannelDescriptorOrBuilder.java |   125 +-
 .../v3/NotificationChannelName.java           |     0
 .../v3/NotificationChannelOrBuilder.java      |   160 +-
 .../monitoring/v3/NotificationProto.java      |   178 +
 .../v3/NotificationServiceProto.java          |   351 +
 .../monitoring/v3/OrganizationName.java       |     0
 .../java/com/google/monitoring/v3/Point.java  |   410 +-
 .../google/monitoring/v3/PointOrBuilder.java  |    34 +-
 .../com/google/monitoring/v3/ProjectName.java |     0
 .../com/google/monitoring/v3/QueryError.java  |   394 +-
 .../google/monitoring/v3/QueryErrorList.java  |   466 +-
 .../v3/QueryErrorListOrBuilder.java           |    46 +-
 .../monitoring/v3/QueryErrorOrBuilder.java    |    35 +-
 .../monitoring/v3/QueryServiceProto.java      |    79 +
 .../monitoring/v3/QueryTimeSeriesRequest.java |   492 +-
 .../v3/QueryTimeSeriesRequestOrBuilder.java   |    48 +-
 .../v3/QueryTimeSeriesResponse.java           |   736 +-
 .../v3/QueryTimeSeriesResponseOrBuilder.java  |    72 +-
 .../java/com/google/monitoring/v3/Range.java  |   302 +-
 .../google/monitoring/v3/RangeOrBuilder.java  |    51 +
 .../google/monitoring/v3/RequestBasedSli.java |   463 +-
 .../v3/RequestBasedSliOrBuilder.java          |    34 +-
 ...icationChannelVerificationCodeRequest.java |   405 +-
 ...annelVerificationCodeRequestOrBuilder.java |    54 +
 .../com/google/monitoring/v3/Service.java     |  4007 +++---
 .../monitoring/v3/ServiceLevelIndicator.java  |   567 +-
 .../v3/ServiceLevelIndicatorOrBuilder.java    |    42 +-
 .../monitoring/v3/ServiceLevelObjective.java  |  1040 +-
 .../v3/ServiceLevelObjectiveName.java         |     0
 .../v3/ServiceLevelObjectiveOrBuilder.java    |    94 +-
 .../monitoring/v3/ServiceMonitoringProto.java |   443 +
 .../v3/ServiceMonitoringServiceProto.java     |   323 +
 .../com/google/monitoring/v3/ServiceName.java |     0
 .../monitoring/v3/ServiceOrBuilder.java       |   125 +-
 .../com/google/monitoring/v3/ServiceTier.java |    83 +-
 .../java/com/google/monitoring/v3/Snooze.java |  1010 +-
 .../com/google/monitoring/v3/SnoozeName.java  |     0
 .../google/monitoring/v3/SnoozeOrBuilder.java |    76 +-
 .../com/google/monitoring/v3/SnoozeProto.java |   103 +
 .../monitoring/v3/SnoozeServiceProto.java     |   177 +
 .../com/google/monitoring/v3/SpanContext.java |   305 +-
 .../monitoring/v3/SpanContextOrBuilder.java   |    27 +-
 .../monitoring/v3/SpanContextProto.java       |    66 +
 .../com/google/monitoring/v3/TextLocator.java |   963 +-
 .../monitoring/v3/TextLocatorOrBuilder.java   |    60 +-
 .../google/monitoring/v3/TimeInterval.java    |   405 +-
 .../monitoring/v3/TimeIntervalOrBuilder.java  |    34 +-
 .../com/google/monitoring/v3/TimeSeries.java  |   843 +-
 .../google/monitoring/v3/TimeSeriesData.java  |  1048 +-
 .../v3/TimeSeriesDataOrBuilder.java           |    54 +-
 .../monitoring/v3/TimeSeriesDescriptor.java   |  1218 +-
 .../v3/TimeSeriesDescriptorOrBuilder.java     |    74 +-
 .../google/monitoring/v3/TimeSeriesName.java  |     0
 .../monitoring/v3/TimeSeriesOrBuilder.java    |    82 +-
 .../google/monitoring/v3/TimeSeriesRatio.java |   453 +-
 .../v3/TimeSeriesRatioOrBuilder.java          |    45 +-
 .../com/google/monitoring/v3/TypedValue.java  |   636 +-
 .../monitoring/v3/TypedValueOrBuilder.java    |    56 +-
 .../v3/UpdateAlertPolicyRequest.java          |   485 +-
 .../v3/UpdateAlertPolicyRequestOrBuilder.java |    46 +-
 .../monitoring/v3/UpdateGroupRequest.java     |   360 +-
 .../v3/UpdateGroupRequestOrBuilder.java       |    29 +-
 .../v3/UpdateNotificationChannelRequest.java  |   492 +-
 ...teNotificationChannelRequestOrBuilder.java |    46 +-
 .../UpdateServiceLevelObjectiveRequest.java   |   505 +-
 ...ServiceLevelObjectiveRequestOrBuilder.java |    46 +-
 .../monitoring/v3/UpdateServiceRequest.java   |   451 +-
 .../v3/UpdateServiceRequestOrBuilder.java     |    43 +-
 .../monitoring/v3/UpdateSnoozeRequest.java    |   478 +-
 .../v3/UpdateSnoozeRequestOrBuilder.java      |    43 +-
 .../v3/UpdateUptimeCheckConfigRequest.java    |   492 +-
 ...dateUptimeCheckConfigRequestOrBuilder.java |    46 +-
 .../monitoring/v3/UptimeCheckConfig.java      |  7600 +++++++----
 .../monitoring/v3/UptimeCheckConfigName.java  |     0
 .../v3/UptimeCheckConfigOrBuilder.java        |   224 +-
 .../google/monitoring/v3/UptimeCheckIp.java   |   427 +-
 .../monitoring/v3/UptimeCheckIpOrBuilder.java |    42 +-
 .../monitoring/v3/UptimeCheckRegion.java      |   115 +-
 .../com/google/monitoring/v3/UptimeProto.java |   364 +
 .../monitoring/v3/UptimeServiceProto.java     |   240 +
 .../v3/VerifyNotificationChannelRequest.java  |   425 +-
 ...fyNotificationChannelRequestOrBuilder.java |    44 +-
 .../google/monitoring/v3/WindowsBasedSli.java |  1833 ++-
 .../v3/WindowsBasedSliOrBuilder.java          |    77 +-
 .../proto/google/monitoring/v3/alert.proto    |     0
 .../google/monitoring/v3/alert_service.proto  |     0
 .../proto/google/monitoring/v3/common.proto   |     0
 .../google/monitoring/v3/dropped_labels.proto |     0
 .../proto/google/monitoring/v3/group.proto    |     0
 .../google/monitoring/v3/group_service.proto  |     0
 .../proto/google/monitoring/v3/metric.proto   |     0
 .../google/monitoring/v3/metric_service.proto |     0
 .../monitoring/v3/mutation_record.proto       |     0
 .../google/monitoring/v3/notification.proto   |     0
 .../monitoring/v3/notification_service.proto  |     0
 .../google/monitoring/v3/query_service.proto  |     0
 .../proto/google/monitoring/v3/service.proto  |     0
 .../monitoring/v3/service_service.proto       |     0
 .../proto/google/monitoring/v3/snooze.proto   |     0
 .../google/monitoring/v3/snooze_service.proto |     0
 .../google/monitoring/v3/span_context.proto   |     0
 .../proto/google/monitoring/v3/uptime.proto   |     0
 .../google/monitoring/v3/uptime_service.proto |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateAlertPolicy.java               |     0
 .../SyncCreateAlertPolicy.java                |     0
 ...reateAlertPolicyFoldernameAlertpolicy.java |     0
 ...lertPolicyOrganizationnameAlertpolicy.java |     0
 ...eateAlertPolicyProjectnameAlertpolicy.java |     0
 ...yncCreateAlertPolicyStringAlertpolicy.java |     0
 .../AsyncDeleteAlertPolicy.java               |     0
 .../SyncDeleteAlertPolicy.java                |     0
 .../SyncDeleteAlertPolicyAlertpolicyname.java |     0
 .../SyncDeleteAlertPolicyString.java          |     0
 .../getalertpolicy/AsyncGetAlertPolicy.java   |     0
 .../getalertpolicy/SyncGetAlertPolicy.java    |     0
 .../SyncGetAlertPolicyAlertpolicyname.java    |     0
 .../SyncGetAlertPolicyString.java             |     0
 .../AsyncListAlertPolicies.java               |     0
 .../AsyncListAlertPoliciesPaged.java          |     0
 .../SyncListAlertPolicies.java                |     0
 .../SyncListAlertPoliciesFoldername.java      |     0
 ...SyncListAlertPoliciesOrganizationname.java |     0
 .../SyncListAlertPoliciesProjectname.java     |     0
 .../SyncListAlertPoliciesString.java          |     0
 .../AsyncUpdateAlertPolicy.java               |     0
 .../SyncUpdateAlertPolicy.java                |     0
 ...UpdateAlertPolicyFieldmaskAlertpolicy.java |     0
 .../getalertpolicy/SyncGetAlertPolicy.java    |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../creategroup/AsyncCreateGroup.java         |     0
 .../creategroup/SyncCreateGroup.java          |     0
 .../SyncCreateGroupFoldernameGroup.java       |     0
 .../SyncCreateGroupOrganizationnameGroup.java |     0
 .../SyncCreateGroupProjectnameGroup.java      |     0
 .../SyncCreateGroupStringGroup.java           |     0
 .../deletegroup/AsyncDeleteGroup.java         |     0
 .../deletegroup/SyncDeleteGroup.java          |     0
 .../deletegroup/SyncDeleteGroupGroupname.java |     0
 .../deletegroup/SyncDeleteGroupString.java    |     0
 .../groupservice/getgroup/AsyncGetGroup.java  |     0
 .../groupservice/getgroup/SyncGetGroup.java   |     0
 .../getgroup/SyncGetGroupGroupname.java       |     0
 .../getgroup/SyncGetGroupString.java          |     0
 .../AsyncListGroupMembers.java                |     0
 .../AsyncListGroupMembersPaged.java           |     0
 .../SyncListGroupMembers.java                 |     0
 .../SyncListGroupMembersGroupname.java        |     0
 .../SyncListGroupMembersString.java           |     0
 .../listgroups/AsyncListGroups.java           |     0
 .../listgroups/AsyncListGroupsPaged.java      |     0
 .../listgroups/SyncListGroups.java            |     0
 .../listgroups/SyncListGroupsFoldername.java  |     0
 .../SyncListGroupsOrganizationname.java       |     0
 .../listgroups/SyncListGroupsProjectname.java |     0
 .../listgroups/SyncListGroupsString.java      |     0
 .../updategroup/AsyncUpdateGroup.java         |     0
 .../updategroup/SyncUpdateGroup.java          |     0
 .../updategroup/SyncUpdateGroupGroup.java     |     0
 .../getgroup/SyncGetGroup.java                |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateMetricDescriptor.java          |     0
 .../SyncCreateMetricDescriptor.java           |     0
 ...cDescriptorFoldernameMetricdescriptor.java |     0
 ...iptorOrganizationnameMetricdescriptor.java |     0
 ...DescriptorProjectnameMetricdescriptor.java |     0
 ...etricDescriptorStringMetricdescriptor.java |     0
 .../AsyncCreateServiceTimeSeries.java         |     0
 .../SyncCreateServiceTimeSeries.java          |     0
 ...ceTimeSeriesProjectnameListtimeseries.java |     0
 ...ServiceTimeSeriesStringListtimeseries.java |     0
 .../AsyncCreateTimeSeries.java                |     0
 .../SyncCreateTimeSeries.java                 |     0
 ...teTimeSeriesProjectnameListtimeseries.java |     0
 ...cCreateTimeSeriesStringListtimeseries.java |     0
 .../AsyncDeleteMetricDescriptor.java          |     0
 .../SyncDeleteMetricDescriptor.java           |     0
 ...eMetricDescriptorMetricdescriptorname.java |     0
 .../SyncDeleteMetricDescriptorString.java     |     0
 .../AsyncGetMetricDescriptor.java             |     0
 .../SyncGetMetricDescriptor.java              |     0
 ...tMetricDescriptorMetricdescriptorname.java |     0
 .../SyncGetMetricDescriptorString.java        |     0
 .../AsyncGetMonitoredResourceDescriptor.java  |     0
 .../SyncGetMonitoredResourceDescriptor.java   |     0
 ...riptorMonitoredresourcedescriptorname.java |     0
 ...cGetMonitoredResourceDescriptorString.java |     0
 .../AsyncListMetricDescriptors.java           |     0
 .../AsyncListMetricDescriptorsPaged.java      |     0
 .../SyncListMetricDescriptors.java            |     0
 .../SyncListMetricDescriptorsFoldername.java  |     0
 ...ListMetricDescriptorsOrganizationname.java |     0
 .../SyncListMetricDescriptorsProjectname.java |     0
 .../SyncListMetricDescriptorsString.java      |     0
 ...AsyncListMonitoredResourceDescriptors.java |     0
 ...ListMonitoredResourceDescriptorsPaged.java |     0
 .../SyncListMonitoredResourceDescriptors.java |     0
 ...onitoredResourceDescriptorsFoldername.java |     0
 ...edResourceDescriptorsOrganizationname.java |     0
 ...nitoredResourceDescriptorsProjectname.java |     0
 ...istMonitoredResourceDescriptorsString.java |     0
 .../listtimeseries/AsyncListTimeSeries.java   |     0
 .../AsyncListTimeSeriesPaged.java             |     0
 .../listtimeseries/SyncListTimeSeries.java    |     0
 ...alListtimeseriesrequesttimeseriesview.java |     0
 ...alListtimeseriesrequesttimeseriesview.java |     0
 ...alListtimeseriesrequesttimeseriesview.java |     0
 ...alListtimeseriesrequesttimeseriesview.java |     0
 .../SyncGetMonitoredResourceDescriptor.java   |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateNotificationChannel.java       |     0
 .../SyncCreateNotificationChannel.java        |     0
 ...nChannelFoldernameNotificationchannel.java |     0
 ...elOrganizationnameNotificationchannel.java |     0
 ...ChannelProjectnameNotificationchannel.java |     0
 ...ationChannelStringNotificationchannel.java |     0
 .../AsyncDeleteNotificationChannel.java       |     0
 .../SyncDeleteNotificationChannel.java        |     0
 ...ChannelNotificationchannelnameBoolean.java |     0
 ...eleteNotificationChannelStringBoolean.java |     0
 .../AsyncGetNotificationChannel.java          |     0
 .../SyncGetNotificationChannel.java           |     0
 ...icationChannelNotificationchannelname.java |     0
 .../SyncGetNotificationChannelString.java     |     0
 ...AsyncGetNotificationChannelDescriptor.java |     0
 .../SyncGetNotificationChannelDescriptor.java |     0
 ...ptorNotificationchanneldescriptorname.java |     0
 ...etNotificationChannelDescriptorString.java |     0
 ...etNotificationChannelVerificationCode.java |     0
 ...etNotificationChannelVerificationCode.java |     0
 ...rificationCodeNotificationchannelname.java |     0
 ...ficationChannelVerificationCodeString.java |     0
 ...yncListNotificationChannelDescriptors.java |     0
 ...stNotificationChannelDescriptorsPaged.java |     0
 ...yncListNotificationChannelDescriptors.java |     0
 ...ificationChannelDescriptorsFoldername.java |     0
 ...ionChannelDescriptorsOrganizationname.java |     0
 ...ficationChannelDescriptorsProjectname.java |     0
 ...tNotificationChannelDescriptorsString.java |     0
 .../AsyncListNotificationChannels.java        |     0
 .../AsyncListNotificationChannelsPaged.java   |     0
 .../SyncListNotificationChannels.java         |     0
 ...yncListNotificationChannelsFoldername.java |     0
 ...tNotificationChannelsOrganizationname.java |     0
 ...ncListNotificationChannelsProjectname.java |     0
 .../SyncListNotificationChannelsString.java   |     0
 ...ndNotificationChannelVerificationCode.java |     0
 ...ndNotificationChannelVerificationCode.java |     0
 ...rificationCodeNotificationchannelname.java |     0
 ...ficationChannelVerificationCodeString.java |     0
 .../AsyncUpdateNotificationChannel.java       |     0
 .../SyncUpdateNotificationChannel.java        |     0
 ...onChannelFieldmaskNotificationchannel.java |     0
 .../AsyncVerifyNotificationChannel.java       |     0
 .../SyncVerifyNotificationChannel.java        |     0
 ...nChannelNotificationchannelnameString.java |     0
 ...VerifyNotificationChannelStringString.java |     0
 .../SyncGetNotificationChannelDescriptor.java |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../querytimeseries/AsyncQueryTimeSeries.java |     0
 .../AsyncQueryTimeSeriesPaged.java            |     0
 .../querytimeseries/SyncQueryTimeSeries.java  |     0
 .../querytimeseries/SyncQueryTimeSeries.java  |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createservice/AsyncCreateService.java     |     0
 .../createservice/SyncCreateService.java      |     0
 .../SyncCreateServiceFoldernameService.java   |     0
 ...cCreateServiceOrganizationnameService.java |     0
 .../SyncCreateServiceProjectnameService.java  |     0
 .../SyncCreateServiceStringService.java       |     0
 .../AsyncCreateServiceLevelObjective.java     |     0
 .../SyncCreateServiceLevelObjective.java      |     0
 ...ctiveServicenameServicelevelobjective.java |     0
 ...lObjectiveStringServicelevelobjective.java |     0
 .../deleteservice/AsyncDeleteService.java     |     0
 .../deleteservice/SyncDeleteService.java      |     0
 .../SyncDeleteServiceServicename.java         |     0
 .../SyncDeleteServiceString.java              |     0
 .../AsyncDeleteServiceLevelObjective.java     |     0
 .../SyncDeleteServiceLevelObjective.java      |     0
 ...velObjectiveServicelevelobjectivename.java |     0
 ...SyncDeleteServiceLevelObjectiveString.java |     0
 .../getservice/AsyncGetService.java           |     0
 .../getservice/SyncGetService.java            |     0
 .../getservice/SyncGetServiceServicename.java |     0
 .../getservice/SyncGetServiceString.java      |     0
 .../AsyncGetServiceLevelObjective.java        |     0
 .../SyncGetServiceLevelObjective.java         |     0
 ...velObjectiveServicelevelobjectivename.java |     0
 .../SyncGetServiceLevelObjectiveString.java   |     0
 .../AsyncListServiceLevelObjectives.java      |     0
 .../AsyncListServiceLevelObjectivesPaged.java |     0
 .../SyncListServiceLevelObjectives.java       |     0
 ...ListServiceLevelObjectivesServicename.java |     0
 .../SyncListServiceLevelObjectivesString.java |     0
 .../listservices/AsyncListServices.java       |     0
 .../listservices/AsyncListServicesPaged.java  |     0
 .../listservices/SyncListServices.java        |     0
 .../SyncListServicesFoldername.java           |     0
 .../SyncListServicesOrganizationname.java     |     0
 .../SyncListServicesProjectname.java          |     0
 .../listservices/SyncListServicesString.java  |     0
 .../updateservice/AsyncUpdateService.java     |     0
 .../updateservice/SyncUpdateService.java      |     0
 .../SyncUpdateServiceService.java             |     0
 .../AsyncUpdateServiceLevelObjective.java     |     0
 .../SyncUpdateServiceLevelObjective.java      |     0
 ...ceLevelObjectiveServicelevelobjective.java |     0
 .../createservice/SyncCreateService.java      |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createsnooze/AsyncCreateSnooze.java       |     0
 .../createsnooze/SyncCreateSnooze.java        |     0
 .../SyncCreateSnoozeProjectnameSnooze.java    |     0
 .../SyncCreateSnoozeStringSnooze.java         |     0
 .../getsnooze/AsyncGetSnooze.java             |     0
 .../getsnooze/SyncGetSnooze.java              |     0
 .../getsnooze/SyncGetSnoozeSnoozename.java    |     0
 .../getsnooze/SyncGetSnoozeString.java        |     0
 .../listsnoozes/AsyncListSnoozes.java         |     0
 .../listsnoozes/AsyncListSnoozesPaged.java    |     0
 .../listsnoozes/SyncListSnoozes.java          |     0
 .../SyncListSnoozesProjectname.java           |     0
 .../listsnoozes/SyncListSnoozesString.java    |     0
 .../updatesnooze/AsyncUpdateSnooze.java       |     0
 .../updatesnooze/SyncUpdateSnooze.java        |     0
 .../SyncUpdateSnoozeSnoozeFieldmask.java      |     0
 .../createsnooze/SyncCreateSnooze.java        |     0
 .../getalertpolicy/SyncGetAlertPolicy.java    |     0
 .../getgroup/SyncGetGroup.java                |     0
 .../SyncGetMonitoredResourceDescriptor.java   |     0
 .../SyncGetNotificationChannelDescriptor.java |     0
 .../querytimeseries/SyncQueryTimeSeries.java  |     0
 .../createservice/SyncCreateService.java      |     0
 .../createsnooze/SyncCreateSnooze.java        |     0
 .../SyncGetUptimeCheckConfig.java             |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateUptimeCheckConfig.java         |     0
 .../SyncCreateUptimeCheckConfig.java          |     0
 ...heckConfigFoldernameUptimecheckconfig.java |     0
 ...nfigOrganizationnameUptimecheckconfig.java |     0
 ...eckConfigProjectnameUptimecheckconfig.java |     0
 ...imeCheckConfigStringUptimecheckconfig.java |     0
 .../AsyncDeleteUptimeCheckConfig.java         |     0
 .../SyncDeleteUptimeCheckConfig.java          |     0
 .../SyncDeleteUptimeCheckConfigString.java    |     0
 ...ptimeCheckConfigUptimecheckconfigname.java |     0
 .../AsyncGetUptimeCheckConfig.java            |     0
 .../SyncGetUptimeCheckConfig.java             |     0
 .../SyncGetUptimeCheckConfigString.java       |     0
 ...ptimeCheckConfigUptimecheckconfigname.java |     0
 .../AsyncListUptimeCheckConfigs.java          |     0
 .../AsyncListUptimeCheckConfigsPaged.java     |     0
 .../SyncListUptimeCheckConfigs.java           |     0
 .../SyncListUptimeCheckConfigsFoldername.java |     0
 ...istUptimeCheckConfigsOrganizationname.java |     0
 ...SyncListUptimeCheckConfigsProjectname.java |     0
 .../SyncListUptimeCheckConfigsString.java     |     0
 .../AsyncListUptimeCheckIps.java              |     0
 .../AsyncListUptimeCheckIpsPaged.java         |     0
 .../SyncListUptimeCheckIps.java               |     0
 .../AsyncUpdateUptimeCheckConfig.java         |     0
 .../SyncUpdateUptimeCheckConfig.java          |     0
 ...ateUptimeCheckConfigUptimecheckconfig.java |     0
 .../SyncGetUptimeCheckConfig.java             |     0
 .../monitoring/v3/MetricServiceGrpc.java      |  1085 --
 .../v3/NotificationChannelServiceGrpc.java    |  1279 --
 .../v3/ServiceMonitoringServiceGrpc.java      |  1115 --
 .../monitoring/v3/UptimeCheckServiceGrpc.java |   819 --
 .../com/google/monitoring/v3/AlertProto.java  |   352 -
 .../monitoring/v3/AlertServiceProto.java      |   182 -
 .../com/google/monitoring/v3/CommonProto.java |   120 -
 ...eateUptimeCheckConfigRequestOrBuilder.java |    64 -
 .../v3/DeleteAlertPolicyRequestOrBuilder.java |    37 -
 ...eleteMetricDescriptorRequestOrBuilder.java |    39 -
 ...ServiceLevelObjectiveRequestOrBuilder.java |    33 -
 .../v3/DeleteServiceRequestOrBuilder.java     |    33 -
 ...leteUptimeCheckConfigRequestOrBuilder.java |    33 -
 .../monitoring/v3/DroppedLabelsProto.java     |    67 -
 .../v3/GetAlertPolicyRequestOrBuilder.java    |    33 -
 .../v3/GetGroupRequestOrBuilder.java          |    33 -
 ...redResourceDescriptorRequestOrBuilder.java |    39 -
 ...tionChannelDescriptorRequestOrBuilder.java |    33 -
 ...etNotificationChannelRequestOrBuilder.java |    33 -
 .../v3/GetServiceRequestOrBuilder.java        |    33 -
 .../v3/GetSnoozeRequestOrBuilder.java         |    33 -
 .../GetUptimeCheckConfigRequestOrBuilder.java |    33 -
 .../com/google/monitoring/v3/GroupProto.java  |    66 -
 .../monitoring/v3/GroupServiceProto.java      |   217 -
 .../com/google/monitoring/v3/MetricProto.java |   200 -
 .../monitoring/v3/MetricServiceProto.java     |   403 -
 .../monitoring/v3/MutationRecordProto.java    |    58 -
 .../monitoring/v3/NotificationProto.java      |   145 -
 .../v3/NotificationServiceProto.java          |   324 -
 .../monitoring/v3/QueryServiceProto.java      |    66 -
 .../google/monitoring/v3/RangeOrBuilder.java  |    29 -
 ...annelVerificationCodeRequestOrBuilder.java |    29 -
 .../monitoring/v3/ServiceMonitoringProto.java |   387 -
 .../v3/ServiceMonitoringServiceProto.java     |   297 -
 .../com/google/monitoring/v3/SnoozeProto.java |    87 -
 .../monitoring/v3/SnoozeServiceProto.java     |   158 -
 .../monitoring/v3/SpanContextProto.java       |    53 -
 .../com/google/monitoring/v3/UptimeProto.java |   302 -
 .../monitoring/v3/UptimeServiceProto.java     |   218 -
 643 files changed, 63375 insertions(+), 39157 deletions(-)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java (99%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java (56%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java (52%)
 create mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
 create mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java (57%)
 create mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java (53%)
 create mode 100644 java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java (86%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java (92%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java (92%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java (87%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java (66%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java (69%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java (62%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java (52%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java (63%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java (58%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java (59%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java (55%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java (66%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java (61%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java (63%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java (50%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java (64%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java (53%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java (64%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java (64%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java (62%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java (61%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java (54%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java (63%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java (62%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java (50%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java (61%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java (60%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java (62%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java (66%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java (63%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java (62%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java (63%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java (75%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java (70%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java (81%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java (66%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java (78%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java (66%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java (100%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java (62%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java (79%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java (87%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java (82%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java (64%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java (65%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java (78%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java (55%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java (75%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java (73%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java (84%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java (86%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java (67%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java (69%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java (65%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java (85%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java (80%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java (80%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java (57%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java (90%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java (83%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java (70%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java (65%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java (64%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java (60%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java (69%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java (76%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java (83%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java (77%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java (85%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java (72%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java (74%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java (75%)
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
 create mode 100644 java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java (67%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java (71%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java (78%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java (100%)
 rename {owl-bot-staging/java-monitoring/v3 => java-monitoring}/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java (100%)
 delete mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
 delete mode 100644 owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java

diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java
similarity index 99%
rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java
rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java
index 5fcb620b4f16..f2bca1bae7f6 100644
--- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java
+++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java
@@ -24,6 +24,7 @@
 import com.google.api.gax.paging.AbstractPagedListResponse;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStub;
 import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -31,7 +32,6 @@
 import com.google.monitoring.v3.AlertPolicyName;
 import com.google.monitoring.v3.CreateAlertPolicyRequest;
 import com.google.monitoring.v3.DeleteAlertPolicyRequest;
-import com.google.monitoring.v3.FolderName;
 import com.google.monitoring.v3.GetAlertPolicyRequest;
 import com.google.monitoring.v3.ListAlertPoliciesRequest;
 import com.google.monitoring.v3.ListAlertPoliciesResponse;
@@ -192,7 +192,7 @@ public AlertPolicyServiceStub getStub() {
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
-   *   FolderName name = FolderName.of("[FOLDER]");
+   *   ResourceName name = ResourceName.of("[FOLDER]");
    *   for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -208,7 +208,7 @@ public AlertPolicyServiceStub getStub() {
    *     instead.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final ListAlertPoliciesPagedResponse listAlertPolicies(FolderName name) {
+  public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) {
     ListAlertPoliciesRequest request =
         ListAlertPoliciesRequest.newBuilder()
             .setName(name == null ? null : name.toString())
@@ -569,7 +569,7 @@ public final UnaryCallable getAlertPolicyCal
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
-   *   FolderName name = FolderName.of("[FOLDER]");
+   *   ResourceName name = ResourceName.of("[FOLDER]");
    *   AlertPolicy alertPolicy = AlertPolicy.newBuilder().build();
    *   AlertPolicy response = alertPolicyServiceClient.createAlertPolicy(name, alertPolicy);
    * }
@@ -589,7 +589,7 @@ public final UnaryCallable getAlertPolicyCal
    *     `[ALERT_POLICY_ID]` value.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final AlertPolicy createAlertPolicy(FolderName name, AlertPolicy alertPolicy) {
+  public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertPolicy) {
     CreateAlertPolicyRequest request =
         CreateAlertPolicyRequest.newBuilder()
             .setName(name == null ? null : name.toString())
diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
similarity index 99%
rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
index bda0b9fb0934..c1957f0da950 100644
--- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
+++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java
@@ -27,7 +27,6 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
-import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStubSettings;
diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
similarity index 99%
rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
index 2238ae5ba38b..2769450070f5 100644
--- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
+++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
@@ -25,12 +25,12 @@
 import com.google.api.gax.paging.AbstractPagedListResponse;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.monitoring.v3.stub.GroupServiceStub;
 import com.google.cloud.monitoring.v3.stub.GroupServiceStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.monitoring.v3.CreateGroupRequest;
 import com.google.monitoring.v3.DeleteGroupRequest;
-import com.google.monitoring.v3.FolderName;
 import com.google.monitoring.v3.GetGroupRequest;
 import com.google.monitoring.v3.Group;
 import com.google.monitoring.v3.GroupName;
@@ -192,7 +192,7 @@ public GroupServiceStub getStub() {
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
-   *   FolderName name = FolderName.of("[FOLDER]");
+   *   ResourceName name = ResourceName.of("[FOLDER]");
    *   for (Group element : groupServiceClient.listGroups(name).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -204,7 +204,7 @@ public GroupServiceStub getStub() {
    *     

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(FolderName name) { + public final ListGroupsPagedResponse listGroups(ResourceName name) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroups(request); @@ -526,7 +526,7 @@ public final UnaryCallable getGroupCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * Group group = Group.newBuilder().build(); * Group response = groupServiceClient.createGroup(name, group); * } @@ -539,7 +539,7 @@ public final UnaryCallable getGroupCallable() { * the system assigns the name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group createGroup(FolderName name, Group group) { + public final Group createGroup(ResourceName name, Group group) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java index 5f03f0d8430a..6455b5d9271a 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.GroupServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index 04412a80f5fe..3425c5b83728 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -26,13 +26,13 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.MetricServiceStub; import com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateMetricDescriptorRequest; import com.google.monitoring.v3.CreateTimeSeriesRequest; import com.google.monitoring.v3.DeleteMetricDescriptorRequest; -import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetMetricDescriptorRequest; import com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest; import com.google.monitoring.v3.ListMetricDescriptorsRequest; @@ -196,7 +196,7 @@ public MetricServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * for (MonitoredResourceDescriptor element : * metricServiceClient.listMonitoredResourceDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -210,7 +210,7 @@ public MetricServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - FolderName name) { + ResourceName name) { ListMonitoredResourceDescriptorsRequest request = ListMonitoredResourceDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -585,7 +585,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * for (MetricDescriptor element : * metricServiceClient.listMetricDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -598,7 +598,7 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetricDescriptorsPagedResponse listMetricDescriptors(FolderName name) { + public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceName name) { ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -959,7 +959,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); * MetricDescriptor response = * metricServiceClient.createMetricDescriptor(name, metricDescriptor); @@ -973,7 +973,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetricDescriptor createMetricDescriptor( - FolderName name, MetricDescriptor metricDescriptor) { + ResourceName name, MetricDescriptor metricDescriptor) { CreateMetricDescriptorRequest request = CreateMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1302,7 +1302,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * String filter = "filter-1274492040"; * TimeInterval interval = TimeInterval.newBuilder().build(); * ListTimeSeriesRequest.TimeSeriesView view = ListTimeSeriesRequest.TimeSeriesView.forNumber(0); @@ -1328,7 +1328,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTimeSeriesPagedResponse listTimeSeries( - FolderName name, + ResourceName name, String filter, TimeInterval interval, ListTimeSeriesRequest.TimeSeriesView view) { diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java index 28152ec46d2a..5cf5f35bb47e 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index 9f7a54d23598..2ef572863f24 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -24,12 +24,12 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStub; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateNotificationChannelRequest; import com.google.monitoring.v3.DeleteNotificationChannelRequest; -import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetNotificationChannelDescriptorRequest; import com.google.monitoring.v3.GetNotificationChannelRequest; import com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest; @@ -204,7 +204,7 @@ public NotificationChannelServiceStub getStub() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * for (NotificationChannelDescriptor element : * notificationChannelServiceClient.listNotificationChannelDescriptors(name).iterateAll()) { * // doThingsWith(element); @@ -223,7 +223,7 @@ public NotificationChannelServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelDescriptorsPagedResponse listNotificationChannelDescriptors( - FolderName name) { + ResourceName name) { ListNotificationChannelDescriptorsRequest request = ListNotificationChannelDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -633,7 +633,7 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * for (NotificationChannel element : * notificationChannelServiceClient.listNotificationChannels(name).iterateAll()) { * // doThingsWith(element); @@ -650,7 +650,7 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationChannelsPagedResponse listNotificationChannels(FolderName name) { + public final ListNotificationChannelsPagedResponse listNotificationChannels(ResourceName name) { ListNotificationChannelsRequest request = ListNotificationChannelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1060,7 +1060,7 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { - * FolderName name = FolderName.of("[FOLDER]"); + * ResourceName name = ResourceName.of("[FOLDER]"); * NotificationChannel notificationChannel = NotificationChannel.newBuilder().build(); * NotificationChannel response = * notificationChannelServiceClient.createNotificationChannel(name, notificationChannel); @@ -1078,7 +1078,7 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel createNotificationChannel( - FolderName name, NotificationChannel notificationChannel) { + ResourceName name, NotificationChannel notificationChannel) { CreateNotificationChannelRequest request = CreateNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java index 57eb0f6190b5..6837f70c0269 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java index 81c9e87a299b..844d3eb8bcc7 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.QueryServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java index e3cdcd33c9c7..169dd523834b 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java @@ -24,6 +24,7 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStub; import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -31,7 +32,6 @@ import com.google.monitoring.v3.CreateServiceRequest; import com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest; import com.google.monitoring.v3.DeleteServiceRequest; -import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetServiceLevelObjectiveRequest; import com.google.monitoring.v3.GetServiceRequest; import com.google.monitoring.v3.ListServiceLevelObjectivesRequest; @@ -69,7 +69,7 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { - * FolderName parent = FolderName.of("[FOLDER]"); + * ResourceName parent = ResourceName.of("[FOLDER]"); * Service service = Service.newBuilder().build(); * Service response = serviceMonitoringServiceClient.createService(parent, service); * } @@ -200,7 +200,7 @@ public ServiceMonitoringServiceStub getStub() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { - * FolderName parent = FolderName.of("[FOLDER]"); + * ResourceName parent = ResourceName.of("[FOLDER]"); * Service service = Service.newBuilder().build(); * Service response = serviceMonitoringServiceClient.createService(parent, service); * } @@ -213,7 +213,7 @@ public ServiceMonitoringServiceStub getStub() { * @param service Required. The `Service` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(FolderName parent, Service service) { + public final Service createService(ResourceName parent, Service service) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -518,7 +518,7 @@ public final UnaryCallable getServiceCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { - * FolderName parent = FolderName.of("[FOLDER]"); + * ResourceName parent = ResourceName.of("[FOLDER]"); * for (Service element : serviceMonitoringServiceClient.listServices(parent).iterateAll()) { * // doThingsWith(element); * } @@ -531,7 +531,7 @@ public final UnaryCallable getServiceCallable() { *

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(FolderName parent) { + public final ListServicesPagedResponse listServices(ResourceName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java index 122973fb991c..842706a9aa2b 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java index cd5771c6f145..7e29f65b55dd 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.SnoozeServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index def911747a19..6f4ebe26c2fd 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -24,12 +24,12 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStub; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateUptimeCheckConfigRequest; import com.google.monitoring.v3.DeleteUptimeCheckConfigRequest; -import com.google.monitoring.v3.FolderName; import com.google.monitoring.v3.GetUptimeCheckConfigRequest; import com.google.monitoring.v3.ListUptimeCheckConfigsRequest; import com.google.monitoring.v3.ListUptimeCheckConfigsResponse; @@ -196,7 +196,7 @@ public UptimeCheckServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { - * FolderName parent = FolderName.of("[FOLDER]"); + * ResourceName parent = ResourceName.of("[FOLDER]"); * for (UptimeCheckConfig element : * uptimeCheckServiceClient.listUptimeCheckConfigs(parent).iterateAll()) { * // doThingsWith(element); @@ -209,7 +209,7 @@ public UptimeCheckServiceStub getStub() { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(FolderName parent) { + public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ResourceName parent) { ListUptimeCheckConfigsRequest request = ListUptimeCheckConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -571,7 +571,7 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { - * FolderName parent = FolderName.of("[FOLDER]"); + * ResourceName parent = ResourceName.of("[FOLDER]"); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); * UptimeCheckConfig response = * uptimeCheckServiceClient.createUptimeCheckConfig(parent, uptimeCheckConfig); @@ -585,7 +585,7 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig createUptimeCheckConfig( - FolderName parent, UptimeCheckConfig uptimeCheckConfig) { + ResourceName parent, UptimeCheckConfig uptimeCheckConfig) { CreateUptimeCheckConfigRequest request = CreateUptimeCheckConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java index af8f9f3f5486..d373bb522b96 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStubSettings; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/gapic_metadata.json diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java index 208f4b2475b0..42b6c89432b1 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java index 7cec0ec6f248..f6c0cb5e272a 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java @@ -40,7 +40,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java index c3959a1e091e..4135b87af642 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java index c5a4e785f68c..e301eb2e5ee3 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java @@ -46,7 +46,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java index 78dea51de0ff..2729b5d81979 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java @@ -31,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java index 8c805a305c1f..731a2c824007 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java index a43c22210293..00306d6aa845 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcSnoozeServiceStub.java @@ -35,7 +35,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java similarity index 99% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java index db36ceb96f7e..c6a09cdbb770 100644 --- a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java @@ -40,7 +40,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java rename to java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json rename to java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockSnoozeServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/SnoozeServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java b/java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java rename to java-monitoring/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java similarity index 56% rename from owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java rename to java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java index 4d7e2a86011b..1d7c653f8be5 100644 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * The AlertPolicyService API is used to manage (list, create, delete,
  * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -26,206 +43,272 @@ private AlertPolicyServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.AlertPolicyService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListAlertPoliciesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListAlertPoliciesRequest,
+          com.google.monitoring.v3.ListAlertPoliciesResponse>
+      getListAlertPoliciesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListAlertPolicies",
       requestType = com.google.monitoring.v3.ListAlertPoliciesRequest.class,
       responseType = com.google.monitoring.v3.ListAlertPoliciesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListAlertPoliciesMethod() {
-    io.grpc.MethodDescriptor getListAlertPoliciesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListAlertPoliciesRequest,
+          com.google.monitoring.v3.ListAlertPoliciesResponse>
+      getListAlertPoliciesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.ListAlertPoliciesRequest,
+            com.google.monitoring.v3.ListAlertPoliciesResponse>
+        getListAlertPoliciesMethod;
     if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod) == null) {
-          AlertPolicyServiceGrpc.getListAlertPoliciesMethod = getListAlertPoliciesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAlertPolicies"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("ListAlertPolicies"))
-              .build();
+        if ((getListAlertPoliciesMethod = AlertPolicyServiceGrpc.getListAlertPoliciesMethod)
+            == null) {
+          AlertPolicyServiceGrpc.getListAlertPoliciesMethod =
+              getListAlertPoliciesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAlertPolicies"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListAlertPoliciesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListAlertPoliciesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AlertPolicyServiceMethodDescriptorSupplier("ListAlertPolicies"))
+                      .build();
         }
       }
     }
     return getListAlertPoliciesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getGetAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetAlertPolicy",
       requestType = com.google.monitoring.v3.GetAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetAlertPolicyMethod() {
-    io.grpc.MethodDescriptor getGetAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getGetAlertPolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.GetAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+        getGetAlertPolicyMethod;
     if ((getGetAlertPolicyMethod = AlertPolicyServiceGrpc.getGetAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
         if ((getGetAlertPolicyMethod = AlertPolicyServiceGrpc.getGetAlertPolicyMethod) == null) {
-          AlertPolicyServiceGrpc.getGetAlertPolicyMethod = getGetAlertPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAlertPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.GetAlertPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
-              .build();
+          AlertPolicyServiceGrpc.getGetAlertPolicyMethod =
+              getGetAlertPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAlertPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.GetAlertPolicyRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
+                      .build();
         }
       }
     }
     return getGetAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getCreateAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateAlertPolicy",
       requestType = com.google.monitoring.v3.CreateAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateAlertPolicyMethod() {
-    io.grpc.MethodDescriptor getCreateAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getCreateAlertPolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.CreateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+        getCreateAlertPolicyMethod;
     if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod) == null) {
-          AlertPolicyServiceGrpc.getCreateAlertPolicyMethod = getCreateAlertPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAlertPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
-              .build();
+        if ((getCreateAlertPolicyMethod = AlertPolicyServiceGrpc.getCreateAlertPolicyMethod)
+            == null) {
+          AlertPolicyServiceGrpc.getCreateAlertPolicyMethod =
+              getCreateAlertPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAlertPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.CreateAlertPolicyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
+                      .build();
         }
       }
     }
     return getCreateAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
+      getDeleteAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteAlertPolicy",
       requestType = com.google.monitoring.v3.DeleteAlertPolicyRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteAlertPolicyMethod() {
-    io.grpc.MethodDescriptor getDeleteAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
+      getDeleteAlertPolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>
+        getDeleteAlertPolicyMethod;
     if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod) == null) {
-          AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod = getDeleteAlertPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAlertPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("DeleteAlertPolicy"))
-              .build();
+        if ((getDeleteAlertPolicyMethod = AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod)
+            == null) {
+          AlertPolicyServiceGrpc.getDeleteAlertPolicyMethod =
+              getDeleteAlertPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAlertPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.DeleteAlertPolicyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AlertPolicyServiceMethodDescriptorSupplier("DeleteAlertPolicy"))
+                      .build();
         }
       }
     }
     return getDeleteAlertPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateAlertPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getUpdateAlertPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateAlertPolicy",
       requestType = com.google.monitoring.v3.UpdateAlertPolicyRequest.class,
       responseType = com.google.monitoring.v3.AlertPolicy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateAlertPolicyMethod() {
-    io.grpc.MethodDescriptor getUpdateAlertPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+      getUpdateAlertPolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.UpdateAlertPolicyRequest, com.google.monitoring.v3.AlertPolicy>
+        getUpdateAlertPolicyMethod;
     if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod) == null) {
       synchronized (AlertPolicyServiceGrpc.class) {
-        if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod) == null) {
-          AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod = getUpdateAlertPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAlertPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
-              .setSchemaDescriptor(new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))
-              .build();
+        if ((getUpdateAlertPolicyMethod = AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod)
+            == null) {
+          AlertPolicyServiceGrpc.getUpdateAlertPolicyMethod =
+              getUpdateAlertPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAlertPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.UpdateAlertPolicyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.AlertPolicy.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))
+                      .build();
         }
       }
     }
     return getUpdateAlertPolicyMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static AlertPolicyServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public AlertPolicyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new AlertPolicyServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AlertPolicyServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AlertPolicyServiceStub(channel, callOptions);
+          }
+        };
     return AlertPolicyServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static AlertPolicyServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static AlertPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public AlertPolicyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new AlertPolicyServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AlertPolicyServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AlertPolicyServiceBlockingStub(channel, callOptions);
+          }
+        };
     return AlertPolicyServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static AlertPolicyServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static AlertPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public AlertPolicyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new AlertPolicyServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AlertPolicyServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AlertPolicyServiceFutureStub(channel, callOptions);
+          }
+        };
     return AlertPolicyServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -241,26 +324,37 @@ public AlertPolicyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.Cal
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - default void listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAlertPoliciesMethod(), responseObserver); + default void listAlertPolicies( + com.google.monitoring.v3.ListAlertPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAlertPoliciesMethod(), responseObserver); } /** + * + * *
      * Gets a single alerting policy.
      * 
*/ - default void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request, + default void getAlertPolicy( + com.google.monitoring.v3.GetAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAlertPolicyMethod(), responseObserver); } /** + * + * *
      * Creates a new alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -268,12 +362,16 @@ default void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest reque
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request, + default void createAlertPolicy( + com.google.monitoring.v3.CreateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAlertPolicyMethod(), responseObserver); } /** + * + * *
      * Deletes an alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -281,12 +379,16 @@ default void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request, + default void deleteAlertPolicy( + com.google.monitoring.v3.DeleteAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAlertPolicyMethod(), responseObserver); } /** + * + * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
@@ -297,14 +399,17 @@ default void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - default void updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request, + default void updateAlertPolicy( + com.google.monitoring.v3.UpdateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAlertPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAlertPolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service AlertPolicyService. + * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -317,16 +422,18 @@ default void updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest
    * [Cloud console](https://console.cloud.google.com/).
    * 
*/ - public static abstract class AlertPolicyServiceImplBase + public abstract static class AlertPolicyServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return AlertPolicyServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AlertPolicyService. + * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -341,8 +448,7 @@ public static abstract class AlertPolicyServiceImplBase
    */
   public static final class AlertPolicyServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private AlertPolicyServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private AlertPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -353,28 +459,41 @@ protected AlertPolicyServiceStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public void listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAlertPolicies( + com.google.monitoring.v3.ListAlertPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets a single alerting policy.
      * 
*/ - public void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request, + public void getAlertPolicy( + com.google.monitoring.v3.GetAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a new alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -382,13 +501,18 @@ public void getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest reques
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request, + public void createAlertPolicy( + com.google.monitoring.v3.CreateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes an alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -396,13 +520,18 @@ public void createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request, + public void deleteAlertPolicy( + com.google.monitoring.v3.DeleteAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
@@ -413,15 +542,19 @@ public void deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public void updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request, + public void updateAlertPolicy( + com.google.monitoring.v3.UpdateAlertPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AlertPolicyService. + * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -448,26 +581,34 @@ protected AlertPolicyServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request) { + public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies( + com.google.monitoring.v3.ListAlertPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAlertPoliciesMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a single alerting policy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy getAlertPolicy( + com.google.monitoring.v3.GetAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAlertPolicyMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a new alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -475,12 +616,15 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy(com.google.monitoring
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy createAlertPolicy( + com.google.monitoring.v3.CreateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAlertPolicyMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes an alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -488,12 +632,15 @@ public com.google.monitoring.v3.AlertPolicy createAlertPolicy(com.google.monitor
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.protobuf.Empty deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request) { + public com.google.protobuf.Empty deleteAlertPolicy( + com.google.monitoring.v3.DeleteAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAlertPolicyMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
@@ -504,7 +651,8 @@ public com.google.protobuf.Empty deleteAlertPolicy(com.google.monitoring.v3.Dele
      * CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
      * 
*/ - public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request) { + public com.google.monitoring.v3.AlertPolicy updateAlertPolicy( + com.google.monitoring.v3.UpdateAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAlertPolicyMethod(), getCallOptions(), request); } @@ -512,6 +660,7 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(com.google.monitor /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AlertPolicyService. + * *
    * The AlertPolicyService API is used to manage (list, create, delete,
    * edit) alert policies in Cloud Monitoring. An alerting policy is
@@ -526,8 +675,7 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(com.google.monitor
    */
   public static final class AlertPolicyServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private AlertPolicyServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private AlertPolicyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -538,28 +686,35 @@ protected AlertPolicyServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing alerting policies for the workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listAlertPolicies( - com.google.monitoring.v3.ListAlertPoliciesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListAlertPoliciesResponse> + listAlertPolicies(com.google.monitoring.v3.ListAlertPoliciesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAlertPoliciesMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a single alerting policy.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getAlertPolicy( - com.google.monitoring.v3.GetAlertPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getAlertPolicy(com.google.monitoring.v3.GetAlertPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAlertPolicyMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a new alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -567,13 +722,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createAlertPolicy(
-        com.google.monitoring.v3.CreateAlertPolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createAlertPolicy(com.google.monitoring.v3.CreateAlertPolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateAlertPolicyMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes an alerting policy.
      * Design your application to single-thread API calls that modify the state of
@@ -581,13 +738,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteAlertPolicy(
-        com.google.monitoring.v3.DeleteAlertPolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteAlertPolicy(com.google.monitoring.v3.DeleteAlertPolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteAlertPolicyMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates an alerting policy. You can either replace the entire policy with
      * a new one or replace only certain fields in the current alerting policy by
@@ -598,8 +757,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateAlertPolicy(
-        com.google.monitoring.v3.UpdateAlertPolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateAlertPolicy(com.google.monitoring.v3.UpdateAlertPolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateAlertPolicyMethod(), getCallOptions()), request);
     }
@@ -611,11 +770,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -629,23 +788,29 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_LIST_ALERT_POLICIES:
-          serviceImpl.listAlertPolicies((com.google.monitoring.v3.ListAlertPoliciesRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listAlertPolicies(
+              (com.google.monitoring.v3.ListAlertPoliciesRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_ALERT_POLICY:
-          serviceImpl.getAlertPolicy((com.google.monitoring.v3.GetAlertPolicyRequest) request,
+          serviceImpl.getAlertPolicy(
+              (com.google.monitoring.v3.GetAlertPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_CREATE_ALERT_POLICY:
-          serviceImpl.createAlertPolicy((com.google.monitoring.v3.CreateAlertPolicyRequest) request,
+          serviceImpl.createAlertPolicy(
+              (com.google.monitoring.v3.CreateAlertPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_ALERT_POLICY:
-          serviceImpl.deleteAlertPolicy((com.google.monitoring.v3.DeleteAlertPolicyRequest) request,
+          serviceImpl.deleteAlertPolicy(
+              (com.google.monitoring.v3.DeleteAlertPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_ALERT_POLICY:
-          serviceImpl.updateAlertPolicy((com.google.monitoring.v3.UpdateAlertPolicyRequest) request,
+          serviceImpl.updateAlertPolicy(
+              (com.google.monitoring.v3.UpdateAlertPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -667,45 +832,42 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getListAlertPoliciesMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.monitoring.v3.ListAlertPoliciesRequest,
-              com.google.monitoring.v3.ListAlertPoliciesResponse>(
-                service, METHODID_LIST_ALERT_POLICIES)))
+            getListAlertPoliciesMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.monitoring.v3.ListAlertPoliciesRequest,
+                    com.google.monitoring.v3.ListAlertPoliciesResponse>(
+                    service, METHODID_LIST_ALERT_POLICIES)))
         .addMethod(
-          getGetAlertPolicyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.monitoring.v3.GetAlertPolicyRequest,
-              com.google.monitoring.v3.AlertPolicy>(
-                service, METHODID_GET_ALERT_POLICY)))
+            getGetAlertPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.monitoring.v3.GetAlertPolicyRequest,
+                    com.google.monitoring.v3.AlertPolicy>(service, METHODID_GET_ALERT_POLICY)))
         .addMethod(
-          getCreateAlertPolicyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.monitoring.v3.CreateAlertPolicyRequest,
-              com.google.monitoring.v3.AlertPolicy>(
-                service, METHODID_CREATE_ALERT_POLICY)))
+            getCreateAlertPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.monitoring.v3.CreateAlertPolicyRequest,
+                    com.google.monitoring.v3.AlertPolicy>(service, METHODID_CREATE_ALERT_POLICY)))
         .addMethod(
-          getDeleteAlertPolicyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.monitoring.v3.DeleteAlertPolicyRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_DELETE_ALERT_POLICY)))
+            getDeleteAlertPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.monitoring.v3.DeleteAlertPolicyRequest, com.google.protobuf.Empty>(
+                    service, METHODID_DELETE_ALERT_POLICY)))
         .addMethod(
-          getUpdateAlertPolicyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.monitoring.v3.UpdateAlertPolicyRequest,
-              com.google.monitoring.v3.AlertPolicy>(
-                service, METHODID_UPDATE_ALERT_POLICY)))
+            getUpdateAlertPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.monitoring.v3.UpdateAlertPolicyRequest,
+                    com.google.monitoring.v3.AlertPolicy>(service, METHODID_UPDATE_ALERT_POLICY)))
         .build();
   }
 
-  private static abstract class AlertPolicyServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class AlertPolicyServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     AlertPolicyServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -747,14 +909,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (AlertPolicyServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new AlertPolicyServiceFileDescriptorSupplier())
-              .addMethod(getListAlertPoliciesMethod())
-              .addMethod(getGetAlertPolicyMethod())
-              .addMethod(getCreateAlertPolicyMethod())
-              .addMethod(getDeleteAlertPolicyMethod())
-              .addMethod(getUpdateAlertPolicyMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new AlertPolicyServiceFileDescriptorSupplier())
+                      .addMethod(getListAlertPoliciesMethod())
+                      .addMethod(getGetAlertPolicyMethod())
+                      .addMethod(getCreateAlertPolicyMethod())
+                      .addMethod(getDeleteAlertPolicyMethod())
+                      .addMethod(getUpdateAlertPolicyMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
similarity index 52%
rename from owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
rename to java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
index b55105b14e65..c39421b2cb22 100644
--- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
+++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.monitoring.v3;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * The Group API lets you inspect and manage your
  * [groups](#google.monitoring.v3.Group).
@@ -28,237 +45,297 @@ private GroupServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.GroupService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListGroupsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
+      getListGroupsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListGroups",
       requestType = com.google.monitoring.v3.ListGroupsRequest.class,
       responseType = com.google.monitoring.v3.ListGroupsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListGroupsMethod() {
-    io.grpc.MethodDescriptor getListGroupsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
+      getListGroupsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.ListGroupsRequest, com.google.monitoring.v3.ListGroupsResponse>
+        getListGroupsMethod;
     if ((getListGroupsMethod = GroupServiceGrpc.getListGroupsMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getListGroupsMethod = GroupServiceGrpc.getListGroupsMethod) == null) {
-          GroupServiceGrpc.getListGroupsMethod = getListGroupsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroups"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroups"))
-              .build();
+          GroupServiceGrpc.getListGroupsMethod =
+              getListGroupsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroups"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroups"))
+                      .build();
         }
       }
     }
     return getListGroupsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
+      getGetGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetGroup",
       requestType = com.google.monitoring.v3.GetGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetGroupMethod() {
-    io.grpc.MethodDescriptor getGetGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
+      getGetGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>
+        getGetGroupMethod;
     if ((getGetGroupMethod = GroupServiceGrpc.getGetGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getGetGroupMethod = GroupServiceGrpc.getGetGroupMethod) == null) {
-          GroupServiceGrpc.getGetGroupMethod = getGetGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.GetGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Group.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("GetGroup"))
-              .build();
+          GroupServiceGrpc.getGetGroupMethod =
+              getGetGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.GetGroupRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Group.getDefaultInstance()))
+                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("GetGroup"))
+                      .build();
         }
       }
     }
     return getGetGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
+      getCreateGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateGroup",
       requestType = com.google.monitoring.v3.CreateGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateGroupMethod() {
-    io.grpc.MethodDescriptor getCreateGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
+      getCreateGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>
+        getCreateGroupMethod;
     if ((getCreateGroupMethod = GroupServiceGrpc.getCreateGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getCreateGroupMethod = GroupServiceGrpc.getCreateGroupMethod) == null) {
-          GroupServiceGrpc.getCreateGroupMethod = getCreateGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.CreateGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Group.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("CreateGroup"))
-              .build();
+          GroupServiceGrpc.getCreateGroupMethod =
+              getCreateGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.CreateGroupRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Group.getDefaultInstance()))
+                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("CreateGroup"))
+                      .build();
         }
       }
     }
     return getCreateGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
+      getUpdateGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateGroup",
       requestType = com.google.monitoring.v3.UpdateGroupRequest.class,
       responseType = com.google.monitoring.v3.Group.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateGroupMethod() {
-    io.grpc.MethodDescriptor getUpdateGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
+      getUpdateGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>
+        getUpdateGroupMethod;
     if ((getUpdateGroupMethod = GroupServiceGrpc.getUpdateGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getUpdateGroupMethod = GroupServiceGrpc.getUpdateGroupMethod) == null) {
-          GroupServiceGrpc.getUpdateGroupMethod = getUpdateGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Group.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("UpdateGroup"))
-              .build();
+          GroupServiceGrpc.getUpdateGroupMethod =
+              getUpdateGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Group.getDefaultInstance()))
+                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("UpdateGroup"))
+                      .build();
         }
       }
     }
     return getUpdateGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>
+      getDeleteGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteGroup",
       requestType = com.google.monitoring.v3.DeleteGroupRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteGroupMethod() {
-    io.grpc.MethodDescriptor getDeleteGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>
+      getDeleteGroupMethod() {
+    io.grpc.MethodDescriptor
+        getDeleteGroupMethod;
     if ((getDeleteGroupMethod = GroupServiceGrpc.getDeleteGroupMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getDeleteGroupMethod = GroupServiceGrpc.getDeleteGroupMethod) == null) {
-          GroupServiceGrpc.getDeleteGroupMethod = getDeleteGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.DeleteGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("DeleteGroup"))
-              .build();
+          GroupServiceGrpc.getDeleteGroupMethod =
+              getDeleteGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.DeleteGroupRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("DeleteGroup"))
+                      .build();
         }
       }
     }
     return getDeleteGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListGroupMembersMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListGroupMembersRequest,
+          com.google.monitoring.v3.ListGroupMembersResponse>
+      getListGroupMembersMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListGroupMembers",
       requestType = com.google.monitoring.v3.ListGroupMembersRequest.class,
       responseType = com.google.monitoring.v3.ListGroupMembersResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListGroupMembersMethod() {
-    io.grpc.MethodDescriptor getListGroupMembersMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListGroupMembersRequest,
+          com.google.monitoring.v3.ListGroupMembersResponse>
+      getListGroupMembersMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.ListGroupMembersRequest,
+            com.google.monitoring.v3.ListGroupMembersResponse>
+        getListGroupMembersMethod;
     if ((getListGroupMembersMethod = GroupServiceGrpc.getListGroupMembersMethod) == null) {
       synchronized (GroupServiceGrpc.class) {
         if ((getListGroupMembersMethod = GroupServiceGrpc.getListGroupMembersMethod) == null) {
-          GroupServiceGrpc.getListGroupMembersMethod = getListGroupMembersMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroupMembers"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroupMembers"))
-              .build();
+          GroupServiceGrpc.getListGroupMembersMethod =
+              getListGroupMembersMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGroupMembers"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListGroupMembersRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListGroupMembersResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new GroupServiceMethodDescriptorSupplier("ListGroupMembers"))
+                      .build();
         }
       }
     }
     return getListGroupMembersMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static GroupServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public GroupServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new GroupServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public GroupServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new GroupServiceStub(channel, callOptions);
+          }
+        };
     return GroupServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static GroupServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static GroupServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public GroupServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new GroupServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public GroupServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new GroupServiceBlockingStub(channel, callOptions);
+          }
+        };
     return GroupServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static GroupServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static GroupServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public GroupServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new GroupServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public GroupServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new GroupServiceFutureStub(channel, callOptions);
+          }
+        };
     return GroupServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -276,69 +353,93 @@ public GroupServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists the existing groups.
      * 
*/ - default void listGroups(com.google.monitoring.v3.ListGroupsRequest request, + default void listGroups( + com.google.monitoring.v3.ListGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGroupsMethod(), responseObserver); } /** + * + * *
      * Gets a single group.
      * 
*/ - default void getGroup(com.google.monitoring.v3.GetGroupRequest request, + default void getGroup( + com.google.monitoring.v3.GetGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGroupMethod(), responseObserver); } /** + * + * *
      * Creates a new group.
      * 
*/ - default void createGroup(com.google.monitoring.v3.CreateGroupRequest request, + default void createGroup( + com.google.monitoring.v3.CreateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGroupMethod(), responseObserver); } /** + * + * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - default void updateGroup(com.google.monitoring.v3.UpdateGroupRequest request, + default void updateGroup( + com.google.monitoring.v3.UpdateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGroupMethod(), responseObserver); } /** + * + * *
      * Deletes an existing group.
      * 
*/ - default void deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request, + default void deleteGroup( + com.google.monitoring.v3.DeleteGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGroupMethod(), responseObserver); } /** + * + * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - default void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGroupMembersMethod(), responseObserver); + default void listGroupMembers( + com.google.monitoring.v3.ListGroupMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGroupMembersMethod(), responseObserver); } } /** * Base class for the server implementation of the service GroupService. + * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -353,16 +454,18 @@ default void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest r
    * from the infrastructure.
    * 
*/ - public static abstract class GroupServiceImplBase + public abstract static class GroupServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return GroupServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service GroupService. + * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -379,87 +482,113 @@ public static abstract class GroupServiceImplBase
    */
   public static final class GroupServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private GroupServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected GroupServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected GroupServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new GroupServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing groups.
      * 
*/ - public void listGroups(com.google.monitoring.v3.ListGroupsRequest request, + public void listGroups( + com.google.monitoring.v3.ListGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Gets a single group.
      * 
*/ - public void getGroup(com.google.monitoring.v3.GetGroupRequest request, + public void getGroup( + com.google.monitoring.v3.GetGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetGroupMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates a new group.
      * 
*/ - public void createGroup(com.google.monitoring.v3.CreateGroupRequest request, + public void createGroup( + com.google.monitoring.v3.CreateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateGroupMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public void updateGroup(com.google.monitoring.v3.UpdateGroupRequest request, + public void updateGroup( + com.google.monitoring.v3.UpdateGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes an existing group.
      * 
*/ - public void deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request, + public void deleteGroup( + com.google.monitoring.v3.DeleteGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listGroupMembers( + com.google.monitoring.v3.ListGroupMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service GroupService. + * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -476,8 +605,7 @@ public void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest re
    */
   public static final class GroupServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private GroupServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -488,62 +616,80 @@ protected GroupServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing groups.
      * 
*/ - public com.google.monitoring.v3.ListGroupsResponse listGroups(com.google.monitoring.v3.ListGroupsRequest request) { + public com.google.monitoring.v3.ListGroupsResponse listGroups( + com.google.monitoring.v3.ListGroupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a single group.
      * 
*/ - public com.google.monitoring.v3.Group getGroup(com.google.monitoring.v3.GetGroupRequest request) { + public com.google.monitoring.v3.Group getGroup( + com.google.monitoring.v3.GetGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a new group.
      * 
*/ - public com.google.monitoring.v3.Group createGroup(com.google.monitoring.v3.CreateGroupRequest request) { + public com.google.monitoring.v3.Group createGroup( + com.google.monitoring.v3.CreateGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public com.google.monitoring.v3.Group updateGroup(com.google.monitoring.v3.UpdateGroupRequest request) { + public com.google.monitoring.v3.Group updateGroup( + com.google.monitoring.v3.UpdateGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes an existing group.
      * 
*/ - public com.google.protobuf.Empty deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request) { + public com.google.protobuf.Empty deleteGroup( + com.google.monitoring.v3.DeleteGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request) { + public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers( + com.google.monitoring.v3.ListGroupMembersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGroupMembersMethod(), getCallOptions(), request); } @@ -551,6 +697,7 @@ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(com.go /** * A stub to allow clients to do ListenableFuture-style rpc calls to service GroupService. + * *
    * The Group API lets you inspect and manage your
    * [groups](#google.monitoring.v3.Group).
@@ -567,8 +714,7 @@ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(com.go
    */
   public static final class GroupServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private GroupServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private GroupServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -579,68 +725,82 @@ protected GroupServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing groups.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listGroups( - com.google.monitoring.v3.ListGroupsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListGroupsResponse> + listGroups(com.google.monitoring.v3.ListGroupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a single group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getGroup( - com.google.monitoring.v3.GetGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getGroup(com.google.monitoring.v3.GetGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a new group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createGroup( - com.google.monitoring.v3.CreateGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createGroup(com.google.monitoring.v3.CreateGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an existing group.
      * You can change any group attributes except `name`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateGroup( - com.google.monitoring.v3.UpdateGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateGroup(com.google.monitoring.v3.UpdateGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes an existing group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteGroup( - com.google.monitoring.v3.DeleteGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteGroup(com.google.monitoring.v3.DeleteGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the monitored resources that are members of a group.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listGroupMembers( - com.google.monitoring.v3.ListGroupMembersRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListGroupMembersResponse> + listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGroupMembersMethod(), getCallOptions()), request); } @@ -653,11 +813,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -671,28 +831,36 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_GROUPS: - serviceImpl.listGroups((com.google.monitoring.v3.ListGroupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listGroups( + (com.google.monitoring.v3.ListGroupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_GROUP: - serviceImpl.getGroup((com.google.monitoring.v3.GetGroupRequest) request, + serviceImpl.getGroup( + (com.google.monitoring.v3.GetGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_GROUP: - serviceImpl.createGroup((com.google.monitoring.v3.CreateGroupRequest) request, + serviceImpl.createGroup( + (com.google.monitoring.v3.CreateGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_GROUP: - serviceImpl.updateGroup((com.google.monitoring.v3.UpdateGroupRequest) request, + serviceImpl.updateGroup( + (com.google.monitoring.v3.UpdateGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_GROUP: - serviceImpl.deleteGroup((com.google.monitoring.v3.DeleteGroupRequest) request, + serviceImpl.deleteGroup( + (com.google.monitoring.v3.DeleteGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_GROUP_MEMBERS: - serviceImpl.listGroupMembers((com.google.monitoring.v3.ListGroupMembersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listGroupMembers( + (com.google.monitoring.v3.ListGroupMembersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -713,52 +881,48 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListGroupsRequest, - com.google.monitoring.v3.ListGroupsResponse>( - service, METHODID_LIST_GROUPS))) + getListGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListGroupsRequest, + com.google.monitoring.v3.ListGroupsResponse>(service, METHODID_LIST_GROUPS))) .addMethod( - getGetGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetGroupRequest, - com.google.monitoring.v3.Group>( - service, METHODID_GET_GROUP))) + getGetGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetGroupRequest, com.google.monitoring.v3.Group>( + service, METHODID_GET_GROUP))) .addMethod( - getCreateGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateGroupRequest, - com.google.monitoring.v3.Group>( - service, METHODID_CREATE_GROUP))) + getCreateGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateGroupRequest, com.google.monitoring.v3.Group>( + service, METHODID_CREATE_GROUP))) .addMethod( - getUpdateGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateGroupRequest, - com.google.monitoring.v3.Group>( - service, METHODID_UPDATE_GROUP))) + getUpdateGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateGroupRequest, com.google.monitoring.v3.Group>( + service, METHODID_UPDATE_GROUP))) .addMethod( - getDeleteGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteGroupRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_GROUP))) + getDeleteGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteGroupRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_GROUP))) .addMethod( - getListGroupMembersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListGroupMembersRequest, - com.google.monitoring.v3.ListGroupMembersResponse>( - service, METHODID_LIST_GROUP_MEMBERS))) + getListGroupMembersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListGroupMembersRequest, + com.google.monitoring.v3.ListGroupMembersResponse>( + service, METHODID_LIST_GROUP_MEMBERS))) .build(); } - private static abstract class GroupServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class GroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { GroupServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -800,15 +964,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (GroupServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GroupServiceFileDescriptorSupplier()) - .addMethod(getListGroupsMethod()) - .addMethod(getGetGroupMethod()) - .addMethod(getCreateGroupMethod()) - .addMethod(getUpdateGroupMethod()) - .addMethod(getDeleteGroupMethod()) - .addMethod(getListGroupMembersMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GroupServiceFileDescriptorSupplier()) + .addMethod(getListGroupsMethod()) + .addMethod(getGetGroupMethod()) + .addMethod(getCreateGroupMethod()) + .addMethod(getUpdateGroupMethod()) + .addMethod(getDeleteGroupMethod()) + .addMethod(getListGroupMembersMethod()) + .build(); } } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java new file mode 100644 index 000000000000..87ee959651d3 --- /dev/null +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java @@ -0,0 +1,1402 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages metric descriptors, monitored resource descriptors, and
+ * time series data.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/metric_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MetricServiceGrpc { + + private MetricServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.MetricService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", + requestType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod; + if ((getListMonitoredResourceDescriptorsMethod = + MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListMonitoredResourceDescriptorsMethod = + MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) + == null) { + MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod = + getListMonitoredResourceDescriptorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier( + "ListMonitoredResourceDescriptors")) + .build(); + } + } + } + return getListMonitoredResourceDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, + com.google.api.MonitoredResourceDescriptor> + getGetMonitoredResourceDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMonitoredResourceDescriptor", + requestType = com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, + responseType = com.google.api.MonitoredResourceDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, + com.google.api.MonitoredResourceDescriptor> + getGetMonitoredResourceDescriptorMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, + com.google.api.MonitoredResourceDescriptor> + getGetMonitoredResourceDescriptorMethod; + if ((getGetMonitoredResourceDescriptorMethod = + MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getGetMonitoredResourceDescriptorMethod = + MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) + == null) { + MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod = + getGetMonitoredResourceDescriptorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMonitoredResourceDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MonitoredResourceDescriptor.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier( + "GetMonitoredResourceDescriptor")) + .build(); + } + } + } + return getGetMonitoredResourceDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMetricDescriptorsRequest, + com.google.monitoring.v3.ListMetricDescriptorsResponse> + getListMetricDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMetricDescriptors", + requestType = com.google.monitoring.v3.ListMetricDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListMetricDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMetricDescriptorsRequest, + com.google.monitoring.v3.ListMetricDescriptorsResponse> + getListMetricDescriptorsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListMetricDescriptorsRequest, + com.google.monitoring.v3.ListMetricDescriptorsResponse> + getListMetricDescriptorsMethod; + if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) + == null) { + MetricServiceGrpc.getListMetricDescriptorsMethod = + getListMetricDescriptorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMetricDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMetricDescriptorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListMetricDescriptorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("ListMetricDescriptors")) + .build(); + } + } + } + return getListMetricDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> + getGetMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetricDescriptor", + requestType = com.google.monitoring.v3.GetMetricDescriptorRequest.class, + responseType = com.google.api.MetricDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> + getGetMetricDescriptorMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetMetricDescriptorRequest, com.google.api.MetricDescriptor> + getGetMetricDescriptorMethod; + if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) + == null) { + MetricServiceGrpc.getGetMetricDescriptorMethod = + getGetMetricDescriptorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetMetricDescriptorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MetricDescriptor.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("GetMetricDescriptor")) + .build(); + } + } + } + return getGetMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> + getCreateMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMetricDescriptor", + requestType = com.google.monitoring.v3.CreateMetricDescriptorRequest.class, + responseType = com.google.api.MetricDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> + getCreateMetricDescriptorMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateMetricDescriptorRequest, com.google.api.MetricDescriptor> + getCreateMetricDescriptorMethod; + if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) + == null) { + MetricServiceGrpc.getCreateMetricDescriptorMethod = + getCreateMetricDescriptorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateMetricDescriptorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.MetricDescriptor.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("CreateMetricDescriptor")) + .build(); + } + } + } + return getCreateMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> + getDeleteMetricDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMetricDescriptor", + requestType = com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> + getDeleteMetricDescriptorMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteMetricDescriptorRequest, com.google.protobuf.Empty> + getDeleteMetricDescriptorMethod; + if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) + == null) { + MetricServiceGrpc.getDeleteMetricDescriptorMethod = + getDeleteMetricDescriptorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMetricDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteMetricDescriptorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("DeleteMetricDescriptor")) + .build(); + } + } + } + return getDeleteMetricDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListTimeSeriesRequest, + com.google.monitoring.v3.ListTimeSeriesResponse> + getListTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTimeSeries", + requestType = com.google.monitoring.v3.ListTimeSeriesRequest.class, + responseType = com.google.monitoring.v3.ListTimeSeriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListTimeSeriesRequest, + com.google.monitoring.v3.ListTimeSeriesResponse> + getListTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListTimeSeriesRequest, + com.google.monitoring.v3.ListTimeSeriesResponse> + getListTimeSeriesMethod; + if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { + MetricServiceGrpc.getListTimeSeriesMethod = + getListTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("ListTimeSeries")) + .build(); + } + } + } + return getListTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTimeSeries", + requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateTimeSeriesMethod; + if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { + MetricServiceGrpc.getCreateTimeSeriesMethod = + getCreateTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("CreateTimeSeries")) + .build(); + } + } + } + return getCreateTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateServiceTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServiceTimeSeries", + requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateServiceTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty> + getCreateServiceTimeSeriesMethod; + if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) + == null) { + synchronized (MetricServiceGrpc.class) { + if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) + == null) { + MetricServiceGrpc.getCreateServiceTimeSeriesMethod = + getCreateServiceTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateServiceTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MetricServiceMethodDescriptorSupplier("CreateServiceTimeSeries")) + .build(); + } + } + } + return getCreateServiceTimeSeriesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MetricServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceStub(channel, callOptions); + } + }; + return MetricServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetricServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceBlockingStub(channel, callOptions); + } + }; + return MetricServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MetricServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceFutureStub(channel, callOptions); + } + }; + return MetricServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listMonitoredResourceDescriptors( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMonitoredResourceDescriptorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + default void getMonitoredResourceDescriptor( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMonitoredResourceDescriptorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listMetricDescriptors( + com.google.monitoring.v3.ListMetricDescriptorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMetricDescriptorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + default void getMetricDescriptor( + com.google.monitoring.v3.GetMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMetricDescriptorMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + default void createMetricDescriptor( + com.google.monitoring.v3.CreateMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMetricDescriptorMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + default void deleteMetricDescriptor( + com.google.monitoring.v3.DeleteMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMetricDescriptorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + default void listTimeSeries( + com.google.monitoring.v3.ListTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + default void createTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + default void createServiceTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceTimeSeriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MetricService. + * + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public abstract static class MetricServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MetricServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MetricService. + * + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MetricServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listMonitoredResourceDescriptors( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public void getMonitoredResourceDescriptor( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listMetricDescriptors( + com.google.monitoring.v3.ListMetricDescriptorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public void getMetricDescriptor( + com.google.monitoring.v3.GetMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public void createMetricDescriptor( + com.google.monitoring.v3.CreateMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public void deleteMetricDescriptor( + com.google.monitoring.v3.DeleteMetricDescriptorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public void listTimeSeries( + com.google.monitoring.v3.ListTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public void createTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public void createServiceTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MetricService. + * + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetricServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + listMonitoredResourceDescriptors( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMonitoredResourceDescriptorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors( + com.google.monitoring.v3.ListMetricDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMetricDescriptorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.api.MetricDescriptor getMetricDescriptor( + com.google.monitoring.v3.GetMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public com.google.api.MetricDescriptor createMetricDescriptor( + com.google.monitoring.v3.CreateMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public com.google.protobuf.Empty deleteMetricDescriptor( + com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMetricDescriptorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries( + com.google.monitoring.v3.ListTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public com.google.protobuf.Empty createTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public com.google.protobuf.Empty createServiceTimeSeries( + com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricService. + * + *
+   * Manages metric descriptors, monitored resource descriptors, and
+   * time series data.
+   * 
+ */ + public static final class MetricServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetricServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptors( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets a single monitored resource descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.api.MonitoredResourceDescriptor> + getMonitoredResourceDescriptor( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists metric descriptors that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListMetricDescriptorsResponse> + listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a single metric descriptor. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new metric descriptor.
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress.
+     * User-created metric descriptors define
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a metric descriptor. Only user-created
+     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
+     * deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists time series that match a filter. This method does not require a Workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListTimeSeriesResponse> + listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or adds data to one or more time series.
+     * The response is empty if all time series in the request were written.
+     * If any time series could not be written, a corresponding failure message is
+     * included in the error response.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or adds data to one or more service time series. A service time
+     * series is a time series for a metric from a Google Cloud service. The
+     * response is empty if all time series in the request were written. If any
+     * time series could not be written, a corresponding failure message is
+     * included in the error response. This endpoint rejects writes to
+     * user-defined metrics.
+     * This method is only for use by Google Cloud services. Use
+     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
+     * instead.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 0; + private static final int METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR = 1; + private static final int METHODID_LIST_METRIC_DESCRIPTORS = 2; + private static final int METHODID_GET_METRIC_DESCRIPTOR = 3; + private static final int METHODID_CREATE_METRIC_DESCRIPTOR = 4; + private static final int METHODID_DELETE_METRIC_DESCRIPTOR = 5; + private static final int METHODID_LIST_TIME_SERIES = 6; + private static final int METHODID_CREATE_TIME_SERIES = 7; + private static final int METHODID_CREATE_SERVICE_TIME_SERIES = 8; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: + serviceImpl.listMonitoredResourceDescriptors( + (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>) + responseObserver); + break; + case METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR: + serviceImpl.getMonitoredResourceDescriptor( + (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_METRIC_DESCRIPTORS: + serviceImpl.listMetricDescriptors( + (com.google.monitoring.v3.ListMetricDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_METRIC_DESCRIPTOR: + serviceImpl.getMetricDescriptor( + (com.google.monitoring.v3.GetMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_METRIC_DESCRIPTOR: + serviceImpl.createMetricDescriptor( + (com.google.monitoring.v3.CreateMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_METRIC_DESCRIPTOR: + serviceImpl.deleteMetricDescriptor( + (com.google.monitoring.v3.DeleteMetricDescriptorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TIME_SERIES: + serviceImpl.listTimeSeries( + (com.google.monitoring.v3.ListTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_TIME_SERIES: + serviceImpl.createTimeSeries( + (com.google.monitoring.v3.CreateTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVICE_TIME_SERIES: + serviceImpl.createServiceTimeSeries( + (com.google.monitoring.v3.CreateTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>( + service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + .addMethod( + getGetMonitoredResourceDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, + com.google.api.MonitoredResourceDescriptor>( + service, METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR))) + .addMethod( + getListMetricDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListMetricDescriptorsRequest, + com.google.monitoring.v3.ListMetricDescriptorsResponse>( + service, METHODID_LIST_METRIC_DESCRIPTORS))) + .addMethod( + getGetMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetMetricDescriptorRequest, + com.google.api.MetricDescriptor>(service, METHODID_GET_METRIC_DESCRIPTOR))) + .addMethod( + getCreateMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateMetricDescriptorRequest, + com.google.api.MetricDescriptor>(service, METHODID_CREATE_METRIC_DESCRIPTOR))) + .addMethod( + getDeleteMetricDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteMetricDescriptorRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_METRIC_DESCRIPTOR))) + .addMethod( + getListTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListTimeSeriesRequest, + com.google.monitoring.v3.ListTimeSeriesResponse>( + service, METHODID_LIST_TIME_SERIES))) + .addMethod( + getCreateTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty>( + service, METHODID_CREATE_TIME_SERIES))) + .addMethod( + getCreateServiceTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateTimeSeriesRequest, com.google.protobuf.Empty>( + service, METHODID_CREATE_SERVICE_TIME_SERIES))) + .build(); + } + + private abstract static class MetricServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetricServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.MetricServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetricService"); + } + } + + private static final class MetricServiceFileDescriptorSupplier + extends MetricServiceBaseDescriptorSupplier { + MetricServiceFileDescriptorSupplier() {} + } + + private static final class MetricServiceMethodDescriptorSupplier + extends MetricServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MetricServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MetricServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetricServiceFileDescriptorSupplier()) + .addMethod(getListMonitoredResourceDescriptorsMethod()) + .addMethod(getGetMonitoredResourceDescriptorMethod()) + .addMethod(getListMetricDescriptorsMethod()) + .addMethod(getGetMetricDescriptorMethod()) + .addMethod(getCreateMetricDescriptorMethod()) + .addMethod(getDeleteMetricDescriptorMethod()) + .addMethod(getListTimeSeriesMethod()) + .addMethod(getCreateTimeSeriesMethod()) + .addMethod(getCreateServiceTimeSeriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java new file mode 100644 index 000000000000..cc7c7ec96e9f --- /dev/null +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java @@ -0,0 +1,1730 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The Notification Channel API provides access to configuration that
+ * controls how messages related to incidents are sent.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/notification_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotificationChannelServiceGrpc { + + private NotificationChannelServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.NotificationChannelService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + getListNotificationChannelDescriptorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannelDescriptors", + requestType = com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, + responseType = com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + getListNotificationChannelDescriptorsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + getListNotificationChannelDescriptorsMethod; + if ((getListNotificationChannelDescriptorsMethod = + NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getListNotificationChannelDescriptorsMethod = + NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) + == null) { + NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod = + getListNotificationChannelDescriptorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListNotificationChannelDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "ListNotificationChannelDescriptors")) + .build(); + } + } + } + return getListNotificationChannelDescriptorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, + com.google.monitoring.v3.NotificationChannelDescriptor> + getGetNotificationChannelDescriptorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelDescriptor", + requestType = com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, + responseType = com.google.monitoring.v3.NotificationChannelDescriptor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, + com.google.monitoring.v3.NotificationChannelDescriptor> + getGetNotificationChannelDescriptorMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, + com.google.monitoring.v3.NotificationChannelDescriptor> + getGetNotificationChannelDescriptorMethod; + if ((getGetNotificationChannelDescriptorMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelDescriptorMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) + == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod = + getGetNotificationChannelDescriptorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetNotificationChannelDescriptor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannelDescriptor + .getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "GetNotificationChannelDescriptor")) + .build(); + } + } + } + return getGetNotificationChannelDescriptorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelsRequest, + com.google.monitoring.v3.ListNotificationChannelsResponse> + getListNotificationChannelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannels", + requestType = com.google.monitoring.v3.ListNotificationChannelsRequest.class, + responseType = com.google.monitoring.v3.ListNotificationChannelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelsRequest, + com.google.monitoring.v3.ListNotificationChannelsResponse> + getListNotificationChannelsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListNotificationChannelsRequest, + com.google.monitoring.v3.ListNotificationChannelsResponse> + getListNotificationChannelsMethod; + if ((getListNotificationChannelsMethod = + NotificationChannelServiceGrpc.getListNotificationChannelsMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getListNotificationChannelsMethod = + NotificationChannelServiceGrpc.getListNotificationChannelsMethod) + == null) { + NotificationChannelServiceGrpc.getListNotificationChannelsMethod = + getListNotificationChannelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNotificationChannels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListNotificationChannelsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "ListNotificationChannels")) + .build(); + } + } + } + return getListNotificationChannelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getGetNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannel", + requestType = com.google.monitoring.v3.GetNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getGetNotificationChannelMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getGetNotificationChannelMethod; + if ((getGetNotificationChannelMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelMethod) + == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelMethod = + getGetNotificationChannelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "GetNotificationChannel")) + .build(); + } + } + } + return getGetNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getCreateNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationChannel", + requestType = com.google.monitoring.v3.CreateNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getCreateNotificationChannelMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getCreateNotificationChannelMethod; + if ((getCreateNotificationChannelMethod = + NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getCreateNotificationChannelMethod = + NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) + == null) { + NotificationChannelServiceGrpc.getCreateNotificationChannelMethod = + getCreateNotificationChannelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateNotificationChannelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "CreateNotificationChannel")) + .build(); + } + } + } + return getCreateNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getUpdateNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationChannel", + requestType = com.google.monitoring.v3.UpdateNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getUpdateNotificationChannelMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getUpdateNotificationChannelMethod; + if ((getUpdateNotificationChannelMethod = + NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getUpdateNotificationChannelMethod = + NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) + == null) { + NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod = + getUpdateNotificationChannelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateNotificationChannelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "UpdateNotificationChannel")) + .build(); + } + } + } + return getUpdateNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> + getDeleteNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationChannel", + requestType = com.google.monitoring.v3.DeleteNotificationChannelRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> + getDeleteNotificationChannelMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteNotificationChannelRequest, com.google.protobuf.Empty> + getDeleteNotificationChannelMethod; + if ((getDeleteNotificationChannelMethod = + NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getDeleteNotificationChannelMethod = + NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) + == null) { + NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod = + getDeleteNotificationChannelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteNotificationChannelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "DeleteNotificationChannel")) + .build(); + } + } + } + return getDeleteNotificationChannelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, + com.google.protobuf.Empty> + getSendNotificationChannelVerificationCodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendNotificationChannelVerificationCode", + requestType = com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, + com.google.protobuf.Empty> + getSendNotificationChannelVerificationCodeMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, + com.google.protobuf.Empty> + getSendNotificationChannelVerificationCodeMethod; + if ((getSendNotificationChannelVerificationCodeMethod = + NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getSendNotificationChannelVerificationCodeMethod = + NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) + == null) { + NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod = + getSendNotificationChannelVerificationCodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SendNotificationChannelVerificationCode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3 + .SendNotificationChannelVerificationCodeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "SendNotificationChannelVerificationCode")) + .build(); + } + } + } + return getSendNotificationChannelVerificationCodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + getGetNotificationChannelVerificationCodeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelVerificationCode", + requestType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, + responseType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + getGetNotificationChannelVerificationCodeMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + getGetNotificationChannelVerificationCodeMethod; + if ((getGetNotificationChannelVerificationCodeMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getGetNotificationChannelVerificationCodeMethod = + NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) + == null) { + NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod = + getGetNotificationChannelVerificationCodeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetNotificationChannelVerificationCode")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3 + .GetNotificationChannelVerificationCodeResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "GetNotificationChannelVerificationCode")) + .build(); + } + } + } + return getGetNotificationChannelVerificationCodeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.VerifyNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getVerifyNotificationChannelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyNotificationChannel", + requestType = com.google.monitoring.v3.VerifyNotificationChannelRequest.class, + responseType = com.google.monitoring.v3.NotificationChannel.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.VerifyNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getVerifyNotificationChannelMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.VerifyNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel> + getVerifyNotificationChannelMethod; + if ((getVerifyNotificationChannelMethod = + NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) + == null) { + synchronized (NotificationChannelServiceGrpc.class) { + if ((getVerifyNotificationChannelMethod = + NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) + == null) { + NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod = + getVerifyNotificationChannelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "VerifyNotificationChannel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.VerifyNotificationChannelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) + .setSchemaDescriptor( + new NotificationChannelServiceMethodDescriptorSupplier( + "VerifyNotificationChannel")) + .build(); + } + } + } + return getVerifyNotificationChannelMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static NotificationChannelServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceStub(channel, callOptions); + } + }; + return NotificationChannelServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NotificationChannelServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceBlockingStub(channel, callOptions); + } + }; + return NotificationChannelServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static NotificationChannelServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotificationChannelServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceFutureStub(channel, callOptions); + } + }; + return NotificationChannelServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + default void listNotificationChannelDescriptors( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotificationChannelDescriptorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + default void getNotificationChannelDescriptor( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationChannelDescriptorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + default void listNotificationChannels( + com.google.monitoring.v3.ListNotificationChannelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotificationChannelsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + default void getNotificationChannel( + com.google.monitoring.v3.GetNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationChannelMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void createNotificationChannel( + com.google.monitoring.v3.CreateNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNotificationChannelMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void updateNotificationChannel( + com.google.monitoring.v3.UpdateNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNotificationChannelMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + default void deleteNotificationChannel( + com.google.monitoring.v3.DeleteNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNotificationChannelMethod(), responseObserver); + } + + /** + * + * + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + default void sendNotificationChannelVerificationCode( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSendNotificationChannelVerificationCodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + default void getNotificationChannelVerificationCode( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationChannelVerificationCodeMethod(), responseObserver); + } + + /** + * + * + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + default void verifyNotificationChannel( + com.google.monitoring.v3.VerifyNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyNotificationChannelMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service NotificationChannelService. + * + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public abstract static class NotificationChannelServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return NotificationChannelServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service NotificationChannelService. + * + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private NotificationChannelServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public void listNotificationChannelDescriptors( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public void getNotificationChannelDescriptor( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public void listNotificationChannels( + com.google.monitoring.v3.ListNotificationChannelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public void getNotificationChannel( + com.google.monitoring.v3.GetNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void createNotificationChannel( + com.google.monitoring.v3.CreateNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void updateNotificationChannel( + com.google.monitoring.v3.UpdateNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public void deleteNotificationChannel( + com.google.monitoring.v3.DeleteNotificationChannelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public void sendNotificationChannelVerificationCode( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public void getNotificationChannelVerificationCode( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, + io.grpc.stub.StreamObserver< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public void verifyNotificationChannel( + com.google.monitoring.v3.VerifyNotificationChannelRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service NotificationChannelService. + * + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NotificationChannelServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + listNotificationChannelDescriptors( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationChannelDescriptorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationChannelDescriptor( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationChannelDescriptorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificationChannels( + com.google.monitoring.v3.ListNotificationChannelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationChannelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel getNotificationChannel( + com.google.monitoring.v3.GetNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationChannelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel createNotificationChannel( + com.google.monitoring.v3.CreateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationChannelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel updateNotificationChannel( + com.google.monitoring.v3.UpdateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationChannelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationChannel( + com.google.monitoring.v3.DeleteNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationChannelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public com.google.protobuf.Empty sendNotificationChannelVerificationCode( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getSendNotificationChannelVerificationCodeMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse + getNotificationChannelVerificationCode( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetNotificationChannelVerificationCodeMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public com.google.monitoring.v3.NotificationChannel verifyNotificationChannel( + com.google.monitoring.v3.VerifyNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyNotificationChannelMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * NotificationChannelService. + * + *
+   * The Notification Channel API provides access to configuration that
+   * controls how messages related to incidents are sent.
+   * 
+ */ + public static final class NotificationChannelServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NotificationChannelServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotificationChannelServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotificationChannelServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the descriptors for supported channel types. The use of descriptors
+     * makes it possible for new channel types to be dynamically added.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse> + listNotificationChannelDescriptors( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets a single channel descriptor. The descriptor indicates which fields
+     * are expected / permitted for a notification channel of the given type.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.NotificationChannelDescriptor> + getNotificationChannelDescriptor( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists the notification channels that have been created for the project.
+     * To list the types of notification channels that are supported, use
+     * the `ListNotificationChannelDescriptors` method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListNotificationChannelsResponse> + listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a single notification channel. The channel includes the relevant
+     * configuration details with which the channel was created. However, the
+     * response may truncate or omit passwords, API keys, or other private key
+     * matter and thus the response may not be 100% identical to the information
+     * that was supplied in the call to the create method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.NotificationChannel> + getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new notification channel, representing a single notification
+     * endpoint such as an email address, SMS number, or PagerDuty service.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.NotificationChannel> + createNotificationChannel( + com.google.monitoring.v3.CreateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a notification channel. Fields not specified in the field mask
+     * remain unchanged.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.NotificationChannel> + updateNotificationChannel( + com.google.monitoring.v3.UpdateNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a notification channel.
+     * Design your application to single-thread API calls that modify the state of
+     * notification channels in a single project. This includes calls to
+     * CreateNotificationChannel, DeleteNotificationChannel and
+     * UpdateNotificationChannel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNotificationChannel( + com.google.monitoring.v3.DeleteNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Causes a verification code to be delivered to the channel. The code
+     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + sendNotificationChannelVerificationCode( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Requests a verification code for an already verified channel that can then
+     * be used in a call to VerifyNotificationChannel() on a different channel
+     * with an equivalent identity in the same or in a different project. This
+     * makes it possible to copy a channel between projects without requiring
+     * manual reverification of the channel. If the channel is not in the
+     * verified state, this method will fail (in other words, this may only be
+     * used if the SendNotificationChannelVerificationCode and
+     * VerifyNotificationChannel paths have already been used to put the given
+     * channel into the verified state).
+     * There is no guarantee that the verification codes returned by this method
+     * will be of a similar structure or form as the ones that are delivered
+     * to the channel via SendNotificationChannelVerificationCode; while
+     * VerifyNotificationChannel() will recognize both the codes delivered via
+     * SendNotificationChannelVerificationCode() and returned from
+     * GetNotificationChannelVerificationCode(), it is typically the case that
+     * the verification codes delivered via
+     * SendNotificationChannelVerificationCode() will be shorter and also
+     * have a shorter expiration (e.g. codes such as "G-123456") whereas
+     * GetVerificationCode() will typically return a much longer, websafe base
+     * 64 encoded string that has a longer expiration time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse> + getNotificationChannelVerificationCode( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Verifies a `NotificationChannel` by proving receipt of the code
+     * delivered to the channel as a result of calling
+     * `SendNotificationChannelVerificationCode`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.NotificationChannel> + verifyNotificationChannel( + com.google.monitoring.v3.VerifyNotificationChannelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS = 0; + private static final int METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR = 1; + private static final int METHODID_LIST_NOTIFICATION_CHANNELS = 2; + private static final int METHODID_GET_NOTIFICATION_CHANNEL = 3; + private static final int METHODID_CREATE_NOTIFICATION_CHANNEL = 4; + private static final int METHODID_UPDATE_NOTIFICATION_CHANNEL = 5; + private static final int METHODID_DELETE_NOTIFICATION_CHANNEL = 6; + private static final int METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 7; + private static final int METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 8; + private static final int METHODID_VERIFY_NOTIFICATION_CHANNEL = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS: + serviceImpl.listNotificationChannelDescriptors( + (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>) + responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR: + serviceImpl.getNotificationChannelDescriptor( + (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CHANNELS: + serviceImpl.listNotificationChannels( + (com.google.monitoring.v3.ListNotificationChannelsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListNotificationChannelsResponse>) + responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL: + serviceImpl.getNotificationChannel( + (com.google.monitoring.v3.GetNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CHANNEL: + serviceImpl.createNotificationChannel( + (com.google.monitoring.v3.CreateNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CHANNEL: + serviceImpl.updateNotificationChannel( + (com.google.monitoring.v3.UpdateNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CHANNEL: + serviceImpl.deleteNotificationChannel( + (com.google.monitoring.v3.DeleteNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE: + serviceImpl.sendNotificationChannelVerificationCode( + (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE: + serviceImpl.getNotificationChannelVerificationCode( + (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>) + responseObserver); + break; + case METHODID_VERIFY_NOTIFICATION_CHANNEL: + serviceImpl.verifyNotificationChannel( + (com.google.monitoring.v3.VerifyNotificationChannelRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNotificationChannelDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>( + service, METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS))) + .addMethod( + getGetNotificationChannelDescriptorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, + com.google.monitoring.v3.NotificationChannelDescriptor>( + service, METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR))) + .addMethod( + getListNotificationChannelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListNotificationChannelsRequest, + com.google.monitoring.v3.ListNotificationChannelsResponse>( + service, METHODID_LIST_NOTIFICATION_CHANNELS))) + .addMethod( + getGetNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_GET_NOTIFICATION_CHANNEL))) + .addMethod( + getCreateNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_CREATE_NOTIFICATION_CHANNEL))) + .addMethod( + getUpdateNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_UPDATE_NOTIFICATION_CHANNEL))) + .addMethod( + getDeleteNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteNotificationChannelRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_NOTIFICATION_CHANNEL))) + .addMethod( + getSendNotificationChannelVerificationCodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, + com.google.protobuf.Empty>( + service, METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) + .addMethod( + getGetNotificationChannelVerificationCodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>( + service, METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) + .addMethod( + getVerifyNotificationChannelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.VerifyNotificationChannelRequest, + com.google.monitoring.v3.NotificationChannel>( + service, METHODID_VERIFY_NOTIFICATION_CHANNEL))) + .build(); + } + + private abstract static class NotificationChannelServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NotificationChannelServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NotificationChannelService"); + } + } + + private static final class NotificationChannelServiceFileDescriptorSupplier + extends NotificationChannelServiceBaseDescriptorSupplier { + NotificationChannelServiceFileDescriptorSupplier() {} + } + + private static final class NotificationChannelServiceMethodDescriptorSupplier + extends NotificationChannelServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NotificationChannelServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NotificationChannelServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NotificationChannelServiceFileDescriptorSupplier()) + .addMethod(getListNotificationChannelDescriptorsMethod()) + .addMethod(getGetNotificationChannelDescriptorMethod()) + .addMethod(getListNotificationChannelsMethod()) + .addMethod(getGetNotificationChannelMethod()) + .addMethod(getCreateNotificationChannelMethod()) + .addMethod(getUpdateNotificationChannelMethod()) + .addMethod(getDeleteNotificationChannelMethod()) + .addMethod(getSendNotificationChannelVerificationCodeMethod()) + .addMethod(getGetNotificationChannelVerificationCodeMethod()) + .addMethod(getVerifyNotificationChannelMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java similarity index 57% rename from owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java rename to java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java index b40de816b7c6..2b550fe16c8d 100644 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The QueryService API is used to manage time series data in Stackdriver
  * Monitoring. Time series data is a collection of data points that describes
@@ -20,82 +37,96 @@ private QueryServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.QueryService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getQueryTimeSeriesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.QueryTimeSeriesRequest,
+          com.google.monitoring.v3.QueryTimeSeriesResponse>
+      getQueryTimeSeriesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "QueryTimeSeries",
       requestType = com.google.monitoring.v3.QueryTimeSeriesRequest.class,
       responseType = com.google.monitoring.v3.QueryTimeSeriesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getQueryTimeSeriesMethod() {
-    io.grpc.MethodDescriptor getQueryTimeSeriesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.QueryTimeSeriesRequest,
+          com.google.monitoring.v3.QueryTimeSeriesResponse>
+      getQueryTimeSeriesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.QueryTimeSeriesRequest,
+            com.google.monitoring.v3.QueryTimeSeriesResponse>
+        getQueryTimeSeriesMethod;
     if ((getQueryTimeSeriesMethod = QueryServiceGrpc.getQueryTimeSeriesMethod) == null) {
       synchronized (QueryServiceGrpc.class) {
         if ((getQueryTimeSeriesMethod = QueryServiceGrpc.getQueryTimeSeriesMethod) == null) {
-          QueryServiceGrpc.getQueryTimeSeriesMethod = getQueryTimeSeriesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTimeSeries"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new QueryServiceMethodDescriptorSupplier("QueryTimeSeries"))
-              .build();
+          QueryServiceGrpc.getQueryTimeSeriesMethod =
+              getQueryTimeSeriesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTimeSeries"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.QueryTimeSeriesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new QueryServiceMethodDescriptorSupplier("QueryTimeSeries"))
+                      .build();
         }
       }
     }
     return getQueryTimeSeriesMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static QueryServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public QueryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new QueryServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public QueryServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new QueryServiceStub(channel, callOptions);
+          }
+        };
     return QueryServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static QueryServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static QueryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public QueryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new QueryServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public QueryServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new QueryServiceBlockingStub(channel, callOptions);
+          }
+        };
     return QueryServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static QueryServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static QueryServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public QueryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new QueryServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public QueryServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new QueryServiceFutureStub(channel, callOptions);
+          }
+        };
     return QueryServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -105,34 +136,42 @@ public QueryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - default void queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryTimeSeriesMethod(), responseObserver); + default void queryTimeSeries( + com.google.monitoring.v3.QueryTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryTimeSeriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service QueryService. + * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
    * the time-varying values of a metric.
    * 
*/ - public static abstract class QueryServiceImplBase + public abstract static class QueryServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return QueryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service QueryService. + * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -141,31 +180,36 @@ public static abstract class QueryServiceImplBase
    */
   public static final class QueryServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private QueryServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected QueryServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected QueryServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new QueryServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public void queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void queryTimeSeries( + com.google.monitoring.v3.QueryTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service QueryService. + * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -174,8 +218,7 @@ public void queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest requ
    */
   public static final class QueryServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private QueryServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -186,11 +229,14 @@ protected QueryServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request) { + public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries( + com.google.monitoring.v3.QueryTimeSeriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryTimeSeriesMethod(), getCallOptions(), request); } @@ -198,6 +244,7 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries(com.goog /** * A stub to allow clients to do ListenableFuture-style rpc calls to service QueryService. + * *
    * The QueryService API is used to manage time series data in Stackdriver
    * Monitoring. Time series data is a collection of data points that describes
@@ -206,8 +253,7 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries(com.goog
    */
   public static final class QueryServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private QueryServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private QueryServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -218,12 +264,15 @@ protected QueryServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Queries time series using Monitoring Query Language. This method does not require a Workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture queryTimeSeries( - com.google.monitoring.v3.QueryTimeSeriesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.QueryTimeSeriesResponse> + queryTimeSeries(com.google.monitoring.v3.QueryTimeSeriesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryTimeSeriesMethod(), getCallOptions()), request); } @@ -231,11 +280,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -249,8 +298,10 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_QUERY_TIME_SERIES: - serviceImpl.queryTimeSeries((com.google.monitoring.v3.QueryTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.queryTimeSeries( + (com.google.monitoring.v3.QueryTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -271,17 +322,18 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getQueryTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.QueryTimeSeriesRequest, - com.google.monitoring.v3.QueryTimeSeriesResponse>( - service, METHODID_QUERY_TIME_SERIES))) + getQueryTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.QueryTimeSeriesRequest, + com.google.monitoring.v3.QueryTimeSeriesResponse>( + service, METHODID_QUERY_TIME_SERIES))) .build(); } - private static abstract class QueryServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class QueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { QueryServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -323,10 +375,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (QueryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new QueryServiceFileDescriptorSupplier()) - .addMethod(getQueryTimeSeriesMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new QueryServiceFileDescriptorSupplier()) + .addMethod(getQueryTimeSeriesMethod()) + .build(); } } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java new file mode 100644 index 000000000000..6c9b6a0a8dc0 --- /dev/null +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java @@ -0,0 +1,1469 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+ * managing and querying aspects of a workspace's services. These include the
+ * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+ * of categorized Health Metrics.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/service_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServiceMonitoringServiceGrpc { + + private ServiceMonitoringServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.ServiceMonitoringService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> + getCreateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateService", + requestType = com.google.monitoring.v3.CreateServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> + getCreateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceRequest, com.google.monitoring.v3.Service> + getCreateServiceMethod; + if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) + == null) { + ServiceMonitoringServiceGrpc.getCreateServiceMethod = + getCreateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier("CreateService")) + .build(); + } + } + } + return getCreateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> + getGetServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetService", + requestType = com.google.monitoring.v3.GetServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> + getGetServiceMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service> + getGetServiceMethod; + if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { + ServiceMonitoringServiceGrpc.getGetServiceMethod = + getGetServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier("GetService")) + .build(); + } + } + } + return getGetServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServicesRequest, + com.google.monitoring.v3.ListServicesResponse> + getListServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServices", + requestType = com.google.monitoring.v3.ListServicesRequest.class, + responseType = com.google.monitoring.v3.ListServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServicesRequest, + com.google.monitoring.v3.ListServicesResponse> + getListServicesMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServicesRequest, + com.google.monitoring.v3.ListServicesResponse> + getListServicesMethod; + if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { + ServiceMonitoringServiceGrpc.getListServicesMethod = + getListServicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServicesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier("ListServices")) + .build(); + } + } + } + return getListServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> + getUpdateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateService", + requestType = com.google.monitoring.v3.UpdateServiceRequest.class, + responseType = com.google.monitoring.v3.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> + getUpdateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceRequest, com.google.monitoring.v3.Service> + getUpdateServiceMethod; + if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) + == null) { + ServiceMonitoringServiceGrpc.getUpdateServiceMethod = + getUpdateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.Service.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateService")) + .build(); + } + } + } + return getUpdateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> + getDeleteServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteService", + requestType = com.google.monitoring.v3.DeleteServiceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> + getDeleteServiceMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty> + getDeleteServiceMethod; + if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) + == null) { + ServiceMonitoringServiceGrpc.getDeleteServiceMethod = + getDeleteServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteService")) + .build(); + } + } + } + return getDeleteServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getCreateServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServiceLevelObjective", + requestType = com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getCreateServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getCreateServiceLevelObjectiveMethod; + if ((getCreateServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) + == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getCreateServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) + == null) { + ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod = + getCreateServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier( + "CreateServiceLevelObjective")) + .build(); + } + } + } + return getCreateServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getGetServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServiceLevelObjective", + requestType = com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getGetServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getGetServiceLevelObjectiveMethod; + if ((getGetServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) + == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getGetServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) + == null) { + ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod = + getGetServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier( + "GetServiceLevelObjective")) + .build(); + } + } + } + return getGetServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServiceLevelObjectivesRequest, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse> + getListServiceLevelObjectivesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServiceLevelObjectives", + requestType = com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, + responseType = com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServiceLevelObjectivesRequest, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse> + getListServiceLevelObjectivesMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListServiceLevelObjectivesRequest, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse> + getListServiceLevelObjectivesMethod; + if ((getListServiceLevelObjectivesMethod = + ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) + == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getListServiceLevelObjectivesMethod = + ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) + == null) { + ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod = + getListServiceLevelObjectivesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListServiceLevelObjectives")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListServiceLevelObjectivesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier( + "ListServiceLevelObjectives")) + .build(); + } + } + } + return getListServiceLevelObjectivesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getUpdateServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateServiceLevelObjective", + requestType = com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, + responseType = com.google.monitoring.v3.ServiceLevelObjective.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getUpdateServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective> + getUpdateServiceLevelObjectiveMethod; + if ((getUpdateServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) + == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getUpdateServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) + == null) { + ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod = + getUpdateServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier( + "UpdateServiceLevelObjective")) + .build(); + } + } + } + return getUpdateServiceLevelObjectiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> + getDeleteServiceLevelObjectiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServiceLevelObjective", + requestType = com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> + getDeleteServiceLevelObjectiveMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, com.google.protobuf.Empty> + getDeleteServiceLevelObjectiveMethod; + if ((getDeleteServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) + == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + if ((getDeleteServiceLevelObjectiveMethod = + ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) + == null) { + ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod = + getDeleteServiceLevelObjectiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteServiceLevelObjective")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ServiceMonitoringServiceMethodDescriptorSupplier( + "DeleteServiceLevelObjective")) + .build(); + } + } + } + return getDeleteServiceLevelObjectiveMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ServiceMonitoringServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServiceMonitoringServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceBlockingStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ServiceMonitoringServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServiceMonitoringServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceFutureStub(channel, callOptions); + } + }; + return ServiceMonitoringServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Create a `Service`.
+     * 
+ */ + default void createService( + com.google.monitoring.v3.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Get the named `Service`.
+     * 
+ */ + default void getService( + com.google.monitoring.v3.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * List `Service`s for this workspace.
+     * 
+ */ + default void listServices( + com.google.monitoring.v3.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update this `Service`.
+     * 
+ */ + default void updateService( + com.google.monitoring.v3.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Soft delete this `Service`.
+     * 
+ */ + default void deleteService( + com.google.monitoring.v3.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + default void createServiceLevelObjective( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceLevelObjectiveMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + default void getServiceLevelObjective( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServiceLevelObjectiveMethod(), responseObserver); + } + + /** + * + * + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + default void listServiceLevelObjectives( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServiceLevelObjectivesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + default void updateServiceLevelObjective( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceLevelObjectiveMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + default void deleteServiceLevelObjective( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceLevelObjectiveMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ServiceMonitoringService. + * + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public abstract static class ServiceMonitoringServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ServiceMonitoringServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ServiceMonitoringService. + * + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ServiceMonitoringServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a `Service`.
+     * 
+ */ + public void createService( + com.google.monitoring.v3.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get the named `Service`.
+     * 
+ */ + public void getService( + com.google.monitoring.v3.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public void listServices( + com.google.monitoring.v3.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update this `Service`.
+     * 
+ */ + public void updateService( + com.google.monitoring.v3.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Soft delete this `Service`.
+     * 
+ */ + public void deleteService( + com.google.monitoring.v3.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public void createServiceLevelObjective( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public void getServiceLevelObjective( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public void listServiceLevelObjectives( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public void updateServiceLevelObjective( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public void deleteServiceLevelObjective( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ServiceMonitoringService. + * + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServiceMonitoringServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service createService( + com.google.monitoring.v3.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the named `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service getService( + com.google.monitoring.v3.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public com.google.monitoring.v3.ListServicesResponse listServices( + com.google.monitoring.v3.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update this `Service`.
+     * 
+ */ + public com.google.monitoring.v3.Service updateService( + com.google.monitoring.v3.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Soft delete this `Service`.
+     * 
+ */ + public com.google.protobuf.Empty deleteService( + com.google.monitoring.v3.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjective( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLevelObjectives( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServiceLevelObjectivesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjective( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceLevelObjectiveMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.protobuf.Empty deleteServiceLevelObjective( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceLevelObjectiveMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ServiceMonitoringService. + * + *
+   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
+   * managing and querying aspects of a workspace's services. These include the
+   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
+   * of categorized Health Metrics.
+   * 
+ */ + public static final class ServiceMonitoringServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServiceMonitoringServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceMonitoringServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceMonitoringServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createService(com.google.monitoring.v3.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get the named `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getService(com.google.monitoring.v3.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List `Service`s for this workspace.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListServicesResponse> + listServices(com.google.monitoring.v3.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update this `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateService(com.google.monitoring.v3.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Soft delete this `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteService(com.google.monitoring.v3.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a `ServiceLevelObjective` for the given `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ServiceLevelObjective> + createServiceLevelObjective( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a `ServiceLevelObjective` by name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ServiceLevelObjective> + getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List the `ServiceLevelObjective`s for the given `Service`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListServiceLevelObjectivesResponse> + listServiceLevelObjectives( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ServiceLevelObjective> + updateServiceLevelObjective( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete the given `ServiceLevelObjective`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteServiceLevelObjective( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SERVICE = 0; + private static final int METHODID_GET_SERVICE = 1; + private static final int METHODID_LIST_SERVICES = 2; + private static final int METHODID_UPDATE_SERVICE = 3; + private static final int METHODID_DELETE_SERVICE = 4; + private static final int METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE = 5; + private static final int METHODID_GET_SERVICE_LEVEL_OBJECTIVE = 6; + private static final int METHODID_LIST_SERVICE_LEVEL_OBJECTIVES = 7; + private static final int METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE = 8; + private static final int METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SERVICE: + serviceImpl.createService( + (com.google.monitoring.v3.CreateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVICE: + serviceImpl.getService( + (com.google.monitoring.v3.GetServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SERVICES: + serviceImpl.listServices( + (com.google.monitoring.v3.ListServicesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SERVICE: + serviceImpl.updateService( + (com.google.monitoring.v3.UpdateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE: + serviceImpl.deleteService( + (com.google.monitoring.v3.DeleteServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.createServiceLevelObjective( + (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.getServiceLevelObjective( + (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SERVICE_LEVEL_OBJECTIVES: + serviceImpl.listServiceLevelObjectives( + (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.monitoring.v3.ListServiceLevelObjectivesResponse>) + responseObserver); + break; + case METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.updateServiceLevelObjective( + (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE: + serviceImpl.deleteServiceLevelObjective( + (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateServiceRequest, + com.google.monitoring.v3.Service>(service, METHODID_CREATE_SERVICE))) + .addMethod( + getGetServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetServiceRequest, com.google.monitoring.v3.Service>( + service, METHODID_GET_SERVICE))) + .addMethod( + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListServicesRequest, + com.google.monitoring.v3.ListServicesResponse>( + service, METHODID_LIST_SERVICES))) + .addMethod( + getUpdateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateServiceRequest, + com.google.monitoring.v3.Service>(service, METHODID_UPDATE_SERVICE))) + .addMethod( + getDeleteServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteServiceRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SERVICE))) + .addMethod( + getCreateServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getGetServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_GET_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getListServiceLevelObjectivesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListServiceLevelObjectivesRequest, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse>( + service, METHODID_LIST_SERVICE_LEVEL_OBJECTIVES))) + .addMethod( + getUpdateServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, + com.google.monitoring.v3.ServiceLevelObjective>( + service, METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE))) + .addMethod( + getDeleteServiceLevelObjectiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE))) + .build(); + } + + private abstract static class ServiceMonitoringServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServiceMonitoringServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ServiceMonitoringService"); + } + } + + private static final class ServiceMonitoringServiceFileDescriptorSupplier + extends ServiceMonitoringServiceBaseDescriptorSupplier { + ServiceMonitoringServiceFileDescriptorSupplier() {} + } + + private static final class ServiceMonitoringServiceMethodDescriptorSupplier + extends ServiceMonitoringServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ServiceMonitoringServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ServiceMonitoringServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServiceMonitoringServiceFileDescriptorSupplier()) + .addMethod(getCreateServiceMethod()) + .addMethod(getGetServiceMethod()) + .addMethod(getListServicesMethod()) + .addMethod(getUpdateServiceMethod()) + .addMethod(getDeleteServiceMethod()) + .addMethod(getCreateServiceLevelObjectiveMethod()) + .addMethod(getGetServiceLevelObjectiveMethod()) + .addMethod(getListServiceLevelObjectivesMethod()) + .addMethod(getUpdateServiceLevelObjectiveMethod()) + .addMethod(getDeleteServiceLevelObjectiveMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java similarity index 53% rename from owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java rename to java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java index 03b85b634e0e..377f15cefe7b 100644 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.monitoring.v3; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The SnoozeService API is used to temporarily prevent an alert policy from
  * generating alerts. A Snooze is a description of the criteria under which one
@@ -20,175 +37,216 @@ private SnoozeServiceGrpc() {}
   public static final String SERVICE_NAME = "google.monitoring.v3.SnoozeService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getCreateSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSnooze",
       requestType = com.google.monitoring.v3.CreateSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateSnoozeMethod() {
-    io.grpc.MethodDescriptor getCreateSnoozeMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getCreateSnoozeMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>
+        getCreateSnoozeMethod;
     if ((getCreateSnoozeMethod = SnoozeServiceGrpc.getCreateSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getCreateSnoozeMethod = SnoozeServiceGrpc.getCreateSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getCreateSnoozeMethod = getCreateSnoozeMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnooze"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.CreateSnoozeRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
-              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("CreateSnooze"))
-              .build();
+          SnoozeServiceGrpc.getCreateSnoozeMethod =
+              getCreateSnoozeMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnooze"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.CreateSnoozeRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SnoozeServiceMethodDescriptorSupplier("CreateSnooze"))
+                      .build();
         }
       }
     }
     return getCreateSnoozeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListSnoozesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListSnoozesRequest, com.google.monitoring.v3.ListSnoozesResponse>
+      getListSnoozesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSnoozes",
       requestType = com.google.monitoring.v3.ListSnoozesRequest.class,
       responseType = com.google.monitoring.v3.ListSnoozesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListSnoozesMethod() {
-    io.grpc.MethodDescriptor getListSnoozesMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.ListSnoozesRequest, com.google.monitoring.v3.ListSnoozesResponse>
+      getListSnoozesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.ListSnoozesRequest,
+            com.google.monitoring.v3.ListSnoozesResponse>
+        getListSnoozesMethod;
     if ((getListSnoozesMethod = SnoozeServiceGrpc.getListSnoozesMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getListSnoozesMethod = SnoozeServiceGrpc.getListSnoozesMethod) == null) {
-          SnoozeServiceGrpc.getListSnoozesMethod = getListSnoozesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnoozes"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListSnoozesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.ListSnoozesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("ListSnoozes"))
-              .build();
+          SnoozeServiceGrpc.getListSnoozesMethod =
+              getListSnoozesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnoozes"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListSnoozesRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.ListSnoozesResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("ListSnoozes"))
+                      .build();
         }
       }
     }
     return getListSnoozesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getGetSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSnooze",
       requestType = com.google.monitoring.v3.GetSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetSnoozeMethod() {
-    io.grpc.MethodDescriptor getGetSnoozeMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getGetSnoozeMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>
+        getGetSnoozeMethod;
     if ((getGetSnoozeMethod = SnoozeServiceGrpc.getGetSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getGetSnoozeMethod = SnoozeServiceGrpc.getGetSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getGetSnoozeMethod = getGetSnoozeMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnooze"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.GetSnoozeRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
-              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("GetSnooze"))
-              .build();
+          SnoozeServiceGrpc.getGetSnoozeMethod =
+              getGetSnoozeMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnooze"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.GetSnoozeRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
+                      .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("GetSnooze"))
+                      .build();
         }
       }
     }
     return getGetSnoozeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateSnoozeMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getUpdateSnoozeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSnooze",
       requestType = com.google.monitoring.v3.UpdateSnoozeRequest.class,
       responseType = com.google.monitoring.v3.Snooze.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateSnoozeMethod() {
-    io.grpc.MethodDescriptor getUpdateSnoozeMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
+      getUpdateSnoozeMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>
+        getUpdateSnoozeMethod;
     if ((getUpdateSnoozeMethod = SnoozeServiceGrpc.getUpdateSnoozeMethod) == null) {
       synchronized (SnoozeServiceGrpc.class) {
         if ((getUpdateSnoozeMethod = SnoozeServiceGrpc.getUpdateSnoozeMethod) == null) {
-          SnoozeServiceGrpc.getUpdateSnoozeMethod = getUpdateSnoozeMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnooze"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.UpdateSnoozeRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.monitoring.v3.Snooze.getDefaultInstance()))
-              .setSchemaDescriptor(new SnoozeServiceMethodDescriptorSupplier("UpdateSnooze"))
-              .build();
+          SnoozeServiceGrpc.getUpdateSnoozeMethod =
+              getUpdateSnoozeMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnooze"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.UpdateSnoozeRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.monitoring.v3.Snooze.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SnoozeServiceMethodDescriptorSupplier("UpdateSnooze"))
+                      .build();
         }
       }
     }
     return getUpdateSnoozeMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static SnoozeServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SnoozeServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SnoozeServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SnoozeServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SnoozeServiceStub(channel, callOptions);
+          }
+        };
     return SnoozeServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SnoozeServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static SnoozeServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SnoozeServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SnoozeServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SnoozeServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SnoozeServiceBlockingStub(channel, callOptions);
+          }
+        };
     return SnoozeServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static SnoozeServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static SnoozeServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SnoozeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SnoozeServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SnoozeServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SnoozeServiceFutureStub(channel, callOptions);
+          }
+        };
     return SnoozeServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -198,68 +256,87 @@ public SnoozeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - default void createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request, + default void createSnooze( + com.google.monitoring.v3.CreateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnoozeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSnoozeMethod(), responseObserver); } /** + * + * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - default void listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnoozesMethod(), responseObserver); + default void listSnoozes( + com.google.monitoring.v3.ListSnoozesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSnoozesMethod(), responseObserver); } /** + * + * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - default void getSnooze(com.google.monitoring.v3.GetSnoozeRequest request, + default void getSnooze( + com.google.monitoring.v3.GetSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnoozeMethod(), responseObserver); } /** + * + * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - default void updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request, + default void updateSnooze( + com.google.monitoring.v3.UpdateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnoozeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSnoozeMethod(), responseObserver); } } /** * Base class for the server implementation of the service SnoozeService. + * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
    * or more alert policies should not fire alerts for the specified duration.
    * 
*/ - public static abstract class SnoozeServiceImplBase + public abstract static class SnoozeServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return SnoozeServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SnoozeService. + * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -268,68 +345,86 @@ public static abstract class SnoozeServiceImplBase
    */
   public static final class SnoozeServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private SnoozeServiceStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected SnoozeServiceStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected SnoozeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new SnoozeServiceStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public void createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request, + public void createSnooze( + com.google.monitoring.v3.CreateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public void listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listSnoozes( + com.google.monitoring.v3.ListSnoozesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnoozesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListSnoozesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public void getSnooze(com.google.monitoring.v3.GetSnoozeRequest request, + public void getSnooze( + com.google.monitoring.v3.GetSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSnoozeMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public void updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request, + public void updateSnooze( + com.google.monitoring.v3.UpdateSnoozeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service SnoozeService. + * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -338,8 +433,7 @@ public void updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request,
    */
   public static final class SnoozeServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private SnoozeServiceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -350,45 +444,57 @@ protected SnoozeServiceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public com.google.monitoring.v3.Snooze createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request) { + public com.google.monitoring.v3.Snooze createSnooze( + com.google.monitoring.v3.CreateSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSnoozeMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public com.google.monitoring.v3.ListSnoozesResponse listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request) { + public com.google.monitoring.v3.ListSnoozesResponse listSnoozes( + com.google.monitoring.v3.ListSnoozesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSnoozesMethod(), getCallOptions(), request); } /** + * + * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public com.google.monitoring.v3.Snooze getSnooze(com.google.monitoring.v3.GetSnoozeRequest request) { + public com.google.monitoring.v3.Snooze getSnooze( + com.google.monitoring.v3.GetSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSnoozeMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public com.google.monitoring.v3.Snooze updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request) { + public com.google.monitoring.v3.Snooze updateSnooze( + com.google.monitoring.v3.UpdateSnoozeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSnoozeMethod(), getCallOptions(), request); } @@ -396,6 +502,7 @@ public com.google.monitoring.v3.Snooze updateSnooze(com.google.monitoring.v3.Upd /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SnoozeService. + * *
    * The SnoozeService API is used to temporarily prevent an alert policy from
    * generating alerts. A Snooze is a description of the criteria under which one
@@ -404,8 +511,7 @@ public com.google.monitoring.v3.Snooze updateSnooze(com.google.monitoring.v3.Upd
    */
   public static final class SnoozeServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SnoozeServiceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SnoozeServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -416,49 +522,58 @@ protected SnoozeServiceFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a `Snooze` that will prevent alerts, which match the provided
      * criteria, from being opened. The `Snooze` applies for a specific time
      * interval.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createSnooze( - com.google.monitoring.v3.CreateSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createSnooze(com.google.monitoring.v3.CreateSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSnoozeMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the `Snooze`s associated with a project. Can optionally pass in
      * `filter`, which specifies predicates to match `Snooze`s.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listSnoozes( - com.google.monitoring.v3.ListSnoozesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListSnoozesResponse> + listSnoozes(com.google.monitoring.v3.ListSnoozesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSnoozesMethod(), getCallOptions()), request); } /** + * + * *
      * Retrieves a `Snooze` by `name`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getSnooze( - com.google.monitoring.v3.GetSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getSnooze(com.google.monitoring.v3.GetSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSnoozeMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a `Snooze`, identified by its `name`, with the parameters in the
      * given `Snooze` object.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateSnooze( - com.google.monitoring.v3.UpdateSnoozeRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateSnooze(com.google.monitoring.v3.UpdateSnoozeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSnoozeMethod(), getCallOptions()), request); } @@ -469,11 +584,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -487,19 +602,24 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_SNOOZE: - serviceImpl.createSnooze((com.google.monitoring.v3.CreateSnoozeRequest) request, + serviceImpl.createSnooze( + (com.google.monitoring.v3.CreateSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SNOOZES: - serviceImpl.listSnoozes((com.google.monitoring.v3.ListSnoozesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listSnoozes( + (com.google.monitoring.v3.ListSnoozesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_SNOOZE: - serviceImpl.getSnooze((com.google.monitoring.v3.GetSnoozeRequest) request, + serviceImpl.getSnooze( + (com.google.monitoring.v3.GetSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SNOOZE: - serviceImpl.updateSnooze((com.google.monitoring.v3.UpdateSnoozeRequest) request, + serviceImpl.updateSnooze( + (com.google.monitoring.v3.UpdateSnoozeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -521,38 +641,35 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateSnoozeRequest, - com.google.monitoring.v3.Snooze>( - service, METHODID_CREATE_SNOOZE))) + getCreateSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateSnoozeRequest, com.google.monitoring.v3.Snooze>( + service, METHODID_CREATE_SNOOZE))) .addMethod( - getListSnoozesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListSnoozesRequest, - com.google.monitoring.v3.ListSnoozesResponse>( - service, METHODID_LIST_SNOOZES))) + getListSnoozesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListSnoozesRequest, + com.google.monitoring.v3.ListSnoozesResponse>(service, METHODID_LIST_SNOOZES))) .addMethod( - getGetSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetSnoozeRequest, - com.google.monitoring.v3.Snooze>( - service, METHODID_GET_SNOOZE))) + getGetSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetSnoozeRequest, com.google.monitoring.v3.Snooze>( + service, METHODID_GET_SNOOZE))) .addMethod( - getUpdateSnoozeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateSnoozeRequest, - com.google.monitoring.v3.Snooze>( - service, METHODID_UPDATE_SNOOZE))) + getUpdateSnoozeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateSnoozeRequest, com.google.monitoring.v3.Snooze>( + service, METHODID_UPDATE_SNOOZE))) .build(); } - private static abstract class SnoozeServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class SnoozeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { SnoozeServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -594,13 +711,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SnoozeServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SnoozeServiceFileDescriptorSupplier()) - .addMethod(getCreateSnoozeMethod()) - .addMethod(getListSnoozesMethod()) - .addMethod(getGetSnoozeMethod()) - .addMethod(getUpdateSnoozeMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SnoozeServiceFileDescriptorSupplier()) + .addMethod(getCreateSnoozeMethod()) + .addMethod(getListSnoozesMethod()) + .addMethod(getGetSnoozeMethod()) + .addMethod(getUpdateSnoozeMethod()) + .build(); } } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java new file mode 100644 index 000000000000..54bff6bb7cce --- /dev/null +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java @@ -0,0 +1,1054 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.monitoring.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The UptimeCheckService API is used to manage (list, create, delete, edit)
+ * Uptime check configurations in the Cloud Monitoring product. An Uptime
+ * check is a piece of configuration that determines which resources and
+ * services to monitor for availability. These configurations can also be
+ * configured interactively by navigating to the [Cloud console]
+ * (https://console.cloud.google.com), selecting the appropriate project,
+ * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+ * Monitoring, and then clicking on "Uptime".
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/monitoring/v3/uptime_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class UptimeCheckServiceGrpc { + + private UptimeCheckServiceGrpc() {} + + public static final String SERVICE_NAME = "google.monitoring.v3.UptimeCheckService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckConfigsRequest, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse> + getListUptimeCheckConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckConfigs", + requestType = com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, + responseType = com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckConfigsRequest, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse> + getListUptimeCheckConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckConfigsRequest, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse> + getListUptimeCheckConfigsMethod; + if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getListUptimeCheckConfigsMethod = + UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) + == null) { + UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod = + getListUptimeCheckConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUptimeCheckConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckConfigs")) + .build(); + } + } + } + return getListUptimeCheckConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getGetUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUptimeCheckConfig", + requestType = com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getGetUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.GetUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getGetUptimeCheckConfigMethod; + if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) + == null) { + UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod = + getGetUptimeCheckConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.GetUptimeCheckConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("GetUptimeCheckConfig")) + .build(); + } + } + } + return getGetUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getCreateUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUptimeCheckConfig", + requestType = com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getCreateUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.CreateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getCreateUptimeCheckConfigMethod; + if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getCreateUptimeCheckConfigMethod = + UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) + == null) { + UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod = + getCreateUptimeCheckConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("CreateUptimeCheckConfig")) + .build(); + } + } + } + return getCreateUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getUpdateUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUptimeCheckConfig", + requestType = com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, + responseType = com.google.monitoring.v3.UptimeCheckConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getUpdateUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig> + getUpdateUptimeCheckConfigMethod; + if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getUpdateUptimeCheckConfigMethod = + UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) + == null) { + UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod = + getUpdateUptimeCheckConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("UpdateUptimeCheckConfig")) + .build(); + } + } + } + return getUpdateUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> + getDeleteUptimeCheckConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUptimeCheckConfig", + requestType = com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> + getDeleteUptimeCheckConfigMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, com.google.protobuf.Empty> + getDeleteUptimeCheckConfigMethod; + if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getDeleteUptimeCheckConfigMethod = + UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) + == null) { + UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod = + getDeleteUptimeCheckConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteUptimeCheckConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("DeleteUptimeCheckConfig")) + .build(); + } + } + } + return getDeleteUptimeCheckConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckIpsRequest, + com.google.monitoring.v3.ListUptimeCheckIpsResponse> + getListUptimeCheckIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckIps", + requestType = com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, + responseType = com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckIpsRequest, + com.google.monitoring.v3.ListUptimeCheckIpsResponse> + getListUptimeCheckIpsMethod() { + io.grpc.MethodDescriptor< + com.google.monitoring.v3.ListUptimeCheckIpsRequest, + com.google.monitoring.v3.ListUptimeCheckIpsResponse> + getListUptimeCheckIpsMethod; + if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) + == null) { + synchronized (UptimeCheckServiceGrpc.class) { + if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) + == null) { + UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod = + getListUptimeCheckIpsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckIpsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.monitoring.v3.ListUptimeCheckIpsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckIps")) + .build(); + } + } + } + return getListUptimeCheckIpsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static UptimeCheckServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceStub(channel, callOptions); + } + }; + return UptimeCheckServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UptimeCheckServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceBlockingStub(channel, callOptions); + } + }; + return UptimeCheckServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static UptimeCheckServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UptimeCheckServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceFutureStub(channel, callOptions); + } + }; + return UptimeCheckServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + default void listUptimeCheckConfigs( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUptimeCheckConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + default void getUptimeCheckConfig( + com.google.monitoring.v3.GetUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUptimeCheckConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + default void createUptimeCheckConfig( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateUptimeCheckConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + default void updateUptimeCheckConfig( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUptimeCheckConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + default void deleteUptimeCheckConfig( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteUptimeCheckConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + default void listUptimeCheckIps( + com.google.monitoring.v3.ListUptimeCheckIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUptimeCheckIpsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UptimeCheckService. + * + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public abstract static class UptimeCheckServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return UptimeCheckServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UptimeCheckService. + * + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UptimeCheckServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public void listUptimeCheckConfigs( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public void getUptimeCheckConfig( + com.google.monitoring.v3.GetUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public void createUptimeCheckConfig( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public void updateUptimeCheckConfig( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public void deleteUptimeCheckConfig( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public void listUptimeCheckIps( + com.google.monitoring.v3.ListUptimeCheckIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UptimeCheckService. + * + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UptimeCheckServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckConfigs( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUptimeCheckConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig( + com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public com.google.protobuf.Empty deleteUptimeCheckConfig( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUptimeCheckConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps( + com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUptimeCheckIpsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UptimeCheckService. + * + *
+   * The UptimeCheckService API is used to manage (list, create, delete, edit)
+   * Uptime check configurations in the Cloud Monitoring product. An Uptime
+   * check is a piece of configuration that determines which resources and
+   * services to monitor for availability. These configurations can also be
+   * configured interactively by navigating to the [Cloud console]
+   * (https://console.cloud.google.com), selecting the appropriate project,
+   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
+   * Monitoring, and then clicking on "Uptime".
+   * 
+ */ + public static final class UptimeCheckServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UptimeCheckServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UptimeCheckServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UptimeCheckServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the existing valid Uptime check configurations for the project
+     * (leaving out any invalid configurations).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListUptimeCheckConfigsResponse> + listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a single Uptime check configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.UptimeCheckConfig> + getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Uptime check configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.UptimeCheckConfig> + createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an Uptime check configuration. You can either replace the entire
+     * configuration with a new one or replace only certain fields in the current
+     * configuration by specifying the fields to be updated via `updateMask`.
+     * Returns the updated configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.UptimeCheckConfig> + updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an Uptime check configuration. Note that this method will fail
+     * if the Uptime check configuration is referenced by an alert policy or
+     * other dependent configs that would be rendered invalid by the deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the list of IP addresses that checkers run from
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.monitoring.v3.ListUptimeCheckIpsResponse> + listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_UPTIME_CHECK_CONFIGS = 0; + private static final int METHODID_GET_UPTIME_CHECK_CONFIG = 1; + private static final int METHODID_CREATE_UPTIME_CHECK_CONFIG = 2; + private static final int METHODID_UPDATE_UPTIME_CHECK_CONFIG = 3; + private static final int METHODID_DELETE_UPTIME_CHECK_CONFIG = 4; + private static final int METHODID_LIST_UPTIME_CHECK_IPS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_UPTIME_CHECK_CONFIGS: + serviceImpl.listUptimeCheckConfigs( + (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_UPTIME_CHECK_CONFIG: + serviceImpl.getUptimeCheckConfig( + (com.google.monitoring.v3.GetUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_UPTIME_CHECK_CONFIG: + serviceImpl.createUptimeCheckConfig( + (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_UPTIME_CHECK_CONFIG: + serviceImpl.updateUptimeCheckConfig( + (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_UPTIME_CHECK_CONFIG: + serviceImpl.deleteUptimeCheckConfig( + (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_UPTIME_CHECK_IPS: + serviceImpl.listUptimeCheckIps( + (com.google.monitoring.v3.ListUptimeCheckIpsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListUptimeCheckConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListUptimeCheckConfigsRequest, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse>( + service, METHODID_LIST_UPTIME_CHECK_CONFIGS))) + .addMethod( + getGetUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.GetUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_GET_UPTIME_CHECK_CONFIG))) + .addMethod( + getCreateUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.CreateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_CREATE_UPTIME_CHECK_CONFIG))) + .addMethod( + getUpdateUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, + com.google.monitoring.v3.UptimeCheckConfig>( + service, METHODID_UPDATE_UPTIME_CHECK_CONFIG))) + .addMethod( + getDeleteUptimeCheckConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_UPTIME_CHECK_CONFIG))) + .addMethod( + getListUptimeCheckIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.monitoring.v3.ListUptimeCheckIpsRequest, + com.google.monitoring.v3.ListUptimeCheckIpsResponse>( + service, METHODID_LIST_UPTIME_CHECK_IPS))) + .build(); + } + + private abstract static class UptimeCheckServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UptimeCheckServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UptimeCheckService"); + } + } + + private static final class UptimeCheckServiceFileDescriptorSupplier + extends UptimeCheckServiceBaseDescriptorSupplier { + UptimeCheckServiceFileDescriptorSupplier() {} + } + + private static final class UptimeCheckServiceMethodDescriptorSupplier + extends UptimeCheckServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + UptimeCheckServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (UptimeCheckServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UptimeCheckServiceFileDescriptorSupplier()) + .addMethod(getListUptimeCheckConfigsMethod()) + .addMethod(getGetUptimeCheckConfigMethod()) + .addMethod(getCreateUptimeCheckConfigMethod()) + .addMethod(getUpdateUptimeCheckConfigMethod()) + .addMethod(getDeleteUptimeCheckConfigMethod()) + .addMethod(getListUptimeCheckIpsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java similarity index 86% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java index dd7b84d1e3d0..841cdfa54b65 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** + * + * *
  * Describes how to combine multiple time series to provide a different view of
  * the data.  Aggregation of time series is done in two steps. First, each time
@@ -35,43 +52,46 @@
  *
  * Protobuf type {@code google.monitoring.v3.Aggregation}
  */
-public final class Aggregation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Aggregation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Aggregation)
     AggregationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Aggregation.newBuilder() to construct.
   private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Aggregation() {
     perSeriesAligner_ = 0;
     crossSeriesReducer_ = 0;
-    groupByFields_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Aggregation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.CommonProto
+        .internal_static_google_monitoring_v3_Aggregation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
+    return com.google.monitoring.v3.CommonProto
+        .internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.Aggregation.class, com.google.monitoring.v3.Aggregation.Builder.class);
+            com.google.monitoring.v3.Aggregation.class,
+            com.google.monitoring.v3.Aggregation.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The `Aligner` specifies the operation that will be applied to the data
    * points in each alignment period in a time series. Except for
@@ -89,9 +109,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.monitoring.v3.Aggregation.Aligner}
    */
-  public enum Aligner
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Aligner implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No alignment. Raw data is returned. Not valid if cross-series reduction
      * is requested. The `value_type` of the result is the same as the
@@ -102,6 +123,8 @@ public enum Aligner
      */
     ALIGN_NONE(0),
     /**
+     *
+     *
      * 
      * Align and convert to
      * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
@@ -119,6 +142,8 @@ public enum Aligner
      */
     ALIGN_DELTA(1),
     /**
+     *
+     *
      * 
      * Align and convert to a rate. The result is computed as
      * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
@@ -139,6 +164,8 @@ public enum Aligner
      */
     ALIGN_RATE(2),
     /**
+     *
+     *
      * 
      * Align by interpolating between adjacent points around the alignment
      * period boundary. This aligner is valid for `GAUGE` metrics with
@@ -150,6 +177,8 @@ public enum Aligner
      */
     ALIGN_INTERPOLATE(3),
     /**
+     *
+     *
      * 
      * Align by moving the most recent data point before the end of the
      * alignment period to the boundary at the end of the alignment
@@ -161,6 +190,8 @@ public enum Aligner
      */
     ALIGN_NEXT_OLDER(4),
     /**
+     *
+     *
      * 
      * Align the time series by returning the minimum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -172,6 +203,8 @@ public enum Aligner
      */
     ALIGN_MIN(10),
     /**
+     *
+     *
      * 
      * Align the time series by returning the maximum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -183,6 +216,8 @@ public enum Aligner
      */
     ALIGN_MAX(11),
     /**
+     *
+     *
      * 
      * Align the time series by returning the mean value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -193,6 +228,8 @@ public enum Aligner
      */
     ALIGN_MEAN(12),
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of values in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -204,6 +241,8 @@ public enum Aligner
      */
     ALIGN_COUNT(13),
     /**
+     *
+     *
      * 
      * Align the time series by returning the sum of the values in each
      * alignment period. This aligner is valid for `GAUGE` and `DELTA`
@@ -215,6 +254,8 @@ public enum Aligner
      */
     ALIGN_SUM(14),
     /**
+     *
+     *
      * 
      * Align the time series by returning the standard deviation of the values
      * in each alignment period. This aligner is valid for `GAUGE` and
@@ -226,6 +267,8 @@ public enum Aligner
      */
     ALIGN_STDDEV(15),
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of `True` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -236,6 +279,8 @@ public enum Aligner
      */
     ALIGN_COUNT_TRUE(16),
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of `False` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -246,6 +291,8 @@ public enum Aligner
      */
     ALIGN_COUNT_FALSE(24),
     /**
+     *
+     *
      * 
      * Align the time series by returning the ratio of the number of `True`
      * values to the total number of values in each alignment period. This
@@ -257,6 +304,8 @@ public enum Aligner
      */
     ALIGN_FRACTION_TRUE(17),
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -270,6 +319,8 @@ public enum Aligner
      */
     ALIGN_PERCENTILE_99(18),
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -283,6 +334,8 @@ public enum Aligner
      */
     ALIGN_PERCENTILE_95(19),
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -296,6 +349,8 @@ public enum Aligner
      */
     ALIGN_PERCENTILE_50(20),
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -309,6 +364,8 @@ public enum Aligner
      */
     ALIGN_PERCENTILE_05(21),
     /**
+     *
+     *
      * 
      * Align and convert to a percentage change. This aligner is valid for
      * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
@@ -335,6 +392,8 @@ public enum Aligner
     ;
 
     /**
+     *
+     *
      * 
      * No alignment. Raw data is returned. Not valid if cross-series reduction
      * is requested. The `value_type` of the result is the same as the
@@ -345,6 +404,8 @@ public enum Aligner
      */
     public static final int ALIGN_NONE_VALUE = 0;
     /**
+     *
+     *
      * 
      * Align and convert to
      * [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
@@ -362,6 +423,8 @@ public enum Aligner
      */
     public static final int ALIGN_DELTA_VALUE = 1;
     /**
+     *
+     *
      * 
      * Align and convert to a rate. The result is computed as
      * `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
@@ -382,6 +445,8 @@ public enum Aligner
      */
     public static final int ALIGN_RATE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Align by interpolating between adjacent points around the alignment
      * period boundary. This aligner is valid for `GAUGE` metrics with
@@ -393,6 +458,8 @@ public enum Aligner
      */
     public static final int ALIGN_INTERPOLATE_VALUE = 3;
     /**
+     *
+     *
      * 
      * Align by moving the most recent data point before the end of the
      * alignment period to the boundary at the end of the alignment
@@ -404,6 +471,8 @@ public enum Aligner
      */
     public static final int ALIGN_NEXT_OLDER_VALUE = 4;
     /**
+     *
+     *
      * 
      * Align the time series by returning the minimum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -415,6 +484,8 @@ public enum Aligner
      */
     public static final int ALIGN_MIN_VALUE = 10;
     /**
+     *
+     *
      * 
      * Align the time series by returning the maximum value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -426,6 +497,8 @@ public enum Aligner
      */
     public static final int ALIGN_MAX_VALUE = 11;
     /**
+     *
+     *
      * 
      * Align the time series by returning the mean value in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -436,6 +509,8 @@ public enum Aligner
      */
     public static final int ALIGN_MEAN_VALUE = 12;
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of values in each alignment
      * period. This aligner is valid for `GAUGE` and `DELTA` metrics with
@@ -447,6 +522,8 @@ public enum Aligner
      */
     public static final int ALIGN_COUNT_VALUE = 13;
     /**
+     *
+     *
      * 
      * Align the time series by returning the sum of the values in each
      * alignment period. This aligner is valid for `GAUGE` and `DELTA`
@@ -458,6 +535,8 @@ public enum Aligner
      */
     public static final int ALIGN_SUM_VALUE = 14;
     /**
+     *
+     *
      * 
      * Align the time series by returning the standard deviation of the values
      * in each alignment period. This aligner is valid for `GAUGE` and
@@ -469,6 +548,8 @@ public enum Aligner
      */
     public static final int ALIGN_STDDEV_VALUE = 15;
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of `True` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -479,6 +560,8 @@ public enum Aligner
      */
     public static final int ALIGN_COUNT_TRUE_VALUE = 16;
     /**
+     *
+     *
      * 
      * Align the time series by returning the number of `False` values in
      * each alignment period. This aligner is valid for `GAUGE` metrics with
@@ -489,6 +572,8 @@ public enum Aligner
      */
     public static final int ALIGN_COUNT_FALSE_VALUE = 24;
     /**
+     *
+     *
      * 
      * Align the time series by returning the ratio of the number of `True`
      * values to the total number of values in each alignment period. This
@@ -500,6 +585,8 @@ public enum Aligner
      */
     public static final int ALIGN_FRACTION_TRUE_VALUE = 17;
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -513,6 +600,8 @@ public enum Aligner
      */
     public static final int ALIGN_PERCENTILE_99_VALUE = 18;
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -526,6 +615,8 @@ public enum Aligner
      */
     public static final int ALIGN_PERCENTILE_95_VALUE = 19;
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -539,6 +630,8 @@ public enum Aligner
      */
     public static final int ALIGN_PERCENTILE_50_VALUE = 20;
     /**
+     *
+     *
      * 
      * Align the time series by using [percentile
      * aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
@@ -552,6 +645,8 @@ public enum Aligner
      */
     public static final int ALIGN_PERCENTILE_05_VALUE = 21;
     /**
+     *
+     *
      * 
      * Align and convert to a percentage change. This aligner is valid for
      * `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
@@ -575,7 +670,6 @@ public enum Aligner
      */
     public static final int ALIGN_PERCENT_CHANGE_VALUE = 23;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -600,65 +694,81 @@ public static Aligner valueOf(int value) {
      */
     public static Aligner forNumber(int value) {
       switch (value) {
-        case 0: return ALIGN_NONE;
-        case 1: return ALIGN_DELTA;
-        case 2: return ALIGN_RATE;
-        case 3: return ALIGN_INTERPOLATE;
-        case 4: return ALIGN_NEXT_OLDER;
-        case 10: return ALIGN_MIN;
-        case 11: return ALIGN_MAX;
-        case 12: return ALIGN_MEAN;
-        case 13: return ALIGN_COUNT;
-        case 14: return ALIGN_SUM;
-        case 15: return ALIGN_STDDEV;
-        case 16: return ALIGN_COUNT_TRUE;
-        case 24: return ALIGN_COUNT_FALSE;
-        case 17: return ALIGN_FRACTION_TRUE;
-        case 18: return ALIGN_PERCENTILE_99;
-        case 19: return ALIGN_PERCENTILE_95;
-        case 20: return ALIGN_PERCENTILE_50;
-        case 21: return ALIGN_PERCENTILE_05;
-        case 23: return ALIGN_PERCENT_CHANGE;
-        default: return null;
+        case 0:
+          return ALIGN_NONE;
+        case 1:
+          return ALIGN_DELTA;
+        case 2:
+          return ALIGN_RATE;
+        case 3:
+          return ALIGN_INTERPOLATE;
+        case 4:
+          return ALIGN_NEXT_OLDER;
+        case 10:
+          return ALIGN_MIN;
+        case 11:
+          return ALIGN_MAX;
+        case 12:
+          return ALIGN_MEAN;
+        case 13:
+          return ALIGN_COUNT;
+        case 14:
+          return ALIGN_SUM;
+        case 15:
+          return ALIGN_STDDEV;
+        case 16:
+          return ALIGN_COUNT_TRUE;
+        case 24:
+          return ALIGN_COUNT_FALSE;
+        case 17:
+          return ALIGN_FRACTION_TRUE;
+        case 18:
+          return ALIGN_PERCENTILE_99;
+        case 19:
+          return ALIGN_PERCENTILE_95;
+        case 20:
+          return ALIGN_PERCENTILE_50;
+        case 21:
+          return ALIGN_PERCENTILE_05;
+        case 23:
+          return ALIGN_PERCENT_CHANGE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Aligner> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Aligner findValueByNumber(int number) {
-              return Aligner.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Aligner findValueByNumber(int number) {
+            return Aligner.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Aligner[] VALUES = values();
 
-    public static Aligner valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Aligner valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -676,6 +786,8 @@ private Aligner(int value) {
   }
 
   /**
+   *
+   *
    * 
    * A Reducer operation describes how to aggregate data points from multiple
    * time series into a single time series, where the value of each data point
@@ -685,9 +797,10 @@ private Aligner(int value) {
    *
    * Protobuf enum {@code google.monitoring.v3.Aggregation.Reducer}
    */
-  public enum Reducer
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Reducer implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No cross-time series reduction. The output of the `Aligner` is
      * returned.
@@ -697,6 +810,8 @@ public enum Reducer
      */
     REDUCE_NONE(0),
     /**
+     *
+     *
      * 
      * Reduce by computing the mean value across time series for each
      * alignment period. This reducer is valid for
@@ -710,6 +825,8 @@ public enum Reducer
      */
     REDUCE_MEAN(1),
     /**
+     *
+     *
      * 
      * Reduce by computing the minimum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -721,6 +838,8 @@ public enum Reducer
      */
     REDUCE_MIN(2),
     /**
+     *
+     *
      * 
      * Reduce by computing the maximum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -732,6 +851,8 @@ public enum Reducer
      */
     REDUCE_MAX(3),
     /**
+     *
+     *
      * 
      * Reduce by computing the sum across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -743,6 +864,8 @@ public enum Reducer
      */
     REDUCE_SUM(4),
     /**
+     *
+     *
      * 
      * Reduce by computing the standard deviation across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -754,6 +877,8 @@ public enum Reducer
      */
     REDUCE_STDDEV(5),
     /**
+     *
+     *
      * 
      * Reduce by computing the number of data points across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -765,6 +890,8 @@ public enum Reducer
      */
     REDUCE_COUNT(6),
     /**
+     *
+     *
      * 
      * Reduce by computing the number of `True`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -776,6 +903,8 @@ public enum Reducer
      */
     REDUCE_COUNT_TRUE(7),
     /**
+     *
+     *
      * 
      * Reduce by computing the number of `False`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -787,6 +916,8 @@ public enum Reducer
      */
     REDUCE_COUNT_FALSE(15),
     /**
+     *
+     *
      * 
      * Reduce by computing the ratio of the number of `True`-valued data points
      * to the total number of data points for each alignment period. This
@@ -799,6 +930,8 @@ public enum Reducer
      */
     REDUCE_FRACTION_TRUE(8),
     /**
+     *
+     *
      * 
      * Reduce by computing the [99th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -811,6 +944,8 @@ public enum Reducer
      */
     REDUCE_PERCENTILE_99(9),
     /**
+     *
+     *
      * 
      * Reduce by computing the [95th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -823,6 +958,8 @@ public enum Reducer
      */
     REDUCE_PERCENTILE_95(10),
     /**
+     *
+     *
      * 
      * Reduce by computing the [50th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -835,6 +972,8 @@ public enum Reducer
      */
     REDUCE_PERCENTILE_50(11),
     /**
+     *
+     *
      * 
      * Reduce by computing the [5th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -850,6 +989,8 @@ public enum Reducer
     ;
 
     /**
+     *
+     *
      * 
      * No cross-time series reduction. The output of the `Aligner` is
      * returned.
@@ -859,6 +1000,8 @@ public enum Reducer
      */
     public static final int REDUCE_NONE_VALUE = 0;
     /**
+     *
+     *
      * 
      * Reduce by computing the mean value across time series for each
      * alignment period. This reducer is valid for
@@ -872,6 +1015,8 @@ public enum Reducer
      */
     public static final int REDUCE_MEAN_VALUE = 1;
     /**
+     *
+     *
      * 
      * Reduce by computing the minimum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -883,6 +1028,8 @@ public enum Reducer
      */
     public static final int REDUCE_MIN_VALUE = 2;
     /**
+     *
+     *
      * 
      * Reduce by computing the maximum value across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -894,6 +1041,8 @@ public enum Reducer
      */
     public static final int REDUCE_MAX_VALUE = 3;
     /**
+     *
+     *
      * 
      * Reduce by computing the sum across time series for each
      * alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
@@ -905,6 +1054,8 @@ public enum Reducer
      */
     public static final int REDUCE_SUM_VALUE = 4;
     /**
+     *
+     *
      * 
      * Reduce by computing the standard deviation across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -916,6 +1067,8 @@ public enum Reducer
      */
     public static final int REDUCE_STDDEV_VALUE = 5;
     /**
+     *
+     *
      * 
      * Reduce by computing the number of data points across time series
      * for each alignment period. This reducer is valid for `DELTA` and
@@ -927,6 +1080,8 @@ public enum Reducer
      */
     public static final int REDUCE_COUNT_VALUE = 6;
     /**
+     *
+     *
      * 
      * Reduce by computing the number of `True`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -938,6 +1093,8 @@ public enum Reducer
      */
     public static final int REDUCE_COUNT_TRUE_VALUE = 7;
     /**
+     *
+     *
      * 
      * Reduce by computing the number of `False`-valued data points across time
      * series for each alignment period. This reducer is valid for `DELTA` and
@@ -949,6 +1106,8 @@ public enum Reducer
      */
     public static final int REDUCE_COUNT_FALSE_VALUE = 15;
     /**
+     *
+     *
      * 
      * Reduce by computing the ratio of the number of `True`-valued data points
      * to the total number of data points for each alignment period. This
@@ -961,6 +1120,8 @@ public enum Reducer
      */
     public static final int REDUCE_FRACTION_TRUE_VALUE = 8;
     /**
+     *
+     *
      * 
      * Reduce by computing the [99th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -973,6 +1134,8 @@ public enum Reducer
      */
     public static final int REDUCE_PERCENTILE_99_VALUE = 9;
     /**
+     *
+     *
      * 
      * Reduce by computing the [95th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -985,6 +1148,8 @@ public enum Reducer
      */
     public static final int REDUCE_PERCENTILE_95_VALUE = 10;
     /**
+     *
+     *
      * 
      * Reduce by computing the [50th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -997,6 +1162,8 @@ public enum Reducer
      */
     public static final int REDUCE_PERCENTILE_50_VALUE = 11;
     /**
+     *
+     *
      * 
      * Reduce by computing the [5th
      * percentile](https://en.wikipedia.org/wiki/Percentile) of data points
@@ -1009,7 +1176,6 @@ public enum Reducer
      */
     public static final int REDUCE_PERCENTILE_05_VALUE = 12;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1034,60 +1200,71 @@ public static Reducer valueOf(int value) {
      */
     public static Reducer forNumber(int value) {
       switch (value) {
-        case 0: return REDUCE_NONE;
-        case 1: return REDUCE_MEAN;
-        case 2: return REDUCE_MIN;
-        case 3: return REDUCE_MAX;
-        case 4: return REDUCE_SUM;
-        case 5: return REDUCE_STDDEV;
-        case 6: return REDUCE_COUNT;
-        case 7: return REDUCE_COUNT_TRUE;
-        case 15: return REDUCE_COUNT_FALSE;
-        case 8: return REDUCE_FRACTION_TRUE;
-        case 9: return REDUCE_PERCENTILE_99;
-        case 10: return REDUCE_PERCENTILE_95;
-        case 11: return REDUCE_PERCENTILE_50;
-        case 12: return REDUCE_PERCENTILE_05;
-        default: return null;
+        case 0:
+          return REDUCE_NONE;
+        case 1:
+          return REDUCE_MEAN;
+        case 2:
+          return REDUCE_MIN;
+        case 3:
+          return REDUCE_MAX;
+        case 4:
+          return REDUCE_SUM;
+        case 5:
+          return REDUCE_STDDEV;
+        case 6:
+          return REDUCE_COUNT;
+        case 7:
+          return REDUCE_COUNT_TRUE;
+        case 15:
+          return REDUCE_COUNT_FALSE;
+        case 8:
+          return REDUCE_FRACTION_TRUE;
+        case 9:
+          return REDUCE_PERCENTILE_99;
+        case 10:
+          return REDUCE_PERCENTILE_95;
+        case 11:
+          return REDUCE_PERCENTILE_50;
+        case 12:
+          return REDUCE_PERCENTILE_05;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Reducer> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Reducer findValueByNumber(int number) {
-              return Reducer.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Reducer findValueByNumber(int number) {
+            return Reducer.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Reducer[] VALUES = values();
 
-    public static Reducer valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Reducer valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -1107,6 +1284,8 @@ private Reducer(int value) {
   public static final int ALIGNMENT_PERIOD_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration alignmentPeriod_;
   /**
+   *
+   *
    * 
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1124,6 +1303,7 @@ private Reducer(int value) {
    * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ @java.lang.Override @@ -1131,6 +1311,8 @@ public boolean hasAlignmentPeriod() { return alignmentPeriod_ != null; } /** + * + * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1148,13 +1330,18 @@ public boolean hasAlignmentPeriod() {
    * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ @java.lang.Override public com.google.protobuf.Duration getAlignmentPeriod() { - return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; + return alignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : alignmentPeriod_; } /** + * + * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -1175,12 +1362,16 @@ public com.google.protobuf.Duration getAlignmentPeriod() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
-    return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
+    return alignmentPeriod_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : alignmentPeriod_;
   }
 
   public static final int PER_SERIES_ALIGNER_FIELD_NUMBER = 2;
   private int perSeriesAligner_ = 0;
   /**
+   *
+   *
    * 
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -1201,12 +1392,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override public int getPerSeriesAlignerValue() { + @java.lang.Override + public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** + * + * *
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -1227,16 +1422,21 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ - @java.lang.Override public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.v3.Aggregation.Aligner result = com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); + @java.lang.Override + public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { + com.google.monitoring.v3.Aggregation.Aligner result = + com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); return result == null ? com.google.monitoring.v3.Aggregation.Aligner.UNRECOGNIZED : result; } public static final int CROSS_SERIES_REDUCER_FIELD_NUMBER = 4; private int crossSeriesReducer_ = 0; /** + * + * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -1255,12 +1455,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override public int getCrossSeriesReducerValue() { + @java.lang.Override + public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** + * + * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -1279,18 +1483,24 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ - @java.lang.Override public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.v3.Aggregation.Reducer result = com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); + @java.lang.Override + public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { + com.google.monitoring.v3.Aggregation.Reducer result = + com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); return result == null ? com.google.monitoring.v3.Aggregation.Reducer.UNRECOGNIZED : result; } public static final int GROUP_BY_FIELDS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1309,13 +1519,15 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList - getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { return groupByFields_; } /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1334,12 +1546,15 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
    * 
* * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1358,6 +1573,7 @@ public int getGroupByFieldsCount() {
    * 
* * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -1365,6 +1581,8 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -1383,15 +1601,16 @@ public java.lang.String getGroupByFields(int index) {
    * 
* * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString - getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1403,15 +1622,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (alignmentPeriod_ != null) { output.writeMessage(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { output.writeEnum(2, perSeriesAligner_); } - if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + if (crossSeriesReducer_ + != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { output.writeEnum(4, crossSeriesReducer_); } for (int i = 0; i < groupByFields_.size(); i++) { @@ -1427,16 +1646,14 @@ public int getSerializedSize() { size = 0; if (alignmentPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAlignmentPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, perSeriesAligner_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, perSeriesAligner_); } - if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, crossSeriesReducer_); + if (crossSeriesReducer_ + != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; @@ -1454,7 +1671,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Aggregation)) { return super.equals(obj); @@ -1463,13 +1680,11 @@ public boolean equals(final java.lang.Object obj) { if (hasAlignmentPeriod() != other.hasAlignmentPeriod()) return false; if (hasAlignmentPeriod()) { - if (!getAlignmentPeriod() - .equals(other.getAlignmentPeriod())) return false; + if (!getAlignmentPeriod().equals(other.getAlignmentPeriod())) return false; } if (perSeriesAligner_ != other.perSeriesAligner_) return false; if (crossSeriesReducer_ != other.crossSeriesReducer_) return false; - if (!getGroupByFieldsList() - .equals(other.getGroupByFieldsList())) return false; + if (!getGroupByFieldsList().equals(other.getGroupByFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1498,99 +1713,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Aggregation parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Aggregation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Aggregation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Aggregation parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.Aggregation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Aggregation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Aggregation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Aggregation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Aggregation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Aggregation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Aggregation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Aggregation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Aggregation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Aggregation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Aggregation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes how to combine multiple time series to provide a different view of
    * the data.  Aggregation of time series is done in two steps. First, each time
@@ -1622,33 +1841,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.Aggregation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Aggregation)
       com.google.monitoring.v3.AggregationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_Aggregation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Aggregation.class, com.google.monitoring.v3.Aggregation.Builder.class);
+              com.google.monitoring.v3.Aggregation.class,
+              com.google.monitoring.v3.Aggregation.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Aggregation.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1660,15 +1878,14 @@ public Builder clear() {
       }
       perSeriesAligner_ = 0;
       crossSeriesReducer_ = 0;
-      groupByFields_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_Aggregation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_Aggregation_descriptor;
     }
 
     @java.lang.Override
@@ -1688,7 +1905,9 @@ public com.google.monitoring.v3.Aggregation build() {
     @java.lang.Override
     public com.google.monitoring.v3.Aggregation buildPartial() {
       com.google.monitoring.v3.Aggregation result = new com.google.monitoring.v3.Aggregation(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1696,9 +1915,8 @@ public com.google.monitoring.v3.Aggregation buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.Aggregation result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.alignmentPeriod_ = alignmentPeriodBuilder_ == null
-            ? alignmentPeriod_
-            : alignmentPeriodBuilder_.build();
+        result.alignmentPeriod_ =
+            alignmentPeriodBuilder_ == null ? alignmentPeriod_ : alignmentPeriodBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.perSeriesAligner_ = perSeriesAligner_;
@@ -1716,38 +1934,39 @@ private void buildPartial0(com.google.monitoring.v3.Aggregation result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Aggregation) {
-        return mergeFrom((com.google.monitoring.v3.Aggregation)other);
+        return mergeFrom((com.google.monitoring.v3.Aggregation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1801,35 +2020,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getAlignmentPeriodFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              perSeriesAligner_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 32: {
-              crossSeriesReducer_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureGroupByFieldsIsMutable();
-              groupByFields_.add(s);
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getAlignmentPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                perSeriesAligner_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 32:
+              {
+                crossSeriesReducer_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureGroupByFieldsIsMutable();
+                groupByFields_.add(s);
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1839,12 +2061,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Duration alignmentPeriod_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> alignmentPeriodBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        alignmentPeriodBuilder_;
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -1862,12 +2090,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ public boolean hasAlignmentPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -1885,16 +2116,21 @@ public boolean hasAlignmentPeriod() {
      * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ public com.google.protobuf.Duration getAlignmentPeriod() { if (alignmentPeriodBuilder_ == null) { - return alignmentPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_; + return alignmentPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : alignmentPeriod_; } else { return alignmentPeriodBuilder_.getMessage(); } } /** + * + * *
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -1927,6 +2163,8 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -1945,8 +2183,7 @@ public Builder setAlignmentPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration alignment_period = 1;
      */
-    public Builder setAlignmentPeriod(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) {
       if (alignmentPeriodBuilder_ == null) {
         alignmentPeriod_ = builderForValue.build();
       } else {
@@ -1957,6 +2194,8 @@ public Builder setAlignmentPeriod(
       return this;
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -1977,9 +2216,9 @@ public Builder setAlignmentPeriod(
      */
     public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
       if (alignmentPeriodBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          alignmentPeriod_ != null &&
-          alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && alignmentPeriod_ != null
+            && alignmentPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getAlignmentPeriodBuilder().mergeFrom(value);
         } else {
           alignmentPeriod_ = value;
@@ -1992,6 +2231,8 @@ public Builder mergeAlignmentPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2021,6 +2262,8 @@ public Builder clearAlignmentPeriod() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2045,6 +2288,8 @@ public com.google.protobuf.Duration.Builder getAlignmentPeriodBuilder() {
       return getAlignmentPeriodFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2067,11 +2312,14 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
       if (alignmentPeriodBuilder_ != null) {
         return alignmentPeriodBuilder_.getMessageOrBuilder();
       } else {
-        return alignmentPeriod_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : alignmentPeriod_;
+        return alignmentPeriod_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : alignmentPeriod_;
       }
     }
     /**
+     *
+     *
      * 
      * The `alignment_period` specifies a time interval, in seconds, that is used
      * to divide the data in all the
@@ -2091,14 +2339,17 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
      * .google.protobuf.Duration alignment_period = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getAlignmentPeriodFieldBuilder() {
       if (alignmentPeriodBuilder_ == null) {
-        alignmentPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getAlignmentPeriod(),
-                getParentForChildren(),
-                isClean());
+        alignmentPeriodBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getAlignmentPeriod(), getParentForChildren(), isClean());
         alignmentPeriod_ = null;
       }
       return alignmentPeriodBuilder_;
@@ -2106,6 +2357,8 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
 
     private int perSeriesAligner_ = 0;
     /**
+     *
+     *
      * 
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2126,12 +2379,16 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ - @java.lang.Override public int getPerSeriesAlignerValue() { + @java.lang.Override + public int getPerSeriesAlignerValue() { return perSeriesAligner_; } /** + * + * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2152,6 +2409,7 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @param value The enum numeric value on the wire for perSeriesAligner to set. * @return This builder for chaining. */ @@ -2162,6 +2420,8 @@ public Builder setPerSeriesAlignerValue(int value) { return this; } /** + * + * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2182,14 +2442,18 @@ public Builder setPerSeriesAlignerValue(int value) {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ @java.lang.Override public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() { - com.google.monitoring.v3.Aggregation.Aligner result = com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); + com.google.monitoring.v3.Aggregation.Aligner result = + com.google.monitoring.v3.Aggregation.Aligner.forNumber(perSeriesAligner_); return result == null ? com.google.monitoring.v3.Aggregation.Aligner.UNRECOGNIZED : result; } /** + * + * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2210,6 +2474,7 @@ public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() {
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @param value The perSeriesAligner to set. * @return This builder for chaining. */ @@ -2223,6 +2488,8 @@ public Builder setPerSeriesAligner(com.google.monitoring.v3.Aggregation.Aligner return this; } /** + * + * *
      * An `Aligner` describes how to bring the data points in a single
      * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -2243,6 +2510,7 @@ public Builder setPerSeriesAligner(com.google.monitoring.v3.Aggregation.Aligner
      * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return This builder for chaining. */ public Builder clearPerSeriesAligner() { @@ -2254,6 +2522,8 @@ public Builder clearPerSeriesAligner() { private int crossSeriesReducer_ = 0; /** + * + * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2272,12 +2542,16 @@ public Builder clearPerSeriesAligner() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ - @java.lang.Override public int getCrossSeriesReducerValue() { + @java.lang.Override + public int getCrossSeriesReducerValue() { return crossSeriesReducer_; } /** + * + * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2296,6 +2570,7 @@ public Builder clearPerSeriesAligner() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @param value The enum numeric value on the wire for crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2306,6 +2581,8 @@ public Builder setCrossSeriesReducerValue(int value) { return this; } /** + * + * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2324,14 +2601,18 @@ public Builder setCrossSeriesReducerValue(int value) {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ @java.lang.Override public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() { - com.google.monitoring.v3.Aggregation.Reducer result = com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); + com.google.monitoring.v3.Aggregation.Reducer result = + com.google.monitoring.v3.Aggregation.Reducer.forNumber(crossSeriesReducer_); return result == null ? com.google.monitoring.v3.Aggregation.Reducer.UNRECOGNIZED : result; } /** + * + * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2350,6 +2631,7 @@ public com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer() {
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @param value The crossSeriesReducer to set. * @return This builder for chaining. */ @@ -2363,6 +2645,8 @@ public Builder setCrossSeriesReducer(com.google.monitoring.v3.Aggregation.Reduce return this; } /** + * + * *
      * The reduction operation to be used to combine time series into a single
      * time series, where the value of each data point in the resulting series is
@@ -2381,6 +2665,7 @@ public Builder setCrossSeriesReducer(com.google.monitoring.v3.Aggregation.Reduce
      * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return This builder for chaining. */ public Builder clearCrossSeriesReducer() { @@ -2392,6 +2677,7 @@ public Builder clearCrossSeriesReducer() { private com.google.protobuf.LazyStringArrayList groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGroupByFieldsIsMutable() { if (!groupByFields_.isModifiable()) { groupByFields_ = new com.google.protobuf.LazyStringArrayList(groupByFields_); @@ -2399,6 +2685,8 @@ private void ensureGroupByFieldsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2417,14 +2705,16 @@ private void ensureGroupByFieldsIsMutable() {
      * 
* * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - public com.google.protobuf.ProtocolStringList - getGroupByFieldsList() { + public com.google.protobuf.ProtocolStringList getGroupByFieldsList() { groupByFields_.makeImmutable(); return groupByFields_; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2443,12 +2733,15 @@ private void ensureGroupByFieldsIsMutable() {
      * 
* * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ public int getGroupByFieldsCount() { return groupByFields_.size(); } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2467,6 +2760,7 @@ public int getGroupByFieldsCount() {
      * 
* * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ @@ -2474,6 +2768,8 @@ public java.lang.String getGroupByFields(int index) { return groupByFields_.get(index); } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2492,14 +2788,16 @@ public java.lang.String getGroupByFields(int index) {
      * 
* * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - public com.google.protobuf.ByteString - getGroupByFieldsBytes(int index) { + public com.google.protobuf.ByteString getGroupByFieldsBytes(int index) { return groupByFields_.getByteString(index); } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2518,13 +2816,15 @@ public java.lang.String getGroupByFields(int index) {
      * 
* * repeated string group_by_fields = 5; + * * @param index The index to set the value at. * @param value The groupByFields to set. * @return This builder for chaining. */ - public Builder setGroupByFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGroupByFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupByFieldsIsMutable(); groupByFields_.set(index, value); bitField0_ |= 0x00000008; @@ -2532,6 +2832,8 @@ public Builder setGroupByFields( return this; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2550,12 +2852,14 @@ public Builder setGroupByFields(
      * 
* * repeated string group_by_fields = 5; + * * @param value The groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupByFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupByFieldsIsMutable(); groupByFields_.add(value); bitField0_ |= 0x00000008; @@ -2563,6 +2867,8 @@ public Builder addGroupByFields( return this; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2581,19 +2887,20 @@ public Builder addGroupByFields(
      * 
* * repeated string group_by_fields = 5; + * * @param values The groupByFields to add. * @return This builder for chaining. */ - public Builder addAllGroupByFields( - java.lang.Iterable values) { + public Builder addAllGroupByFields(java.lang.Iterable values) { ensureGroupByFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupByFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByFields_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2612,16 +2919,19 @@ public Builder addAllGroupByFields(
      * 
* * repeated string group_by_fields = 5; + * * @return This builder for chaining. */ public Builder clearGroupByFields() { - groupByFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + groupByFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
      * The set of fields to preserve when `cross_series_reducer` is
      * specified. The `group_by_fields` determine how the time series are
@@ -2640,12 +2950,14 @@ public Builder clearGroupByFields() {
      * 
* * repeated string group_by_fields = 5; + * * @param value The bytes of the groupByFields to add. * @return This builder for chaining. */ - public Builder addGroupByFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupByFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureGroupByFieldsIsMutable(); groupByFields_.add(value); @@ -2653,9 +2965,9 @@ public Builder addGroupByFieldsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2665,12 +2977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Aggregation) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) private static final com.google.monitoring.v3.Aggregation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Aggregation(); } @@ -2679,27 +2991,27 @@ public static com.google.monitoring.v3.Aggregation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Aggregation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aggregation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2714,6 +3026,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Aggregation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java similarity index 92% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java index cd85ea974656..a3f8e15183c7 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AggregationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; -public interface AggregationOrBuilder extends +public interface AggregationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Aggregation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -25,10 +43,13 @@ public interface AggregationOrBuilder extends
    * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return Whether the alignmentPeriod field is set. */ boolean hasAlignmentPeriod(); /** + * + * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -46,10 +67,13 @@ public interface AggregationOrBuilder extends
    * 
* * .google.protobuf.Duration alignment_period = 1; + * * @return The alignmentPeriod. */ com.google.protobuf.Duration getAlignmentPeriod(); /** + * + * *
    * The `alignment_period` specifies a time interval, in seconds, that is used
    * to divide the data in all the
@@ -71,6 +95,8 @@ public interface AggregationOrBuilder extends
   com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder();
 
   /**
+   *
+   *
    * 
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -91,10 +117,13 @@ public interface AggregationOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The enum numeric value on the wire for perSeriesAligner. */ int getPerSeriesAlignerValue(); /** + * + * *
    * An `Aligner` describes how to bring the data points in a single
    * time series into temporal alignment. Except for `ALIGN_NONE`, all
@@ -115,11 +144,14 @@ public interface AggregationOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2; + * * @return The perSeriesAligner. */ com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner(); /** + * + * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -138,10 +170,13 @@ public interface AggregationOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The enum numeric value on the wire for crossSeriesReducer. */ int getCrossSeriesReducerValue(); /** + * + * *
    * The reduction operation to be used to combine time series into a single
    * time series, where the value of each data point in the resulting series is
@@ -160,11 +195,14 @@ public interface AggregationOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation.Reducer cross_series_reducer = 4; + * * @return The crossSeriesReducer. */ com.google.monitoring.v3.Aggregation.Reducer getCrossSeriesReducer(); /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -183,11 +221,13 @@ public interface AggregationOrBuilder extends
    * 
* * repeated string group_by_fields = 5; + * * @return A list containing the groupByFields. */ - java.util.List - getGroupByFieldsList(); + java.util.List getGroupByFieldsList(); /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -206,10 +246,13 @@ public interface AggregationOrBuilder extends
    * 
* * repeated string group_by_fields = 5; + * * @return The count of groupByFields. */ int getGroupByFieldsCount(); /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -228,11 +271,14 @@ public interface AggregationOrBuilder extends
    * 
* * repeated string group_by_fields = 5; + * * @param index The index of the element to return. * @return The groupByFields at the given index. */ java.lang.String getGroupByFields(int index); /** + * + * *
    * The set of fields to preserve when `cross_series_reducer` is
    * specified. The `group_by_fields` determine how the time series are
@@ -251,9 +297,9 @@ public interface AggregationOrBuilder extends
    * 
* * repeated string group_by_fields = 5; + * * @param index The index of the value to return. * @return The bytes of the groupByFields at the given index. */ - com.google.protobuf.ByteString - getGroupByFieldsBytes(int index); + com.google.protobuf.ByteString getGroupByFieldsBytes(int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index 45cc4a7fa130..75474ed83751 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert.proto package com.google.monitoring.v3; /** + * + * *
  * A description of the conditions under which some aspect of your system is
  * considered to be "unhealthy" and the ways to notify people or services about
@@ -13,66 +30,69 @@
  *
  * Protobuf type {@code google.monitoring.v3.AlertPolicy}
  */
-public final class AlertPolicy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AlertPolicy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy)
     AlertPolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AlertPolicy.newBuilder() to construct.
   private AlertPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AlertPolicy() {
     name_ = "";
     displayName_ = "";
     conditions_ = java.util.Collections.emptyList();
     combiner_ = 0;
-    notificationChannels_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AlertPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.AlertProto
+        .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 16:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
+    return com.google.monitoring.v3.AlertProto
+        .internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.AlertPolicy.class, com.google.monitoring.v3.AlertPolicy.Builder.class);
+            com.google.monitoring.v3.AlertPolicy.class,
+            com.google.monitoring.v3.AlertPolicy.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Operators for combining conditions.
    * 
* * Protobuf enum {@code google.monitoring.v3.AlertPolicy.ConditionCombinerType} */ - public enum ConditionCombinerType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ConditionCombinerType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * An unspecified combiner.
      * 
@@ -81,6 +101,8 @@ public enum ConditionCombinerType */ COMBINE_UNSPECIFIED(0), /** + * + * *
      * Combine conditions using the logical `AND` operator. An
      * incident is created only if all the conditions are met
@@ -92,6 +114,8 @@ public enum ConditionCombinerType
      */
     AND(1),
     /**
+     *
+     *
      * 
      * Combine conditions using the logical `OR` operator. An incident
      * is created if any of the listed conditions is met.
@@ -101,6 +125,8 @@ public enum ConditionCombinerType
      */
     OR(2),
     /**
+     *
+     *
      * 
      * Combine conditions using logical `AND` operator, but unlike the regular
      * `AND` option, an incident is created only if all conditions are met
@@ -114,6 +140,8 @@ public enum ConditionCombinerType
     ;
 
     /**
+     *
+     *
      * 
      * An unspecified combiner.
      * 
@@ -122,6 +150,8 @@ public enum ConditionCombinerType */ public static final int COMBINE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Combine conditions using the logical `AND` operator. An
      * incident is created only if all the conditions are met
@@ -133,6 +163,8 @@ public enum ConditionCombinerType
      */
     public static final int AND_VALUE = 1;
     /**
+     *
+     *
      * 
      * Combine conditions using the logical `OR` operator. An incident
      * is created if any of the listed conditions is met.
@@ -142,6 +174,8 @@ public enum ConditionCombinerType
      */
     public static final int OR_VALUE = 2;
     /**
+     *
+     *
      * 
      * Combine conditions using logical `AND` operator, but unlike the regular
      * `AND` option, an incident is created only if all conditions are met
@@ -152,7 +186,6 @@ public enum ConditionCombinerType
      */
     public static final int AND_WITH_MATCHING_RESOURCE_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -177,11 +210,16 @@ public static ConditionCombinerType valueOf(int value) {
      */
     public static ConditionCombinerType forNumber(int value) {
       switch (value) {
-        case 0: return COMBINE_UNSPECIFIED;
-        case 1: return AND;
-        case 2: return OR;
-        case 3: return AND_WITH_MATCHING_RESOURCE;
-        default: return null;
+        case 0:
+          return COMBINE_UNSPECIFIED;
+        case 1:
+          return AND;
+        case 2:
+          return OR;
+        case 3:
+          return AND_WITH_MATCHING_RESOURCE;
+        default:
+          return null;
       }
     }
 
@@ -189,28 +227,28 @@ public static ConditionCombinerType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        ConditionCombinerType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ConditionCombinerType findValueByNumber(int number) {
-              return ConditionCombinerType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public ConditionCombinerType findValueByNumber(int number) {
+                return ConditionCombinerType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.AlertPolicy.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -219,8 +257,7 @@ public ConditionCombinerType findValueByNumber(int number) {
     public static ConditionCombinerType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -237,11 +274,14 @@ private ConditionCombinerType(int value) {
     // @@protoc_insertion_point(enum_scope:google.monitoring.v3.AlertPolicy.ConditionCombinerType)
   }
 
-  public interface DocumentationOrBuilder extends
+  public interface DocumentationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Documentation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -251,10 +291,13 @@ public interface DocumentationOrBuilder extends
      * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
      * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -264,12 +307,14 @@ public interface DocumentationOrBuilder extends
      * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -277,10 +322,13 @@ public interface DocumentationOrBuilder extends
      * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -288,12 +336,14 @@ public interface DocumentationOrBuilder extends
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
      * Optional. The subject line of the notification. The subject line may not
      * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -311,10 +361,13 @@ public interface DocumentationOrBuilder extends
      * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subject. */ java.lang.String getSubject(); /** + * + * *
      * Optional. The subject line of the notification. The subject line may not
      * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -332,12 +385,14 @@ public interface DocumentationOrBuilder extends
      * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subject. */ - com.google.protobuf.ByteString - getSubjectBytes(); + com.google.protobuf.ByteString getSubjectBytes(); } /** + * + * *
    * A content string and a MIME type that describes the content string's
    * format.
@@ -345,15 +400,16 @@ public interface DocumentationOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation}
    */
-  public static final class Documentation extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Documentation extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Documentation)
       DocumentationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Documentation.newBuilder() to construct.
     private Documentation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Documentation() {
       content_ = "";
       mimeType_ = "";
@@ -362,28 +418,32 @@ private Documentation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Documentation();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.Documentation.class, com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.Documentation.class,
+              com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
     }
 
     public static final int CONTENT_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object content_ = "";
     /**
+     *
+     *
      * 
      * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -393,6 +453,7 @@ protected java.lang.Object newInstance(
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -401,14 +462,15 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
      * The body of the documentation, interpreted according to `mime_type`.
      * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -418,16 +480,15 @@ public java.lang.String getContent() {
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -436,9 +497,12 @@ public java.lang.String getContent() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -446,6 +510,7 @@ public java.lang.String getContent() {
      * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -454,14 +519,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
      * The format of the `content` field. Presently, only the value
      * `"text/markdown"` is supported. See
@@ -469,16 +535,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -487,9 +552,12 @@ public java.lang.String getMimeType() { } public static final int SUBJECT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object subject_ = ""; /** + * + * *
      * Optional. The subject line of the notification. The subject line may not
      * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -507,6 +575,7 @@ public java.lang.String getMimeType() {
      * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subject. */ @java.lang.Override @@ -515,14 +584,15 @@ public java.lang.String getSubject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** + * + * *
      * Optional. The subject line of the notification. The subject line may not
      * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -540,16 +610,15 @@ public java.lang.String getSubject() {
      * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subject. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubjectBytes() { + public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -558,6 +627,7 @@ public java.lang.String getSubject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -569,8 +639,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -606,19 +675,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Documentation)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Documentation other = (com.google.monitoring.v3.AlertPolicy.Documentation) obj; + com.google.monitoring.v3.AlertPolicy.Documentation other = + (com.google.monitoring.v3.AlertPolicy.Documentation) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getSubject().equals(other.getSubject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -642,89 +709,93 @@ public int hashCode() { } public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Documentation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Documentation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Documentation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -734,6 +805,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A content string and a MIME type that describes the content string's
      * format.
@@ -741,33 +814,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Documentation)
         com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Documentation.class, com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Documentation.class,
+                com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.AlertPolicy.Documentation.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -779,9 +852,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor;
       }
 
       @java.lang.Override
@@ -800,8 +873,11 @@ public com.google.monitoring.v3.AlertPolicy.Documentation build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Documentation buildPartial() {
-        com.google.monitoring.v3.AlertPolicy.Documentation result = new com.google.monitoring.v3.AlertPolicy.Documentation(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.AlertPolicy.Documentation result =
+            new com.google.monitoring.v3.AlertPolicy.Documentation(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -823,38 +899,41 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Documentation re
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.AlertPolicy.Documentation) {
-          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Documentation)other);
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Documentation) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -862,7 +941,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation other) {
-        if (other == com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance())
+          return this;
         if (!other.getContent().isEmpty()) {
           content_ = other.content_;
           bitField0_ |= 0x00000001;
@@ -904,27 +984,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                content_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                mimeType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                subject_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  content_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  mimeType_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  subject_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -934,10 +1018,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object content_ = "";
       /**
+       *
+       *
        * 
        * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -947,13 +1034,13 @@ public Builder mergeFrom(
        * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -962,6 +1049,8 @@ public java.lang.String getContent() { } } /** + * + * *
        * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -971,15 +1060,14 @@ public java.lang.String getContent() {
        * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -987,6 +1075,8 @@ public java.lang.String getContent() { } } /** + * + * *
        * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -996,18 +1086,22 @@ public java.lang.String getContent() {
        * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -1017,6 +1111,7 @@ public Builder setContent(
        * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1026,6 +1121,8 @@ public Builder clearContent() { return this; } /** + * + * *
        * The body of the documentation, interpreted according to `mime_type`.
        * The content may not exceed 8,192 Unicode characters and may not exceed
@@ -1035,12 +1132,14 @@ public Builder clearContent() {
        * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -1050,6 +1149,8 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1057,13 +1158,13 @@ public Builder setContentBytes(
        * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1072,6 +1173,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1079,15 +1182,14 @@ public java.lang.String getMimeType() {
        * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1095,6 +1197,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1102,18 +1206,22 @@ public java.lang.String getMimeType() {
        * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1121,6 +1229,7 @@ public Builder setMimeType(
        * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1130,6 +1239,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
        * The format of the `content` field. Presently, only the value
        * `"text/markdown"` is supported. See
@@ -1137,12 +1248,14 @@ public Builder clearMimeType() {
        * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1152,6 +1265,8 @@ public Builder setMimeTypeBytes( private java.lang.Object subject_ = ""; /** + * + * *
        * Optional. The subject line of the notification. The subject line may not
        * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -1169,13 +1284,13 @@ public Builder setMimeTypeBytes(
        * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subject. */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; @@ -1184,6 +1299,8 @@ public java.lang.String getSubject() { } } /** + * + * *
        * Optional. The subject line of the notification. The subject line may not
        * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -1201,15 +1318,14 @@ public java.lang.String getSubject() {
        * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { + public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -1217,6 +1333,8 @@ public java.lang.String getSubject() { } } /** + * + * *
        * Optional. The subject line of the notification. The subject line may not
        * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -1234,18 +1352,22 @@ public java.lang.String getSubject() {
        * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subject to set. * @return This builder for chaining. */ - public Builder setSubject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subject_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. The subject line of the notification. The subject line may not
        * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -1263,6 +1385,7 @@ public Builder setSubject(
        * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubject() { @@ -1272,6 +1395,8 @@ public Builder clearSubject() { return this; } /** + * + * *
        * Optional. The subject line of the notification. The subject line may not
        * exceed 10,240 bytes. In notifications generated by this policy, the
@@ -1289,18 +1414,21 @@ public Builder clearSubject() {
        * 
* * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for subject to set. * @return This builder for chaining. */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subject_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1313,12 +1441,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Documentation) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) private static final com.google.monitoring.v3.AlertPolicy.Documentation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Documentation(); } @@ -1327,27 +1455,28 @@ public static com.google.monitoring.v3.AlertPolicy.Documentation getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Documentation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Documentation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,14 +1491,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.Documentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConditionOrBuilder extends + public interface ConditionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -1399,11 +1530,14 @@ public interface ConditionOrBuilder extends
      * 
* * string name = 12; + * * @return The name. */ java.lang.String getName(); /** - *
+     *
+     *
+     * 
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
      *
@@ -1432,12 +1566,14 @@ public interface ConditionOrBuilder extends
      * 
* * string name = 12; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -1445,10 +1581,13 @@ public interface ConditionOrBuilder extends
      * 
* * string display_name = 6; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -1456,59 +1595,79 @@ public interface ConditionOrBuilder extends
      * 
* * string display_name = 6; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return Whether the conditionThreshold field is set. */ boolean hasConditionThreshold(); /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return The conditionThreshold. */ com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold(); /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ - com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder + getConditionThresholdOrBuilder(); /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * * @return Whether the conditionAbsent field is set. */ boolean hasConditionAbsent(); /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * * @return The conditionAbsent. */ com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent(); /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
@@ -1516,29 +1675,38 @@ public interface ConditionOrBuilder extends
      *
      * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
      */
-    com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder();
+    com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
+        getConditionAbsentOrBuilder();
 
     /**
+     *
+     *
      * 
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * * @return Whether the conditionMatchedLog field is set. */ boolean hasConditionMatchedLog(); /** + * + * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * * @return The conditionMatchedLog. */ com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog(); /** + * + * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
@@ -1546,68 +1714,103 @@ public interface ConditionOrBuilder extends
      *
      * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
      */
-    com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder();
+    com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
+        getConditionMatchedLogOrBuilder();
 
     /**
+     *
+     *
      * 
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return Whether the conditionMonitoringQueryLanguage field is set. */ boolean hasConditionMonitoringQueryLanguage(); /** + * + * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return The conditionMonitoringQueryLanguage. */ - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage(); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getConditionMonitoringQueryLanguage(); /** + * + * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder + getConditionMonitoringQueryLanguageOrBuilder(); /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return Whether the conditionPrometheusQueryLanguage field is set. */ boolean hasConditionPrometheusQueryLanguage(); /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return The conditionPrometheusQueryLanguage. */ - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage(); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getConditionPrometheusQueryLanguage(); /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder + getConditionPrometheusQueryLanguageOrBuilder(); com.google.monitoring.v3.AlertPolicy.Condition.ConditionCase getConditionCase(); } /** + * + * *
    * A condition is a true/false test that determines when an alerting policy
    * should open an incident. If a condition evaluates to true, it signifies
@@ -1616,15 +1819,16 @@ public interface ConditionOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
    */
-  public static final class Condition extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Condition extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition)
       ConditionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Condition.newBuilder() to construct.
     private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Condition() {
       name_ = "";
       displayName_ = "";
@@ -1632,25 +1836,28 @@ private Condition() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Condition();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.Condition.class, com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.Condition.class,
+              com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
     }
 
     /**
+     *
+     *
      * 
      * A condition control that determines how metric-threshold conditions
      * are evaluated when data stops arriving.
@@ -1659,9 +1866,10 @@ protected java.lang.Object newInstance(
      *
      * Protobuf enum {@code google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData}
      */
-    public enum EvaluationMissingData
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * An unspecified evaluation missing data option.  Equivalent to
        * EVALUATION_MISSING_DATA_NO_OP.
@@ -1671,6 +1879,8 @@ public enum EvaluationMissingData
        */
       EVALUATION_MISSING_DATA_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as false.
@@ -1680,6 +1890,8 @@ public enum EvaluationMissingData
        */
       EVALUATION_MISSING_DATA_INACTIVE(1),
       /**
+       *
+       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as true.
@@ -1689,6 +1901,8 @@ public enum EvaluationMissingData
        */
       EVALUATION_MISSING_DATA_ACTIVE(2),
       /**
+       *
+       *
        * 
        * Do not evaluate the condition to any value if there is no data.
        * 
@@ -1700,6 +1914,8 @@ public enum EvaluationMissingData ; /** + * + * *
        * An unspecified evaluation missing data option.  Equivalent to
        * EVALUATION_MISSING_DATA_NO_OP.
@@ -1709,6 +1925,8 @@ public enum EvaluationMissingData
        */
       public static final int EVALUATION_MISSING_DATA_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as false.
@@ -1718,6 +1936,8 @@ public enum EvaluationMissingData
        */
       public static final int EVALUATION_MISSING_DATA_INACTIVE_VALUE = 1;
       /**
+       *
+       *
        * 
        * If there is no data to evaluate the condition, then evaluate the
        * condition as true.
@@ -1727,6 +1947,8 @@ public enum EvaluationMissingData
        */
       public static final int EVALUATION_MISSING_DATA_ACTIVE_VALUE = 2;
       /**
+       *
+       *
        * 
        * Do not evaluate the condition to any value if there is no data.
        * 
@@ -1735,7 +1957,6 @@ public enum EvaluationMissingData */ public static final int EVALUATION_MISSING_DATA_NO_OP_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1760,11 +1981,16 @@ public static EvaluationMissingData valueOf(int value) { */ public static EvaluationMissingData forNumber(int value) { switch (value) { - case 0: return EVALUATION_MISSING_DATA_UNSPECIFIED; - case 1: return EVALUATION_MISSING_DATA_INACTIVE; - case 2: return EVALUATION_MISSING_DATA_ACTIVE; - case 3: return EVALUATION_MISSING_DATA_NO_OP; - default: return null; + case 0: + return EVALUATION_MISSING_DATA_UNSPECIFIED; + case 1: + return EVALUATION_MISSING_DATA_INACTIVE; + case 2: + return EVALUATION_MISSING_DATA_ACTIVE; + case 3: + return EVALUATION_MISSING_DATA_NO_OP; + default: + return null; } } @@ -1772,28 +1998,28 @@ public static EvaluationMissingData forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EvaluationMissingData> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMissingData findValueByNumber(int number) { - return EvaluationMissingData.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMissingData findValueByNumber(int number) { + return EvaluationMissingData.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.AlertPolicy.Condition.getDescriptor().getEnumTypes().get(0); } @@ -1802,8 +2028,7 @@ public EvaluationMissingData findValueByNumber(int number) { public static EvaluationMissingData valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1820,48 +2045,61 @@ private EvaluationMissingData(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData) } - public interface TriggerOrBuilder extends + public interface TriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.Trigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; + * * @return Whether the count field is set. */ boolean hasCount(); /** + * + * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; + * * @return The count. */ int getCount(); /** + * + * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; + * * @return Whether the percent field is set. */ boolean hasPercent(); /** + * + * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; + * * @return The percent. */ double getPercent(); @@ -1869,6 +2107,8 @@ public interface TriggerOrBuilder extends com.google.monitoring.v3.AlertPolicy.Condition.Trigger.TypeCase getTypeCase(); } /** + * + * *
      * Specifies how many time series must fail a predicate to trigger a
      * condition. If not specified, then a `{count: 1}` trigger is used.
@@ -1876,48 +2116,53 @@ public interface TriggerOrBuilder extends
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.Trigger}
      */
-    public static final class Trigger extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class Trigger extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.Trigger)
         TriggerOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use Trigger.newBuilder() to construct.
       private Trigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private Trigger() {
-      }
+
+      private Trigger() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Trigger();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
       }
 
       private int typeCase_ = 0;
+
       @SuppressWarnings("serial")
       private java.lang.Object type_;
+
       public enum TypeCase
-          implements com.google.protobuf.Internal.EnumLite,
+          implements
+              com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         COUNT(1),
         PERCENT(2),
         TYPE_NOT_SET(0);
         private final int value;
+
         private TypeCase(int value) {
           this.value = value;
         }
@@ -1933,31 +2178,37 @@ public static TypeCase valueOf(int value) {
 
         public static TypeCase forNumber(int value) {
           switch (value) {
-            case 1: return COUNT;
-            case 2: return PERCENT;
-            case 0: return TYPE_NOT_SET;
-            default: return null;
+            case 1:
+              return COUNT;
+            case 2:
+              return PERCENT;
+            case 0:
+              return TYPE_NOT_SET;
+            default:
+              return null;
           }
         }
+
         public int getNumber() {
           return this.value;
         }
       };
 
-      public TypeCase
-      getTypeCase() {
-        return TypeCase.forNumber(
-            typeCase_);
+      public TypeCase getTypeCase() {
+        return TypeCase.forNumber(typeCase_);
       }
 
       public static final int COUNT_FIELD_NUMBER = 1;
       /**
+       *
+       *
        * 
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; + * * @return Whether the count field is set. */ @java.lang.Override @@ -1965,12 +2216,15 @@ public boolean hasCount() { return typeCase_ == 1; } /** + * + * *
        * The absolute number of time series that must fail
        * the predicate for the condition to be triggered.
        * 
* * int32 count = 1; + * * @return The count. */ @java.lang.Override @@ -1983,12 +2237,15 @@ public int getCount() { public static final int PERCENT_FIELD_NUMBER = 2; /** + * + * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; + * * @return Whether the percent field is set. */ @java.lang.Override @@ -1996,12 +2253,15 @@ public boolean hasPercent() { return typeCase_ == 2; } /** + * + * *
        * The percentage of time series that must fail the
        * predicate for the condition to be triggered.
        * 
* * double percent = 2; + * * @return The percent. */ @java.lang.Override @@ -2013,6 +2273,7 @@ public double getPercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2024,15 +2285,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) type_)); + output.writeInt32(1, (int) ((java.lang.Integer) type_)); } if (typeCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) type_)); + output.writeDouble(2, (double) ((java.lang.Double) type_)); } getUnknownFields().writeTo(output); } @@ -2044,14 +2302,14 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) type_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, (int) ((java.lang.Integer) type_)); } if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) type_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) type_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2061,23 +2319,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.Trigger)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.Trigger other = (com.google.monitoring.v3.AlertPolicy.Condition.Trigger) obj; + com.google.monitoring.v3.AlertPolicy.Condition.Trigger other = + (com.google.monitoring.v3.AlertPolicy.Condition.Trigger) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (getCount() - != other.getCount()) return false; + if (getCount() != other.getCount()) return false; break; case 2: if (java.lang.Double.doubleToLongBits(getPercent()) - != java.lang.Double.doubleToLongBits( - other.getPercent())) return false; + != java.lang.Double.doubleToLongBits(other.getPercent())) return false; break; case 0: default: @@ -2100,8 +2357,10 @@ public int hashCode() { break; case 2: hash = (37 * hash) + PERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPercent())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPercent())); break; case 0: default: @@ -2112,89 +2371,94 @@ public int hashCode() { } public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.Trigger prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.Trigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2204,6 +2468,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Specifies how many time series must fail a predicate to trigger a
        * condition. If not specified, then a `{count: 1}` trigger is used.
@@ -2211,33 +2477,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.Trigger}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.Trigger)
           com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.class,
+                  com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder.class);
         }
 
         // Construct using com.google.monitoring.v3.AlertPolicy.Condition.Trigger.newBuilder()
-        private Builder() {
-
-        }
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -2248,9 +2514,9 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor;
         }
 
         @java.lang.Override
@@ -2269,8 +2535,11 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger build() {
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.Condition.Trigger buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.Condition.Trigger result = new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+          com.google.monitoring.v3.AlertPolicy.Condition.Trigger result =
+              new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           buildPartialOneofs(result);
           onBuilt();
           return result;
@@ -2280,7 +2549,8 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Trigge
           int from_bitField0_ = bitField0_;
         }
 
-        private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition.Trigger result) {
+        private void buildPartialOneofs(
+            com.google.monitoring.v3.AlertPolicy.Condition.Trigger result) {
           result.typeCase_ = typeCase_;
           result.type_ = this.type_;
         }
@@ -2289,38 +2559,41 @@ private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition.T
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.Trigger) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.Trigger)other);
+            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.Trigger) other);
           } else {
             super.mergeFrom(other);
             return this;
@@ -2328,19 +2601,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
 
         public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.Trigger other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) return this;
+          if (other == com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance())
+            return this;
           switch (other.getTypeCase()) {
-            case COUNT: {
-              setCount(other.getCount());
-              break;
-            }
-            case PERCENT: {
-              setPercent(other.getPercent());
-              break;
-            }
-            case TYPE_NOT_SET: {
-              break;
-            }
+            case COUNT:
+              {
+                setCount(other.getCount());
+                break;
+              }
+            case PERCENT:
+              {
+                setPercent(other.getPercent());
+                break;
+              }
+            case TYPE_NOT_SET:
+              {
+                break;
+              }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
@@ -2368,22 +2645,25 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8: {
-                  type_ = input.readInt32();
-                  typeCase_ = 1;
-                  break;
-                } // case 8
-                case 17: {
-                  type_ = input.readDouble();
-                  typeCase_ = 2;
-                  break;
-                } // case 17
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 8:
+                  {
+                    type_ = input.readInt32();
+                    typeCase_ = 1;
+                    break;
+                  } // case 8
+                case 17:
+                  {
+                    type_ = input.readDouble();
+                    typeCase_ = 2;
+                    break;
+                  } // case 17
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2393,12 +2673,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int typeCase_ = 0;
         private java.lang.Object type_;
-        public TypeCase
-            getTypeCase() {
-          return TypeCase.forNumber(
-              typeCase_);
+
+        public TypeCase getTypeCase() {
+          return TypeCase.forNumber(typeCase_);
         }
 
         public Builder clearType() {
@@ -2411,24 +2691,30 @@ public Builder clearType() {
         private int bitField0_;
 
         /**
+         *
+         *
          * 
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; + * * @return Whether the count field is set. */ public boolean hasCount() { return typeCase_ == 1; } /** + * + * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; + * * @return The count. */ public int getCount() { @@ -2438,12 +2724,15 @@ public int getCount() { return 0; } /** + * + * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; + * * @param value The count to set. * @return This builder for chaining. */ @@ -2455,12 +2744,15 @@ public Builder setCount(int value) { return this; } /** + * + * *
          * The absolute number of time series that must fail
          * the predicate for the condition to be triggered.
          * 
* * int32 count = 1; + * * @return This builder for chaining. */ public Builder clearCount() { @@ -2473,24 +2765,30 @@ public Builder clearCount() { } /** + * + * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; + * * @return Whether the percent field is set. */ public boolean hasPercent() { return typeCase_ == 2; } /** + * + * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; + * * @return The percent. */ public double getPercent() { @@ -2500,12 +2798,15 @@ public double getPercent() { return 0D; } /** + * + * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; + * * @param value The percent to set. * @return This builder for chaining. */ @@ -2517,12 +2818,15 @@ public Builder setPercent(double value) { return this; } /** + * + * *
          * The percentage of time series that must fail the
          * predicate for the condition to be triggered.
          * 
* * double percent = 2; + * * @return This builder for chaining. */ public Builder clearPercent() { @@ -2533,6 +2837,7 @@ public Builder clearPercent() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2545,12 +2850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) private static final com.google.monitoring.v3.AlertPolicy.Condition.Trigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.Trigger(); } @@ -2559,27 +2864,28 @@ public static com.google.monitoring.v3.AlertPolicy.Condition.Trigger getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Trigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2594,14 +2900,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MetricThresholdOrBuilder extends + public interface MetricThresholdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -2617,10 +2925,13 @@ public interface MetricThresholdOrBuilder extends
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -2636,12 +2947,14 @@ public interface MetricThresholdOrBuilder extends
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2658,9 +2971,10 @@ public interface MetricThresholdOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      java.util.List 
-          getAggregationsList();
+      java.util.List getAggregationsList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2679,6 +2993,8 @@ public interface MetricThresholdOrBuilder extends
        */
       com.google.monitoring.v3.Aggregation getAggregations(int index);
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2697,6 +3013,8 @@ public interface MetricThresholdOrBuilder extends
        */
       int getAggregationsCount();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2713,9 +3031,11 @@ public interface MetricThresholdOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      java.util.List 
+      java.util.List
           getAggregationsOrBuilderList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -2732,10 +3052,11 @@ public interface MetricThresholdOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-          int index);
+      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index);
 
       /**
+       *
+       *
        * 
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -2749,10 +3070,13 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * string denominator_filter = 9; + * * @return The denominatorFilter. */ java.lang.String getDenominatorFilter(); /** + * + * *
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -2766,12 +3090,14 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * string denominator_filter = 9; + * * @return The bytes for denominatorFilter. */ - com.google.protobuf.ByteString - getDenominatorFilterBytes(); + com.google.protobuf.ByteString getDenominatorFilterBytes(); /** + * + * *
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2787,9 +3113,10 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      java.util.List 
-          getDenominatorAggregationsList();
+      java.util.List getDenominatorAggregationsList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2807,6 +3134,8 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        */
       com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index);
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2824,6 +3153,8 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        */
       int getDenominatorAggregationsCount();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2839,9 +3170,11 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      java.util.List 
+      java.util.List
           getDenominatorAggregationsOrBuilderList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -2857,10 +3190,11 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        *
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(
-          int index);
+      com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(int index);
 
       /**
+       *
+       *
        * 
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -2869,11 +3203,16 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return Whether the forecastOptions field is set. */ boolean hasForecastOptions(); /** + * + * *
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -2882,11 +3221,17 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return The forecastOptions. */ - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions(); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getForecastOptions(); /** + * + * *
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -2895,11 +3240,16 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder(); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder + getForecastOptionsOrBuilder(); /** + * + * *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -2910,10 +3260,13 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The enum numeric value on the wire for comparison. */ int getComparisonValue(); /** + * + * *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -2924,21 +3277,27 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The comparison. */ com.google.monitoring.v3.ComparisonType getComparison(); /** + * + * *
        * A value against which to compare the time series.
        * 
* * double threshold_value = 5; + * * @return The thresholdValue. */ double getThresholdValue(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2953,10 +3312,13 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.protobuf.Duration duration = 6; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2971,10 +3333,13 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.protobuf.Duration duration = 6; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -2993,6 +3358,8 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
       com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -3003,10 +3370,13 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return Whether the trigger field is set. */ boolean hasTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -3017,10 +3387,13 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return The trigger. */ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -3035,27 +3408,40 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
       com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
 
       /**
+       *
+       *
        * 
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ int getEvaluationMissingDataValue(); /** + * + * *
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The evaluationMissingData. */ - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData(); + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData(); } /** + * + * *
      * A condition type that compares a collection of time series
      * against a threshold.
@@ -3063,15 +3449,16 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold}
      */
-    public static final class MetricThreshold extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class MetricThreshold extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)
         MetricThresholdOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use MetricThreshold.newBuilder() to construct.
       private MetricThreshold(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private MetricThreshold() {
         filter_ = "";
         aggregations_ = java.util.Collections.emptyList();
@@ -3083,29 +3470,33 @@ private MetricThreshold() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new MetricThreshold();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class,
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
       }
 
-      public interface ForecastOptionsOrBuilder extends
+      public interface ForecastOptionsOrBuilder
+          extends
           // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)
           com.google.protobuf.MessageOrBuilder {
 
         /**
+         *
+         *
          * 
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3114,11 +3505,16 @@ public interface ForecastOptionsOrBuilder extends
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the forecastHorizon field is set. */ boolean hasForecastHorizon(); /** + * + * *
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3127,11 +3523,16 @@ public interface ForecastOptionsOrBuilder extends
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The forecastHorizon. */ com.google.protobuf.Duration getForecastHorizon(); /** + * + * *
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3140,53 +3541,63 @@ public interface ForecastOptionsOrBuilder extends
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder(); } /** + * + * *
        * Options used when forecasting the time series and testing
        * the predicted value against the threshold.
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} */ - public static final class ForecastOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ForecastOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) ForecastOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ForecastOptions.newBuilder() to construct. private ForecastOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ForecastOptions() { - } + + private ForecastOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ForecastOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .class, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .Builder.class); } public static final int FORECAST_HORIZON_FIELD_NUMBER = 1; private com.google.protobuf.Duration forecastHorizon_; /** + * + * *
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3195,7 +3606,10 @@ protected java.lang.Object newInstance(
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the forecastHorizon field is set. */ @java.lang.Override @@ -3203,6 +3617,8 @@ public boolean hasForecastHorizon() { return forecastHorizon_ != null; } /** + * + * *
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3211,14 +3627,21 @@ public boolean hasForecastHorizon() {
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The forecastHorizon. */ @java.lang.Override public com.google.protobuf.Duration getForecastHorizon() { - return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + return forecastHorizon_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : forecastHorizon_; } /** + * + * *
          * Required. The length of time into the future to forecast whether a
          * time series will violate the threshold. If the predicted value is
@@ -3227,14 +3650,19 @@ public com.google.protobuf.Duration getForecastHorizon() {
          * considered to be failing.
          * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder() { - return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + return forecastHorizon_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : forecastHorizon_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3247,7 +3675,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (forecastHorizon_ != null) { output.writeMessage(1, getForecastHorizon()); } @@ -3261,8 +3689,8 @@ public int getSerializedSize() { size = 0; if (forecastHorizon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getForecastHorizon()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getForecastHorizon()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3272,17 +3700,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)) { + if (!(obj + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) obj; + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions other = + (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) obj; if (hasForecastHorizon() != other.hasForecastHorizon()) return false; if (hasForecastHorizon()) { - if (!getForecastHorizon() - .equals(other.getForecastHorizon())) return false; + if (!getForecastHorizon().equals(other.getForecastHorizon())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3304,90 +3734,106 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3397,40 +3843,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Options used when forecasting the time series and testing
          * the predicted value against the threshold.
          * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .class, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .Builder.class); } - // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3444,19 +3897,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions build() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = buildPartial(); + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + build() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3464,19 +3921,27 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result = + new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions result) { + private void buildPartial0( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.forecastHorizon_ = forecastHorizonBuilder_ == null - ? forecastHorizon_ - : forecastHorizonBuilder_.build(); + result.forecastHorizon_ = + forecastHorizonBuilder_ == null + ? forecastHorizon_ + : forecastHorizonBuilder_.build(); } } @@ -3484,46 +3949,57 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Metric public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions)other); + if (other + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) { + return mergeFrom( + (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions other) { - if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + other) { + if (other + == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance()) return this; if (other.hasForecastHorizon()) { mergeForecastHorizon(other.getForecastHorizon()); } @@ -3553,19 +4029,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getForecastHorizonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getForecastHorizonFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3575,12 +4052,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration forecastHorizon_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> forecastHorizonBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + forecastHorizonBuilder_; /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3589,13 +4072,18 @@ public Builder mergeFrom(
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the forecastHorizon field is set. */ public boolean hasForecastHorizon() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3604,17 +4092,24 @@ public boolean hasForecastHorizon() {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The forecastHorizon. */ public com.google.protobuf.Duration getForecastHorizon() { if (forecastHorizonBuilder_ == null) { - return forecastHorizon_ == null ? com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + return forecastHorizon_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : forecastHorizon_; } else { return forecastHorizonBuilder_.getMessage(); } } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3623,7 +4118,9 @@ public com.google.protobuf.Duration getForecastHorizon() {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setForecastHorizon(com.google.protobuf.Duration value) { if (forecastHorizonBuilder_ == null) { @@ -3639,6 +4136,8 @@ public Builder setForecastHorizon(com.google.protobuf.Duration value) { return this; } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3647,10 +4146,11 @@ public Builder setForecastHorizon(com.google.protobuf.Duration value) {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setForecastHorizon( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setForecastHorizon(com.google.protobuf.Duration.Builder builderForValue) { if (forecastHorizonBuilder_ == null) { forecastHorizon_ = builderForValue.build(); } else { @@ -3661,6 +4161,8 @@ public Builder setForecastHorizon( return this; } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3669,13 +4171,15 @@ public Builder setForecastHorizon(
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeForecastHorizon(com.google.protobuf.Duration value) { if (forecastHorizonBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - forecastHorizon_ != null && - forecastHorizon_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && forecastHorizon_ != null + && forecastHorizon_ != com.google.protobuf.Duration.getDefaultInstance()) { getForecastHorizonBuilder().mergeFrom(value); } else { forecastHorizon_ = value; @@ -3688,6 +4192,8 @@ public Builder mergeForecastHorizon(com.google.protobuf.Duration value) { return this; } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3696,7 +4202,9 @@ public Builder mergeForecastHorizon(com.google.protobuf.Duration value) {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearForecastHorizon() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3709,6 +4217,8 @@ public Builder clearForecastHorizon() { return this; } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3717,7 +4227,9 @@ public Builder clearForecastHorizon() {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getForecastHorizonBuilder() { bitField0_ |= 0x00000001; @@ -3725,6 +4237,8 @@ public com.google.protobuf.Duration.Builder getForecastHorizonBuilder() { return getForecastHorizonFieldBuilder().getBuilder(); } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3733,17 +4247,22 @@ public com.google.protobuf.Duration.Builder getForecastHorizonBuilder() {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder() { if (forecastHorizonBuilder_ != null) { return forecastHorizonBuilder_.getMessageOrBuilder(); } else { - return forecastHorizon_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : forecastHorizon_; + return forecastHorizon_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : forecastHorizon_; } } /** + * + * *
            * Required. The length of time into the future to forecast whether a
            * time series will violate the threshold. If the predicted value is
@@ -3752,21 +4271,27 @@ public com.google.protobuf.DurationOrBuilder getForecastHorizonOrBuilder() {
            * considered to be failing.
            * 
* - * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getForecastHorizonFieldBuilder() { if (forecastHorizonBuilder_ == null) { - forecastHorizonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getForecastHorizon(), - getParentForChildren(), - isClean()); + forecastHorizonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getForecastHorizon(), getParentForChildren(), isClean()); forecastHorizon_ = null; } return forecastHorizonBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3779,41 +4304,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions) - private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ForecastOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForecastOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3825,16 +4355,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -3850,6 +4383,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -3858,14 +4392,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -3881,16 +4416,15 @@ public java.lang.String getFilter() {
        * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -3899,9 +4433,12 @@ public java.lang.String getFilter() { } public static final int AGGREGATIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List aggregations_; /** + * + * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -3923,6 +4460,8 @@ public java.util.List getAggregationsList(
         return aggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -3940,11 +4479,13 @@ public java.util.List getAggregationsList(
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getAggregationsOrBuilderList() {
         return aggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -3966,6 +4507,8 @@ public int getAggregationsCount() {
         return aggregations_.size();
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -3987,6 +4530,8 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
         return aggregations_.get(index);
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -4004,15 +4549,17 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
        * repeated .google.monitoring.v3.Aggregation aggregations = 8;
        */
       @java.lang.Override
-      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-          int index) {
+      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
         return aggregations_.get(index);
       }
 
       public static final int DENOMINATOR_FILTER_FIELD_NUMBER = 9;
+
       @SuppressWarnings("serial")
       private volatile java.lang.Object denominatorFilter_ = "";
       /**
+       *
+       *
        * 
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -4026,6 +4573,7 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * string denominator_filter = 9; + * * @return The denominatorFilter. */ @java.lang.Override @@ -4034,14 +4582,15 @@ public java.lang.String getDenominatorFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denominatorFilter_ = s; return s; } } /** + * + * *
        * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
        * identifies a time series that should be used as the denominator of a
@@ -4055,16 +4604,15 @@ public java.lang.String getDenominatorFilter() {
        * 
* * string denominator_filter = 9; + * * @return The bytes for denominatorFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getDenominatorFilterBytes() { + public com.google.protobuf.ByteString getDenominatorFilterBytes() { java.lang.Object ref = denominatorFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); denominatorFilter_ = b; return b; } else { @@ -4073,9 +4621,12 @@ public java.lang.String getDenominatorFilter() { } public static final int DENOMINATOR_AGGREGATIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List denominatorAggregations_; /** + * + * *
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -4096,6 +4647,8 @@ public java.util.List getDenominatorAggreg
         return denominatorAggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -4112,11 +4665,13 @@ public java.util.List getDenominatorAggreg
        * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getDenominatorAggregationsOrBuilderList() {
         return denominatorAggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -4137,6 +4692,8 @@ public int getDenominatorAggregationsCount() {
         return denominatorAggregations_.size();
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -4157,6 +4714,8 @@ public com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index
         return denominatorAggregations_.get(index);
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series
        * selected by `denominatorFilter` as
@@ -4179,8 +4738,11 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
       }
 
       public static final int FORECAST_OPTIONS_FIELD_NUMBER = 12;
-      private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecastOptions_;
+      private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions
+          forecastOptions_;
       /**
+       *
+       *
        * 
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -4189,7 +4751,10 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return Whether the forecastOptions field is set. */ @java.lang.Override @@ -4197,6 +4762,8 @@ public boolean hasForecastOptions() { return forecastOptions_ != null; } /** + * + * *
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -4205,14 +4772,23 @@ public boolean hasForecastOptions() {
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return The forecastOptions. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions() { - return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getForecastOptions() { + return forecastOptions_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance() + : forecastOptions_; } /** + * + * *
        * When this field is present, the `MetricThreshold` condition forecasts
        * whether the time series is predicted to violate the threshold within
@@ -4221,16 +4797,24 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
        * threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder() { - return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder + getForecastOptionsOrBuilder() { + return forecastOptions_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance() + : forecastOptions_; } public static final int COMPARISON_FIELD_NUMBER = 4; private int comparison_ = 0; /** + * + * *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -4241,12 +4825,16 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The enum numeric value on the wire for comparison. */ - @java.lang.Override public int getComparisonValue() { + @java.lang.Override + public int getComparisonValue() { return comparison_; } /** + * + * *
        * The comparison to apply between the time series (indicated by `filter`
        * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -4257,21 +4845,27 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
        * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The comparison. */ - @java.lang.Override public com.google.monitoring.v3.ComparisonType getComparison() { - com.google.monitoring.v3.ComparisonType result = com.google.monitoring.v3.ComparisonType.forNumber(comparison_); + @java.lang.Override + public com.google.monitoring.v3.ComparisonType getComparison() { + com.google.monitoring.v3.ComparisonType result = + com.google.monitoring.v3.ComparisonType.forNumber(comparison_); return result == null ? com.google.monitoring.v3.ComparisonType.UNRECOGNIZED : result; } public static final int THRESHOLD_VALUE_FIELD_NUMBER = 5; private double thresholdValue_ = 0D; /** + * + * *
        * A value against which to compare the time series.
        * 
* * double threshold_value = 5; + * * @return The thresholdValue. */ @java.lang.Override @@ -4282,6 +4876,8 @@ public double getThresholdValue() { public static final int DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration duration_; /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -4296,6 +4892,7 @@ public double getThresholdValue() {
        * 
* * .google.protobuf.Duration duration = 6; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -4303,6 +4900,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -4317,6 +4916,7 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 6; + * * @return The duration. */ @java.lang.Override @@ -4324,6 +4924,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -4347,6 +4949,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
       public static final int TRIGGER_FIELD_NUMBER = 7;
       private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -4357,6 +4961,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return Whether the trigger field is set. */ @java.lang.Override @@ -4364,6 +4969,8 @@ public boolean hasTrigger() { return trigger_ != null; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -4374,13 +4981,18 @@ public boolean hasTrigger() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return The trigger. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -4394,38 +5006,58 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
        */
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
-        return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+        return trigger_ == null
+            ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+            : trigger_;
       }
 
       public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 11;
       private int evaluationMissingData_ = 0;
       /**
+       *
+       *
        * 
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ - @java.lang.Override public int getEvaluationMissingDataValue() { + @java.lang.Override + public int getEvaluationMissingDataValue() { return evaluationMissingData_; } /** + * + * *
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The evaluationMissingData. */ - @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); - return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( + evaluationMissingData_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4437,12 +5069,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } - if (comparison_ != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { + if (comparison_ + != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { output.writeEnum(4, comparison_); } if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { @@ -4463,7 +5095,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < denominatorAggregations_.size(); i++) { output.writeMessage(10, denominatorAggregations_.get(i)); } - if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + if (evaluationMissingData_ + != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + .EVALUATION_MISSING_DATA_UNSPECIFIED + .getNumber()) { output.writeEnum(11, evaluationMissingData_); } if (forecastOptions_ != null) { @@ -4481,40 +5116,39 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } - if (comparison_ != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, comparison_); + if (comparison_ + != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, comparison_); } if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, thresholdValue_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, thresholdValue_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDuration()); } if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTrigger()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTrigger()); } for (int i = 0; i < aggregations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, aggregations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, aggregations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denominatorFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, denominatorFilter_); } for (int i = 0; i < denominatorAggregations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, denominatorAggregations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, denominatorAggregations_.get(i)); } - if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, evaluationMissingData_); + if (evaluationMissingData_ + != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + .EVALUATION_MISSING_DATA_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, evaluationMissingData_); } if (forecastOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getForecastOptions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getForecastOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4524,39 +5158,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) obj; + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other = + (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) obj; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getAggregationsList() - .equals(other.getAggregationsList())) return false; - if (!getDenominatorFilter() - .equals(other.getDenominatorFilter())) return false; - if (!getDenominatorAggregationsList() - .equals(other.getDenominatorAggregationsList())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getAggregationsList().equals(other.getAggregationsList())) return false; + if (!getDenominatorFilter().equals(other.getDenominatorFilter())) return false; + if (!getDenominatorAggregationsList().equals(other.getDenominatorAggregationsList())) + return false; if (hasForecastOptions() != other.hasForecastOptions()) return false; if (hasForecastOptions()) { - if (!getForecastOptions() - .equals(other.getForecastOptions())) return false; + if (!getForecastOptions().equals(other.getForecastOptions())) return false; } if (comparison_ != other.comparison_) return false; if (java.lang.Double.doubleToLongBits(getThresholdValue()) - != java.lang.Double.doubleToLongBits( - other.getThresholdValue())) return false; + != java.lang.Double.doubleToLongBits(other.getThresholdValue())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (hasTrigger() != other.hasTrigger()) return false; if (hasTrigger()) { - if (!getTrigger() - .equals(other.getTrigger())) return false; + if (!getTrigger().equals(other.getTrigger())) return false; } if (evaluationMissingData_ != other.evaluationMissingData_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -4589,8 +5217,10 @@ public int hashCode() { hash = (37 * hash) + COMPARISON_FIELD_NUMBER; hash = (53 * hash) + comparison_; hash = (37 * hash) + THRESHOLD_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThresholdValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThresholdValue())); if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); @@ -4607,89 +5237,96 @@ public int hashCode() { } public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4699,6 +5336,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A condition type that compares a collection of time series
        * against a threshold.
@@ -4706,33 +5345,34 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricThreshold}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)
           com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.class,
+                  com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder.class);
         }
 
-        // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder()
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -4775,14 +5415,16 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstanceForType() {
-          return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance();
+        public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+            getDefaultInstanceForType() {
+          return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+              .getDefaultInstance();
         }
 
         @java.lang.Override
@@ -4796,14 +5438,18 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold build() {
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(this);
+          com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result =
+              new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(this);
           buildPartialRepeatedFields(result);
-          if (bitField0_ != 0) { buildPartial0(result); }
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) {
+        private void buildPartialRepeatedFields(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) {
           if (aggregationsBuilder_ == null) {
             if (((bitField0_ & 0x00000002) != 0)) {
               aggregations_ = java.util.Collections.unmodifiableList(aggregations_);
@@ -4815,7 +5461,8 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Con
           }
           if (denominatorAggregationsBuilder_ == null) {
             if (((bitField0_ & 0x00000008) != 0)) {
-              denominatorAggregations_ = java.util.Collections.unmodifiableList(denominatorAggregations_);
+              denominatorAggregations_ =
+                  java.util.Collections.unmodifiableList(denominatorAggregations_);
               bitField0_ = (bitField0_ & ~0x00000008);
             }
             result.denominatorAggregations_ = denominatorAggregations_;
@@ -4824,7 +5471,8 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Con
           }
         }
 
-        private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.filter_ = filter_;
@@ -4833,9 +5481,10 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Metric
             result.denominatorFilter_ = denominatorFilter_;
           }
           if (((from_bitField0_ & 0x00000010) != 0)) {
-            result.forecastOptions_ = forecastOptionsBuilder_ == null
-                ? forecastOptions_
-                : forecastOptionsBuilder_.build();
+            result.forecastOptions_ =
+                forecastOptionsBuilder_ == null
+                    ? forecastOptions_
+                    : forecastOptionsBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000020) != 0)) {
             result.comparison_ = comparison_;
@@ -4844,14 +5493,10 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Metric
             result.thresholdValue_ = thresholdValue_;
           }
           if (((from_bitField0_ & 0x00000080) != 0)) {
-            result.duration_ = durationBuilder_ == null
-                ? duration_
-                : durationBuilder_.build();
+            result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000100) != 0)) {
-            result.trigger_ = triggerBuilder_ == null
-                ? trigger_
-                : triggerBuilder_.build();
+            result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000200) != 0)) {
             result.evaluationMissingData_ = evaluationMissingData_;
@@ -4862,46 +5507,53 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Metric
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold)other);
+            return mergeFrom(
+                (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold other) {
+          if (other
+              == com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+                  .getDefaultInstance()) return this;
           if (!other.getFilter().isEmpty()) {
             filter_ = other.filter_;
             bitField0_ |= 0x00000001;
@@ -4925,9 +5577,10 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricTh
                 aggregationsBuilder_ = null;
                 aggregations_ = other.aggregations_;
                 bitField0_ = (bitField0_ & ~0x00000002);
-                aggregationsBuilder_ = 
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                     getAggregationsFieldBuilder() : null;
+                aggregationsBuilder_ =
+                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                        ? getAggregationsFieldBuilder()
+                        : null;
               } else {
                 aggregationsBuilder_.addAllMessages(other.aggregations_);
               }
@@ -4956,9 +5609,10 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricTh
                 denominatorAggregationsBuilder_ = null;
                 denominatorAggregations_ = other.denominatorAggregations_;
                 bitField0_ = (bitField0_ & ~0x00000008);
-                denominatorAggregationsBuilder_ = 
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                     getDenominatorAggregationsFieldBuilder() : null;
+                denominatorAggregationsBuilder_ =
+                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                        ? getDenominatorAggregationsFieldBuilder()
+                        : null;
               } else {
                 denominatorAggregationsBuilder_.addAllMessages(other.denominatorAggregations_);
               }
@@ -5008,84 +5662,88 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 18: {
-                  filter_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 18
-                case 32: {
-                  comparison_ = input.readEnum();
-                  bitField0_ |= 0x00000020;
-                  break;
-                } // case 32
-                case 41: {
-                  thresholdValue_ = input.readDouble();
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 41
-                case 50: {
-                  input.readMessage(
-                      getDurationFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000080;
-                  break;
-                } // case 50
-                case 58: {
-                  input.readMessage(
-                      getTriggerFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000100;
-                  break;
-                } // case 58
-                case 66: {
-                  com.google.monitoring.v3.Aggregation m =
-                      input.readMessage(
-                          com.google.monitoring.v3.Aggregation.parser(),
-                          extensionRegistry);
-                  if (aggregationsBuilder_ == null) {
-                    ensureAggregationsIsMutable();
-                    aggregations_.add(m);
-                  } else {
-                    aggregationsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 66
-                case 74: {
-                  denominatorFilter_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 74
-                case 82: {
-                  com.google.monitoring.v3.Aggregation m =
-                      input.readMessage(
-                          com.google.monitoring.v3.Aggregation.parser(),
-                          extensionRegistry);
-                  if (denominatorAggregationsBuilder_ == null) {
-                    ensureDenominatorAggregationsIsMutable();
-                    denominatorAggregations_.add(m);
-                  } else {
-                    denominatorAggregationsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 82
-                case 88: {
-                  evaluationMissingData_ = input.readEnum();
-                  bitField0_ |= 0x00000200;
-                  break;
-                } // case 88
-                case 98: {
-                  input.readMessage(
-                      getForecastOptionsFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 98
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 18:
+                  {
+                    filter_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 18
+                case 32:
+                  {
+                    comparison_ = input.readEnum();
+                    bitField0_ |= 0x00000020;
+                    break;
+                  } // case 32
+                case 41:
+                  {
+                    thresholdValue_ = input.readDouble();
+                    bitField0_ |= 0x00000040;
+                    break;
+                  } // case 41
+                case 50:
+                  {
+                    input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000080;
+                    break;
+                  } // case 50
+                case 58:
+                  {
+                    input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000100;
+                    break;
+                  } // case 58
+                case 66:
+                  {
+                    com.google.monitoring.v3.Aggregation m =
+                        input.readMessage(
+                            com.google.monitoring.v3.Aggregation.parser(), extensionRegistry);
+                    if (aggregationsBuilder_ == null) {
+                      ensureAggregationsIsMutable();
+                      aggregations_.add(m);
+                    } else {
+                      aggregationsBuilder_.addMessage(m);
+                    }
+                    break;
+                  } // case 66
+                case 74:
+                  {
+                    denominatorFilter_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000004;
+                    break;
+                  } // case 74
+                case 82:
+                  {
+                    com.google.monitoring.v3.Aggregation m =
+                        input.readMessage(
+                            com.google.monitoring.v3.Aggregation.parser(), extensionRegistry);
+                    if (denominatorAggregationsBuilder_ == null) {
+                      ensureDenominatorAggregationsIsMutable();
+                      denominatorAggregations_.add(m);
+                    } else {
+                      denominatorAggregationsBuilder_.addMessage(m);
+                    }
+                    break;
+                  } // case 82
+                case 88:
+                  {
+                    evaluationMissingData_ = input.readEnum();
+                    bitField0_ |= 0x00000200;
+                    break;
+                  } // case 88
+                case 98:
+                  {
+                    input.readMessage(
+                        getForecastOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000010;
+                    break;
+                  } // case 98
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5095,10 +5753,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private java.lang.Object filter_ = "";
         /**
+         *
+         *
          * 
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -5114,13 +5775,13 @@ public Builder mergeFrom(
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -5129,6 +5790,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -5144,15 +5807,14 @@ public java.lang.String getFilter() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -5160,6 +5822,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -5175,18 +5839,22 @@ public java.lang.String getFilter() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -5202,6 +5870,7 @@ public Builder setFilter(
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -5211,6 +5880,8 @@ public Builder clearFilter() { return this; } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -5226,12 +5897,14 @@ public Builder clearFilter() {
          * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -5240,18 +5913,25 @@ public Builder setFilterBytes( } private java.util.List aggregations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAggregationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aggregations_ = new java.util.ArrayList(aggregations_); + aggregations_ = + new java.util.ArrayList(aggregations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationsBuilder_; + com.google.monitoring.v3.Aggregation, + com.google.monitoring.v3.Aggregation.Builder, + com.google.monitoring.v3.AggregationOrBuilder> + aggregationsBuilder_; /** + * + * *
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5276,6 +5956,8 @@ public java.util.List getAggregationsList(
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5300,6 +5982,8 @@ public int getAggregationsCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5324,6 +6008,8 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5340,8 +6026,7 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public Builder setAggregations(
-            int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder setAggregations(int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -5355,6 +6040,8 @@ public Builder setAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5383,6 +6070,8 @@ public Builder setAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5413,6 +6102,8 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5429,8 +6120,7 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public Builder addAggregations(
-            int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder addAggregations(int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -5444,6 +6134,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5472,6 +6164,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5500,6 +6194,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5520,8 +6216,7 @@ public Builder addAllAggregations(
             java.lang.Iterable values) {
           if (aggregationsBuilder_ == null) {
             ensureAggregationsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(
-                values, aggregations_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregations_);
             onChanged();
           } else {
             aggregationsBuilder_.addAllMessages(values);
@@ -5529,6 +6224,8 @@ public Builder addAllAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5556,6 +6253,8 @@ public Builder clearAggregations() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5583,6 +6282,8 @@ public Builder removeAggregations(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5599,11 +6300,12 @@ public Builder removeAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(
-            int index) {
+        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(int index) {
           return getAggregationsFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5620,14 +6322,16 @@ public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-            int index) {
+        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
           if (aggregationsBuilder_ == null) {
-            return aggregations_.get(index);  } else {
+            return aggregations_.get(index);
+          } else {
             return aggregationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5644,8 +6348,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public java.util.List 
-             getAggregationsOrBuilderList() {
+        public java.util.List
+            getAggregationsOrBuilderList() {
           if (aggregationsBuilder_ != null) {
             return aggregationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -5653,6 +6357,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5670,10 +6376,12 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
         public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
-          return getAggregationsFieldBuilder().addBuilder(
-              com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getAggregationsFieldBuilder()
+              .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5690,12 +6398,13 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
-            int index) {
-          return getAggregationsFieldBuilder().addBuilder(
-              index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
+        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int index) {
+          return getAggregationsFieldBuilder()
+              .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -5712,16 +6421,22 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 8;
          */
-        public java.util.List 
-             getAggregationsBuilderList() {
+        public java.util.List
+            getAggregationsBuilderList() {
           return getAggregationsFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
+                com.google.monitoring.v3.Aggregation,
+                com.google.monitoring.v3.Aggregation.Builder,
+                com.google.monitoring.v3.AggregationOrBuilder>
             getAggregationsFieldBuilder() {
           if (aggregationsBuilder_ == null) {
-            aggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
+            aggregationsBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.monitoring.v3.Aggregation,
+                    com.google.monitoring.v3.Aggregation.Builder,
+                    com.google.monitoring.v3.AggregationOrBuilder>(
                     aggregations_,
                     ((bitField0_ & 0x00000002) != 0),
                     getParentForChildren(),
@@ -5733,6 +6448,8 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
 
         private java.lang.Object denominatorFilter_ = "";
         /**
+         *
+         *
          * 
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5746,13 +6463,13 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
          * 
* * string denominator_filter = 9; + * * @return The denominatorFilter. */ public java.lang.String getDenominatorFilter() { java.lang.Object ref = denominatorFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denominatorFilter_ = s; return s; @@ -5761,6 +6478,8 @@ public java.lang.String getDenominatorFilter() { } } /** + * + * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5774,15 +6493,14 @@ public java.lang.String getDenominatorFilter() {
          * 
* * string denominator_filter = 9; + * * @return The bytes for denominatorFilter. */ - public com.google.protobuf.ByteString - getDenominatorFilterBytes() { + public com.google.protobuf.ByteString getDenominatorFilterBytes() { java.lang.Object ref = denominatorFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); denominatorFilter_ = b; return b; } else { @@ -5790,6 +6508,8 @@ public java.lang.String getDenominatorFilter() { } } /** + * + * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5803,18 +6523,22 @@ public java.lang.String getDenominatorFilter() {
          * 
* * string denominator_filter = 9; + * * @param value The denominatorFilter to set. * @return This builder for chaining. */ - public Builder setDenominatorFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDenominatorFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } denominatorFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5828,6 +6552,7 @@ public Builder setDenominatorFilter(
          * 
* * string denominator_filter = 9; + * * @return This builder for chaining. */ public Builder clearDenominatorFilter() { @@ -5837,6 +6562,8 @@ public Builder clearDenominatorFilter() { return this; } /** + * + * *
          * A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
          * identifies a time series that should be used as the denominator of a
@@ -5850,12 +6577,14 @@ public Builder clearDenominatorFilter() {
          * 
* * string denominator_filter = 9; + * * @param value The bytes for denominatorFilter to set. * @return This builder for chaining. */ - public Builder setDenominatorFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDenominatorFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); denominatorFilter_ = value; bitField0_ |= 0x00000004; @@ -5864,18 +6593,26 @@ public Builder setDenominatorFilterBytes( } private java.util.List denominatorAggregations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDenominatorAggregationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - denominatorAggregations_ = new java.util.ArrayList(denominatorAggregations_); + denominatorAggregations_ = + new java.util.ArrayList( + denominatorAggregations_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> denominatorAggregationsBuilder_; + com.google.monitoring.v3.Aggregation, + com.google.monitoring.v3.Aggregation.Builder, + com.google.monitoring.v3.AggregationOrBuilder> + denominatorAggregationsBuilder_; /** + * + * *
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5891,7 +6628,8 @@ private void ensureDenominatorAggregationsIsMutable() {
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List getDenominatorAggregationsList() {
+        public java.util.List
+            getDenominatorAggregationsList() {
           if (denominatorAggregationsBuilder_ == null) {
             return java.util.Collections.unmodifiableList(denominatorAggregations_);
           } else {
@@ -5899,6 +6637,8 @@ public java.util.List getDenominatorAggreg
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5922,6 +6662,8 @@ public int getDenominatorAggregationsCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5945,6 +6687,8 @@ public com.google.monitoring.v3.Aggregation getDenominatorAggregations(int index
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -5975,6 +6719,8 @@ public Builder setDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6002,6 +6748,8 @@ public Builder setDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6031,6 +6779,8 @@ public Builder addDenominatorAggregations(com.google.monitoring.v3.Aggregation v
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6061,6 +6811,8 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6088,6 +6840,8 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6115,6 +6869,8 @@ public Builder addDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6143,6 +6899,8 @@ public Builder addAllDenominatorAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6169,6 +6927,8 @@ public Builder clearDenominatorAggregations() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6195,6 +6955,8 @@ public Builder removeDenominatorAggregations(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6215,6 +6977,8 @@ public com.google.monitoring.v3.Aggregation.Builder getDenominatorAggregationsBu
           return getDenominatorAggregationsFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6233,11 +6997,14 @@ public com.google.monitoring.v3.Aggregation.Builder getDenominatorAggregationsBu
         public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilder(
             int index) {
           if (denominatorAggregationsBuilder_ == null) {
-            return denominatorAggregations_.get(index);  } else {
+            return denominatorAggregations_.get(index);
+          } else {
             return denominatorAggregationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6253,8 +7020,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List 
-             getDenominatorAggregationsOrBuilderList() {
+        public java.util.List
+            getDenominatorAggregationsOrBuilderList() {
           if (denominatorAggregationsBuilder_ != null) {
             return denominatorAggregationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -6262,6 +7029,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6278,10 +7047,12 @@ public com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsO
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
         public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBuilder() {
-          return getDenominatorAggregationsFieldBuilder().addBuilder(
-              com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getDenominatorAggregationsFieldBuilder()
+              .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6299,10 +7070,12 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          */
         public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBuilder(
             int index) {
-          return getDenominatorAggregationsFieldBuilder().addBuilder(
-              index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getDenominatorAggregationsFieldBuilder()
+              .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series
          * selected by `denominatorFilter` as
@@ -6318,16 +7091,22 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          *
          * repeated .google.monitoring.v3.Aggregation denominator_aggregations = 10;
          */
-        public java.util.List 
-             getDenominatorAggregationsBuilderList() {
+        public java.util.List
+            getDenominatorAggregationsBuilderList() {
           return getDenominatorAggregationsFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
+                com.google.monitoring.v3.Aggregation,
+                com.google.monitoring.v3.Aggregation.Builder,
+                com.google.monitoring.v3.AggregationOrBuilder>
             getDenominatorAggregationsFieldBuilder() {
           if (denominatorAggregationsBuilder_ == null) {
-            denominatorAggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
+            denominatorAggregationsBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.monitoring.v3.Aggregation,
+                    com.google.monitoring.v3.Aggregation.Builder,
+                    com.google.monitoring.v3.AggregationOrBuilder>(
                     denominatorAggregations_,
                     ((bitField0_ & 0x00000008) != 0),
                     getParentForChildren(),
@@ -6337,10 +7116,18 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
           return denominatorAggregationsBuilder_;
         }
 
-        private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecastOptions_;
+        private com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions
+            forecastOptions_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder> forecastOptionsBuilder_;
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions,
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions
+                    .Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold
+                    .ForecastOptionsOrBuilder>
+            forecastOptionsBuilder_;
         /**
+         *
+         *
          * 
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6349,13 +7136,18 @@ public com.google.monitoring.v3.Aggregation.Builder addDenominatorAggregationsBu
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return Whether the forecastOptions field is set. */ public boolean hasForecastOptions() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6364,17 +7156,26 @@ public boolean hasForecastOptions() {
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * * @return The forecastOptions. */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions getForecastOptions() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + getForecastOptions() { if (forecastOptionsBuilder_ == null) { - return forecastOptions_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + return forecastOptions_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance() + : forecastOptions_; } else { return forecastOptionsBuilder_.getMessage(); } } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6383,9 +7184,12 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ - public Builder setForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { + public Builder setForecastOptions( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { if (forecastOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6399,6 +7203,8 @@ public Builder setForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition return this; } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6407,10 +7213,13 @@ public Builder setForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ public Builder setForecastOptions( - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder builderForValue) { + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder + builderForValue) { if (forecastOptionsBuilder_ == null) { forecastOptions_ = builderForValue.build(); } else { @@ -6421,6 +7230,8 @@ public Builder setForecastOptions( return this; } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6429,13 +7240,18 @@ public Builder setForecastOptions(
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ - public Builder mergeForecastOptions(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { + public Builder mergeForecastOptions( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions value) { if (forecastOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - forecastOptions_ != null && - forecastOptions_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && forecastOptions_ != null + && forecastOptions_ + != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptions.getDefaultInstance()) { getForecastOptionsBuilder().mergeFrom(value); } else { forecastOptions_ = value; @@ -6448,6 +7264,8 @@ public Builder mergeForecastOptions(com.google.monitoring.v3.AlertPolicy.Conditi return this; } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6456,7 +7274,9 @@ public Builder mergeForecastOptions(com.google.monitoring.v3.AlertPolicy.Conditi
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ public Builder clearForecastOptions() { bitField0_ = (bitField0_ & ~0x00000010); @@ -6469,6 +7289,8 @@ public Builder clearForecastOptions() { return this; } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6477,14 +7299,20 @@ public Builder clearForecastOptions() {
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder getForecastOptionsBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .Builder + getForecastOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getForecastOptionsFieldBuilder().getBuilder(); } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6493,17 +7321,25 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder getForecastOptionsOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptionsOrBuilder + getForecastOptionsOrBuilder() { if (forecastOptionsBuilder_ != null) { return forecastOptionsBuilder_.getMessageOrBuilder(); } else { - return forecastOptions_ == null ? - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.getDefaultInstance() : forecastOptions_; + return forecastOptions_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .getDefaultInstance() + : forecastOptions_; } } /** + * + * *
          * When this field is present, the `MetricThreshold` condition forecasts
          * whether the time series is predicted to violate the threshold within
@@ -6512,17 +7348,26 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
          * threshold.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions forecast_options = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptionsOrBuilder> getForecastOptionsFieldBuilder() { if (forecastOptionsBuilder_ == null) { - forecastOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder>( - getForecastOptions(), - getParentForChildren(), - isClean()); + forecastOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .ForecastOptionsOrBuilder>( + getForecastOptions(), getParentForChildren(), isClean()); forecastOptions_ = null; } return forecastOptionsBuilder_; @@ -6530,6 +7375,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp private int comparison_ = 0; /** + * + * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -6540,12 +7387,16 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The enum numeric value on the wire for comparison. */ - @java.lang.Override public int getComparisonValue() { + @java.lang.Override + public int getComparisonValue() { return comparison_; } /** + * + * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -6556,6 +7407,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOp
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @param value The enum numeric value on the wire for comparison to set. * @return This builder for chaining. */ @@ -6566,6 +7418,8 @@ public Builder setComparisonValue(int value) { return this; } /** + * + * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -6576,14 +7430,18 @@ public Builder setComparisonValue(int value) {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return The comparison. */ @java.lang.Override public com.google.monitoring.v3.ComparisonType getComparison() { - com.google.monitoring.v3.ComparisonType result = com.google.monitoring.v3.ComparisonType.forNumber(comparison_); + com.google.monitoring.v3.ComparisonType result = + com.google.monitoring.v3.ComparisonType.forNumber(comparison_); return result == null ? com.google.monitoring.v3.ComparisonType.UNRECOGNIZED : result; } /** + * + * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -6594,6 +7452,7 @@ public com.google.monitoring.v3.ComparisonType getComparison() {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @param value The comparison to set. * @return This builder for chaining. */ @@ -6607,6 +7466,8 @@ public Builder setComparison(com.google.monitoring.v3.ComparisonType value) { return this; } /** + * + * *
          * The comparison to apply between the time series (indicated by `filter`
          * and `aggregation`) and the threshold (indicated by `threshold_value`).
@@ -6617,6 +7478,7 @@ public Builder setComparison(com.google.monitoring.v3.ComparisonType value) {
          * 
* * .google.monitoring.v3.ComparisonType comparison = 4; + * * @return This builder for chaining. */ public Builder clearComparison() { @@ -6626,13 +7488,16 @@ public Builder clearComparison() { return this; } - private double thresholdValue_ ; + private double thresholdValue_; /** + * + * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; + * * @return The thresholdValue. */ @java.lang.Override @@ -6640,11 +7505,14 @@ public double getThresholdValue() { return thresholdValue_; } /** + * + * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; + * * @param value The thresholdValue to set. * @return This builder for chaining. */ @@ -6656,11 +7524,14 @@ public Builder setThresholdValue(double value) { return this; } /** + * + * *
          * A value against which to compare the time series.
          * 
* * double threshold_value = 5; + * * @return This builder for chaining. */ public Builder clearThresholdValue() { @@ -6672,8 +7543,13 @@ public Builder clearThresholdValue() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6688,12 +7564,15 @@ public Builder clearThresholdValue() {
          * 
* * .google.protobuf.Duration duration = 6; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6708,16 +7587,21 @@ public boolean hasDuration() {
          * 
* * .google.protobuf.Duration duration = 6; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : duration_; } else { return durationBuilder_.getMessage(); } } /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6747,6 +7631,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6762,8 +7648,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration duration = 6;
          */
-        public Builder setDuration(
-            com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
           if (durationBuilder_ == null) {
             duration_ = builderForValue.build();
           } else {
@@ -6774,6 +7659,8 @@ public Builder setDuration(
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6791,9 +7678,9 @@ public Builder setDuration(
          */
         public Builder mergeDuration(com.google.protobuf.Duration value) {
           if (durationBuilder_ == null) {
-            if (((bitField0_ & 0x00000080) != 0) &&
-              duration_ != null &&
-              duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000080) != 0)
+                && duration_ != null
+                && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
               getDurationBuilder().mergeFrom(value);
             } else {
               duration_ = value;
@@ -6806,6 +7693,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6832,6 +7721,8 @@ public Builder clearDuration() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6853,6 +7744,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
           return getDurationFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6872,11 +7765,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
           if (durationBuilder_ != null) {
             return durationBuilder_.getMessageOrBuilder();
           } else {
-            return duration_ == null ?
-                com.google.protobuf.Duration.getDefaultInstance() : duration_;
+            return duration_ == null
+                ? com.google.protobuf.Duration.getDefaultInstance()
+                : duration_;
           }
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -6893,14 +7789,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * .google.protobuf.Duration duration = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
             getDurationFieldBuilder() {
           if (durationBuilder_ == null) {
-            durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                    getDuration(),
-                    getParentForChildren(),
-                    isClean());
+            durationBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.protobuf.Duration,
+                    com.google.protobuf.Duration.Builder,
+                    com.google.protobuf.DurationOrBuilder>(
+                    getDuration(), getParentForChildren(), isClean());
             duration_ = null;
           }
           return durationBuilder_;
@@ -6908,8 +7807,13 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
         private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_;
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+            triggerBuilder_;
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6920,12 +7824,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return Whether the trigger field is set. */ public boolean hasTrigger() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6936,16 +7843,21 @@ public boolean hasTrigger() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7; + * * @return The trigger. */ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { if (triggerBuilder_ == null) { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } else { return triggerBuilder_.getMessage(); } } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6971,6 +7883,8 @@ public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -6994,6 +7908,8 @@ public Builder setTrigger(
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -7007,9 +7923,11 @@ public Builder setTrigger(
          */
         public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
           if (triggerBuilder_ == null) {
-            if (((bitField0_ & 0x00000100) != 0) &&
-              trigger_ != null &&
-              trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000100) != 0)
+                && trigger_ != null
+                && trigger_
+                    != com.google.monitoring.v3.AlertPolicy.Condition.Trigger
+                        .getDefaultInstance()) {
               getTriggerBuilder().mergeFrom(value);
             } else {
               trigger_ = value;
@@ -7022,6 +7940,8 @@ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigg
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -7044,6 +7964,8 @@ public Builder clearTrigger() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -7061,6 +7983,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
           return getTriggerFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -7072,15 +7996,19 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
          *
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
-        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
+        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
+            getTriggerOrBuilder() {
           if (triggerBuilder_ != null) {
             return triggerBuilder_.getMessageOrBuilder();
           } else {
-            return trigger_ == null ?
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+            return trigger_ == null
+                ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+                : trigger_;
           }
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -7093,14 +8021,17 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> 
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
             getTriggerFieldBuilder() {
           if (triggerBuilder_ == null) {
-            triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
-                    getTrigger(),
-                    getParentForChildren(),
-                    isClean());
+            triggerBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                    com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
+                    getTrigger(), getParentForChildren(), isClean());
             trigger_ = null;
           }
           return triggerBuilder_;
@@ -7108,24 +8039,35 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
 
         private int evaluationMissingData_ = 0;
         /**
+         *
+         *
          * 
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ - @java.lang.Override public int getEvaluationMissingDataValue() { + @java.lang.Override + public int getEvaluationMissingDataValue() { return evaluationMissingData_; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @param value The enum numeric value on the wire for evaluationMissingData to set. * @return This builder for chaining. */ @@ -7136,30 +8078,46 @@ public Builder setEvaluationMissingDataValue(int value) { return this; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return The evaluationMissingData. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); - return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( + evaluationMissingData_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED + : result; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @param value The evaluationMissingData to set. * @return This builder for chaining. */ - public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { + public Builder setEvaluationMissingData( + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { if (value == null) { throw new NullPointerException(); } @@ -7169,12 +8127,17 @@ public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Con return this; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11; + * + * * @return This builder for chaining. */ public Builder clearEvaluationMissingData() { @@ -7183,6 +8146,7 @@ public Builder clearEvaluationMissingData() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7195,41 +8159,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricThreshold parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricThreshold parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7241,17 +8208,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MetricAbsenceOrBuilder extends + public interface MetricAbsenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -7267,10 +8237,13 @@ public interface MetricAbsenceOrBuilder extends
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -7286,12 +8259,14 @@ public interface MetricAbsenceOrBuilder extends
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7308,9 +8283,10 @@ public interface MetricAbsenceOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      java.util.List 
-          getAggregationsList();
+      java.util.List getAggregationsList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7329,6 +8305,8 @@ public interface MetricAbsenceOrBuilder extends
        */
       com.google.monitoring.v3.Aggregation getAggregations(int index);
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7347,6 +8325,8 @@ public interface MetricAbsenceOrBuilder extends
        */
       int getAggregationsCount();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7363,9 +8343,11 @@ public interface MetricAbsenceOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      java.util.List 
+      java.util.List
           getAggregationsOrBuilderList();
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7382,10 +8364,11 @@ public interface MetricAbsenceOrBuilder extends
        *
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
-      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-          int index);
+      com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index);
 
       /**
+       *
+       *
        * 
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7397,10 +8380,13 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7412,10 +8398,13 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7431,6 +8420,8 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
       com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7439,10 +8430,13 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ boolean hasTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7451,10 +8445,13 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7467,6 +8464,8 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
       com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
     }
     /**
+     *
+     *
      * 
      * A condition type that checks that monitored resources
      * are reporting data. The configuration defines a metric and
@@ -7477,15 +8476,16 @@ com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricAbsence}
      */
-    public static final class MetricAbsence extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class MetricAbsence extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)
         MetricAbsenceOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use MetricAbsence.newBuilder() to construct.
       private MetricAbsence(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private MetricAbsence() {
         filter_ = "";
         aggregations_ = java.util.Collections.emptyList();
@@ -7493,28 +8493,32 @@ private MetricAbsence() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new MetricAbsence();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class,
+                com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
       }
 
       public static final int FILTER_FIELD_NUMBER = 1;
+
       @SuppressWarnings("serial")
       private volatile java.lang.Object filter_ = "";
       /**
+       *
+       *
        * 
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -7530,6 +8534,7 @@ protected java.lang.Object newInstance(
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -7538,14 +8543,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
        * Required. A
        * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -7561,16 +8567,15 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -7579,9 +8584,12 @@ public java.lang.String getFilter() { } public static final int AGGREGATIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List aggregations_; /** + * + * *
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7603,6 +8611,8 @@ public java.util.List getAggregationsList(
         return aggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7620,11 +8630,13 @@ public java.util.List getAggregationsList(
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getAggregationsOrBuilderList() {
         return aggregations_;
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7646,6 +8658,8 @@ public int getAggregationsCount() {
         return aggregations_.size();
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7667,6 +8681,8 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
         return aggregations_.get(index);
       }
       /**
+       *
+       *
        * 
        * Specifies the alignment of data points in individual time series as
        * well as how to combine the retrieved time series together (such as
@@ -7684,14 +8700,15 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
        * repeated .google.monitoring.v3.Aggregation aggregations = 5;
        */
       @java.lang.Override
-      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-          int index) {
+      public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
         return aggregations_.get(index);
       }
 
       public static final int DURATION_FIELD_NUMBER = 2;
       private com.google.protobuf.Duration duration_;
       /**
+       *
+       *
        * 
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7703,6 +8720,7 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -7710,6 +8728,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7721,6 +8741,7 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -7728,6 +8749,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
        * The amount of time that a time series must fail to report new
        * data to be considered failing. The minimum value of this field
@@ -7748,6 +8771,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
       public static final int TRIGGER_FIELD_NUMBER = 3;
       private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7756,6 +8781,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ @java.lang.Override @@ -7763,6 +8789,8 @@ public boolean hasTrigger() { return trigger_ != null; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7771,13 +8799,18 @@ public boolean hasTrigger() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -7789,10 +8822,13 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
        */
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
-        return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+        return trigger_ == null
+            ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+            : trigger_;
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -7804,8 +8840,7 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_);
         }
@@ -7831,16 +8866,13 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_);
         }
         if (duration_ != null) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(2, getDuration());
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration());
         }
         if (trigger_ != null) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(3, getTrigger());
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger());
         }
         for (int i = 0; i < aggregations_.size(); i++) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(5, aggregations_.get(i));
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, aggregations_.get(i));
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -7850,26 +8882,23 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
         if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)) {
           return super.equals(obj);
         }
-        com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other = (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) obj;
+        com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other =
+            (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) obj;
 
-        if (!getFilter()
-            .equals(other.getFilter())) return false;
-        if (!getAggregationsList()
-            .equals(other.getAggregationsList())) return false;
+        if (!getFilter().equals(other.getFilter())) return false;
+        if (!getAggregationsList().equals(other.getAggregationsList())) return false;
         if (hasDuration() != other.hasDuration()) return false;
         if (hasDuration()) {
-          if (!getDuration()
-              .equals(other.getDuration())) return false;
+          if (!getDuration().equals(other.getDuration())) return false;
         }
         if (hasTrigger() != other.hasTrigger()) return false;
         if (hasTrigger()) {
-          if (!getTrigger()
-              .equals(other.getTrigger())) return false;
+          if (!getTrigger().equals(other.getTrigger())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
@@ -7902,89 +8931,94 @@ public int hashCode() {
       }
 
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
+          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
+          java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
+      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(
+          java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
 
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseDelimitedFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+            PARSER, input, extensionRegistry);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() { return newBuilder(); }
+      public Builder newBuilderForType() {
+        return newBuilder();
+      }
+
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence prototype) {
+
+      public static Builder newBuilder(
+          com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
+
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
-            ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -7994,6 +9028,8 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * A condition type that checks that monitored resources
        * are reporting data. The configuration defines a metric and
@@ -8004,33 +9040,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MetricAbsence}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)
           com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.class,
+                  com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder.class);
         }
 
         // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder()
-        private Builder() {
+        private Builder() {}
 
-        }
-
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -8057,13 +9093,14 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType() {
+        public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
+            getDefaultInstanceForType() {
           return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
         }
 
@@ -8078,14 +9115,18 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence build() {
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result = new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(this);
+          com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result =
+              new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence(this);
           buildPartialRepeatedFields(result);
-          if (bitField0_ != 0) { buildPartial0(result); }
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) {
+        private void buildPartialRepeatedFields(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) {
           if (aggregationsBuilder_ == null) {
             if (((bitField0_ & 0x00000002) != 0)) {
               aggregations_ = java.util.Collections.unmodifiableList(aggregations_);
@@ -8097,20 +9138,17 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Con
           }
         }
 
-        private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.filter_ = filter_;
           }
           if (((from_bitField0_ & 0x00000004) != 0)) {
-            result.duration_ = durationBuilder_ == null
-                ? duration_
-                : durationBuilder_.build();
+            result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000008) != 0)) {
-            result.trigger_ = triggerBuilder_ == null
-                ? trigger_
-                : triggerBuilder_.build();
+            result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build();
           }
         }
 
@@ -8118,46 +9156,52 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Metric
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)other);
+            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence other) {
+          if (other
+              == com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance())
+            return this;
           if (!other.getFilter().isEmpty()) {
             filter_ = other.filter_;
             bitField0_ |= 0x00000001;
@@ -8181,9 +9225,10 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MetricAb
                 aggregationsBuilder_ = null;
                 aggregations_ = other.aggregations_;
                 bitField0_ = (bitField0_ & ~0x00000002);
-                aggregationsBuilder_ = 
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                     getAggregationsFieldBuilder() : null;
+                aggregationsBuilder_ =
+                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                        ? getAggregationsFieldBuilder()
+                        : null;
               } else {
                 aggregationsBuilder_.addAllMessages(other.aggregations_);
               }
@@ -8221,44 +9266,44 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  filter_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                case 18: {
-                  input.readMessage(
-                      getDurationFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 18
-                case 26: {
-                  input.readMessage(
-                      getTriggerFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 26
-                case 42: {
-                  com.google.monitoring.v3.Aggregation m =
-                      input.readMessage(
-                          com.google.monitoring.v3.Aggregation.parser(),
-                          extensionRegistry);
-                  if (aggregationsBuilder_ == null) {
-                    ensureAggregationsIsMutable();
-                    aggregations_.add(m);
-                  } else {
-                    aggregationsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 42
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    filter_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                case 18:
+                  {
+                    input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000004;
+                    break;
+                  } // case 18
+                case 26:
+                  {
+                    input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000008;
+                    break;
+                  } // case 26
+                case 42:
+                  {
+                    com.google.monitoring.v3.Aggregation m =
+                        input.readMessage(
+                            com.google.monitoring.v3.Aggregation.parser(), extensionRegistry);
+                    if (aggregationsBuilder_ == null) {
+                      ensureAggregationsIsMutable();
+                      aggregations_.add(m);
+                    } else {
+                      aggregationsBuilder_.addMessage(m);
+                    }
+                    break;
+                  } // case 42
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8268,10 +9313,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private java.lang.Object filter_ = "";
         /**
+         *
+         *
          * 
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -8287,13 +9335,13 @@ public Builder mergeFrom(
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -8302,6 +9350,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -8317,15 +9367,14 @@ public java.lang.String getFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -8333,6 +9382,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -8348,18 +9399,22 @@ public java.lang.String getFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -8375,6 +9430,7 @@ public Builder setFilter(
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -8384,6 +9440,8 @@ public Builder clearFilter() { return this; } /** + * + * *
          * Required. A
          * [filter](https://cloud.google.com/monitoring/api/v3/filters) that
@@ -8399,12 +9457,14 @@ public Builder clearFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -8413,18 +9473,25 @@ public Builder setFilterBytes( } private java.util.List aggregations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAggregationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aggregations_ = new java.util.ArrayList(aggregations_); + aggregations_ = + new java.util.ArrayList(aggregations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationsBuilder_; + com.google.monitoring.v3.Aggregation, + com.google.monitoring.v3.Aggregation.Builder, + com.google.monitoring.v3.AggregationOrBuilder> + aggregationsBuilder_; /** + * + * *
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8449,6 +9516,8 @@ public java.util.List getAggregationsList(
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8473,6 +9542,8 @@ public int getAggregationsCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8497,6 +9568,8 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8513,8 +9586,7 @@ public com.google.monitoring.v3.Aggregation getAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public Builder setAggregations(
-            int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder setAggregations(int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -8528,6 +9600,8 @@ public Builder setAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8556,6 +9630,8 @@ public Builder setAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8586,6 +9662,8 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8602,8 +9680,7 @@ public Builder addAggregations(com.google.monitoring.v3.Aggregation value) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public Builder addAggregations(
-            int index, com.google.monitoring.v3.Aggregation value) {
+        public Builder addAggregations(int index, com.google.monitoring.v3.Aggregation value) {
           if (aggregationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -8617,6 +9694,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8645,6 +9724,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8673,6 +9754,8 @@ public Builder addAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8693,8 +9776,7 @@ public Builder addAllAggregations(
             java.lang.Iterable values) {
           if (aggregationsBuilder_ == null) {
             ensureAggregationsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(
-                values, aggregations_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregations_);
             onChanged();
           } else {
             aggregationsBuilder_.addAllMessages(values);
@@ -8702,6 +9784,8 @@ public Builder addAllAggregations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8729,6 +9813,8 @@ public Builder clearAggregations() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8756,6 +9842,8 @@ public Builder removeAggregations(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8772,11 +9860,12 @@ public Builder removeAggregations(int index) {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(
-            int index) {
+        public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(int index) {
           return getAggregationsFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8793,14 +9882,16 @@ public com.google.monitoring.v3.Aggregation.Builder getAggregationsBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
-            int index) {
+        public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(int index) {
           if (aggregationsBuilder_ == null) {
-            return aggregations_.get(index);  } else {
+            return aggregations_.get(index);
+          } else {
             return aggregationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8817,8 +9908,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public java.util.List 
-             getAggregationsOrBuilderList() {
+        public java.util.List
+            getAggregationsOrBuilderList() {
           if (aggregationsBuilder_ != null) {
             return aggregationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -8826,6 +9917,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
           }
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8843,10 +9936,12 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationsOrBuilder(
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
         public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
-          return getAggregationsFieldBuilder().addBuilder(
-              com.google.monitoring.v3.Aggregation.getDefaultInstance());
+          return getAggregationsFieldBuilder()
+              .addBuilder(com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8863,12 +9958,13 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder() {
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
-            int index) {
-          return getAggregationsFieldBuilder().addBuilder(
-              index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
+        public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(int index) {
+          return getAggregationsFieldBuilder()
+              .addBuilder(index, com.google.monitoring.v3.Aggregation.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Specifies the alignment of data points in individual time series as
          * well as how to combine the retrieved time series together (such as
@@ -8885,16 +9981,22 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
          *
          * repeated .google.monitoring.v3.Aggregation aggregations = 5;
          */
-        public java.util.List 
-             getAggregationsBuilderList() {
+        public java.util.List
+            getAggregationsBuilderList() {
           return getAggregationsFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
+                com.google.monitoring.v3.Aggregation,
+                com.google.monitoring.v3.Aggregation.Builder,
+                com.google.monitoring.v3.AggregationOrBuilder>
             getAggregationsFieldBuilder() {
           if (aggregationsBuilder_ == null) {
-            aggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
+            aggregationsBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.monitoring.v3.Aggregation,
+                    com.google.monitoring.v3.Aggregation.Builder,
+                    com.google.monitoring.v3.AggregationOrBuilder>(
                     aggregations_,
                     ((bitField0_ & 0x00000002) != 0),
                     getParentForChildren(),
@@ -8906,8 +10008,13 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
 
         private com.google.protobuf.Duration duration_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
+            durationBuilder_;
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -8919,12 +10026,15 @@ public com.google.monitoring.v3.Aggregation.Builder addAggregationsBuilder(
          * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -8936,16 +10046,21 @@ public boolean hasDuration() {
          * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : duration_; } else { return durationBuilder_.getMessage(); } } /** + * + * *
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -8972,6 +10087,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -8984,8 +10101,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration duration = 2;
          */
-        public Builder setDuration(
-            com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
           if (durationBuilder_ == null) {
             duration_ = builderForValue.build();
           } else {
@@ -8996,6 +10112,8 @@ public Builder setDuration(
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -9010,9 +10128,9 @@ public Builder setDuration(
          */
         public Builder mergeDuration(com.google.protobuf.Duration value) {
           if (durationBuilder_ == null) {
-            if (((bitField0_ & 0x00000004) != 0) &&
-              duration_ != null &&
-              duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000004) != 0)
+                && duration_ != null
+                && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
               getDurationBuilder().mergeFrom(value);
             } else {
               duration_ = value;
@@ -9025,6 +10143,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -9048,6 +10168,8 @@ public Builder clearDuration() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -9066,6 +10188,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
           return getDurationFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -9082,11 +10206,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
           if (durationBuilder_ != null) {
             return durationBuilder_.getMessageOrBuilder();
           } else {
-            return duration_ == null ?
-                com.google.protobuf.Duration.getDefaultInstance() : duration_;
+            return duration_ == null
+                ? com.google.protobuf.Duration.getDefaultInstance()
+                : duration_;
           }
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must fail to report new
          * data to be considered failing. The minimum value of this field
@@ -9100,14 +10227,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * .google.protobuf.Duration duration = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
             getDurationFieldBuilder() {
           if (durationBuilder_ == null) {
-            durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                    getDuration(),
-                    getParentForChildren(),
-                    isClean());
+            durationBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.protobuf.Duration,
+                    com.google.protobuf.Duration.Builder,
+                    com.google.protobuf.DurationOrBuilder>(
+                    getDuration(), getParentForChildren(), isClean());
             duration_ = null;
           }
           return durationBuilder_;
@@ -9115,8 +10245,13 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
         private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_;
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+            triggerBuilder_;
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9125,12 +10260,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ public boolean hasTrigger() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9139,16 +10277,21 @@ public boolean hasTrigger() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { if (triggerBuilder_ == null) { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } else { return triggerBuilder_.getMessage(); } } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9172,6 +10315,8 @@ public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9193,6 +10338,8 @@ public Builder setTrigger(
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9204,9 +10351,11 @@ public Builder setTrigger(
          */
         public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
           if (triggerBuilder_ == null) {
-            if (((bitField0_ & 0x00000008) != 0) &&
-              trigger_ != null &&
-              trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000008) != 0)
+                && trigger_ != null
+                && trigger_
+                    != com.google.monitoring.v3.AlertPolicy.Condition.Trigger
+                        .getDefaultInstance()) {
               getTriggerBuilder().mergeFrom(value);
             } else {
               trigger_ = value;
@@ -9219,6 +10368,8 @@ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigg
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9239,6 +10390,8 @@ public Builder clearTrigger() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9254,6 +10407,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
           return getTriggerFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9263,15 +10418,19 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
          *
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
          */
-        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
+        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
+            getTriggerOrBuilder() {
           if (triggerBuilder_ != null) {
             return triggerBuilder_.getMessageOrBuilder();
           } else {
-            return trigger_ == null ?
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+            return trigger_ == null
+                ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+                : trigger_;
           }
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -9282,18 +10441,22 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> 
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
             getTriggerFieldBuilder() {
           if (triggerBuilder_ == null) {
-            triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
-                    getTrigger(),
-                    getParentForChildren(),
-                    isClean());
+            triggerBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                    com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
+                    getTrigger(), getParentForChildren(), isClean());
             trigger_ = null;
           }
           return triggerBuilder_;
         }
+
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -9306,41 +10469,44 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
-
         // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)
       }
 
       // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence)
-      private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence DEFAULT_INSTANCE;
+      private static final com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
+          DEFAULT_INSTANCE;
+
       static {
         DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence();
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstance() {
+      public static com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
+          getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public MetricAbsence parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+      private static final com.google.protobuf.Parser PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public MetricAbsence parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              Builder builder = newBuilder();
+              try {
+                builder.mergeFrom(input, extensionRegistry);
+              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(builder.buildPartial());
+              } catch (com.google.protobuf.UninitializedMessageException e) {
+                throw e.asInvalidProtocolBufferException()
+                    .setUnfinishedMessage(builder.buildPartial());
+              } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                    .setUnfinishedMessage(builder.buildPartial());
+              }
+              return builder.buildPartial();
+            }
+          };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -9352,17 +10518,20 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getDefaultInstanceForType() {
+      public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence
+          getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
-
     }
 
-    public interface LogMatchOrBuilder extends
+    public interface LogMatchOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Required. A logs-based filter. See [Advanced Logs
        * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -9370,10 +10539,13 @@ public interface LogMatchOrBuilder extends
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
        * Required. A logs-based filter. See [Advanced Logs
        * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -9381,12 +10553,14 @@ public interface LogMatchOrBuilder extends
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9405,6 +10579,8 @@ public interface LogMatchOrBuilder extends
        */
       int getLabelExtractorsCount();
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9421,15 +10597,13 @@ public interface LogMatchOrBuilder extends
        *
        * map<string, string> label_extractors = 2;
        */
-      boolean containsLabelExtractors(
-          java.lang.String key);
-      /**
-       * Use {@link #getLabelExtractorsMap()} instead.
-       */
+      boolean containsLabelExtractors(java.lang.String key);
+      /** Use {@link #getLabelExtractorsMap()} instead. */
       @java.lang.Deprecated
-      java.util.Map
-      getLabelExtractors();
+      java.util.Map getLabelExtractors();
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9446,9 +10620,10 @@ boolean containsLabelExtractors(
        *
        * map<string, string> label_extractors = 2;
        */
-      java.util.Map
-      getLabelExtractorsMap();
+      java.util.Map getLabelExtractorsMap();
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9466,11 +10641,13 @@ boolean containsLabelExtractors(
        * map<string, string> label_extractors = 2;
        */
       /* nullable */
-java.lang.String getLabelExtractorsOrDefault(
+      java.lang.String getLabelExtractorsOrDefault(
           java.lang.String key,
           /* nullable */
-java.lang.String defaultValue);
+          java.lang.String defaultValue);
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9487,10 +10664,11 @@ java.lang.String getLabelExtractorsOrDefault(
        *
        * map<string, string> label_extractors = 2;
        */
-      java.lang.String getLabelExtractorsOrThrow(
-          java.lang.String key);
+      java.lang.String getLabelExtractorsOrThrow(java.lang.String key);
     }
     /**
+     *
+     *
      * 
      * A condition type that checks whether a log message in the [scoping
      * project](https://cloud.google.com/monitoring/api/v3#project_name)
@@ -9500,55 +10678,59 @@ java.lang.String getLabelExtractorsOrThrow(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch}
      */
-    public static final class LogMatch extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class LogMatch extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
         LogMatchOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use LogMatch.newBuilder() to construct.
       private LogMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private LogMatch() {
         filter_ = "";
       }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new LogMatch();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
       @java.lang.Override
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 2:
             return internalGetLabelExtractors();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class,
+                com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class);
       }
 
       public static final int FILTER_FIELD_NUMBER = 1;
+
       @SuppressWarnings("serial")
       private volatile java.lang.Object filter_ = "";
       /**
+       *
+       *
        * 
        * Required. A logs-based filter. See [Advanced Logs
        * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -9556,6 +10738,7 @@ protected com.google.protobuf.MapField internalGetMapField(
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -9564,14 +10747,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
        * Required. A logs-based filter. See [Advanced Logs
        * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -9579,16 +10763,15 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -9597,32 +10780,36 @@ public java.lang.String getFilter() { } public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 2; + private static final class LabelExtractorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField labelExtractors_; + private com.google.protobuf.MapField - internalGetLabelExtractors() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); } return labelExtractors_; } + public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** + * + * *
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9640,20 +10827,21 @@ public int getLabelExtractorsCount() {
        * map<string, string> label_extractors = 2;
        */
       @java.lang.Override
-      public boolean containsLabelExtractors(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public boolean containsLabelExtractors(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         return internalGetLabelExtractors().getMap().containsKey(key);
       }
-      /**
-       * Use {@link #getLabelExtractorsMap()} instead.
-       */
+      /** Use {@link #getLabelExtractorsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabelExtractors() {
         return getLabelExtractorsMap();
       }
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9675,6 +10863,8 @@ public java.util.Map getLabelExtractorsMap()
         return internalGetLabelExtractors().getMap();
       }
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9692,17 +10882,20 @@ public java.util.Map getLabelExtractorsMap()
        * map<string, string> label_extractors = 2;
        */
       @java.lang.Override
-      public /* nullable */
-java.lang.String getLabelExtractorsOrDefault(
+      public /* nullable */ java.lang.String getLabelExtractorsOrDefault(
           java.lang.String key,
           /* nullable */
-java.lang.String defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
+          java.lang.String defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         java.util.Map map =
             internalGetLabelExtractors().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Optional. A map from a label key to an extractor expression, which is
        * used to extract the value for this label key. Each entry in this map is
@@ -9720,9 +10913,10 @@ java.lang.String getLabelExtractorsOrDefault(
        * map<string, string> label_extractors = 2;
        */
       @java.lang.Override
-      public java.lang.String getLabelExtractorsOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         java.util.Map map =
             internalGetLabelExtractors().getMap();
         if (!map.containsKey(key)) {
@@ -9732,6 +10926,7 @@ public java.lang.String getLabelExtractorsOrThrow(
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -9743,13 +10938,11 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_);
         }
-        com.google.protobuf.GeneratedMessageV3
-          .serializeStringMapTo(
+        com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
             output,
             internalGetLabelExtractors(),
             LabelExtractorsDefaultEntryHolder.defaultEntry,
@@ -9766,15 +10959,15 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_);
         }
-        for (java.util.Map.Entry entry
-             : internalGetLabelExtractors().getMap().entrySet()) {
-          com.google.protobuf.MapEntry
-          labelExtractors__ = LabelExtractorsDefaultEntryHolder.defaultEntry.newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-          size += com.google.protobuf.CodedOutputStream
-              .computeMessageSize(2, labelExtractors__);
+        for (java.util.Map.Entry entry :
+            internalGetLabelExtractors().getMap().entrySet()) {
+          com.google.protobuf.MapEntry labelExtractors__ =
+              LabelExtractorsDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelExtractors__);
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -9784,17 +10977,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
         if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch)) {
           return super.equals(obj);
         }
-        com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other = (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) obj;
+        com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other =
+            (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) obj;
 
-        if (!getFilter()
-            .equals(other.getFilter())) return false;
-        if (!internalGetLabelExtractors().equals(
-            other.internalGetLabelExtractors())) return false;
+        if (!getFilter().equals(other.getFilter())) return false;
+        if (!internalGetLabelExtractors().equals(other.internalGetLabelExtractors())) return false;
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
@@ -9818,89 +11010,94 @@ public int hashCode() {
       }
 
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
+          java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
+      public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom(
+          java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
 
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseDelimitedFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+            PARSER, input, extensionRegistry);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
+
       public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() { return newBuilder(); }
+      public Builder newBuilderForType() {
+        return newBuilder();
+      }
+
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch prototype) {
+
+      public static Builder newBuilder(
+          com.google.monitoring.v3.AlertPolicy.Condition.LogMatch prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
+
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
-            ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -9910,6 +11107,8 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * A condition type that checks whether a log message in the [scoping
        * project](https://cloud.google.com/monitoring/api/v3#project_name)
@@ -9919,55 +11118,53 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.LogMatch}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
           com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
         }
 
         @SuppressWarnings({"rawtypes"})
-        protected com.google.protobuf.MapField internalGetMapField(
-            int number) {
+        protected com.google.protobuf.MapField internalGetMapField(int number) {
           switch (number) {
             case 2:
               return internalGetLabelExtractors();
             default:
-              throw new RuntimeException(
-                  "Invalid map field number: " + number);
+              throw new RuntimeException("Invalid map field number: " + number);
           }
         }
+
         @SuppressWarnings({"rawtypes"})
-        protected com.google.protobuf.MapField internalGetMutableMapField(
-            int number) {
+        protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
           switch (number) {
             case 2:
               return internalGetMutableLabelExtractors();
             default:
-              throw new RuntimeException(
-                  "Invalid map field number: " + number);
+              throw new RuntimeException("Invalid map field number: " + number);
           }
         }
+
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.class,
+                  com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder.class);
         }
 
         // Construct using com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder()
-        private Builder() {
+        private Builder() {}
 
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
         }
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
-
-        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -9978,9 +11175,9 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor;
         }
 
         @java.lang.Override
@@ -9999,8 +11196,11 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch build() {
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+          com.google.monitoring.v3.AlertPolicy.Condition.LogMatch result =
+              new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
@@ -10020,38 +11220,41 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.LogMat
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch)other);
+            return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) other);
           } else {
             super.mergeFrom(other);
             return this;
@@ -10059,14 +11262,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
 
         public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) return this;
+          if (other == com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance())
+            return this;
           if (!other.getFilter().isEmpty()) {
             filter_ = other.filter_;
             bitField0_ |= 0x00000001;
             onChanged();
           }
-          internalGetMutableLabelExtractors().mergeFrom(
-              other.internalGetLabelExtractors());
+          internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors());
           bitField0_ |= 0x00000002;
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
@@ -10094,26 +11297,32 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  filter_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                case 18: {
-                  com.google.protobuf.MapEntry
-                  labelExtractors__ = input.readMessage(
-                      LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                  internalGetMutableLabelExtractors().getMutableMap().put(
-                      labelExtractors__.getKey(), labelExtractors__.getValue());
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    filter_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                case 18:
+                  {
+                    com.google.protobuf.MapEntry
+                        labelExtractors__ =
+                            input.readMessage(
+                                LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(),
+                                extensionRegistry);
+                    internalGetMutableLabelExtractors()
+                        .getMutableMap()
+                        .put(labelExtractors__.getKey(), labelExtractors__.getValue());
+                    bitField0_ |= 0x00000002;
+                    break;
+                  } // case 18
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10123,10 +11332,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private java.lang.Object filter_ = "";
         /**
+         *
+         *
          * 
          * Required. A logs-based filter. See [Advanced Logs
          * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -10134,13 +11346,13 @@ public Builder mergeFrom(
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -10149,6 +11361,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A logs-based filter. See [Advanced Logs
          * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -10156,15 +11370,14 @@ public java.lang.String getFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -10172,6 +11385,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Required. A logs-based filter. See [Advanced Logs
          * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -10179,18 +11394,22 @@ public java.lang.String getFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. A logs-based filter. See [Advanced Logs
          * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -10198,6 +11417,7 @@ public Builder setFilter(
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -10207,6 +11427,8 @@ public Builder clearFilter() { return this; } /** + * + * *
          * Required. A logs-based filter. See [Advanced Logs
          * Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
@@ -10214,12 +11436,14 @@ public Builder clearFilter() {
          * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000001; @@ -10227,8 +11451,8 @@ public Builder setFilterBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField labelExtractors_; + private com.google.protobuf.MapField internalGetLabelExtractors() { if (labelExtractors_ == null) { @@ -10237,11 +11461,13 @@ public Builder setFilterBytes( } return labelExtractors_; } + private com.google.protobuf.MapField internalGetMutableLabelExtractors() { if (labelExtractors_ == null) { - labelExtractors_ = com.google.protobuf.MapField.newMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); + labelExtractors_ = + com.google.protobuf.MapField.newMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); } if (!labelExtractors_.isMutable()) { labelExtractors_ = labelExtractors_.copy(); @@ -10250,10 +11476,13 @@ public Builder setFilterBytes( onChanged(); return labelExtractors_; } + public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** + * + * *
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10271,20 +11500,21 @@ public int getLabelExtractorsCount() {
          * map<string, string> label_extractors = 2;
          */
         @java.lang.Override
-        public boolean containsLabelExtractors(
-            java.lang.String key) {
-          if (key == null) { throw new NullPointerException("map key"); }
+        public boolean containsLabelExtractors(java.lang.String key) {
+          if (key == null) {
+            throw new NullPointerException("map key");
+          }
           return internalGetLabelExtractors().getMap().containsKey(key);
         }
-        /**
-         * Use {@link #getLabelExtractorsMap()} instead.
-         */
+        /** Use {@link #getLabelExtractorsMap()} instead. */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabelExtractors() {
           return getLabelExtractorsMap();
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10306,6 +11536,8 @@ public java.util.Map getLabelExtractorsMap()
           return internalGetLabelExtractors().getMap();
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10323,17 +11555,20 @@ public java.util.Map getLabelExtractorsMap()
          * map<string, string> label_extractors = 2;
          */
         @java.lang.Override
-        public /* nullable */
-java.lang.String getLabelExtractorsOrDefault(
+        public /* nullable */ java.lang.String getLabelExtractorsOrDefault(
             java.lang.String key,
             /* nullable */
-java.lang.String defaultValue) {
-          if (key == null) { throw new NullPointerException("map key"); }
+            java.lang.String defaultValue) {
+          if (key == null) {
+            throw new NullPointerException("map key");
+          }
           java.util.Map map =
               internalGetLabelExtractors().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10351,9 +11586,10 @@ java.lang.String getLabelExtractorsOrDefault(
          * map<string, string> label_extractors = 2;
          */
         @java.lang.Override
-        public java.lang.String getLabelExtractorsOrThrow(
-            java.lang.String key) {
-          if (key == null) { throw new NullPointerException("map key"); }
+        public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) {
+          if (key == null) {
+            throw new NullPointerException("map key");
+          }
           java.util.Map map =
               internalGetLabelExtractors().getMap();
           if (!map.containsKey(key)) {
@@ -10361,13 +11597,15 @@ public java.lang.String getLabelExtractorsOrThrow(
           }
           return map.get(key);
         }
+
         public Builder clearLabelExtractors() {
           bitField0_ = (bitField0_ & ~0x00000002);
-          internalGetMutableLabelExtractors().getMutableMap()
-              .clear();
+          internalGetMutableLabelExtractors().getMutableMap().clear();
           return this;
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10384,23 +11622,22 @@ public Builder clearLabelExtractors() {
          *
          * map<string, string> label_extractors = 2;
          */
-        public Builder removeLabelExtractors(
-            java.lang.String key) {
-          if (key == null) { throw new NullPointerException("map key"); }
-          internalGetMutableLabelExtractors().getMutableMap()
-              .remove(key);
+        public Builder removeLabelExtractors(java.lang.String key) {
+          if (key == null) {
+            throw new NullPointerException("map key");
+          }
+          internalGetMutableLabelExtractors().getMutableMap().remove(key);
           return this;
         }
-        /**
-         * Use alternate mutation accessors instead.
-         */
+        /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
-        public java.util.Map
-            getMutableLabelExtractors() {
+        public java.util.Map getMutableLabelExtractors() {
           bitField0_ |= 0x00000002;
           return internalGetMutableLabelExtractors().getMutableMap();
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10417,17 +11654,20 @@ public Builder removeLabelExtractors(
          *
          * map<string, string> label_extractors = 2;
          */
-        public Builder putLabelExtractors(
-            java.lang.String key,
-            java.lang.String value) {
-          if (key == null) { throw new NullPointerException("map key"); }
-          if (value == null) { throw new NullPointerException("map value"); }
-          internalGetMutableLabelExtractors().getMutableMap()
-              .put(key, value);
+        public Builder putLabelExtractors(java.lang.String key, java.lang.String value) {
+          if (key == null) {
+            throw new NullPointerException("map key");
+          }
+          if (value == null) {
+            throw new NullPointerException("map value");
+          }
+          internalGetMutableLabelExtractors().getMutableMap().put(key, value);
           bitField0_ |= 0x00000002;
           return this;
         }
         /**
+         *
+         *
          * 
          * Optional. A map from a label key to an extractor expression, which is
          * used to extract the value for this label key. Each entry in this map is
@@ -10446,11 +11686,11 @@ public Builder putLabelExtractors(
          */
         public Builder putAllLabelExtractors(
             java.util.Map values) {
-          internalGetMutableLabelExtractors().getMutableMap()
-              .putAll(values);
+          internalGetMutableLabelExtractors().getMutableMap().putAll(values);
           bitField0_ |= 0x00000002;
           return this;
         }
+
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10463,12 +11703,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
-
         // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
       }
 
       // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.LogMatch)
       private static final com.google.monitoring.v3.AlertPolicy.Condition.LogMatch DEFAULT_INSTANCE;
+
       static {
         DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.LogMatch();
       }
@@ -10477,27 +11717,28 @@ public static com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefault
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LogMatch parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+      private static final com.google.protobuf.Parser PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public LogMatch parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              Builder builder = newBuilder();
+              try {
+                builder.mergeFrom(input, extensionRegistry);
+              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(builder.buildPartial());
+              } catch (com.google.protobuf.UninitializedMessageException e) {
+                throw e.asInvalidProtocolBufferException()
+                    .setUnfinishedMessage(builder.buildPartial());
+              } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                    .setUnfinishedMessage(builder.buildPartial());
+              }
+              return builder.buildPartial();
+            }
+          };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -10512,36 +11753,43 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
-
     }
 
-    public interface MonitoringQueryLanguageConditionOrBuilder extends
+    public interface MonitoringQueryLanguageConditionOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
        * query that outputs a boolean stream.
        * 
* * string query = 1; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
        * query that outputs a boolean stream.
        * 
* * string query = 1; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10556,10 +11804,13 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10574,10 +11825,13 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10596,6 +11850,8 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
       com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10606,10 +11862,13 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ boolean hasTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10620,10 +11879,13 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger(); /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10638,43 +11900,60 @@ public interface MonitoringQueryLanguageConditionOrBuilder extends
       com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
 
       /**
+       *
+       *
        * 
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ int getEvaluationMissingDataValue(); /** + * + * *
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The evaluationMissingData. */ - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData(); + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData(); } /** + * + * *
      * A condition type that allows alert policies to be defined using
      * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
      * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} */ - public static final class MonitoringQueryLanguageCondition extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class MonitoringQueryLanguageCondition + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) MonitoringQueryLanguageConditionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MonitoringQueryLanguageCondition.newBuilder() to construct. - private MonitoringQueryLanguageCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MonitoringQueryLanguageCondition( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MonitoringQueryLanguageCondition() { query_ = ""; evaluationMissingData_ = 0; @@ -10682,34 +11961,41 @@ private MonitoringQueryLanguageCondition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MonitoringQueryLanguageCondition(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .class, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** + * + * *
        * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
        * query that outputs a boolean stream.
        * 
* * string query = 1; + * * @return The query. */ @java.lang.Override @@ -10718,30 +12004,30 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
        * query that outputs a boolean stream.
        * 
* * string query = 1; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -10752,6 +12038,8 @@ public java.lang.String getQuery() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10766,6 +12054,7 @@ public java.lang.String getQuery() {
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -10773,6 +12062,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10787,6 +12078,7 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -10794,6 +12086,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
@@ -10817,6 +12111,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
       public static final int TRIGGER_FIELD_NUMBER = 3;
       private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
       /**
+       *
+       *
        * 
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10827,6 +12123,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ @java.lang.Override @@ -10834,6 +12131,8 @@ public boolean hasTrigger() { return trigger_ != null; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10844,13 +12143,18 @@ public boolean hasTrigger() {
        * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } /** + * + * *
        * The number/percent of time series for which the comparison must hold
        * in order for the condition to trigger. If unspecified, then the
@@ -10864,38 +12168,58 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() {
        */
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
-        return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+        return trigger_ == null
+            ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+            : trigger_;
       }
 
       public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 4;
       private int evaluationMissingData_ = 0;
       /**
+       *
+       *
        * 
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ - @java.lang.Override public int getEvaluationMissingDataValue() { + @java.lang.Override + public int getEvaluationMissingDataValue() { return evaluationMissingData_; } /** + * + * *
        * A condition control that determines how metric-threshold conditions
        * are evaluated when data stops arriving.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The evaluationMissingData. */ - @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); - return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( + evaluationMissingData_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10907,8 +12231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } @@ -10918,7 +12241,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (trigger_ != null) { output.writeMessage(3, getTrigger()); } - if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { + if (evaluationMissingData_ + != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + .EVALUATION_MISSING_DATA_UNSPECIFIED + .getNumber()) { output.writeEnum(4, evaluationMissingData_); } getUnknownFields().writeTo(output); @@ -10934,16 +12260,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } if (trigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTrigger()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger()); } - if (evaluationMissingData_ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.EVALUATION_MISSING_DATA_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, evaluationMissingData_); + if (evaluationMissingData_ + != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + .EVALUATION_MISSING_DATA_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, evaluationMissingData_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10953,24 +12279,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)) { + if (!(obj + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other = (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) obj; + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other = + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) obj; - if (!getQuery() - .equals(other.getQuery())) return false; + if (!getQuery().equals(other.getQuery())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (hasTrigger() != other.hasTrigger()) return false; if (hasTrigger()) { - if (!getTrigger() - .equals(other.getTrigger())) return false; + if (!getTrigger().equals(other.getTrigger())) return false; } if (evaluationMissingData_ != other.evaluationMissingData_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -11001,90 +12327,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11094,40 +12434,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A condition type that allows alert policies to be defined using
        * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .class, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .Builder.class); } - // Construct using com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder() - private Builder() { + // Construct using + // com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -11148,19 +12494,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition build() { - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = buildPartial(); + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + build() { + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11168,27 +12518,30 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCon } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result = + new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition result) { + private void buildPartial0( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.query_ = query_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.trigger_ = triggerBuilder_ == null - ? trigger_ - : triggerBuilder_.build(); + result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.evaluationMissingData_ = evaluationMissingData_; @@ -11199,46 +12552,56 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Monito public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)other); + if (other + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) { + return mergeFrom( + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other) { - if (other == com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition other) { + if (other + == com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance()) return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000001; @@ -11279,36 +12642,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getTriggerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - evaluationMissingData_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + evaluationMissingData_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11318,23 +12682,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object query_ = ""; /** + * + * *
          * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
          * query that outputs a boolean stream.
          * 
* * string query = 1; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -11343,21 +12710,22 @@ public java.lang.String getQuery() { } } /** + * + * *
          * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
          * query that outputs a boolean stream.
          * 
* * string query = 1; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -11365,30 +12733,37 @@ public java.lang.String getQuery() { } } /** + * + * *
          * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
          * query that outputs a boolean stream.
          * 
* * string query = 1; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } query_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
          * query that outputs a boolean stream.
          * 
* * string query = 1; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -11398,18 +12773,22 @@ public Builder clearQuery() { return this; } /** + * + * *
          * [Monitoring Query Language](https://cloud.google.com/monitoring/mql)
          * query that outputs a boolean stream.
          * 
* * string query = 1; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000001; @@ -11419,8 +12798,13 @@ public Builder setQueryBytes( private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11435,12 +12819,15 @@ public Builder setQueryBytes(
          * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11455,16 +12842,21 @@ public boolean hasDuration() {
          * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : duration_; } else { return durationBuilder_.getMessage(); } } /** + * + * *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11494,6 +12886,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11509,8 +12903,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration duration = 2;
          */
-        public Builder setDuration(
-            com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
           if (durationBuilder_ == null) {
             duration_ = builderForValue.build();
           } else {
@@ -11521,6 +12914,8 @@ public Builder setDuration(
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11538,9 +12933,9 @@ public Builder setDuration(
          */
         public Builder mergeDuration(com.google.protobuf.Duration value) {
           if (durationBuilder_ == null) {
-            if (((bitField0_ & 0x00000002) != 0) &&
-              duration_ != null &&
-              duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000002) != 0)
+                && duration_ != null
+                && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
               getDurationBuilder().mergeFrom(value);
             } else {
               duration_ = value;
@@ -11553,6 +12948,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11579,6 +12976,8 @@ public Builder clearDuration() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11600,6 +12999,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
           return getDurationFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11619,11 +13020,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
           if (durationBuilder_ != null) {
             return durationBuilder_.getMessageOrBuilder();
           } else {
-            return duration_ == null ?
-                com.google.protobuf.Duration.getDefaultInstance() : duration_;
+            return duration_ == null
+                ? com.google.protobuf.Duration.getDefaultInstance()
+                : duration_;
           }
         }
         /**
+         *
+         *
          * 
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
@@ -11640,14 +13044,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * .google.protobuf.Duration duration = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
             getDurationFieldBuilder() {
           if (durationBuilder_ == null) {
-            durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                    getDuration(),
-                    getParentForChildren(),
-                    isClean());
+            durationBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.protobuf.Duration,
+                    com.google.protobuf.Duration.Builder,
+                    com.google.protobuf.DurationOrBuilder>(
+                    getDuration(), getParentForChildren(), isClean());
             duration_ = null;
           }
           return durationBuilder_;
@@ -11655,8 +13062,13 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
         private com.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> triggerBuilder_;
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
+            triggerBuilder_;
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11667,12 +13079,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return Whether the trigger field is set. */ public boolean hasTrigger() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11683,16 +13098,21 @@ public boolean hasTrigger() {
          * 
* * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3; + * * @return The trigger. */ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger getTrigger() { if (triggerBuilder_ == null) { - return trigger_ == null ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_; + return trigger_ == null + ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() + : trigger_; } else { return triggerBuilder_.getMessage(); } } /** + * + * *
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11718,6 +13138,8 @@ public Builder setTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11741,6 +13163,8 @@ public Builder setTrigger(
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11754,9 +13178,11 @@ public Builder setTrigger(
          */
         public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigger value) {
           if (triggerBuilder_ == null) {
-            if (((bitField0_ & 0x00000004) != 0) &&
-              trigger_ != null &&
-              trigger_ != com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000004) != 0)
+                && trigger_ != null
+                && trigger_
+                    != com.google.monitoring.v3.AlertPolicy.Condition.Trigger
+                        .getDefaultInstance()) {
               getTriggerBuilder().mergeFrom(value);
             } else {
               trigger_ = value;
@@ -11769,6 +13195,8 @@ public Builder mergeTrigger(com.google.monitoring.v3.AlertPolicy.Condition.Trigg
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11791,6 +13219,8 @@ public Builder clearTrigger() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11808,6 +13238,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
           return getTriggerFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11819,15 +13251,19 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
          *
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
          */
-        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder() {
+        public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder
+            getTriggerOrBuilder() {
           if (triggerBuilder_ != null) {
             return triggerBuilder_.getMessageOrBuilder();
           } else {
-            return trigger_ == null ?
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance() : trigger_;
+            return trigger_ == null
+                ? com.google.monitoring.v3.AlertPolicy.Condition.Trigger.getDefaultInstance()
+                : trigger_;
           }
         }
         /**
+         *
+         *
          * 
          * The number/percent of time series for which the comparison must hold
          * in order for the condition to trigger. If unspecified, then the
@@ -11840,14 +13276,17 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
          * .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder> 
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>
             getTriggerFieldBuilder() {
           if (triggerBuilder_ == null) {
-            triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.monitoring.v3.AlertPolicy.Condition.Trigger, com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder, com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
-                    getTrigger(),
-                    getParentForChildren(),
-                    isClean());
+            triggerBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger,
+                    com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder,
+                    com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder>(
+                    getTrigger(), getParentForChildren(), isClean());
             trigger_ = null;
           }
           return triggerBuilder_;
@@ -11855,24 +13294,35 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
 
         private int evaluationMissingData_ = 0;
         /**
+         *
+         *
          * 
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The enum numeric value on the wire for evaluationMissingData. */ - @java.lang.Override public int getEvaluationMissingDataValue() { + @java.lang.Override + public int getEvaluationMissingDataValue() { return evaluationMissingData_; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @param value The enum numeric value on the wire for evaluationMissingData to set. * @return This builder for chaining. */ @@ -11883,30 +13333,46 @@ public Builder setEvaluationMissingDataValue(int value) { return this; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return The evaluationMissingData. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData getEvaluationMissingData() { - com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber(evaluationMissingData_); - return result == null ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED : result; + public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData + getEvaluationMissingData() { + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result = + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.forNumber( + evaluationMissingData_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED + : result; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @param value The evaluationMissingData to set. * @return This builder for chaining. */ - public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { + public Builder setEvaluationMissingData( + com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) { if (value == null) { throw new NullPointerException(); } @@ -11916,12 +13382,17 @@ public Builder setEvaluationMissingData(com.google.monitoring.v3.AlertPolicy.Con return this; } /** + * + * *
          * A condition control that determines how metric-threshold conditions
          * are evaluated when data stops arriving.
          * 
* - * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4; + * + * * @return This builder for chaining. */ public Builder clearEvaluationMissingData() { @@ -11930,6 +13401,7 @@ public Builder clearEvaluationMissingData() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11942,41 +13414,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) - private static final com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageCondition + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringQueryLanguageCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringQueryLanguageCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11988,17 +13465,20 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PrometheusQueryLanguageConditionOrBuilder extends + public interface PrometheusQueryLanguageConditionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The PromQL expression to evaluate. Every evaluation cycle
        * this expression is evaluated at the current time, and all resultant
@@ -12006,10 +13486,13 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * Required. The PromQL expression to evaluate. Every evaluation cycle
        * this expression is evaluated at the current time, and all resultant
@@ -12017,12 +13500,14 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12032,11 +13517,15 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12046,11 +13535,15 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12060,11 +13553,14 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12074,11 +13570,16 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the evaluationInterval field is set. */ boolean hasEvaluationInterval(); /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12088,11 +13589,16 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The evaluationInterval. */ com.google.protobuf.Duration getEvaluationInterval(); /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12102,11 +13608,15 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder(); /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12117,10 +13627,13 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelsCount(); /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12131,17 +13644,16 @@ public interface PrometheusQueryLanguageConditionOrBuilder extends
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12152,11 +13664,13 @@ boolean containsLabels(
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12167,14 +13681,17 @@ boolean containsLabels(
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12185,12 +13702,14 @@ java.lang.String getLabelsOrDefault(
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
        * Optional. The rule group name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12207,10 +13726,13 @@ java.lang.String getLabelsOrThrow(
        * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ruleGroup. */ java.lang.String getRuleGroup(); /** + * + * *
        * Optional. The rule group name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12227,12 +13749,14 @@ java.lang.String getLabelsOrThrow(
        * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ruleGroup. */ - com.google.protobuf.ByteString - getRuleGroupBytes(); + com.google.protobuf.ByteString getRuleGroupBytes(); /** + * + * *
        * Optional. The alerting rule name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12250,10 +13774,13 @@ java.lang.String getLabelsOrThrow(
        * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alertRule. */ java.lang.String getAlertRule(); /** + * + * *
        * Optional. The alerting rule name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12271,12 +13798,14 @@ java.lang.String getLabelsOrThrow(
        * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alertRule. */ - com.google.protobuf.ByteString - getAlertRuleBytes(); + com.google.protobuf.ByteString getAlertRuleBytes(); } /** + * + * *
      * A condition type that allows alert policies to be defined using
      * [Prometheus Query Language
@@ -12311,17 +13840,21 @@ java.lang.String getLabelsOrThrow(
      * time (2023-06-26).
      * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} */ - public static final class PrometheusQueryLanguageCondition extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrometheusQueryLanguageCondition + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) PrometheusQueryLanguageConditionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrometheusQueryLanguageCondition.newBuilder() to construct. - private PrometheusQueryLanguageCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PrometheusQueryLanguageCondition( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrometheusQueryLanguageCondition() { query_ = ""; ruleGroup_ = ""; @@ -12330,40 +13863,45 @@ private PrometheusQueryLanguageCondition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrometheusQueryLanguageCondition(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .class, + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** + * + * *
        * Required. The PromQL expression to evaluate. Every evaluation cycle
        * this expression is evaluated at the current time, and all resultant
@@ -12371,6 +13909,7 @@ protected com.google.protobuf.MapField internalGetMapField(
        * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -12379,14 +13918,15 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * Required. The PromQL expression to evaluate. Every evaluation cycle
        * this expression is evaluated at the current time, and all resultant
@@ -12394,16 +13934,15 @@ public java.lang.String getQuery() {
        * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -12414,6 +13953,8 @@ public java.lang.String getQuery() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12423,7 +13964,9 @@ public java.lang.String getQuery() {
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the duration field is set. */ @java.lang.Override @@ -12431,6 +13974,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12440,7 +13985,9 @@ public boolean hasDuration() {
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The duration. */ @java.lang.Override @@ -12448,6 +13995,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
        * Optional. Alerts are considered firing once their PromQL expression was
        * evaluated to be "true" for this long.
@@ -12457,7 +14006,8 @@ public com.google.protobuf.Duration getDuration() {
        * This field is optional. Its default value is zero.
        * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -12467,6 +14017,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int EVALUATION_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration evaluationInterval_; /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12476,7 +14028,10 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the evaluationInterval field is set. */ @java.lang.Override @@ -12484,6 +14039,8 @@ public boolean hasEvaluationInterval() { return evaluationInterval_ != null; } /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12493,14 +14050,21 @@ public boolean hasEvaluationInterval() {
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The evaluationInterval. */ @java.lang.Override public com.google.protobuf.Duration getEvaluationInterval() { - return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + return evaluationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : evaluationInterval_; } /** + * + * *
        * Optional. How often this rule should be evaluated.
        * Must be a positive multiple of 30 seconds or missing.
@@ -12510,40 +14074,46 @@ public com.google.protobuf.Duration getEvaluationInterval() {
        * enclosing rule group.
        * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { - return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + return evaluationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : evaluationInterval_; } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12554,23 +14124,25 @@ public int getLabelsCount() {
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12581,13 +14153,16 @@ public java.util.Map getLabels() {
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12598,20 +14173,23 @@ public java.util.Map getLabelsMap() {
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional. Labels to add to or overwrite in the PromQL query result.
        * Label names [must be
@@ -12622,14 +14200,15 @@ java.lang.String getLabelsOrDefault(
        * PromQL result, including "__name__" and "value". "labels" may be empty.
        * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -12637,9 +14216,12 @@ public java.lang.String getLabelsOrThrow( } public static final int RULE_GROUP_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object ruleGroup_ = ""; /** + * + * *
        * Optional. The rule group name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12656,6 +14238,7 @@ public java.lang.String getLabelsOrThrow(
        * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ruleGroup. */ @java.lang.Override @@ -12664,14 +14247,15 @@ public java.lang.String getRuleGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleGroup_ = s; return s; } } /** + * + * *
        * Optional. The rule group name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12688,16 +14272,15 @@ public java.lang.String getRuleGroup() {
        * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ruleGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuleGroupBytes() { + public com.google.protobuf.ByteString getRuleGroupBytes() { java.lang.Object ref = ruleGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleGroup_ = b; return b; } else { @@ -12706,9 +14289,12 @@ public java.lang.String getRuleGroup() { } public static final int ALERT_RULE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object alertRule_ = ""; /** + * + * *
        * Optional. The alerting rule name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12726,6 +14312,7 @@ public java.lang.String getRuleGroup() {
        * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alertRule. */ @java.lang.Override @@ -12734,14 +14321,15 @@ public java.lang.String getAlertRule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alertRule_ = s; return s; } } /** + * + * *
        * Optional. The alerting rule name of this alert in the corresponding
        * Prometheus configuration file.
@@ -12759,16 +14347,15 @@ public java.lang.String getAlertRule() {
        * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alertRule. */ @java.lang.Override - public com.google.protobuf.ByteString - getAlertRuleBytes() { + public com.google.protobuf.ByteString getAlertRuleBytes() { java.lang.Object ref = alertRule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alertRule_ = b; return b; } else { @@ -12777,6 +14364,7 @@ public java.lang.String getAlertRule() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12788,8 +14376,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } @@ -12799,12 +14386,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (evaluationInterval_ != null) { output.writeMessage(3, getEvaluationInterval()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ruleGroup_); } @@ -12824,22 +14407,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } if (evaluationInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEvaluationInterval()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluationInterval()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ruleGroup_); @@ -12855,31 +14437,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition)) { + if (!(obj + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other = (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) obj; + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other = + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) obj; - if (!getQuery() - .equals(other.getQuery())) return false; + if (!getQuery().equals(other.getQuery())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (hasEvaluationInterval() != other.hasEvaluationInterval()) return false; if (hasEvaluationInterval()) { - if (!getEvaluationInterval() - .equals(other.getEvaluationInterval())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getRuleGroup() - .equals(other.getRuleGroup())) return false; - if (!getAlertRule() - .equals(other.getAlertRule())) return false; + if (!getEvaluationInterval().equals(other.getEvaluationInterval())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getRuleGroup().equals(other.getRuleGroup())) return false; + if (!getAlertRule().equals(other.getAlertRule())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12914,90 +14493,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -13007,6 +14600,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A condition type that allows alert policies to be defined using
        * [Prometheus Query Language
@@ -13041,57 +14636,59 @@ protected Builder newBuilderForType(
        * time (2023-06-26).
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.class, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder.class); + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .class, + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .Builder.class); } - // Construct using com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.newBuilder() - private Builder() { + // Construct using + // com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -13114,19 +14711,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition build() { - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = buildPartial(); + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + build() { + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13134,27 +14735,33 @@ public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCon } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition buildPartial() { - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + buildPartial() { + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result = + new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition result) { + private void buildPartial0( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.query_ = query_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.evaluationInterval_ = evaluationIntervalBuilder_ == null - ? evaluationInterval_ - : evaluationIntervalBuilder_.build(); + result.evaluationInterval_ = + evaluationIntervalBuilder_ == null + ? evaluationInterval_ + : evaluationIntervalBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -13172,46 +14779,56 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition.Promet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition)other); + if (other + instanceof + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) { + return mergeFrom( + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other) { - if (other == com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition other) { + if (other + == com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance()) return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000001; @@ -13223,8 +14840,7 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition.Promethe if (other.hasEvaluationInterval()) { mergeEvaluationInterval(other.getEvaluationInterval()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getRuleGroup().isEmpty()) { ruleGroup_ = other.ruleGroup_; @@ -13262,50 +14878,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getEvaluationIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - ruleGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - alertRule_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getEvaluationIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + ruleGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + alertRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13315,10 +14937,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object query_ = ""; /** + * + * *
          * Required. The PromQL expression to evaluate. Every evaluation cycle
          * this expression is evaluated at the current time, and all resultant
@@ -13326,13 +14951,13 @@ public Builder mergeFrom(
          * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -13341,6 +14966,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Required. The PromQL expression to evaluate. Every evaluation cycle
          * this expression is evaluated at the current time, and all resultant
@@ -13348,15 +14975,14 @@ public java.lang.String getQuery() {
          * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -13364,6 +14990,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Required. The PromQL expression to evaluate. Every evaluation cycle
          * this expression is evaluated at the current time, and all resultant
@@ -13371,18 +14999,22 @@ public java.lang.String getQuery() {
          * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } query_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. The PromQL expression to evaluate. Every evaluation cycle
          * this expression is evaluated at the current time, and all resultant
@@ -13390,6 +15022,7 @@ public Builder setQuery(
          * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -13399,6 +15032,8 @@ public Builder clearQuery() { return this; } /** + * + * *
          * Required. The PromQL expression to evaluate. Every evaluation cycle
          * this expression is evaluated at the current time, and all resultant
@@ -13406,12 +15041,14 @@ public Builder clearQuery() {
          * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000001; @@ -13421,8 +15058,13 @@ public Builder setQueryBytes( private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13432,13 +15074,17 @@ public Builder setQueryBytes(
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13448,17 +15094,23 @@ public boolean hasDuration() {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : duration_; } else { return durationBuilder_.getMessage(); } } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13468,7 +15120,8 @@ public com.google.protobuf.Duration getDuration() {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -13484,6 +15137,8 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13493,10 +15148,10 @@ public Builder setDuration(com.google.protobuf.Duration value) {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -13507,6 +15162,8 @@ public Builder setDuration( return this; } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13516,13 +15173,14 @@ public Builder setDuration(
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -13535,6 +15193,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13544,7 +15204,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -13557,6 +15218,8 @@ public Builder clearDuration() { return this; } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13566,7 +15229,8 @@ public Builder clearDuration() {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000002; @@ -13574,6 +15238,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13583,17 +15249,21 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : duration_; } } /** + * + * *
          * Optional. Alerts are considered firing once their PromQL expression was
          * evaluated to be "true" for this long.
@@ -13603,17 +15273,21 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * This field is optional. Its default value is zero.
          * 
* - * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; @@ -13621,8 +15295,13 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { private com.google.protobuf.Duration evaluationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> evaluationIntervalBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + evaluationIntervalBuilder_; /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13632,13 +15311,18 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the evaluationInterval field is set. */ public boolean hasEvaluationInterval() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13648,17 +15332,24 @@ public boolean hasEvaluationInterval() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The evaluationInterval. */ public com.google.protobuf.Duration getEvaluationInterval() { if (evaluationIntervalBuilder_ == null) { - return evaluationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + return evaluationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : evaluationInterval_; } else { return evaluationIntervalBuilder_.getMessage(); } } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13668,7 +15359,9 @@ public com.google.protobuf.Duration getEvaluationInterval() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEvaluationInterval(com.google.protobuf.Duration value) { if (evaluationIntervalBuilder_ == null) { @@ -13684,6 +15377,8 @@ public Builder setEvaluationInterval(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13693,10 +15388,11 @@ public Builder setEvaluationInterval(com.google.protobuf.Duration value) {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEvaluationInterval( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setEvaluationInterval(com.google.protobuf.Duration.Builder builderForValue) { if (evaluationIntervalBuilder_ == null) { evaluationInterval_ = builderForValue.build(); } else { @@ -13707,6 +15403,8 @@ public Builder setEvaluationInterval( return this; } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13716,13 +15414,15 @@ public Builder setEvaluationInterval(
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEvaluationInterval(com.google.protobuf.Duration value) { if (evaluationIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - evaluationInterval_ != null && - evaluationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && evaluationInterval_ != null + && evaluationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { getEvaluationIntervalBuilder().mergeFrom(value); } else { evaluationInterval_ = value; @@ -13735,6 +15435,8 @@ public Builder mergeEvaluationInterval(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13744,7 +15446,9 @@ public Builder mergeEvaluationInterval(com.google.protobuf.Duration value) {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEvaluationInterval() { bitField0_ = (bitField0_ & ~0x00000004); @@ -13757,6 +15461,8 @@ public Builder clearEvaluationInterval() { return this; } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13766,7 +15472,9 @@ public Builder clearEvaluationInterval() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getEvaluationIntervalBuilder() { bitField0_ |= 0x00000004; @@ -13774,6 +15482,8 @@ public com.google.protobuf.Duration.Builder getEvaluationIntervalBuilder() { return getEvaluationIntervalFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13783,17 +15493,22 @@ public com.google.protobuf.Duration.Builder getEvaluationIntervalBuilder() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { if (evaluationIntervalBuilder_ != null) { return evaluationIntervalBuilder_.getMessageOrBuilder(); } else { - return evaluationInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : evaluationInterval_; + return evaluationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : evaluationInterval_; } } /** + * + * *
          * Optional. How often this rule should be evaluated.
          * Must be a positive multiple of 30 seconds or missing.
@@ -13803,24 +15518,29 @@ public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() {
          * enclosing rule group.
          * 
* - * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration evaluation_interval = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getEvaluationIntervalFieldBuilder() { if (evaluationIntervalBuilder_ == null) { - evaluationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getEvaluationInterval(), - getParentForChildren(), - isClean()); + evaluationIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEvaluationInterval(), getParentForChildren(), isClean()); evaluationInterval_ = null; } return evaluationIntervalBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { @@ -13829,11 +15549,12 @@ public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -13842,10 +15563,13 @@ public com.google.protobuf.DurationOrBuilder getEvaluationIntervalOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13856,23 +15580,25 @@ public int getLabelsCount() {
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13883,13 +15609,16 @@ public java.util.Map getLabels() {
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13900,20 +15629,23 @@ public java.util.Map getLabelsMap() {
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13924,26 +15656,29 @@ java.lang.String getLabelsOrDefault(
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13954,25 +15689,25 @@ public Builder clearLabels() {
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -13983,19 +15718,23 @@ public Builder removeLabels(
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
          * Optional. Labels to add to or overwrite in the PromQL query result.
          * Label names [must be
@@ -14006,18 +15745,19 @@ public Builder putLabels(
          * PromQL result, including "__name__" and "value". "labels" may be empty.
          * 
* - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object ruleGroup_ = ""; /** + * + * *
          * Optional. The rule group name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14034,13 +15774,13 @@ public Builder putAllLabels(
          * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ruleGroup. */ public java.lang.String getRuleGroup() { java.lang.Object ref = ruleGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleGroup_ = s; return s; @@ -14049,6 +15789,8 @@ public java.lang.String getRuleGroup() { } } /** + * + * *
          * Optional. The rule group name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14065,15 +15807,14 @@ public java.lang.String getRuleGroup() {
          * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ruleGroup. */ - public com.google.protobuf.ByteString - getRuleGroupBytes() { + public com.google.protobuf.ByteString getRuleGroupBytes() { java.lang.Object ref = ruleGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleGroup_ = b; return b; } else { @@ -14081,6 +15822,8 @@ public java.lang.String getRuleGroup() { } } /** + * + * *
          * Optional. The rule group name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14097,18 +15840,22 @@ public java.lang.String getRuleGroup() {
          * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ruleGroup to set. * @return This builder for chaining. */ - public Builder setRuleGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRuleGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ruleGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
          * Optional. The rule group name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14125,6 +15872,7 @@ public Builder setRuleGroup(
          * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRuleGroup() { @@ -14134,6 +15882,8 @@ public Builder clearRuleGroup() { return this; } /** + * + * *
          * Optional. The rule group name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14150,12 +15900,14 @@ public Builder clearRuleGroup() {
          * 
* * string rule_group = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for ruleGroup to set. * @return This builder for chaining. */ - public Builder setRuleGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRuleGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ruleGroup_ = value; bitField0_ |= 0x00000010; @@ -14165,6 +15917,8 @@ public Builder setRuleGroupBytes( private java.lang.Object alertRule_ = ""; /** + * + * *
          * Optional. The alerting rule name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14182,13 +15936,13 @@ public Builder setRuleGroupBytes(
          * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The alertRule. */ public java.lang.String getAlertRule() { java.lang.Object ref = alertRule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alertRule_ = s; return s; @@ -14197,6 +15951,8 @@ public java.lang.String getAlertRule() { } } /** + * + * *
          * Optional. The alerting rule name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14214,15 +15970,14 @@ public java.lang.String getAlertRule() {
          * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for alertRule. */ - public com.google.protobuf.ByteString - getAlertRuleBytes() { + public com.google.protobuf.ByteString getAlertRuleBytes() { java.lang.Object ref = alertRule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alertRule_ = b; return b; } else { @@ -14230,6 +15985,8 @@ public java.lang.String getAlertRule() { } } /** + * + * *
          * Optional. The alerting rule name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14247,18 +16004,22 @@ public java.lang.String getAlertRule() {
          * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The alertRule to set. * @return This builder for chaining. */ - public Builder setAlertRule( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlertRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } alertRule_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
          * Optional. The alerting rule name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14276,6 +16037,7 @@ public Builder setAlertRule(
          * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAlertRule() { @@ -14285,6 +16047,8 @@ public Builder clearAlertRule() { return this; } /** + * + * *
          * Optional. The alerting rule name of this alert in the corresponding
          * Prometheus configuration file.
@@ -14302,18 +16066,21 @@ public Builder clearAlertRule() {
          * 
* * string alert_rule = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for alertRule to set. * @return This builder for chaining. */ - public Builder setAlertRuleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlertRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); alertRule_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14326,41 +16093,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) - private static final com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageCondition + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition(); } - public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrometheusQueryLanguageCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrometheusQueryLanguageCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14372,17 +16144,20 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int conditionCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object condition_; + public enum ConditionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONDITION_THRESHOLD(1), CONDITION_ABSENT(2), @@ -14391,6 +16166,7 @@ public enum ConditionCase CONDITION_PROMETHEUS_QUERY_LANGUAGE(21), CONDITION_NOT_SET(0); private final int value; + private ConditionCase(int value) { this.value = value; } @@ -14406,30 +16182,39 @@ public static ConditionCase valueOf(int value) { public static ConditionCase forNumber(int value) { switch (value) { - case 1: return CONDITION_THRESHOLD; - case 2: return CONDITION_ABSENT; - case 20: return CONDITION_MATCHED_LOG; - case 19: return CONDITION_MONITORING_QUERY_LANGUAGE; - case 21: return CONDITION_PROMETHEUS_QUERY_LANGUAGE; - case 0: return CONDITION_NOT_SET; - default: return null; + case 1: + return CONDITION_THRESHOLD; + case 2: + return CONDITION_ABSENT; + case 20: + return CONDITION_MATCHED_LOG; + case 19: + return CONDITION_MONITORING_QUERY_LANGUAGE; + case 21: + return CONDITION_PROMETHEUS_QUERY_LANGUAGE; + case 0: + return CONDITION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConditionCase - getConditionCase() { - return ConditionCase.forNumber( - conditionCase_); + public ConditionCase getConditionCase() { + return ConditionCase.forNumber(conditionCase_); } public static final int NAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -14459,6 +16244,7 @@ public int getNumber() {
      * 
* * string name = 12; + * * @return The name. */ @java.lang.Override @@ -14467,14 +16253,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required if the condition exists. The unique resource name for this
      * condition. Its format is:
@@ -14504,16 +16291,15 @@ public java.lang.String getName() {
      * 
* * string name = 12; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -14522,9 +16308,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -14532,6 +16321,7 @@ public java.lang.String getName() {
      * 
* * string display_name = 6; + * * @return The displayName. */ @java.lang.Override @@ -14540,14 +16330,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
      * A short name or phrase used to identify the condition in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -14555,16 +16346,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 6; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -14574,11 +16364,15 @@ public java.lang.String getDisplayName() { public static final int CONDITION_THRESHOLD_FIELD_NUMBER = 1; /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return Whether the conditionThreshold field is set. */ @java.lang.Override @@ -14586,43 +16380,54 @@ public boolean hasConditionThreshold() { return conditionCase_ == 1; } /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return The conditionThreshold. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() { if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } /** + * + * *
      * A condition that compares a time series against a threshold.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder + getConditionThresholdOrBuilder() { if (conditionCase_ == 1) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); } public static final int CONDITION_ABSENT_FIELD_NUMBER = 2; /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * * @return Whether the conditionAbsent field is set. */ @java.lang.Override @@ -14630,22 +16435,27 @@ public boolean hasConditionAbsent() { return conditionCase_ == 2; } /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * * @return The conditionAbsent. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getConditionAbsent() { if (conditionCase_ == 2) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); } /** + * + * *
      * A condition that checks that a time series continues to
      * receive new data points.
@@ -14654,21 +16464,25 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getCondition
      * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder() {
+    public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder
+        getConditionAbsentOrBuilder() {
       if (conditionCase_ == 2) {
-         return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
+        return (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_;
       }
       return com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance();
     }
 
     public static final int CONDITION_MATCHED_LOG_FIELD_NUMBER = 20;
     /**
+     *
+     *
      * 
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * * @return Whether the conditionMatchedLog field is set. */ @java.lang.Override @@ -14676,22 +16490,27 @@ public boolean hasConditionMatchedLog() { return conditionCase_ == 20; } /** + * + * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
      * 
* * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * * @return The conditionMatchedLog. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatchedLog() { if (conditionCase_ == 20) { - return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_; } return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); } /** + * + * *
      * A condition that checks for log messages matching given constraints. If
      * set, no other conditions can be present.
@@ -14700,21 +16519,27 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatch
      * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder() {
+    public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder
+        getConditionMatchedLogOrBuilder() {
       if (conditionCase_ == 20) {
-         return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
+        return (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_;
       }
       return com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance();
     }
 
     public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER = 19;
     /**
+     *
+     *
      * 
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return Whether the conditionMonitoringQueryLanguage field is set. */ @java.lang.Override @@ -14722,44 +16547,64 @@ public boolean hasConditionMonitoringQueryLanguage() { return conditionCase_ == 19; } /** + * + * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return The conditionMonitoringQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getConditionMonitoringQueryLanguage() { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } /** + * + * *
      * A condition that uses the Monitoring Query Language to define
      * alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder + getConditionMonitoringQueryLanguageOrBuilder() { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } public static final int CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER = 21; /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return Whether the conditionPrometheusQueryLanguage field is set. */ @java.lang.Override @@ -14767,36 +16612,52 @@ public boolean hasConditionPrometheusQueryLanguage() { return conditionCase_ == 21; } /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return The conditionPrometheusQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getConditionPrometheusQueryLanguage() { if (conditionCase_ == 21) { - return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } /** + * + * *
      * A condition that uses the Prometheus query language to define alerts.
      * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder + getConditionPrometheusQueryLanguageOrBuilder() { if (conditionCase_ == 21) { - return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14808,13 +16669,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (conditionCase_ == 1) { - output.writeMessage(1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); + output.writeMessage( + 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); } if (conditionCase_ == 2) { - output.writeMessage(2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); + output.writeMessage( + 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); @@ -14823,13 +16685,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_); } if (conditionCase_ == 19) { - output.writeMessage(19, (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_); + output.writeMessage( + 19, + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_); } if (conditionCase_ == 20) { - output.writeMessage(20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + output.writeMessage( + 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); } if (conditionCase_ == 21) { - output.writeMessage(21, (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_); + output.writeMessage( + 21, + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_); } getUnknownFields().writeTo(output); } @@ -14841,12 +16710,14 @@ public int getSerializedSize() { size = 0; if (conditionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_); } if (conditionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); @@ -14855,16 +16726,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_); } if (conditionCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_); } if (conditionCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_); } if (conditionCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14874,30 +16752,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Condition)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.Condition other = (com.google.monitoring.v3.AlertPolicy.Condition) obj; + com.google.monitoring.v3.AlertPolicy.Condition other = + (com.google.monitoring.v3.AlertPolicy.Condition) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getConditionCase().equals(other.getConditionCase())) return false; switch (conditionCase_) { case 1: - if (!getConditionThreshold() - .equals(other.getConditionThreshold())) return false; + if (!getConditionThreshold().equals(other.getConditionThreshold())) return false; break; case 2: - if (!getConditionAbsent() - .equals(other.getConditionAbsent())) return false; + if (!getConditionAbsent().equals(other.getConditionAbsent())) return false; break; case 20: - if (!getConditionMatchedLog() - .equals(other.getConditionMatchedLog())) return false; + if (!getConditionMatchedLog().equals(other.getConditionMatchedLog())) return false; break; case 19: if (!getConditionMonitoringQueryLanguage() @@ -14954,90 +16828,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.Condition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.Condition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.Condition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -15047,6 +16925,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A condition is a true/false test that determines when an alerting policy
      * should open an incident. If a condition evaluates to true, it signifies
@@ -15055,33 +16935,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.Condition}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Condition)
         com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.Condition.class, com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.Condition.class,
+                com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.AlertPolicy.Condition.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -15109,9 +16989,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor;
       }
 
       @java.lang.Override
@@ -15130,8 +17010,11 @@ public com.google.monitoring.v3.AlertPolicy.Condition build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.Condition buildPartial() {
-        com.google.monitoring.v3.AlertPolicy.Condition result = new com.google.monitoring.v3.AlertPolicy.Condition(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.AlertPolicy.Condition result =
+            new com.google.monitoring.v3.AlertPolicy.Condition(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -15150,24 +17033,19 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Condition result
       private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition result) {
         result.conditionCase_ = conditionCase_;
         result.condition_ = this.condition_;
-        if (conditionCase_ == 1 &&
-            conditionThresholdBuilder_ != null) {
+        if (conditionCase_ == 1 && conditionThresholdBuilder_ != null) {
           result.condition_ = conditionThresholdBuilder_.build();
         }
-        if (conditionCase_ == 2 &&
-            conditionAbsentBuilder_ != null) {
+        if (conditionCase_ == 2 && conditionAbsentBuilder_ != null) {
           result.condition_ = conditionAbsentBuilder_.build();
         }
-        if (conditionCase_ == 20 &&
-            conditionMatchedLogBuilder_ != null) {
+        if (conditionCase_ == 20 && conditionMatchedLogBuilder_ != null) {
           result.condition_ = conditionMatchedLogBuilder_.build();
         }
-        if (conditionCase_ == 19 &&
-            conditionMonitoringQueryLanguageBuilder_ != null) {
+        if (conditionCase_ == 19 && conditionMonitoringQueryLanguageBuilder_ != null) {
           result.condition_ = conditionMonitoringQueryLanguageBuilder_.build();
         }
-        if (conditionCase_ == 21 &&
-            conditionPrometheusQueryLanguageBuilder_ != null) {
+        if (conditionCase_ == 21 && conditionPrometheusQueryLanguageBuilder_ != null) {
           result.condition_ = conditionPrometheusQueryLanguageBuilder_.build();
         }
       }
@@ -15176,38 +17054,41 @@ private void buildPartialOneofs(com.google.monitoring.v3.AlertPolicy.Condition r
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.AlertPolicy.Condition) {
-          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition)other);
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.Condition) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -15215,7 +17096,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) {
-        if (other == com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance())
+          return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           bitField0_ |= 0x00000001;
@@ -15227,29 +17109,35 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Condition other) {
           onChanged();
         }
         switch (other.getConditionCase()) {
-          case CONDITION_THRESHOLD: {
-            mergeConditionThreshold(other.getConditionThreshold());
-            break;
-          }
-          case CONDITION_ABSENT: {
-            mergeConditionAbsent(other.getConditionAbsent());
-            break;
-          }
-          case CONDITION_MATCHED_LOG: {
-            mergeConditionMatchedLog(other.getConditionMatchedLog());
-            break;
-          }
-          case CONDITION_MONITORING_QUERY_LANGUAGE: {
-            mergeConditionMonitoringQueryLanguage(other.getConditionMonitoringQueryLanguage());
-            break;
-          }
-          case CONDITION_PROMETHEUS_QUERY_LANGUAGE: {
-            mergeConditionPrometheusQueryLanguage(other.getConditionPrometheusQueryLanguage());
-            break;
-          }
-          case CONDITION_NOT_SET: {
-            break;
-          }
+          case CONDITION_THRESHOLD:
+            {
+              mergeConditionThreshold(other.getConditionThreshold());
+              break;
+            }
+          case CONDITION_ABSENT:
+            {
+              mergeConditionAbsent(other.getConditionAbsent());
+              break;
+            }
+          case CONDITION_MATCHED_LOG:
+            {
+              mergeConditionMatchedLog(other.getConditionMatchedLog());
+              break;
+            }
+          case CONDITION_MONITORING_QUERY_LANGUAGE:
+            {
+              mergeConditionMonitoringQueryLanguage(other.getConditionMonitoringQueryLanguage());
+              break;
+            }
+          case CONDITION_PROMETHEUS_QUERY_LANGUAGE:
+            {
+              mergeConditionPrometheusQueryLanguage(other.getConditionPrometheusQueryLanguage());
+              break;
+            }
+          case CONDITION_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -15277,57 +17165,62 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getConditionThresholdFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                conditionCase_ = 1;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getConditionAbsentFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                conditionCase_ = 2;
-                break;
-              } // case 18
-              case 50: {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 50
-              case 98: {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 98
-              case 154: {
-                input.readMessage(
-                    getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                conditionCase_ = 19;
-                break;
-              } // case 154
-              case 162: {
-                input.readMessage(
-                    getConditionMatchedLogFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                conditionCase_ = 20;
-                break;
-              } // case 162
-              case 170: {
-                input.readMessage(
-                    getConditionPrometheusQueryLanguageFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                conditionCase_ = 21;
-                break;
-              } // case 170
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getConditionThresholdFieldBuilder().getBuilder(), extensionRegistry);
+                  conditionCase_ = 1;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getConditionAbsentFieldBuilder().getBuilder(), extensionRegistry);
+                  conditionCase_ = 2;
+                  break;
+                } // case 18
+              case 50:
+                {
+                  displayName_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 50
+              case 98:
+                {
+                  name_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 98
+              case 154:
+                {
+                  input.readMessage(
+                      getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  conditionCase_ = 19;
+                  break;
+                } // case 154
+              case 162:
+                {
+                  input.readMessage(
+                      getConditionMatchedLogFieldBuilder().getBuilder(), extensionRegistry);
+                  conditionCase_ = 20;
+                  break;
+                } // case 162
+              case 170:
+                {
+                  input.readMessage(
+                      getConditionPrometheusQueryLanguageFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  conditionCase_ = 21;
+                  break;
+                } // case 170
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -15337,12 +17230,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int conditionCase_ = 0;
       private java.lang.Object condition_;
-      public ConditionCase
-          getConditionCase() {
-        return ConditionCase.forNumber(
-            conditionCase_);
+
+      public ConditionCase getConditionCase() {
+        return ConditionCase.forNumber(conditionCase_);
       }
 
       public Builder clearCondition() {
@@ -15356,6 +17249,8 @@ public Builder clearCondition() {
 
       private java.lang.Object name_ = "";
       /**
+       *
+       *
        * 
        * Required if the condition exists. The unique resource name for this
        * condition. Its format is:
@@ -15385,13 +17280,13 @@ public Builder clearCondition() {
        * 
* * string name = 12; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -15400,6 +17295,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Required if the condition exists. The unique resource name for this
        * condition. Its format is:
@@ -15429,15 +17326,14 @@ public java.lang.String getName() {
        * 
* * string name = 12; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -15445,6 +17341,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Required if the condition exists. The unique resource name for this
        * condition. Its format is:
@@ -15474,18 +17372,22 @@ public java.lang.String getName() {
        * 
* * string name = 12; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required if the condition exists. The unique resource name for this
        * condition. Its format is:
@@ -15515,6 +17417,7 @@ public Builder setName(
        * 
* * string name = 12; + * * @return This builder for chaining. */ public Builder clearName() { @@ -15524,6 +17427,8 @@ public Builder clearName() { return this; } /** + * + * *
        * Required if the condition exists. The unique resource name for this
        * condition. Its format is:
@@ -15553,12 +17458,14 @@ public Builder clearName() {
        * 
* * string name = 12; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -15568,6 +17475,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
        * A short name or phrase used to identify the condition in dashboards,
        * notifications, and incidents. To avoid confusion, don't use the same
@@ -15575,13 +17484,13 @@ public Builder setNameBytes(
        * 
* * string display_name = 6; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -15590,6 +17499,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * A short name or phrase used to identify the condition in dashboards,
        * notifications, and incidents. To avoid confusion, don't use the same
@@ -15597,15 +17508,14 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 6; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -15613,6 +17523,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * A short name or phrase used to identify the condition in dashboards,
        * notifications, and incidents. To avoid confusion, don't use the same
@@ -15620,18 +17532,22 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 6; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * A short name or phrase used to identify the condition in dashboards,
        * notifications, and incidents. To avoid confusion, don't use the same
@@ -15639,6 +17555,7 @@ public Builder setDisplayName(
        * 
* * string display_name = 6; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -15648,6 +17565,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
        * A short name or phrase used to identify the condition in dashboards,
        * notifications, and incidents. To avoid confusion, don't use the same
@@ -15655,12 +17574,14 @@ public Builder clearDisplayName() {
        * 
* * string display_name = 6; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -15669,13 +17590,20 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> conditionThresholdBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> + conditionThresholdBuilder_; /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return Whether the conditionThreshold field is set. */ @java.lang.Override @@ -15683,35 +17611,46 @@ public boolean hasConditionThreshold() { return conditionCase_ == 1; } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * + * * @return The conditionThreshold. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold getConditionThreshold() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + getConditionThreshold() { if (conditionThresholdBuilder_ == null) { if (conditionCase_ == 1) { return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .getDefaultInstance(); } else { if (conditionCase_ == 1) { return conditionThresholdBuilder_.getMessage(); } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .getDefaultInstance(); } } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ - public Builder setConditionThreshold(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { + public Builder setConditionThreshold( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { if (conditionThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15725,11 +17664,14 @@ public Builder setConditionThreshold(com.google.monitoring.v3.AlertPolicy.Condit return this; } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ public Builder setConditionThreshold( com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder builderForValue) { @@ -15743,18 +17685,27 @@ public Builder setConditionThreshold( return this; } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ - public Builder mergeConditionThreshold(com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { + public Builder mergeConditionThreshold( + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold value) { if (conditionThresholdBuilder_ == null) { - if (conditionCase_ == 1 && - condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance()) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_) - .mergeFrom(value).buildPartial(); + if (conditionCase_ == 1 + && condition_ + != com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .getDefaultInstance()) { + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.newBuilder( + (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_) + .mergeFrom(value) + .buildPartial(); } else { condition_ = value; } @@ -15770,11 +17721,14 @@ public Builder mergeConditionThreshold(com.google.monitoring.v3.AlertPolicy.Cond return this; } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ public Builder clearConditionThreshold() { if (conditionThresholdBuilder_ == null) { @@ -15793,49 +17747,67 @@ public Builder clearConditionThreshold() { return this; } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder getConditionThresholdBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder + getConditionThresholdBuilder() { return getConditionThresholdFieldBuilder().getBuilder(); } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder + getConditionThresholdOrBuilder() { if ((conditionCase_ == 1) && (conditionThresholdBuilder_ != null)) { return conditionThresholdBuilder_.getMessageOrBuilder(); } else { if (conditionCase_ == 1) { return (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold + .getDefaultInstance(); } } /** + * + * *
        * A condition that compares a time series against a threshold.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder> getConditionThresholdFieldBuilder() { if (conditionThresholdBuilder_ == null) { if (!(conditionCase_ == 1)) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); - } - conditionThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>( + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.getDefaultInstance(); + } + conditionThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder>( (com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) condition_, getParentForChildren(), isClean()); @@ -15847,14 +17819,21 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdOrBuilder g } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> conditionAbsentBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> + conditionAbsentBuilder_; /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * + * * @return Whether the conditionAbsent field is set. */ @java.lang.Override @@ -15862,12 +17841,16 @@ public boolean hasConditionAbsent() { return conditionCase_ == 2; } /** - *
+       *
+       *
+       * 
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * + * * @return The conditionAbsent. */ @java.lang.Override @@ -15885,14 +17868,18 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence getCondition } } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ - public Builder setConditionAbsent(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { + public Builder setConditionAbsent( + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { if (conditionAbsentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15906,12 +17893,15 @@ public Builder setConditionAbsent(com.google.monitoring.v3.AlertPolicy.Condition return this; } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ public Builder setConditionAbsent( com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder builderForValue) { @@ -15925,19 +17915,28 @@ public Builder setConditionAbsent( return this; } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ - public Builder mergeConditionAbsent(com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { + public Builder mergeConditionAbsent( + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence value) { if (conditionAbsentBuilder_ == null) { - if (conditionCase_ == 2 && - condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance()) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_) - .mergeFrom(value).buildPartial(); + if (conditionCase_ == 2 + && condition_ + != com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence + .getDefaultInstance()) { + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.newBuilder( + (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_) + .mergeFrom(value) + .buildPartial(); } else { condition_ = value; } @@ -15953,12 +17952,15 @@ public Builder mergeConditionAbsent(com.google.monitoring.v3.AlertPolicy.Conditi return this; } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ public Builder clearConditionAbsent() { if (conditionAbsentBuilder_ == null) { @@ -15977,26 +17979,34 @@ public Builder clearConditionAbsent() { return this; } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder getConditionAbsentBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder + getConditionAbsentBuilder() { return getConditionAbsentFieldBuilder().getBuilder(); } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder + getConditionAbsentOrBuilder() { if ((conditionCase_ == 2) && (conditionAbsentBuilder_ != null)) { return conditionAbsentBuilder_.getMessageOrBuilder(); } else { @@ -16007,22 +18017,31 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder get } } /** + * + * *
        * A condition that checks that a time series continues to
        * receive new data points.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder> getConditionAbsentFieldBuilder() { if (conditionAbsentBuilder_ == null) { if (!(conditionCase_ == 2)) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); - } - conditionAbsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>( + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.getDefaultInstance(); + } + conditionAbsentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder>( (com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) condition_, getParentForChildren(), isClean()); @@ -16034,14 +18053,21 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> conditionMatchedLogBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> + conditionMatchedLogBuilder_; /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * + * * @return Whether the conditionMatchedLog field is set. */ @java.lang.Override @@ -16049,12 +18075,16 @@ public boolean hasConditionMatchedLog() { return conditionCase_ == 20; } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * + * * @return The conditionMatchedLog. */ @java.lang.Override @@ -16072,14 +18102,18 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch getConditionMatch } } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ - public Builder setConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { + public Builder setConditionMatchedLog( + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { if (conditionMatchedLogBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16093,12 +18127,15 @@ public Builder setConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Condi return this; } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ public Builder setConditionMatchedLog( com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder builderForValue) { @@ -16112,19 +18149,27 @@ public Builder setConditionMatchedLog( return this; } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ - public Builder mergeConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { + public Builder mergeConditionMatchedLog( + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch value) { if (conditionMatchedLogBuilder_ == null) { - if (conditionCase_ == 20 && - condition_ != com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_) - .mergeFrom(value).buildPartial(); + if (conditionCase_ == 20 + && condition_ + != com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance()) { + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.newBuilder( + (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_) + .mergeFrom(value) + .buildPartial(); } else { condition_ = value; } @@ -16140,12 +18185,15 @@ public Builder mergeConditionMatchedLog(com.google.monitoring.v3.AlertPolicy.Con return this; } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ public Builder clearConditionMatchedLog() { if (conditionMatchedLogBuilder_ == null) { @@ -16164,26 +18212,34 @@ public Builder clearConditionMatchedLog() { return this; } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder getConditionMatchedLogBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder + getConditionMatchedLogBuilder() { return getConditionMatchedLogFieldBuilder().getBuilder(); } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder + getConditionMatchedLogOrBuilder() { if ((conditionCase_ == 20) && (conditionMatchedLogBuilder_ != null)) { return conditionMatchedLogBuilder_.getMessageOrBuilder(); } else { @@ -16194,22 +18250,31 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getCondi } } /** + * + * *
        * A condition that checks for log messages matching given constraints. If
        * set, no other conditions can be present.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder> getConditionMatchedLogFieldBuilder() { if (conditionMatchedLogBuilder_ == null) { if (!(conditionCase_ == 20)) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); - } - conditionMatchedLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>( + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.getDefaultInstance(); + } + conditionMatchedLogBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder, + com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder>( (com.google.monitoring.v3.AlertPolicy.Condition.LogMatch) condition_, getParentForChildren(), isClean()); @@ -16221,14 +18286,24 @@ public com.google.monitoring.v3.AlertPolicy.Condition.LogMatchOrBuilder getCondi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder> conditionMonitoringQueryLanguageBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageConditionOrBuilder> + conditionMonitoringQueryLanguageBuilder_; /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return Whether the conditionMonitoringQueryLanguage field is set. */ @java.lang.Override @@ -16236,37 +18311,51 @@ public boolean hasConditionMonitoringQueryLanguage() { return conditionCase_ == 19; } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * * @return The conditionMonitoringQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + getConditionMonitoringQueryLanguage() { if (conditionMonitoringQueryLanguageBuilder_ == null) { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } else { if (conditionCase_ == 19) { return conditionMonitoringQueryLanguageBuilder_.getMessage(); } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ - public Builder setConditionMonitoringQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { + public Builder setConditionMonitoringQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { if (conditionMonitoringQueryLanguageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16280,15 +18369,20 @@ public Builder setConditionMonitoringQueryLanguage(com.google.monitoring.v3.Aler return this; } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ public Builder setConditionMonitoringQueryLanguage( - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder builderForValue) { + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder + builderForValue) { if (conditionMonitoringQueryLanguageBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); @@ -16299,19 +18393,32 @@ public Builder setConditionMonitoringQueryLanguage( return this; } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ - public Builder mergeConditionMonitoringQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { + public Builder mergeConditionMonitoringQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition value) { if (conditionMonitoringQueryLanguageBuilder_ == null) { - if (conditionCase_ == 19 && - condition_ != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance()) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_) - .mergeFrom(value).buildPartial(); + if (conditionCase_ == 19 + && condition_ + != com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance()) { + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .newBuilder( + (com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageCondition) + condition_) + .mergeFrom(value) + .buildPartial(); } else { condition_ = value; } @@ -16327,12 +18434,16 @@ public Builder mergeConditionMonitoringQueryLanguage(com.google.monitoring.v3.Al return this; } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ public Builder clearConditionMonitoringQueryLanguage() { if (conditionMonitoringQueryLanguageBuilder_ == null) { @@ -16351,53 +18462,82 @@ public Builder clearConditionMonitoringQueryLanguage() { return this; } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder getConditionMonitoringQueryLanguageBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder + getConditionMonitoringQueryLanguageBuilder() { return getConditionMonitoringQueryLanguageFieldBuilder().getBuilder(); } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageConditionOrBuilder + getConditionMonitoringQueryLanguageOrBuilder() { if ((conditionCase_ == 19) && (conditionMonitoringQueryLanguageBuilder_ != null)) { return conditionMonitoringQueryLanguageBuilder_.getMessageOrBuilder(); } else { if (conditionCase_ == 19) { - return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); } } /** + * + * *
        * A condition that uses the Monitoring Query Language to define
        * alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * + * .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageConditionOrBuilder> getConditionMonitoringQueryLanguageFieldBuilder() { if (conditionMonitoringQueryLanguageBuilder_ == null) { if (!(conditionCase_ == 19)) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.getDefaultInstance(); - } - conditionMonitoringQueryLanguageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) condition_, + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .getDefaultInstance(); + } + conditionMonitoringQueryLanguageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .MonitoringQueryLanguageConditionOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) + condition_, getParentForChildren(), isClean()); condition_ = null; @@ -16408,13 +18548,23 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCon } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder> conditionPrometheusQueryLanguageBuilder_; + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageConditionOrBuilder> + conditionPrometheusQueryLanguageBuilder_; /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return Whether the conditionPrometheusQueryLanguage field is set. */ @java.lang.Override @@ -16422,35 +18572,49 @@ public boolean hasConditionPrometheusQueryLanguage() { return conditionCase_ == 21; } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * * @return The conditionPrometheusQueryLanguage. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + getConditionPrometheusQueryLanguage() { if (conditionPrometheusQueryLanguageBuilder_ == null) { if (conditionCase_ == 21) { - return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } else { if (conditionCase_ == 21) { return conditionPrometheusQueryLanguageBuilder_.getMessage(); } - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ - public Builder setConditionPrometheusQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { + public Builder setConditionPrometheusQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { if (conditionPrometheusQueryLanguageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16464,14 +18628,19 @@ public Builder setConditionPrometheusQueryLanguage(com.google.monitoring.v3.Aler return this; } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ public Builder setConditionPrometheusQueryLanguage( - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder builderForValue) { + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder + builderForValue) { if (conditionPrometheusQueryLanguageBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); @@ -16482,18 +18651,31 @@ public Builder setConditionPrometheusQueryLanguage( return this; } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ - public Builder mergeConditionPrometheusQueryLanguage(com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { + public Builder mergeConditionPrometheusQueryLanguage( + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition value) { if (conditionPrometheusQueryLanguageBuilder_ == null) { - if (conditionCase_ == 21 && - condition_ != com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance()) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.newBuilder((com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_) - .mergeFrom(value).buildPartial(); + if (conditionCase_ == 21 + && condition_ + != com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance()) { + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .newBuilder( + (com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageCondition) + condition_) + .mergeFrom(value) + .buildPartial(); } else { condition_ = value; } @@ -16509,11 +18691,15 @@ public Builder mergeConditionPrometheusQueryLanguage(com.google.monitoring.v3.Al return this; } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ public Builder clearConditionPrometheusQueryLanguage() { if (conditionPrometheusQueryLanguageBuilder_ == null) { @@ -16532,50 +18718,79 @@ public Builder clearConditionPrometheusQueryLanguage() { return this; } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder getConditionPrometheusQueryLanguageBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder + getConditionPrometheusQueryLanguageBuilder() { return getConditionPrometheusQueryLanguageFieldBuilder().getBuilder(); } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageConditionOrBuilder + getConditionPrometheusQueryLanguageOrBuilder() { if ((conditionCase_ == 21) && (conditionPrometheusQueryLanguageBuilder_ != null)) { return conditionPrometheusQueryLanguageBuilder_.getMessageOrBuilder(); } else { if (conditionCase_ == 21) { - return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_; + return (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_; } - return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); + return com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); } } /** + * + * *
        * A condition that uses the Prometheus query language to define alerts.
        * 
* - * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * + * .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder> + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageConditionOrBuilder> getConditionPrometheusQueryLanguageFieldBuilder() { if (conditionPrometheusQueryLanguageBuilder_ == null) { if (!(conditionCase_ == 21)) { - condition_ = com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.getDefaultInstance(); - } - conditionPrometheusQueryLanguageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.Builder, com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder>( - (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) condition_, + condition_ = + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .getDefaultInstance(); + } + conditionPrometheusQueryLanguageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition, + com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition + .Builder, + com.google.monitoring.v3.AlertPolicy.Condition + .PrometheusQueryLanguageConditionOrBuilder>( + (com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition) + condition_, getParentForChildren(), isClean()); condition_ = null; @@ -16584,6 +18799,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCon onChanged(); return conditionPrometheusQueryLanguageBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16596,12 +18812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Condition) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) private static final com.google.monitoring.v3.AlertPolicy.Condition DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Condition(); } @@ -16610,27 +18826,28 @@ public static com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16645,67 +18862,91 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AlertStrategyOrBuilder extends + public interface AlertStrategyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return Whether the notificationRateLimit field is set. */ boolean hasNotificationRateLimit(); /** + * + * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return The notificationRateLimit. */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit(); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + getNotificationRateLimit(); /** + * + * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder(); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder + getNotificationRateLimitOrBuilder(); /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; + * * @return Whether the autoClose field is set. */ boolean hasAutoClose(); /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; + * * @return The autoClose. */ com.google.protobuf.Duration getAutoClose(); /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
@@ -16716,50 +18957,76 @@ public interface AlertStrategyOrBuilder extends
     com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder();
 
     /**
+     *
+     *
      * 
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - java.util.List + java.util.List getNotificationChannelStrategyList(); /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + getNotificationChannelStrategy(int index); /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ int getNotificationChannelStrategyCount(); /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - java.util.List + java.util.List< + ? extends + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategyOrBuilder> getNotificationChannelStrategyOrBuilderList(); /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( - int index); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder + getNotificationChannelStrategyOrBuilder(int index); } /** + * + * *
    * Control over how the notification channels in `notification_channels`
    * are notified when this alert fires.
@@ -16767,62 +19034,73 @@ com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOr
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy}
    */
-  public static final class AlertStrategy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AlertStrategy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy)
       AlertStrategyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AlertStrategy.newBuilder() to construct.
     private AlertStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AlertStrategy() {
       notificationChannelStrategy_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AlertStrategy();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.AlertStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.class,
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
     }
 
-    public interface NotificationRateLimitOrBuilder extends
+    public interface NotificationRateLimitOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Not more than one notification per `period`.
        * 
* * .google.protobuf.Duration period = 1; + * * @return Whether the period field is set. */ boolean hasPeriod(); /** + * + * *
        * Not more than one notification per `period`.
        * 
* * .google.protobuf.Duration period = 1; + * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** + * + * *
        * Not more than one notification per `period`.
        * 
@@ -16832,6 +19110,8 @@ public interface NotificationRateLimitOrBuilder extends com.google.protobuf.DurationOrBuilder getPeriodOrBuilder(); } /** + * + * *
      * Control over the rate of notifications sent to this alert policy's
      * notification channels.
@@ -16839,46 +19119,51 @@ public interface NotificationRateLimitOrBuilder extends
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit}
      */
-    public static final class NotificationRateLimit extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class NotificationRateLimit extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
         NotificationRateLimitOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use NotificationRateLimit.newBuilder() to construct.
       private NotificationRateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private NotificationRateLimit() {
-      }
+
+      private NotificationRateLimit() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new NotificationRateLimit();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class,
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
+                    .class);
       }
 
       public static final int PERIOD_FIELD_NUMBER = 1;
       private com.google.protobuf.Duration period_;
       /**
+       *
+       *
        * 
        * Not more than one notification per `period`.
        * 
* * .google.protobuf.Duration period = 1; + * * @return Whether the period field is set. */ @java.lang.Override @@ -16886,11 +19171,14 @@ public boolean hasPeriod() { return period_ != null; } /** + * + * *
        * Not more than one notification per `period`.
        * 
* * .google.protobuf.Duration period = 1; + * * @return The period. */ @java.lang.Override @@ -16898,6 +19186,8 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** + * + * *
        * Not more than one notification per `period`.
        * 
@@ -16910,6 +19200,7 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16921,8 +19212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (period_ != null) { output.writeMessage(1, getPeriod()); } @@ -16936,8 +19226,7 @@ public int getSerializedSize() { size = 0; if (period_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPeriod()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16947,17 +19236,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)) { + if (!(obj + instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) obj; + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other = + (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) obj; if (hasPeriod() != other.hasPeriod()) return false; if (hasPeriod()) { - if (!getPeriod() - .equals(other.getPeriod())) return false; + if (!getPeriod().equals(other.getPeriod())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -16979,90 +19269,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -17072,6 +19375,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Control over the rate of notifications sent to this alert policy's
        * notification channels.
@@ -17079,33 +19384,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)
           com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder.class);
+                  com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.class,
+                  com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
+                      .class);
         }
 
-        // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.newBuilder()
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -17119,19 +19426,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.AlertProto
+              .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstanceForType() {
-          return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance();
+        public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+            getDefaultInstanceForType() {
+          return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit build() {
-          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = buildPartial();
+          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -17139,19 +19449,22 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit buildPartial() {
-          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+        public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+            buildPartial() {
+          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result =
+              new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.period_ = periodBuilder_ == null
-                ? period_
-                : periodBuilder_.build();
+            result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build();
           }
         }
 
@@ -17159,46 +19472,54 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.No
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) {
-            return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit)other);
+          if (other
+              instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) {
+            return mergeFrom(
+                (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other) {
-          if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit other) {
+          if (other
+              == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+                  .getDefaultInstance()) return this;
           if (other.hasPeriod()) {
             mergePeriod(other.getPeriod());
           }
@@ -17228,50 +19549,60 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  input.readMessage(
-                      getPeriodFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
-              } // switch (tag)
-            } // while (!done)
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.unwrapIOException();
-          } finally {
-            onChanged();
-          } // finally
+                case 10:
+                  {
+                    input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
+              } // switch (tag)
+            } // while (!done)
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.unwrapIOException();
+          } finally {
+            onChanged();
+          } // finally
           return this;
         }
+
         private int bitField0_;
 
         private com.google.protobuf.Duration period_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_;
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
+            periodBuilder_;
         /**
+         *
+         *
          * 
          * Not more than one notification per `period`.
          * 
* * .google.protobuf.Duration period = 1; + * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
          * Not more than one notification per `period`.
          * 
* * .google.protobuf.Duration period = 1; + * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -17282,6 +19613,8 @@ public com.google.protobuf.Duration getPeriod() { } } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17302,14 +19635,15 @@ public Builder setPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Not more than one notification per `period`.
          * 
* * .google.protobuf.Duration period = 1; */ - public Builder setPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (periodBuilder_ == null) { period_ = builderForValue.build(); } else { @@ -17320,6 +19654,8 @@ public Builder setPeriod( return this; } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17328,9 +19664,9 @@ public Builder setPeriod( */ public Builder mergePeriod(com.google.protobuf.Duration value) { if (periodBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - period_ != null && - period_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && period_ != null + && period_ != com.google.protobuf.Duration.getDefaultInstance()) { getPeriodBuilder().mergeFrom(value); } else { period_ = value; @@ -17343,6 +19679,8 @@ public Builder mergePeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17360,6 +19698,8 @@ public Builder clearPeriod() { return this; } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17372,6 +19712,8 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() { return getPeriodFieldBuilder().getBuilder(); } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17382,11 +19724,12 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { if (periodBuilder_ != null) { return periodBuilder_.getMessageOrBuilder(); } else { - return period_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : period_; + return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } } /** + * + * *
          * Not more than one notification per `period`.
          * 
@@ -17394,18 +19737,22 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { * .google.protobuf.Duration period = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getPeriodFieldBuilder() { if (periodBuilder_ == null) { - periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getPeriod(), - getParentForChildren(), - isClean()); + periodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPeriod(), getParentForChildren(), isClean()); period_ = null; } return periodBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -17418,41 +19765,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) - private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit(); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstance() { + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationRateLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationRateLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -17464,17 +19815,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstanceForType() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface NotificationChannelStrategyOrBuilder extends + public interface NotificationChannelStrategyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17486,11 +19840,13 @@ public interface NotificationChannelStrategyOrBuilder extends
        * 
* * repeated string notification_channel_names = 1; + * * @return A list containing the notificationChannelNames. */ - java.util.List - getNotificationChannelNamesList(); + java.util.List getNotificationChannelNamesList(); /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17502,10 +19858,13 @@ public interface NotificationChannelStrategyOrBuilder extends
        * 
* * repeated string notification_channel_names = 1; + * * @return The count of notificationChannelNames. */ int getNotificationChannelNamesCount(); /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17517,11 +19876,14 @@ public interface NotificationChannelStrategyOrBuilder extends
        * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the element to return. * @return The notificationChannelNames at the given index. */ java.lang.String getNotificationChannelNames(int index); /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17533,33 +19895,41 @@ public interface NotificationChannelStrategyOrBuilder extends
        * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the value to return. * @return The bytes of the notificationChannelNames at the given index. */ - com.google.protobuf.ByteString - getNotificationChannelNamesBytes(int index); + com.google.protobuf.ByteString getNotificationChannelNamesBytes(int index); /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
        * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return Whether the renotifyInterval field is set. */ boolean hasRenotifyInterval(); /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
        * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return The renotifyInterval. */ com.google.protobuf.Duration getRenotifyInterval(); /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
@@ -17570,52 +19940,63 @@ public interface NotificationChannelStrategyOrBuilder extends
       com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder();
     }
     /**
+     *
+     *
      * 
      * Control over how the notification channels in `notification_channels`
      * are notified when this alert fires, on a per-channel basis.
      * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} */ - public static final class NotificationChannelStrategy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class NotificationChannelStrategy + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) NotificationChannelStrategyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NotificationChannelStrategy.newBuilder() to construct. - private NotificationChannelStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private NotificationChannelStrategy( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NotificationChannelStrategy() { - notificationChannelNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + notificationChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotificationChannelStrategy(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder.class); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .class, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .Builder.class); } public static final int NOTIFICATION_CHANNEL_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList notificationChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17627,13 +20008,15 @@ protected java.lang.Object newInstance(
        * 
* * repeated string notification_channel_names = 1; + * * @return A list containing the notificationChannelNames. */ - public com.google.protobuf.ProtocolStringList - getNotificationChannelNamesList() { + public com.google.protobuf.ProtocolStringList getNotificationChannelNamesList() { return notificationChannelNames_; } /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17645,12 +20028,15 @@ protected java.lang.Object newInstance(
        * 
* * repeated string notification_channel_names = 1; + * * @return The count of notificationChannelNames. */ public int getNotificationChannelNamesCount() { return notificationChannelNames_.size(); } /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17662,6 +20048,7 @@ public int getNotificationChannelNamesCount() {
        * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the element to return. * @return The notificationChannelNames at the given index. */ @@ -17669,6 +20056,8 @@ public java.lang.String getNotificationChannelNames(int index) { return notificationChannelNames_.get(index); } /** + * + * *
        * The full REST resource name for the notification channels that these
        * settings apply to. Each of these correspond to the name field in one
@@ -17680,23 +20069,26 @@ public java.lang.String getNotificationChannelNames(int index) {
        * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the value to return. * @return The bytes of the notificationChannelNames at the given index. */ - public com.google.protobuf.ByteString - getNotificationChannelNamesBytes(int index) { + public com.google.protobuf.ByteString getNotificationChannelNamesBytes(int index) { return notificationChannelNames_.getByteString(index); } public static final int RENOTIFY_INTERVAL_FIELD_NUMBER = 2; private com.google.protobuf.Duration renotifyInterval_; /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
        * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return Whether the renotifyInterval field is set. */ @java.lang.Override @@ -17704,19 +20096,26 @@ public boolean hasRenotifyInterval() { return renotifyInterval_ != null; } /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
        * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return The renotifyInterval. */ @java.lang.Override public com.google.protobuf.Duration getRenotifyInterval() { - return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; + return renotifyInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : renotifyInterval_; } /** + * + * *
        * The frequency at which to send reminder notifications for open
        * incidents.
@@ -17726,10 +20125,13 @@ public com.google.protobuf.Duration getRenotifyInterval() {
        */
       @java.lang.Override
       public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder() {
-        return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_;
+        return renotifyInterval_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : renotifyInterval_;
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -17741,10 +20143,10 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < notificationChannelNames_.size(); i++) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationChannelNames_.getRaw(i));
+          com.google.protobuf.GeneratedMessageV3.writeString(
+              output, 1, notificationChannelNames_.getRaw(i));
         }
         if (renotifyInterval_ != null) {
           output.writeMessage(2, getRenotifyInterval());
@@ -17767,8 +20169,8 @@ public int getSerializedSize() {
           size += 1 * getNotificationChannelNamesList().size();
         }
         if (renotifyInterval_ != null) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(2, getRenotifyInterval());
+          size +=
+              com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRenotifyInterval());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -17778,19 +20180,21 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
-        if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)) {
+        if (!(obj
+            instanceof
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)) {
           return super.equals(obj);
         }
-        com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) obj;
+        com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other =
+            (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) obj;
 
-        if (!getNotificationChannelNamesList()
-            .equals(other.getNotificationChannelNamesList())) return false;
+        if (!getNotificationChannelNamesList().equals(other.getNotificationChannelNamesList()))
+          return false;
         if (hasRenotifyInterval() != other.hasRenotifyInterval()) return false;
         if (hasRenotifyInterval()) {
-          if (!getRenotifyInterval()
-              .equals(other.getRenotifyInterval())) return false;
+          if (!getRenotifyInterval().equals(other.getRenotifyInterval())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
@@ -17816,90 +20220,104 @@ public int hashCode() {
         return hash;
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(java.nio.ByteBuffer data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(
+              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(com.google.protobuf.ByteString data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(
+              com.google.protobuf.ByteString data,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseDelimitedFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseDelimitedFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+            PARSER, input, extensionRegistry);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy parseFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          parseFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() { return newBuilder(); }
+      public Builder newBuilderForType() {
+        return newBuilder();
+      }
+
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy prototype) {
+
+      public static Builder newBuilder(
+          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+              prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
+
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
-            ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -17909,46 +20327,51 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * Control over how the notification channels in `notification_channels`
        * are notified when this alert fires, on a per-channel basis.
        * 
* - * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} + * Protobuf type {@code + * google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder.class); + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .class, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .Builder.class); } - // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - notificationChannelNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + notificationChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); renotifyInterval_ = null; if (renotifyIntervalBuilder_ != null) { renotifyIntervalBuilder_.dispose(); @@ -17958,19 +20381,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType() { - return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance(); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .getDefaultInstance(); } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy build() { - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = buildPartial(); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + build() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17978,23 +20405,30 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStr } @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy buildPartial() { - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + buildPartial() { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result = + new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result) { + private void buildPartial0( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { notificationChannelNames_.makeImmutable(); result.notificationChannelNames_ = notificationChannelNames_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.renotifyInterval_ = renotifyIntervalBuilder_ == null - ? renotifyInterval_ - : renotifyIntervalBuilder_.build(); + result.renotifyInterval_ = + renotifyIntervalBuilder_ == null + ? renotifyInterval_ + : renotifyIntervalBuilder_.build(); } } @@ -18002,46 +20436,56 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy.No public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) { - return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)other); + if (other + instanceof + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) { + return mergeFrom( + (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other) { - if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy other) { + if (other + == com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .getDefaultInstance()) return this; if (!other.notificationChannelNames_.isEmpty()) { if (notificationChannelNames_.isEmpty()) { notificationChannelNames_ = other.notificationChannelNames_; @@ -18081,25 +20525,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNotificationChannelNamesIsMutable(); - notificationChannelNames_.add(s); - break; - } // case 10 - case 18: { - input.readMessage( - getRenotifyIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNotificationChannelNamesIsMutable(); + notificationChannelNames_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage( + getRenotifyIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -18109,17 +20555,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList notificationChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNotificationChannelNamesIsMutable() { if (!notificationChannelNames_.isModifiable()) { - notificationChannelNames_ = new com.google.protobuf.LazyStringArrayList(notificationChannelNames_); + notificationChannelNames_ = + new com.google.protobuf.LazyStringArrayList(notificationChannelNames_); } bitField0_ |= 0x00000001; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18131,14 +20582,16 @@ private void ensureNotificationChannelNamesIsMutable() {
          * 
* * repeated string notification_channel_names = 1; + * * @return A list containing the notificationChannelNames. */ - public com.google.protobuf.ProtocolStringList - getNotificationChannelNamesList() { + public com.google.protobuf.ProtocolStringList getNotificationChannelNamesList() { notificationChannelNames_.makeImmutable(); return notificationChannelNames_; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18150,12 +20603,15 @@ private void ensureNotificationChannelNamesIsMutable() {
          * 
* * repeated string notification_channel_names = 1; + * * @return The count of notificationChannelNames. */ public int getNotificationChannelNamesCount() { return notificationChannelNames_.size(); } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18167,6 +20623,7 @@ public int getNotificationChannelNamesCount() {
          * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the element to return. * @return The notificationChannelNames at the given index. */ @@ -18174,6 +20631,8 @@ public java.lang.String getNotificationChannelNames(int index) { return notificationChannelNames_.get(index); } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18185,14 +20644,16 @@ public java.lang.String getNotificationChannelNames(int index) {
          * 
* * repeated string notification_channel_names = 1; + * * @param index The index of the value to return. * @return The bytes of the notificationChannelNames at the given index. */ - public com.google.protobuf.ByteString - getNotificationChannelNamesBytes(int index) { + public com.google.protobuf.ByteString getNotificationChannelNamesBytes(int index) { return notificationChannelNames_.getByteString(index); } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18204,13 +20665,15 @@ public java.lang.String getNotificationChannelNames(int index) {
          * 
* * repeated string notification_channel_names = 1; + * * @param index The index to set the value at. * @param value The notificationChannelNames to set. * @return This builder for chaining. */ - public Builder setNotificationChannelNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNotificationChannelNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNotificationChannelNamesIsMutable(); notificationChannelNames_.set(index, value); bitField0_ |= 0x00000001; @@ -18218,6 +20681,8 @@ public Builder setNotificationChannelNames( return this; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18229,12 +20694,14 @@ public Builder setNotificationChannelNames(
          * 
* * repeated string notification_channel_names = 1; + * * @param value The notificationChannelNames to add. * @return This builder for chaining. */ - public Builder addNotificationChannelNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNotificationChannelNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNotificationChannelNamesIsMutable(); notificationChannelNames_.add(value); bitField0_ |= 0x00000001; @@ -18242,6 +20709,8 @@ public Builder addNotificationChannelNames( return this; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18253,19 +20722,20 @@ public Builder addNotificationChannelNames(
          * 
* * repeated string notification_channel_names = 1; + * * @param values The notificationChannelNames to add. * @return This builder for chaining. */ - public Builder addAllNotificationChannelNames( - java.lang.Iterable values) { + public Builder addAllNotificationChannelNames(java.lang.Iterable values) { ensureNotificationChannelNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationChannelNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannelNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18277,16 +20747,19 @@ public Builder addAllNotificationChannelNames(
          * 
* * repeated string notification_channel_names = 1; + * * @return This builder for chaining. */ public Builder clearNotificationChannelNames() { - notificationChannelNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + notificationChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
          * The full REST resource name for the notification channels that these
          * settings apply to. Each of these correspond to the name field in one
@@ -18298,12 +20771,14 @@ public Builder clearNotificationChannelNames() {
          * 
* * repeated string notification_channel_names = 1; + * * @param value The bytes of the notificationChannelNames to add. * @return This builder for chaining. */ - public Builder addNotificationChannelNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNotificationChannelNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureNotificationChannelNamesIsMutable(); notificationChannelNames_.add(value); @@ -18314,36 +20789,49 @@ public Builder addNotificationChannelNamesBytes( private com.google.protobuf.Duration renotifyInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> renotifyIntervalBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + renotifyIntervalBuilder_; /** + * + * *
          * The frequency at which to send reminder notifications for open
          * incidents.
          * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return Whether the renotifyInterval field is set. */ public boolean hasRenotifyInterval() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * The frequency at which to send reminder notifications for open
          * incidents.
          * 
* * .google.protobuf.Duration renotify_interval = 2; + * * @return The renotifyInterval. */ public com.google.protobuf.Duration getRenotifyInterval() { if (renotifyIntervalBuilder_ == null) { - return renotifyInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_; + return renotifyInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : renotifyInterval_; } else { return renotifyIntervalBuilder_.getMessage(); } } /** + * + * *
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18365,6 +20853,8 @@ public Builder setRenotifyInterval(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18372,8 +20862,7 @@ public Builder setRenotifyInterval(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration renotify_interval = 2;
          */
-        public Builder setRenotifyInterval(
-            com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder setRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue) {
           if (renotifyIntervalBuilder_ == null) {
             renotifyInterval_ = builderForValue.build();
           } else {
@@ -18384,6 +20873,8 @@ public Builder setRenotifyInterval(
           return this;
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18393,9 +20884,9 @@ public Builder setRenotifyInterval(
          */
         public Builder mergeRenotifyInterval(com.google.protobuf.Duration value) {
           if (renotifyIntervalBuilder_ == null) {
-            if (((bitField0_ & 0x00000002) != 0) &&
-              renotifyInterval_ != null &&
-              renotifyInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000002) != 0)
+                && renotifyInterval_ != null
+                && renotifyInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
               getRenotifyIntervalBuilder().mergeFrom(value);
             } else {
               renotifyInterval_ = value;
@@ -18408,6 +20899,8 @@ public Builder mergeRenotifyInterval(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18426,6 +20919,8 @@ public Builder clearRenotifyInterval() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18439,6 +20934,8 @@ public com.google.protobuf.Duration.Builder getRenotifyIntervalBuilder() {
           return getRenotifyIntervalFieldBuilder().getBuilder();
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18450,11 +20947,14 @@ public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder() {
           if (renotifyIntervalBuilder_ != null) {
             return renotifyIntervalBuilder_.getMessageOrBuilder();
           } else {
-            return renotifyInterval_ == null ?
-                com.google.protobuf.Duration.getDefaultInstance() : renotifyInterval_;
+            return renotifyInterval_ == null
+                ? com.google.protobuf.Duration.getDefaultInstance()
+                : renotifyInterval_;
           }
         }
         /**
+         *
+         *
          * 
          * The frequency at which to send reminder notifications for open
          * incidents.
@@ -18463,18 +20963,22 @@ public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder() {
          * .google.protobuf.Duration renotify_interval = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
             getRenotifyIntervalFieldBuilder() {
           if (renotifyIntervalBuilder_ == null) {
-            renotifyIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                    getRenotifyInterval(),
-                    getParentForChildren(),
-                    isClean());
+            renotifyIntervalBuilder_ =
+                new com.google.protobuf.SingleFieldBuilderV3<
+                    com.google.protobuf.Duration,
+                    com.google.protobuf.Duration.Builder,
+                    com.google.protobuf.DurationOrBuilder>(
+                    getRenotifyInterval(), getParentForChildren(), isClean());
             renotifyInterval_ = null;
           }
           return renotifyIntervalBuilder_;
         }
+
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -18487,41 +20991,46 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
-
         // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)
       }
 
       // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy)
-      private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy DEFAULT_INSTANCE;
+      private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy
+              .NotificationChannelStrategy
+          DEFAULT_INSTANCE;
+
       static {
-        DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy();
+        DEFAULT_INSTANCE =
+            new com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy();
       }
 
-      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstance() {
+      public static com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public NotificationChannelStrategy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+      private static final com.google.protobuf.Parser PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public NotificationChannelStrategy parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              Builder builder = newBuilder();
+              try {
+                builder.mergeFrom(input, extensionRegistry);
+              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(builder.buildPartial());
+              } catch (com.google.protobuf.UninitializedMessageException e) {
+                throw e.asInvalidProtocolBufferException()
+                    .setUnfinishedMessage(builder.buildPartial());
+              } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                    .setUnfinishedMessage(builder.buildPartial());
+              }
+              return builder.buildPartial();
+            }
+          };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -18533,22 +21042,28 @@ public com.google.protobuf.Parser getParserForType(
       }
 
       @java.lang.Override
-      public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType() {
+      public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+          getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
-
     }
 
     public static final int NOTIFICATION_RATE_LIMIT_FIELD_NUMBER = 1;
-    private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notificationRateLimit_;
+    private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+        notificationRateLimit_;
     /**
+     *
+     *
      * 
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return Whether the notificationRateLimit field is set. */ @java.lang.Override @@ -18556,42 +21071,62 @@ public boolean hasNotificationRateLimit() { return notificationRateLimit_ != null; } /** + * + * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return The notificationRateLimit. */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit() { - return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + getNotificationRateLimit() { + return notificationRateLimit_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + .getDefaultInstance() + : notificationRateLimit_; } /** + * + * *
      * Required for alert policies with a `LogMatch` condition.
      *
      * This limit is not implemented for alert policies that are not log-based.
      * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder() { - return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder + getNotificationRateLimitOrBuilder() { + return notificationRateLimit_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + .getDefaultInstance() + : notificationRateLimit_; } public static final int AUTO_CLOSE_FIELD_NUMBER = 3; private com.google.protobuf.Duration autoClose_; /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; + * * @return Whether the autoClose field is set. */ @java.lang.Override @@ -18599,12 +21134,15 @@ public boolean hasAutoClose() { return autoClose_ != null; } /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
      * 
* * .google.protobuf.Duration auto_close = 3; + * * @return The autoClose. */ @java.lang.Override @@ -18612,6 +21150,8 @@ public com.google.protobuf.Duration getAutoClose() { return autoClose_ == null ? com.google.protobuf.Duration.getDefaultInstance() : autoClose_; } /** + * + * *
      * If an alert policy that was active has no data for this long, any open
      * incidents will close
@@ -18625,67 +21165,97 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() {
     }
 
     public static final int NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER = 4;
+
     @SuppressWarnings("serial")
-    private java.util.List notificationChannelStrategy_;
+    private java.util.List<
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy>
+        notificationChannelStrategy_;
     /**
+     *
+     *
      * 
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ @java.lang.Override - public java.util.List getNotificationChannelStrategyList() { + public java.util.List< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy> + getNotificationChannelStrategyList() { return notificationChannelStrategy_; } /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategyOrBuilder> getNotificationChannelStrategyOrBuilderList() { return notificationChannelStrategy_; } /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ @java.lang.Override public int getNotificationChannelStrategyCount() { return notificationChannelStrategy_.size(); } /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index) { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + getNotificationChannelStrategy(int index) { return notificationChannelStrategy_.get(index); } /** + * + * *
      * Control how notifications will be sent out, on a per-channel basis.
      * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder + getNotificationChannelStrategyOrBuilder(int index) { return notificationChannelStrategy_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -18697,8 +21267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (notificationRateLimit_ != null) { output.writeMessage(1, getNotificationRateLimit()); } @@ -18718,16 +21287,16 @@ public int getSerializedSize() { size = 0; if (notificationRateLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNotificationRateLimit()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationRateLimit()); } if (autoClose_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAutoClose()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutoClose()); } for (int i = 0; i < notificationChannelStrategy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, notificationChannelStrategy_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, notificationChannelStrategy_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -18737,25 +21306,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy)) { return super.equals(obj); } - com.google.monitoring.v3.AlertPolicy.AlertStrategy other = (com.google.monitoring.v3.AlertPolicy.AlertStrategy) obj; + com.google.monitoring.v3.AlertPolicy.AlertStrategy other = + (com.google.monitoring.v3.AlertPolicy.AlertStrategy) obj; if (hasNotificationRateLimit() != other.hasNotificationRateLimit()) return false; if (hasNotificationRateLimit()) { - if (!getNotificationRateLimit() - .equals(other.getNotificationRateLimit())) return false; + if (!getNotificationRateLimit().equals(other.getNotificationRateLimit())) return false; } if (hasAutoClose() != other.hasAutoClose()) return false; if (hasAutoClose()) { - if (!getAutoClose() - .equals(other.getAutoClose())) return false; + if (!getAutoClose().equals(other.getAutoClose())) return false; } - if (!getNotificationChannelStrategyList() - .equals(other.getNotificationChannelStrategyList())) return false; + if (!getNotificationChannelStrategyList().equals(other.getNotificationChannelStrategyList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18785,89 +21353,93 @@ public int hashCode() { } public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy.AlertStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy.AlertStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -18877,6 +21449,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Control over how the notification channels in `notification_channels`
      * are notified when this alert fires.
@@ -18884,33 +21458,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.AlertPolicy.AlertStrategy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.AlertStrategy)
         com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.AlertPolicy.AlertStrategy.class, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.class,
+                com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.AlertPolicy.AlertStrategy.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -18936,9 +21510,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.AlertProto
+            .internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor;
       }
 
       @java.lang.Override
@@ -18957,17 +21531,22 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.AlertPolicy.AlertStrategy buildPartial() {
-        com.google.monitoring.v3.AlertPolicy.AlertStrategy result = new com.google.monitoring.v3.AlertPolicy.AlertStrategy(this);
+        com.google.monitoring.v3.AlertPolicy.AlertStrategy result =
+            new com.google.monitoring.v3.AlertPolicy.AlertStrategy(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.AlertStrategy result) {
+      private void buildPartialRepeatedFields(
+          com.google.monitoring.v3.AlertPolicy.AlertStrategy result) {
         if (notificationChannelStrategyBuilder_ == null) {
           if (((bitField0_ & 0x00000004) != 0)) {
-            notificationChannelStrategy_ = java.util.Collections.unmodifiableList(notificationChannelStrategy_);
+            notificationChannelStrategy_ =
+                java.util.Collections.unmodifiableList(notificationChannelStrategy_);
             bitField0_ = (bitField0_ & ~0x00000004);
           }
           result.notificationChannelStrategy_ = notificationChannelStrategy_;
@@ -18979,14 +21558,13 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.AlertPolicy.Ale
       private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.notificationRateLimit_ = notificationRateLimitBuilder_ == null
-              ? notificationRateLimit_
-              : notificationRateLimitBuilder_.build();
+          result.notificationRateLimit_ =
+              notificationRateLimitBuilder_ == null
+                  ? notificationRateLimit_
+                  : notificationRateLimitBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.autoClose_ = autoCloseBuilder_ == null
-              ? autoClose_
-              : autoCloseBuilder_.build();
+          result.autoClose_ = autoCloseBuilder_ == null ? autoClose_ : autoCloseBuilder_.build();
         }
       }
 
@@ -18994,38 +21572,41 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy re
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.AlertPolicy.AlertStrategy) {
-          return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy)other);
+          return mergeFrom((com.google.monitoring.v3.AlertPolicy.AlertStrategy) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -19033,7 +21614,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy other) {
-        if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance())
+          return this;
         if (other.hasNotificationRateLimit()) {
           mergeNotificationRateLimit(other.getNotificationRateLimit());
         }
@@ -19058,11 +21640,13 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy othe
               notificationChannelStrategyBuilder_ = null;
               notificationChannelStrategy_ = other.notificationChannelStrategy_;
               bitField0_ = (bitField0_ & ~0x00000004);
-              notificationChannelStrategyBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getNotificationChannelStrategyFieldBuilder() : null;
+              notificationChannelStrategyBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getNotificationChannelStrategyFieldBuilder()
+                      : null;
             } else {
-              notificationChannelStrategyBuilder_.addAllMessages(other.notificationChannelStrategy_);
+              notificationChannelStrategyBuilder_.addAllMessages(
+                  other.notificationChannelStrategy_);
             }
           }
         }
@@ -19092,39 +21676,41 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getNotificationRateLimitFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 26: {
-                input.readMessage(
-                    getAutoCloseFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-              case 34: {
-                com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy m =
-                    input.readMessage(
-                        com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.parser(),
-                        extensionRegistry);
-                if (notificationChannelStrategyBuilder_ == null) {
-                  ensureNotificationChannelStrategyIsMutable();
-                  notificationChannelStrategy_.add(m);
-                } else {
-                  notificationChannelStrategyBuilder_.addMessage(m);
-                }
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getNotificationRateLimitFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 26:
+                {
+                  input.readMessage(getAutoCloseFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy m =
+                      input.readMessage(
+                          com.google.monitoring.v3.AlertPolicy.AlertStrategy
+                              .NotificationChannelStrategy.parser(),
+                          extensionRegistry);
+                  if (notificationChannelStrategyBuilder_ == null) {
+                    ensureNotificationChannelStrategyIsMutable();
+                    notificationChannelStrategy_.add(m);
+                  } else {
+                    notificationChannelStrategyBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -19134,51 +21720,75 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notificationRateLimit_;
+      private com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit
+          notificationRateLimit_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> notificationRateLimitBuilder_;
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit,
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder,
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>
+          notificationRateLimitBuilder_;
       /**
+       *
+       *
        * 
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return Whether the notificationRateLimit field is set. */ public boolean hasNotificationRateLimit() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * * @return The notificationRateLimit. */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + getNotificationRateLimit() { if (notificationRateLimitBuilder_ == null) { - return notificationRateLimit_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; + return notificationRateLimit_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + .getDefaultInstance() + : notificationRateLimit_; } else { return notificationRateLimitBuilder_.getMessage(); } } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ - public Builder setNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { + public Builder setNotificationRateLimit( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { if (notificationRateLimitBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19192,16 +21802,21 @@ public Builder setNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.Ale return this; } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ public Builder setNotificationRateLimit( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue) { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder + builderForValue) { if (notificationRateLimitBuilder_ == null) { notificationRateLimit_ = builderForValue.build(); } else { @@ -19212,19 +21827,26 @@ public Builder setNotificationRateLimit( return this; } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ - public Builder mergeNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { + public Builder mergeNotificationRateLimit( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit value) { if (notificationRateLimitBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - notificationRateLimit_ != null && - notificationRateLimit_ != com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && notificationRateLimit_ != null + && notificationRateLimit_ + != com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + .getDefaultInstance()) { getNotificationRateLimitBuilder().mergeFrom(value); } else { notificationRateLimit_ = value; @@ -19237,13 +21859,17 @@ public Builder mergeNotificationRateLimit(com.google.monitoring.v3.AlertPolicy.A return this; } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ public Builder clearNotificationRateLimit() { bitField0_ = (bitField0_ & ~0x00000001); @@ -19256,54 +21882,74 @@ public Builder clearNotificationRateLimit() { return this; } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder getNotificationRateLimitBuilder() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder + getNotificationRateLimitBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNotificationRateLimitFieldBuilder().getBuilder(); } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder + getNotificationRateLimitOrBuilder() { if (notificationRateLimitBuilder_ != null) { return notificationRateLimitBuilder_.getMessageOrBuilder(); } else { - return notificationRateLimit_ == null ? - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.getDefaultInstance() : notificationRateLimit_; + return notificationRateLimit_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit + .getDefaultInstance() + : notificationRateLimit_; } } /** + * + * *
        * Required for alert policies with a `LogMatch` condition.
        *
        * This limit is not implemented for alert policies that are not log-based.
        * 
* - * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * + * .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder> getNotificationRateLimitFieldBuilder() { if (notificationRateLimitBuilder_ == null) { - notificationRateLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder>( - getNotificationRateLimit(), - getParentForChildren(), - isClean()); + notificationRateLimitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit.Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationRateLimitOrBuilder>( + getNotificationRateLimit(), getParentForChildren(), isClean()); notificationRateLimit_ = null; } return notificationRateLimitBuilder_; @@ -19311,36 +21957,49 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimitO private com.google.protobuf.Duration autoClose_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> autoCloseBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + autoCloseBuilder_; /** + * + * *
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
        * 
* * .google.protobuf.Duration auto_close = 3; + * * @return Whether the autoClose field is set. */ public boolean hasAutoClose() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
        * 
* * .google.protobuf.Duration auto_close = 3; + * * @return The autoClose. */ public com.google.protobuf.Duration getAutoClose() { if (autoCloseBuilder_ == null) { - return autoClose_ == null ? com.google.protobuf.Duration.getDefaultInstance() : autoClose_; + return autoClose_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : autoClose_; } else { return autoCloseBuilder_.getMessage(); } } /** + * + * *
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19362,6 +22021,8 @@ public Builder setAutoClose(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19369,8 +22030,7 @@ public Builder setAutoClose(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration auto_close = 3;
        */
-      public Builder setAutoClose(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setAutoClose(com.google.protobuf.Duration.Builder builderForValue) {
         if (autoCloseBuilder_ == null) {
           autoClose_ = builderForValue.build();
         } else {
@@ -19381,6 +22041,8 @@ public Builder setAutoClose(
         return this;
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19390,9 +22052,9 @@ public Builder setAutoClose(
        */
       public Builder mergeAutoClose(com.google.protobuf.Duration value) {
         if (autoCloseBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            autoClose_ != null &&
-            autoClose_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && autoClose_ != null
+              && autoClose_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getAutoCloseBuilder().mergeFrom(value);
           } else {
             autoClose_ = value;
@@ -19405,6 +22067,8 @@ public Builder mergeAutoClose(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19423,6 +22087,8 @@ public Builder clearAutoClose() {
         return this;
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19436,6 +22102,8 @@ public com.google.protobuf.Duration.Builder getAutoCloseBuilder() {
         return getAutoCloseFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19447,11 +22115,14 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() {
         if (autoCloseBuilder_ != null) {
           return autoCloseBuilder_.getMessageOrBuilder();
         } else {
-          return autoClose_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : autoClose_;
+          return autoClose_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : autoClose_;
         }
       }
       /**
+       *
+       *
        * 
        * If an alert policy that was active has no data for this long, any open
        * incidents will close
@@ -19460,39 +22131,58 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() {
        * .google.protobuf.Duration auto_close = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getAutoCloseFieldBuilder() {
         if (autoCloseBuilder_ == null) {
-          autoCloseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getAutoClose(),
-                  getParentForChildren(),
-                  isClean());
+          autoCloseBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getAutoClose(), getParentForChildren(), isClean());
           autoClose_ = null;
         }
         return autoCloseBuilder_;
       }
 
-      private java.util.List notificationChannelStrategy_ =
-        java.util.Collections.emptyList();
+      private java.util.List<
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy>
+          notificationChannelStrategy_ = java.util.Collections.emptyList();
+
       private void ensureNotificationChannelStrategyIsMutable() {
         if (!((bitField0_ & 0x00000004) != 0)) {
-          notificationChannelStrategy_ = new java.util.ArrayList(notificationChannelStrategy_);
+          notificationChannelStrategy_ =
+              new java.util.ArrayList<
+                  com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy>(
+                  notificationChannelStrategy_);
           bitField0_ |= 0x00000004;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> notificationChannelStrategyBuilder_;
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy,
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
+                  .Builder,
+              com.google.monitoring.v3.AlertPolicy.AlertStrategy
+                  .NotificationChannelStrategyOrBuilder>
+          notificationChannelStrategyBuilder_;
 
       /**
+       *
+       *
        * 
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public java.util.List getNotificationChannelStrategyList() { + public java.util.List< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy> + getNotificationChannelStrategyList() { if (notificationChannelStrategyBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationChannelStrategy_); } else { @@ -19500,11 +22190,15 @@ public java.util.List * Control how notifications will be sent out, on a per-channel basis. *
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public int getNotificationChannelStrategyCount() { if (notificationChannelStrategyBuilder_ == null) { @@ -19514,13 +22208,18 @@ public int getNotificationChannelStrategyCount() { } } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index) { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + getNotificationChannelStrategy(int index) { if (notificationChannelStrategyBuilder_ == null) { return notificationChannelStrategy_.get(index); } else { @@ -19528,14 +22227,19 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStr } } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder setNotificationChannelStrategy( - int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + int index, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { if (notificationChannelStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19549,14 +22253,20 @@ public Builder setNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder setNotificationChannelStrategy( - int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + int index, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + builderForValue) { if (notificationChannelStrategyBuilder_ == null) { ensureNotificationChannelStrategyIsMutable(); notificationChannelStrategy_.set(index, builderForValue.build()); @@ -19567,13 +22277,18 @@ public Builder setNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public Builder addNotificationChannelStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + public Builder addNotificationChannelStrategy( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { if (notificationChannelStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19587,14 +22302,19 @@ public Builder addNotificationChannelStrategy(com.google.monitoring.v3.AlertPoli return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder addNotificationChannelStrategy( - int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { + int index, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy value) { if (notificationChannelStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19608,14 +22328,19 @@ public Builder addNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder addNotificationChannelStrategy( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + builderForValue) { if (notificationChannelStrategyBuilder_ == null) { ensureNotificationChannelStrategyIsMutable(); notificationChannelStrategy_.add(builderForValue.build()); @@ -19626,14 +22351,20 @@ public Builder addNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder addNotificationChannelStrategy( - int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue) { + int index, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + builderForValue) { if (notificationChannelStrategyBuilder_ == null) { ensureNotificationChannelStrategyIsMutable(); notificationChannelStrategy_.add(index, builderForValue.build()); @@ -19644,14 +22375,22 @@ public Builder addNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder addAllNotificationChannelStrategy( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategy> + values) { if (notificationChannelStrategyBuilder_ == null) { ensureNotificationChannelStrategyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -19663,11 +22402,15 @@ public Builder addAllNotificationChannelStrategy( return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder clearNotificationChannelStrategy() { if (notificationChannelStrategyBuilder_ == null) { @@ -19680,11 +22423,15 @@ public Builder clearNotificationChannelStrategy() { return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ public Builder removeNotificationChannelStrategy(int index) { if (notificationChannelStrategyBuilder_ == null) { @@ -19697,39 +22444,55 @@ public Builder removeNotificationChannelStrategy(int index) { return this; } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder getNotificationChannelStrategyBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + getNotificationChannelStrategyBuilder(int index) { return getNotificationChannelStrategyFieldBuilder().getBuilder(index); } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder + getNotificationChannelStrategyOrBuilder(int index) { if (notificationChannelStrategyBuilder_ == null) { - return notificationChannelStrategy_.get(index); } else { + return notificationChannelStrategy_.get(index); + } else { return notificationChannelStrategyBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public java.util.List - getNotificationChannelStrategyOrBuilderList() { + public java.util.List< + ? extends + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategyOrBuilder> + getNotificationChannelStrategyOrBuilderList() { if (notificationChannelStrategyBuilder_ != null) { return notificationChannelStrategyBuilder_.getMessageOrBuilderList(); } else { @@ -19737,45 +22500,75 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStr } } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder() { - return getNotificationChannelStrategyFieldBuilder().addBuilder( - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + addNotificationChannelStrategyBuilder() { + return getNotificationChannelStrategyFieldBuilder() + .addBuilder( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .getDefaultInstance()); } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder( - int index) { - return getNotificationChannelStrategyFieldBuilder().addBuilder( - index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.getDefaultInstance()); + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder + addNotificationChannelStrategyBuilder(int index) { + return getNotificationChannelStrategyFieldBuilder() + .addBuilder( + index, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .getDefaultInstance()); } /** + * + * *
        * Control how notifications will be sent out, on a per-channel basis.
        * 
* - * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4; + * */ - public java.util.List - getNotificationChannelStrategyBuilderList() { + public java.util.List< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .Builder> + getNotificationChannelStrategyBuilderList() { return getNotificationChannelStrategyFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategyOrBuilder> getNotificationChannelStrategyFieldBuilder() { if (notificationChannelStrategyBuilder_ == null) { - notificationChannelStrategyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder>( + notificationChannelStrategyBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy + .Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategy + .NotificationChannelStrategyOrBuilder>( notificationChannelStrategy_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -19784,6 +22577,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStr } return notificationChannelStrategyBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -19796,12 +22590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.AlertStrategy) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.AlertStrategy) private static final com.google.monitoring.v3.AlertPolicy.AlertStrategy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.AlertStrategy(); } @@ -19810,27 +22604,28 @@ public static com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -19845,13 +22640,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -19866,6 +22663,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForT
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -19874,14 +22672,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -19896,16 +22695,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -19914,9 +22712,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
@@ -19931,6 +22732,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -19939,14 +22741,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
@@ -19961,16 +22764,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -19981,6 +22783,8 @@ public java.lang.String getDisplayName() { public static final int DOCUMENTATION_FIELD_NUMBER = 13; private com.google.monitoring.v3.AlertPolicy.Documentation documentation_; /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -19990,6 +22794,7 @@ public java.lang.String getDisplayName() {
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return Whether the documentation field is set. */ @java.lang.Override @@ -19997,6 +22802,8 @@ public boolean hasDocumentation() { return documentation_ != null; } /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -20006,13 +22813,18 @@ public boolean hasDocumentation() {
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return The documentation. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() { - return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_; + return documentation_ == null + ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() + : documentation_; } /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -20025,36 +22837,40 @@ public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentationOrBuilder() {
-    return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_;
+    return documentation_ == null
+        ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()
+        : documentation_;
   }
 
   public static final int USER_LABELS_FIELD_NUMBER = 16;
-  private static final class UserLabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+
+  private static final class UserLabelsDefaultEntryHolder {
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.monitoring.v3.AlertProto
+                .internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> userLabels_;
-  private com.google.protobuf.MapField
-  internalGetUserLabels() {
+  private com.google.protobuf.MapField userLabels_;
+
+  private com.google.protobuf.MapField internalGetUserLabels() {
     if (userLabels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          UserLabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry);
     }
     return userLabels_;
   }
+
   public int getUserLabelsCount() {
     return internalGetUserLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -20075,20 +22891,21 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 16;
    */
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -20113,6 +22930,8 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -20133,17 +22952,19 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 16;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  public /* nullable */ java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -20164,11 +22985,11 @@ java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 16;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -20176,9 +22997,12 @@ public java.lang.String getUserLabelsOrThrow(
   }
 
   public static final int CONDITIONS_FIELD_NUMBER = 12;
+
   @SuppressWarnings("serial")
   private java.util.List conditions_;
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -20197,6 +23021,8 @@ public java.util.List getConditi
     return conditions_;
   }
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -20211,11 +23037,13 @@ public java.util.List getConditi
    * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getConditionsOrBuilderList() {
     return conditions_;
   }
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -20234,6 +23062,8 @@ public int getConditionsCount() {
     return conditions_.size();
   }
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -20252,6 +23082,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
     return conditions_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -20266,14 +23098,15 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
    * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
-      int index) {
+  public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(int index) {
     return conditions_.get(index);
   }
 
   public static final int COMBINER_FIELD_NUMBER = 6;
   private int combiner_ = 0;
   /**
+   *
+   *
    * 
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -20282,12 +23115,16 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The enum numeric value on the wire for combiner. */ - @java.lang.Override public int getCombinerValue() { + @java.lang.Override + public int getCombinerValue() { return combiner_; } /** + * + * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -20296,16 +23133,23 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The combiner. */ - @java.lang.Override public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); - return result == null ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED + : result; } public static final int ENABLED_FIELD_NUMBER = 17; private com.google.protobuf.BoolValue enabled_; /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -20315,6 +23159,7 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
    * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return Whether the enabled field is set. */ @java.lang.Override @@ -20322,6 +23167,8 @@ public boolean hasEnabled() { return enabled_ != null; } /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -20331,6 +23178,7 @@ public boolean hasEnabled() {
    * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return The enabled. */ @java.lang.Override @@ -20338,6 +23186,8 @@ public com.google.protobuf.BoolValue getEnabled() { return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_; } /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -20356,6 +23206,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
   public static final int VALIDITY_FIELD_NUMBER = 18;
   private com.google.rpc.Status validity_;
   /**
+   *
+   *
    * 
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -20363,6 +23215,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
    * 
* * .google.rpc.Status validity = 18; + * * @return Whether the validity field is set. */ @java.lang.Override @@ -20370,6 +23223,8 @@ public boolean hasValidity() { return validity_ != null; } /** + * + * *
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -20377,6 +23232,7 @@ public boolean hasValidity() {
    * 
* * .google.rpc.Status validity = 18; + * * @return The validity. */ @java.lang.Override @@ -20384,6 +23240,8 @@ public com.google.rpc.Status getValidity() { return validity_ == null ? com.google.rpc.Status.getDefaultInstance() : validity_; } /** + * + * *
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -20398,10 +23256,13 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
   }
 
   public static final int NOTIFICATION_CHANNELS_FIELD_NUMBER = 14;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList notificationChannels_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -20416,13 +23277,15 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
    * 
* * repeated string notification_channels = 14; + * * @return A list containing the notificationChannels. */ - public com.google.protobuf.ProtocolStringList - getNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { return notificationChannels_; } /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -20437,12 +23300,15 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
    * 
* * repeated string notification_channels = 14; + * * @return The count of notificationChannels. */ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -20457,6 +23323,7 @@ public int getNotificationChannelsCount() {
    * 
* * repeated string notification_channels = 14; + * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ @@ -20464,6 +23331,8 @@ public java.lang.String getNotificationChannels(int index) { return notificationChannels_.get(index); } /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -20478,23 +23347,26 @@ public java.lang.String getNotificationChannels(int index) {
    * 
* * repeated string notification_channels = 14; + * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - public com.google.protobuf.ByteString - getNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { return notificationChannels_.getByteString(index); } public static final int CREATION_RECORD_FIELD_NUMBER = 10; private com.google.monitoring.v3.MutationRecord creationRecord_; /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return Whether the creationRecord field is set. */ @java.lang.Override @@ -20502,19 +23374,26 @@ public boolean hasCreationRecord() { return creationRecord_ != null; } /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return The creationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getCreationRecord() { - return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
@@ -20524,18 +23403,23 @@ public com.google.monitoring.v3.MutationRecord getCreationRecord() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder() {
-    return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_;
+    return creationRecord_ == null
+        ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
+        : creationRecord_;
   }
 
   public static final int MUTATION_RECORD_FIELD_NUMBER = 11;
   private com.google.monitoring.v3.MutationRecord mutationRecord_;
   /**
+   *
+   *
    * 
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return Whether the mutationRecord field is set. */ @java.lang.Override @@ -20543,19 +23427,26 @@ public boolean hasMutationRecord() { return mutationRecord_ != null; } /** + * + * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return The mutationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getMutationRecord() { - return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_; + return mutationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : mutationRecord_; } /** + * + * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
@@ -20565,17 +23456,22 @@ public com.google.monitoring.v3.MutationRecord getMutationRecord() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuilder() {
-    return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_;
+    return mutationRecord_ == null
+        ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
+        : mutationRecord_;
   }
 
   public static final int ALERT_STRATEGY_FIELD_NUMBER = 21;
   private com.google.monitoring.v3.AlertPolicy.AlertStrategy alertStrategy_;
   /**
+   *
+   *
    * 
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return Whether the alertStrategy field is set. */ @java.lang.Override @@ -20583,18 +23479,25 @@ public boolean hasAlertStrategy() { return alertStrategy_ != null; } /** + * + * *
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return The alertStrategy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { - return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; + return alertStrategy_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() + : alertStrategy_; } /** + * + * *
    * Control over how this alert policy's notification channels are notified.
    * 
@@ -20603,10 +23506,13 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrategyOrBuilder() { - return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; + return alertStrategy_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() + : alertStrategy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -20618,15 +23524,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (combiner_ != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED.getNumber()) { + if (combiner_ + != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, combiner_); } if (creationRecord_ != null) { @@ -20642,14 +23549,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(13, getDocumentation()); } for (int i = 0; i < notificationChannels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, notificationChannels_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUserLabels(), - UserLabelsDefaultEntryHolder.defaultEntry, - 16); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 14, notificationChannels_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 16); if (enabled_ != null) { output.writeMessage(17, getEnabled()); } @@ -20674,25 +23578,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (combiner_ != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, combiner_); + if (combiner_ + != com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.COMBINE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, combiner_); } if (creationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCreationRecord()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreationRecord()); } if (mutationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getMutationRecord()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMutationRecord()); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, conditions_.get(i)); } if (documentation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDocumentation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDocumentation()); } { int dataSize = 0; @@ -20702,27 +23603,24 @@ public int getSerializedSize() { size += dataSize; size += 1 * getNotificationChannelsList().size(); } - for (java.util.Map.Entry entry - : internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, userLabels__); + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, userLabels__); } if (enabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getEnabled()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEnabled()); } if (validity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getValidity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getValidity()); } if (alertStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getAlertStrategy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getAlertStrategy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -20732,53 +23630,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.AlertPolicy)) { return super.equals(obj); } com.google.monitoring.v3.AlertPolicy other = (com.google.monitoring.v3.AlertPolicy) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasDocumentation() != other.hasDocumentation()) return false; if (hasDocumentation()) { - if (!getDocumentation() - .equals(other.getDocumentation())) return false; + if (!getDocumentation().equals(other.getDocumentation())) return false; } - if (!internalGetUserLabels().equals( - other.internalGetUserLabels())) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (combiner_ != other.combiner_) return false; if (hasEnabled() != other.hasEnabled()) return false; if (hasEnabled()) { - if (!getEnabled() - .equals(other.getEnabled())) return false; + if (!getEnabled().equals(other.getEnabled())) return false; } if (hasValidity() != other.hasValidity()) return false; if (hasValidity()) { - if (!getValidity() - .equals(other.getValidity())) return false; + if (!getValidity().equals(other.getValidity())) return false; } - if (!getNotificationChannelsList() - .equals(other.getNotificationChannelsList())) return false; + if (!getNotificationChannelsList().equals(other.getNotificationChannelsList())) return false; if (hasCreationRecord() != other.hasCreationRecord()) return false; if (hasCreationRecord()) { - if (!getCreationRecord() - .equals(other.getCreationRecord())) return false; + if (!getCreationRecord().equals(other.getCreationRecord())) return false; } if (hasMutationRecord() != other.hasMutationRecord()) return false; if (hasMutationRecord()) { - if (!getMutationRecord() - .equals(other.getMutationRecord())) return false; + if (!getMutationRecord().equals(other.getMutationRecord())) return false; } if (hasAlertStrategy() != other.hasAlertStrategy()) return false; if (hasAlertStrategy()) { - if (!getAlertStrategy() - .equals(other.getAlertStrategy())) return false; + if (!getAlertStrategy().equals(other.getAlertStrategy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -20838,99 +23725,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.AlertPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.AlertPolicy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.AlertPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.AlertPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.AlertPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.AlertPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.AlertPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A description of the conditions under which some aspect of your system is
    * considered to be "unhealthy" and the ways to notify people or services about
@@ -20940,55 +23831,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.AlertPolicy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy)
       com.google.monitoring.v3.AlertPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 16:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 16:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.AlertPolicy.class, com.google.monitoring.v3.AlertPolicy.Builder.class);
+              com.google.monitoring.v3.AlertPolicy.class,
+              com.google.monitoring.v3.AlertPolicy.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.AlertPolicy.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -21019,8 +23907,7 @@ public Builder clear() {
         validityBuilder_.dispose();
         validityBuilder_ = null;
       }
-      notificationChannels_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList();
       creationRecord_ = null;
       if (creationRecordBuilder_ != null) {
         creationRecordBuilder_.dispose();
@@ -21040,9 +23927,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.AlertProto.internal_static_google_monitoring_v3_AlertPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.AlertProto
+          .internal_static_google_monitoring_v3_AlertPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -21063,7 +23950,9 @@ public com.google.monitoring.v3.AlertPolicy build() {
     public com.google.monitoring.v3.AlertPolicy buildPartial() {
       com.google.monitoring.v3.AlertPolicy result = new com.google.monitoring.v3.AlertPolicy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -21089,9 +23978,8 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.documentation_ = documentationBuilder_ == null
-            ? documentation_
-            : documentationBuilder_.build();
+        result.documentation_ =
+            documentationBuilder_ == null ? documentation_ : documentationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.userLabels_ = internalGetUserLabels();
@@ -21101,33 +23989,26 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
         result.combiner_ = combiner_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.enabled_ = enabledBuilder_ == null
-            ? enabled_
-            : enabledBuilder_.build();
+        result.enabled_ = enabledBuilder_ == null ? enabled_ : enabledBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.validity_ = validityBuilder_ == null
-            ? validity_
-            : validityBuilder_.build();
+        result.validity_ = validityBuilder_ == null ? validity_ : validityBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         notificationChannels_.makeImmutable();
         result.notificationChannels_ = notificationChannels_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.creationRecord_ = creationRecordBuilder_ == null
-            ? creationRecord_
-            : creationRecordBuilder_.build();
+        result.creationRecord_ =
+            creationRecordBuilder_ == null ? creationRecord_ : creationRecordBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.mutationRecord_ = mutationRecordBuilder_ == null
-            ? mutationRecord_
-            : mutationRecordBuilder_.build();
+        result.mutationRecord_ =
+            mutationRecordBuilder_ == null ? mutationRecord_ : mutationRecordBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.alertStrategy_ = alertStrategyBuilder_ == null
-            ? alertStrategy_
-            : alertStrategyBuilder_.build();
+        result.alertStrategy_ =
+            alertStrategyBuilder_ == null ? alertStrategy_ : alertStrategyBuilder_.build();
       }
     }
 
@@ -21135,38 +24016,39 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.AlertPolicy) {
-        return mergeFrom((com.google.monitoring.v3.AlertPolicy)other);
+        return mergeFrom((com.google.monitoring.v3.AlertPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -21188,8 +24070,7 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) {
       if (other.hasDocumentation()) {
         mergeDocumentation(other.getDocumentation());
       }
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
       bitField0_ |= 0x00000008;
       if (conditionsBuilder_ == null) {
         if (!other.conditions_.isEmpty()) {
@@ -21209,9 +24090,10 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -21271,97 +24153,99 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 48: {
-              combiner_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 82: {
-              input.readMessage(
-                  getCreationRecordFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getMutationRecordFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 98: {
-              com.google.monitoring.v3.AlertPolicy.Condition m =
-                  input.readMessage(
-                      com.google.monitoring.v3.AlertPolicy.Condition.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getDocumentationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 106
-            case 114: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureNotificationChannelsIsMutable();
-              notificationChannels_.add(s);
-              break;
-            } // case 114
-            case 130: {
-              com.google.protobuf.MapEntry
-              userLabels__ = input.readMessage(
-                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserLabels().getMutableMap().put(
-                  userLabels__.getKey(), userLabels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 130
-            case 138: {
-              input.readMessage(
-                  getEnabledFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getValidityFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 146
-            case 170: {
-              input.readMessage(
-                  getAlertStrategyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 170
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 48:
+              {
+                combiner_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 82:
+              {
+                input.readMessage(getCreationRecordFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getMutationRecordFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.monitoring.v3.AlertPolicy.Condition m =
+                    input.readMessage(
+                        com.google.monitoring.v3.AlertPolicy.Condition.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getDocumentationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 106
+            case 114:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureNotificationChannelsIsMutable();
+                notificationChannels_.add(s);
+                break;
+              } // case 114
+            case 130:
+              {
+                com.google.protobuf.MapEntry userLabels__ =
+                    input.readMessage(
+                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableUserLabels()
+                    .getMutableMap()
+                    .put(userLabels__.getKey(), userLabels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 130
+            case 138:
+              {
+                input.readMessage(getEnabledFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(getValidityFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 146
+            case 170:
+              {
+                input.readMessage(getAlertStrategyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 170
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -21371,10 +24255,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -21389,13 +24276,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -21404,6 +24291,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -21418,15 +24307,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -21434,6 +24322,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -21448,18 +24338,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -21474,6 +24368,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -21483,6 +24378,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required if the policy exists. The resource name for this policy. The
      * format is:
@@ -21497,12 +24394,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -21512,6 +24411,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -21526,13 +24427,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -21541,6 +24442,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -21555,15 +24458,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -21571,6 +24473,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -21585,18 +24489,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -21611,6 +24519,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -21620,6 +24529,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A short name or phrase used to identify the policy in dashboards,
      * notifications, and incidents. To avoid confusion, don't use the same
@@ -21634,12 +24545,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -21649,8 +24562,13 @@ public Builder setDisplayNameBytes( private com.google.monitoring.v3.AlertPolicy.Documentation documentation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> documentationBuilder_; + com.google.monitoring.v3.AlertPolicy.Documentation, + com.google.monitoring.v3.AlertPolicy.Documentation.Builder, + com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> + documentationBuilder_; /** + * + * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21660,12 +24578,15 @@ public Builder setDisplayNameBytes(
      * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return Whether the documentation field is set. */ public boolean hasDocumentation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21675,16 +24596,21 @@ public boolean hasDocumentation() {
      * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return The documentation. */ public com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation() { if (documentationBuilder_ == null) { - return documentation_ == null ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_; + return documentation_ == null + ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() + : documentation_; } else { return documentationBuilder_.getMessage(); } } /** + * + * *
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21709,6 +24635,8 @@ public Builder setDocumentation(com.google.monitoring.v3.AlertPolicy.Documentati
       return this;
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21731,6 +24659,8 @@ public Builder setDocumentation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21743,9 +24673,10 @@ public Builder setDocumentation(
      */
     public Builder mergeDocumentation(com.google.monitoring.v3.AlertPolicy.Documentation value) {
       if (documentationBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          documentation_ != null &&
-          documentation_ != com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && documentation_ != null
+            && documentation_
+                != com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) {
           getDocumentationBuilder().mergeFrom(value);
         } else {
           documentation_ = value;
@@ -21758,6 +24689,8 @@ public Builder mergeDocumentation(com.google.monitoring.v3.AlertPolicy.Documenta
       return this;
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21779,6 +24712,8 @@ public Builder clearDocumentation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21795,6 +24730,8 @@ public com.google.monitoring.v3.AlertPolicy.Documentation.Builder getDocumentati
       return getDocumentationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21809,11 +24746,14 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       if (documentationBuilder_ != null) {
         return documentationBuilder_.getMessageOrBuilder();
       } else {
-        return documentation_ == null ?
-            com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance() : documentation_;
+        return documentation_ == null
+            ? com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()
+            : documentation_;
       }
     }
     /**
+     *
+     *
      * 
      * Documentation that is included with notifications and incidents related to
      * this policy. Best practice is for the documentation to include information
@@ -21825,21 +24765,24 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
      * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder> 
+            com.google.monitoring.v3.AlertPolicy.Documentation,
+            com.google.monitoring.v3.AlertPolicy.Documentation.Builder,
+            com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>
         getDocumentationFieldBuilder() {
       if (documentationBuilder_ == null) {
-        documentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Documentation, com.google.monitoring.v3.AlertPolicy.Documentation.Builder, com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>(
-                getDocumentation(),
-                getParentForChildren(),
-                isClean());
+        documentationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.AlertPolicy.Documentation,
+                com.google.monitoring.v3.AlertPolicy.Documentation.Builder,
+                com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder>(
+                getDocumentation(), getParentForChildren(), isClean());
         documentation_ = null;
       }
       return documentationBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> userLabels_;
+    private com.google.protobuf.MapField userLabels_;
+
     private com.google.protobuf.MapField
         internalGetUserLabels() {
       if (userLabels_ == null) {
@@ -21848,11 +24791,12 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       }
       return userLabels_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableUserLabels() {
       if (userLabels_ == null) {
-        userLabels_ = com.google.protobuf.MapField.newMapField(
-            UserLabelsDefaultEntryHolder.defaultEntry);
+        userLabels_ =
+            com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
       }
       if (!userLabels_.isMutable()) {
         userLabels_ = userLabels_.copy();
@@ -21861,10 +24805,13 @@ public com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentat
       onChanged();
       return userLabels_;
     }
+
     public int getUserLabelsCount() {
       return internalGetUserLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -21885,20 +24832,21 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 16;
      */
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -21923,6 +24871,8 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -21943,17 +24893,19 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 16;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+    public /* nullable */ java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -21974,23 +24926,25 @@ java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 16;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -22010,23 +24964,22 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 16;
      */
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -22046,17 +24999,20 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 16;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `AlertPolicy` objects.
@@ -22076,27 +25032,32 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 16;
      */
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List conditions_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureConditionsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        conditions_ = new java.util.ArrayList(conditions_);
+        conditions_ =
+            new java.util.ArrayList(conditions_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> conditionsBuilder_;
+            com.google.monitoring.v3.AlertPolicy.Condition,
+            com.google.monitoring.v3.AlertPolicy.Condition.Builder,
+            com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>
+        conditionsBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22118,6 +25079,8 @@ public java.util.List getConditi
       }
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22139,6 +25102,8 @@ public int getConditionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22160,6 +25125,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22173,8 +25140,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index) {
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public Builder setConditions(
-        int index, com.google.monitoring.v3.AlertPolicy.Condition value) {
+    public Builder setConditions(int index, com.google.monitoring.v3.AlertPolicy.Condition value) {
       if (conditionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -22188,6 +25154,8 @@ public Builder setConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22213,6 +25181,8 @@ public Builder setConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22240,6 +25210,8 @@ public Builder addConditions(com.google.monitoring.v3.AlertPolicy.Condition valu
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22253,8 +25225,7 @@ public Builder addConditions(com.google.monitoring.v3.AlertPolicy.Condition valu
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public Builder addConditions(
-        int index, com.google.monitoring.v3.AlertPolicy.Condition value) {
+    public Builder addConditions(int index, com.google.monitoring.v3.AlertPolicy.Condition value) {
       if (conditionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -22268,6 +25239,8 @@ public Builder addConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22293,6 +25266,8 @@ public Builder addConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22318,6 +25293,8 @@ public Builder addConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22335,8 +25312,7 @@ public Builder addAllConditions(
         java.lang.Iterable values) {
       if (conditionsBuilder_ == null) {
         ensureConditionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, conditions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);
         onChanged();
       } else {
         conditionsBuilder_.addAllMessages(values);
@@ -22344,6 +25320,8 @@ public Builder addAllConditions(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22368,6 +25346,8 @@ public Builder clearConditions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22392,6 +25372,8 @@ public Builder removeConditions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22405,11 +25387,12 @@ public Builder removeConditions(int index) {
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuilder(
-        int index) {
+    public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuilder(int index) {
       return getConditionsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22426,11 +25409,14 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder getConditionsBuild
     public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
         int index) {
       if (conditionsBuilder_ == null) {
-        return conditions_.get(index);  } else {
+        return conditions_.get(index);
+      } else {
         return conditionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22444,8 +25430,8 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public java.util.List 
-         getConditionsOrBuilderList() {
+    public java.util.List
+        getConditionsOrBuilderList() {
       if (conditionsBuilder_ != null) {
         return conditionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -22453,6 +25439,8 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
       }
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22467,10 +25455,12 @@ public com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBu
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
     public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder() {
-      return getConditionsFieldBuilder().addBuilder(
-          com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance());
+      return getConditionsFieldBuilder()
+          .addBuilder(com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22484,12 +25474,13 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder(
-        int index) {
-      return getConditionsFieldBuilder().addBuilder(
-          index, com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance());
+    public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuilder(int index) {
+      return getConditionsFieldBuilder()
+          .addBuilder(index, com.google.monitoring.v3.AlertPolicy.Condition.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of conditions for the policy. The conditions are combined by AND or
      * OR according to the `combiner` field. If the combined conditions evaluate
@@ -22503,20 +25494,23 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      *
      * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
      */
-    public java.util.List 
-         getConditionsBuilderList() {
+    public java.util.List
+        getConditionsBuilderList() {
       return getConditionsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder> 
+            com.google.monitoring.v3.AlertPolicy.Condition,
+            com.google.monitoring.v3.AlertPolicy.Condition.Builder,
+            com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>
         getConditionsFieldBuilder() {
       if (conditionsBuilder_ == null) {
-        conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.AlertPolicy.Condition, com.google.monitoring.v3.AlertPolicy.Condition.Builder, com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>(
-                conditions_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        conditionsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.AlertPolicy.Condition,
+                com.google.monitoring.v3.AlertPolicy.Condition.Builder,
+                com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder>(
+                conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
         conditions_ = null;
       }
       return conditionsBuilder_;
@@ -22524,6 +25518,8 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
 
     private int combiner_ = 0;
     /**
+     *
+     *
      * 
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -22532,12 +25528,16 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The enum numeric value on the wire for combiner. */ - @java.lang.Override public int getCombinerValue() { + @java.lang.Override + public int getCombinerValue() { return combiner_; } /** + * + * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -22546,6 +25546,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Builder addConditionsBuild
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @param value The enum numeric value on the wire for combiner to set. * @return This builder for chaining. */ @@ -22556,6 +25557,8 @@ public Builder setCombinerValue(int value) { return this; } /** + * + * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -22564,14 +25567,20 @@ public Builder setCombinerValue(int value) {
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The combiner. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner() { - com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); - return result == null ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED : result; + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType result = + com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.forNumber(combiner_); + return result == null + ? com.google.monitoring.v3.AlertPolicy.ConditionCombinerType.UNRECOGNIZED + : result; } /** + * + * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -22580,6 +25589,7 @@ public com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner()
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @param value The combiner to set. * @return This builder for chaining. */ @@ -22593,6 +25603,8 @@ public Builder setCombiner(com.google.monitoring.v3.AlertPolicy.ConditionCombine return this; } /** + * + * *
      * How to combine the results of multiple conditions to determine if an
      * incident should be opened.
@@ -22601,6 +25613,7 @@ public Builder setCombiner(com.google.monitoring.v3.AlertPolicy.ConditionCombine
      * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return This builder for chaining. */ public Builder clearCombiner() { @@ -22612,8 +25625,13 @@ public Builder clearCombiner() { private com.google.protobuf.BoolValue enabled_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enabledBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enabledBuilder_; /** + * + * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22623,12 +25641,15 @@ public Builder clearCombiner() {
      * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return Whether the enabled field is set. */ public boolean hasEnabled() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22638,6 +25659,7 @@ public boolean hasEnabled() {
      * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return The enabled. */ public com.google.protobuf.BoolValue getEnabled() { @@ -22648,6 +25670,8 @@ public com.google.protobuf.BoolValue getEnabled() { } } /** + * + * *
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22672,6 +25696,8 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22682,8 +25708,7 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enabled = 17;
      */
-    public Builder setEnabled(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enabledBuilder_ == null) {
         enabled_ = builderForValue.build();
       } else {
@@ -22694,6 +25719,8 @@ public Builder setEnabled(
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22706,9 +25733,9 @@ public Builder setEnabled(
      */
     public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       if (enabledBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          enabled_ != null &&
-          enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && enabled_ != null
+            && enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnabledBuilder().mergeFrom(value);
         } else {
           enabled_ = value;
@@ -22721,6 +25748,8 @@ public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22742,6 +25771,8 @@ public Builder clearEnabled() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22758,6 +25789,8 @@ public com.google.protobuf.BoolValue.Builder getEnabledBuilder() {
       return getEnabledFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22772,11 +25805,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
       if (enabledBuilder_ != null) {
         return enabledBuilder_.getMessageOrBuilder();
       } else {
-        return enabled_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
+        return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
       }
     }
     /**
+     *
+     *
      * 
      * Whether or not the policy is enabled. On write, the default interpretation
      * if unset is that the policy is enabled. On read, clients should not make
@@ -22788,14 +25822,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
      * .google.protobuf.BoolValue enabled = 17;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnabledFieldBuilder() {
       if (enabledBuilder_ == null) {
-        enabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnabled(),
-                getParentForChildren(),
-                isClean());
+        enabledBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnabled(), getParentForChildren(), isClean());
         enabled_ = null;
       }
       return enabledBuilder_;
@@ -22803,8 +25840,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
 
     private com.google.rpc.Status validity_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> validityBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        validityBuilder_;
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22812,12 +25852,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
      * 
* * .google.rpc.Status validity = 18; + * * @return Whether the validity field is set. */ public boolean hasValidity() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22825,6 +25868,7 @@ public boolean hasValidity() {
      * 
* * .google.rpc.Status validity = 18; + * * @return The validity. */ public com.google.rpc.Status getValidity() { @@ -22835,6 +25879,8 @@ public com.google.rpc.Status getValidity() { } } /** + * + * *
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22857,6 +25903,8 @@ public Builder setValidity(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22865,8 +25913,7 @@ public Builder setValidity(com.google.rpc.Status value) {
      *
      * .google.rpc.Status validity = 18;
      */
-    public Builder setValidity(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setValidity(com.google.rpc.Status.Builder builderForValue) {
       if (validityBuilder_ == null) {
         validity_ = builderForValue.build();
       } else {
@@ -22877,6 +25924,8 @@ public Builder setValidity(
       return this;
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22887,9 +25936,9 @@ public Builder setValidity(
      */
     public Builder mergeValidity(com.google.rpc.Status value) {
       if (validityBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          validity_ != null &&
-          validity_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && validity_ != null
+            && validity_ != com.google.rpc.Status.getDefaultInstance()) {
           getValidityBuilder().mergeFrom(value);
         } else {
           validity_ = value;
@@ -22902,6 +25951,8 @@ public Builder mergeValidity(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22921,6 +25972,8 @@ public Builder clearValidity() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22935,6 +25988,8 @@ public com.google.rpc.Status.Builder getValidityBuilder() {
       return getValidityFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22947,11 +26002,12 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
       if (validityBuilder_ != null) {
         return validityBuilder_.getMessageOrBuilder();
       } else {
-        return validity_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : validity_;
+        return validity_ == null ? com.google.rpc.Status.getDefaultInstance() : validity_;
       }
     }
     /**
+     *
+     *
      * 
      * Read-only description of how the alert policy is invalid. This field is
      * only set when the alert policy is invalid. An invalid alert policy will not
@@ -22961,14 +26017,14 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
      * .google.rpc.Status validity = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getValidityFieldBuilder() {
       if (validityBuilder_ == null) {
-        validityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getValidity(),
-                getParentForChildren(),
-                isClean());
+        validityBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getValidity(), getParentForChildren(), isClean());
         validity_ = null;
       }
       return validityBuilder_;
@@ -22976,6 +26032,7 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() {
 
     private com.google.protobuf.LazyStringArrayList notificationChannels_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureNotificationChannelsIsMutable() {
       if (!notificationChannels_.isModifiable()) {
         notificationChannels_ = new com.google.protobuf.LazyStringArrayList(notificationChannels_);
@@ -22983,6 +26040,8 @@ private void ensureNotificationChannelsIsMutable() {
       bitField0_ |= 0x00000100;
     }
     /**
+     *
+     *
      * 
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -22997,14 +26056,16 @@ private void ensureNotificationChannelsIsMutable() {
      * 
* * repeated string notification_channels = 14; + * * @return A list containing the notificationChannels. */ - public com.google.protobuf.ProtocolStringList - getNotificationChannelsList() { + public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { notificationChannels_.makeImmutable(); return notificationChannels_; } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23019,12 +26080,15 @@ private void ensureNotificationChannelsIsMutable() {
      * 
* * repeated string notification_channels = 14; + * * @return The count of notificationChannels. */ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23039,6 +26103,7 @@ public int getNotificationChannelsCount() {
      * 
* * repeated string notification_channels = 14; + * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ @@ -23046,6 +26111,8 @@ public java.lang.String getNotificationChannels(int index) { return notificationChannels_.get(index); } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23060,14 +26127,16 @@ public java.lang.String getNotificationChannels(int index) {
      * 
* * repeated string notification_channels = 14; + * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - public com.google.protobuf.ByteString - getNotificationChannelsBytes(int index) { + public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { return notificationChannels_.getByteString(index); } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23082,13 +26151,15 @@ public java.lang.String getNotificationChannels(int index) {
      * 
* * repeated string notification_channels = 14; + * * @param index The index to set the value at. * @param value The notificationChannels to set. * @return This builder for chaining. */ - public Builder setNotificationChannels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNotificationChannelsIsMutable(); notificationChannels_.set(index, value); bitField0_ |= 0x00000100; @@ -23096,6 +26167,8 @@ public Builder setNotificationChannels( return this; } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23110,12 +26183,14 @@ public Builder setNotificationChannels(
      * 
* * repeated string notification_channels = 14; + * * @param value The notificationChannels to add. * @return This builder for chaining. */ - public Builder addNotificationChannels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNotificationChannelsIsMutable(); notificationChannels_.add(value); bitField0_ |= 0x00000100; @@ -23123,6 +26198,8 @@ public Builder addNotificationChannels( return this; } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23137,19 +26214,20 @@ public Builder addNotificationChannels(
      * 
* * repeated string notification_channels = 14; + * * @param values The notificationChannels to add. * @return This builder for chaining. */ - public Builder addAllNotificationChannels( - java.lang.Iterable values) { + public Builder addAllNotificationChannels(java.lang.Iterable values) { ensureNotificationChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationChannels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannels_); bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23164,16 +26242,19 @@ public Builder addAllNotificationChannels(
      * 
* * repeated string notification_channels = 14; + * * @return This builder for chaining. */ public Builder clearNotificationChannels() { - notificationChannels_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; onChanged(); return this; } /** + * + * *
      * Identifies the notification channels to which notifications should be sent
      * when incidents are opened or closed or when new violations occur on
@@ -23188,12 +26269,14 @@ public Builder clearNotificationChannels() {
      * 
* * repeated string notification_channels = 14; + * * @param value The bytes of the notificationChannels to add. * @return This builder for chaining. */ - public Builder addNotificationChannelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureNotificationChannelsIsMutable(); notificationChannels_.add(value); @@ -23204,36 +26287,49 @@ public Builder addNotificationChannelsBytes( private com.google.monitoring.v3.MutationRecord creationRecord_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> creationRecordBuilder_; + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder> + creationRecordBuilder_; /** + * + * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return Whether the creationRecord field is set. */ public boolean hasCreationRecord() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return The creationRecord. */ public com.google.monitoring.v3.MutationRecord getCreationRecord() { if (creationRecordBuilder_ == null) { - return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } else { return creationRecordBuilder_.getMessage(); } } /** + * + * *
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23255,6 +26351,8 @@ public Builder setCreationRecord(com.google.monitoring.v3.MutationRecord value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23274,6 +26372,8 @@ public Builder setCreationRecord(
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23283,9 +26383,9 @@ public Builder setCreationRecord(
      */
     public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value) {
       if (creationRecordBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          creationRecord_ != null &&
-          creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && creationRecord_ != null
+            && creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
           getCreationRecordBuilder().mergeFrom(value);
         } else {
           creationRecord_ = value;
@@ -23298,6 +26398,8 @@ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23316,6 +26418,8 @@ public Builder clearCreationRecord() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23329,6 +26433,8 @@ public com.google.monitoring.v3.MutationRecord.Builder getCreationRecordBuilder(
       return getCreationRecordFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23340,11 +26446,14 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
       if (creationRecordBuilder_ != null) {
         return creationRecordBuilder_.getMessageOrBuilder();
       } else {
-        return creationRecord_ == null ?
-            com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_;
+        return creationRecord_ == null
+            ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
+            : creationRecord_;
       }
     }
     /**
+     *
+     *
      * 
      * A read-only record of the creation of the alerting policy. If provided
      * in a call to create or update, this field will be ignored.
@@ -23353,14 +26462,17 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
      * .google.monitoring.v3.MutationRecord creation_record = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> 
+            com.google.monitoring.v3.MutationRecord,
+            com.google.monitoring.v3.MutationRecord.Builder,
+            com.google.monitoring.v3.MutationRecordOrBuilder>
         getCreationRecordFieldBuilder() {
       if (creationRecordBuilder_ == null) {
-        creationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>(
-                getCreationRecord(),
-                getParentForChildren(),
-                isClean());
+        creationRecordBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.MutationRecord,
+                com.google.monitoring.v3.MutationRecord.Builder,
+                com.google.monitoring.v3.MutationRecordOrBuilder>(
+                getCreationRecord(), getParentForChildren(), isClean());
         creationRecord_ = null;
       }
       return creationRecordBuilder_;
@@ -23368,36 +26480,49 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild
 
     private com.google.monitoring.v3.MutationRecord mutationRecord_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> mutationRecordBuilder_;
+            com.google.monitoring.v3.MutationRecord,
+            com.google.monitoring.v3.MutationRecord.Builder,
+            com.google.monitoring.v3.MutationRecordOrBuilder>
+        mutationRecordBuilder_;
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return Whether the mutationRecord field is set. */ public boolean hasMutationRecord() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
      * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return The mutationRecord. */ public com.google.monitoring.v3.MutationRecord getMutationRecord() { if (mutationRecordBuilder_ == null) { - return mutationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_; + return mutationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : mutationRecord_; } else { return mutationRecordBuilder_.getMessage(); } } /** + * + * *
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23419,6 +26544,8 @@ public Builder setMutationRecord(com.google.monitoring.v3.MutationRecord value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23438,6 +26565,8 @@ public Builder setMutationRecord(
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23447,9 +26576,9 @@ public Builder setMutationRecord(
      */
     public Builder mergeMutationRecord(com.google.monitoring.v3.MutationRecord value) {
       if (mutationRecordBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0) &&
-          mutationRecord_ != null &&
-          mutationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0)
+            && mutationRecord_ != null
+            && mutationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) {
           getMutationRecordBuilder().mergeFrom(value);
         } else {
           mutationRecord_ = value;
@@ -23462,6 +26591,8 @@ public Builder mergeMutationRecord(com.google.monitoring.v3.MutationRecord value
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23480,6 +26611,8 @@ public Builder clearMutationRecord() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23493,6 +26626,8 @@ public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordBuilder(
       return getMutationRecordFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23504,11 +26639,14 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
       if (mutationRecordBuilder_ != null) {
         return mutationRecordBuilder_.getMessageOrBuilder();
       } else {
-        return mutationRecord_ == null ?
-            com.google.monitoring.v3.MutationRecord.getDefaultInstance() : mutationRecord_;
+        return mutationRecord_ == null
+            ? com.google.monitoring.v3.MutationRecord.getDefaultInstance()
+            : mutationRecord_;
       }
     }
     /**
+     *
+     *
      * 
      * A read-only record of the most recent change to the alerting policy. If
      * provided in a call to create or update, this field will be ignored.
@@ -23517,14 +26655,17 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
      * .google.monitoring.v3.MutationRecord mutation_record = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> 
+            com.google.monitoring.v3.MutationRecord,
+            com.google.monitoring.v3.MutationRecord.Builder,
+            com.google.monitoring.v3.MutationRecordOrBuilder>
         getMutationRecordFieldBuilder() {
       if (mutationRecordBuilder_ == null) {
-        mutationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>(
-                getMutationRecord(),
-                getParentForChildren(),
-                isClean());
+        mutationRecordBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.MutationRecord,
+                com.google.monitoring.v3.MutationRecord.Builder,
+                com.google.monitoring.v3.MutationRecordOrBuilder>(
+                getMutationRecord(), getParentForChildren(), isClean());
         mutationRecord_ = null;
       }
       return mutationRecordBuilder_;
@@ -23532,34 +26673,47 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild
 
     private com.google.monitoring.v3.AlertPolicy.AlertStrategy alertStrategy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> alertStrategyBuilder_;
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy,
+            com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder,
+            com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>
+        alertStrategyBuilder_;
     /**
+     *
+     *
      * 
      * Control over how this alert policy's notification channels are notified.
      * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return Whether the alertStrategy field is set. */ public boolean hasAlertStrategy() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return The alertStrategy. */ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { if (alertStrategyBuilder_ == null) { - return alertStrategy_ == null ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; + return alertStrategy_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() + : alertStrategy_; } else { return alertStrategyBuilder_.getMessage(); } } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23580,6 +26734,8 @@ public Builder setAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrate return this; } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23598,6 +26754,8 @@ public Builder setAlertStrategy( return this; } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23606,9 +26764,10 @@ public Builder setAlertStrategy( */ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrategy value) { if (alertStrategyBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - alertStrategy_ != null && - alertStrategy_ != com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && alertStrategy_ != null + && alertStrategy_ + != com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance()) { getAlertStrategyBuilder().mergeFrom(value); } else { alertStrategy_ = value; @@ -23621,6 +26780,8 @@ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStra return this; } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23638,6 +26799,8 @@ public Builder clearAlertStrategy() { return this; } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23650,6 +26813,8 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder getAlertStrate return getAlertStrategyFieldBuilder().getBuilder(); } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23660,11 +26825,14 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat if (alertStrategyBuilder_ != null) { return alertStrategyBuilder_.getMessageOrBuilder(); } else { - return alertStrategy_ == null ? - com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() : alertStrategy_; + return alertStrategy_ == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.getDefaultInstance() + : alertStrategy_; } } /** + * + * *
      * Control over how this alert policy's notification channels are notified.
      * 
@@ -23672,21 +26840,24 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> + com.google.monitoring.v3.AlertPolicy.AlertStrategy, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder> getAlertStrategyFieldBuilder() { if (alertStrategyBuilder_ == null) { - alertStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy.AlertStrategy, com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>( - getAlertStrategy(), - getParentForChildren(), - isClean()); + alertStrategyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.AlertStrategy, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder, + com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder>( + getAlertStrategy(), getParentForChildren(), isClean()); alertStrategy_ = null; } return alertStrategyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -23696,12 +26867,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) private static final com.google.monitoring.v3.AlertPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy(); } @@ -23710,27 +26881,27 @@ public static com.google.monitoring.v3.AlertPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AlertPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -23745,6 +26916,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.AlertPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java similarity index 92% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java index a62b3693a031..5e8a65b28b4f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert.proto package com.google.monitoring.v3; -public interface AlertPolicyOrBuilder extends +public interface AlertPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -22,10 +40,13 @@ public interface AlertPolicyOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required if the policy exists. The resource name for this policy. The
    * format is:
@@ -40,12 +61,14 @@ public interface AlertPolicyOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
@@ -60,10 +83,13 @@ public interface AlertPolicyOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A short name or phrase used to identify the policy in dashboards,
    * notifications, and incidents. To avoid confusion, don't use the same
@@ -78,12 +104,14 @@ public interface AlertPolicyOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -93,10 +121,13 @@ public interface AlertPolicyOrBuilder extends
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return Whether the documentation field is set. */ boolean hasDocumentation(); /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -106,10 +137,13 @@ public interface AlertPolicyOrBuilder extends
    * 
* * .google.monitoring.v3.AlertPolicy.Documentation documentation = 13; + * * @return The documentation. */ com.google.monitoring.v3.AlertPolicy.Documentation getDocumentation(); /** + * + * *
    * Documentation that is included with notifications and incidents related to
    * this policy. Best practice is for the documentation to include information
@@ -123,6 +157,8 @@ public interface AlertPolicyOrBuilder extends
   com.google.monitoring.v3.AlertPolicy.DocumentationOrBuilder getDocumentationOrBuilder();
 
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -144,6 +180,8 @@ public interface AlertPolicyOrBuilder extends
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -163,15 +201,13 @@ public interface AlertPolicyOrBuilder extends
    *
    * map<string, string> user_labels = 16;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -191,9 +227,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 16;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -214,11 +251,13 @@ boolean containsUserLabels(
    * map<string, string> user_labels = 16;
    */
   /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `AlertPolicy` objects.
@@ -238,10 +277,11 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 16;
    */
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -255,9 +295,10 @@ java.lang.String getUserLabelsOrThrow(
    *
    * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
    */
-  java.util.List 
-      getConditionsList();
+  java.util.List getConditionsList();
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -273,6 +314,8 @@ java.lang.String getUserLabelsOrThrow(
    */
   com.google.monitoring.v3.AlertPolicy.Condition getConditions(int index);
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -288,6 +331,8 @@ java.lang.String getUserLabelsOrThrow(
    */
   int getConditionsCount();
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -301,9 +346,11 @@ java.lang.String getUserLabelsOrThrow(
    *
    * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
    */
-  java.util.List 
+  java.util.List
       getConditionsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of conditions for the policy. The conditions are combined by AND or
    * OR according to the `combiner` field. If the combined conditions evaluate
@@ -317,10 +364,11 @@ java.lang.String getUserLabelsOrThrow(
    *
    * repeated .google.monitoring.v3.AlertPolicy.Condition conditions = 12;
    */
-  com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
-      int index);
+  com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -329,10 +377,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The enum numeric value on the wire for combiner. */ int getCombinerValue(); /** + * + * *
    * How to combine the results of multiple conditions to determine if an
    * incident should be opened.
@@ -341,11 +392,14 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.monitoring.v3.AlertPolicy.ConditionCombinerType combiner = 6; + * * @return The combiner. */ com.google.monitoring.v3.AlertPolicy.ConditionCombinerType getCombiner(); /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -355,10 +409,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return Whether the enabled field is set. */ boolean hasEnabled(); /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -368,10 +425,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.protobuf.BoolValue enabled = 17; + * * @return The enabled. */ com.google.protobuf.BoolValue getEnabled(); /** + * + * *
    * Whether or not the policy is enabled. On write, the default interpretation
    * if unset is that the policy is enabled. On read, clients should not make
@@ -385,6 +445,8 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder();
 
   /**
+   *
+   *
    * 
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -392,10 +454,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.rpc.Status validity = 18; + * * @return Whether the validity field is set. */ boolean hasValidity(); /** + * + * *
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -403,10 +468,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * .google.rpc.Status validity = 18; + * * @return The validity. */ com.google.rpc.Status getValidity(); /** + * + * *
    * Read-only description of how the alert policy is invalid. This field is
    * only set when the alert policy is invalid. An invalid alert policy will not
@@ -418,6 +486,8 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
   com.google.rpc.StatusOrBuilder getValidityOrBuilder();
 
   /**
+   *
+   *
    * 
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -432,11 +502,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * repeated string notification_channels = 14; + * * @return A list containing the notificationChannels. */ - java.util.List - getNotificationChannelsList(); + java.util.List getNotificationChannelsList(); /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -451,10 +523,13 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * repeated string notification_channels = 14; + * * @return The count of notificationChannels. */ int getNotificationChannelsCount(); /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -469,11 +544,14 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * repeated string notification_channels = 14; + * * @param index The index of the element to return. * @return The notificationChannels at the given index. */ java.lang.String getNotificationChannels(int index); /** + * + * *
    * Identifies the notification channels to which notifications should be sent
    * when incidents are opened or closed or when new violations occur on
@@ -488,33 +566,41 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * repeated string notification_channels = 14; + * * @param index The index of the value to return. * @return The bytes of the notificationChannels at the given index. */ - com.google.protobuf.ByteString - getNotificationChannelsBytes(int index); + com.google.protobuf.ByteString getNotificationChannelsBytes(int index); /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return Whether the creationRecord field is set. */ boolean hasCreationRecord(); /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 10; + * * @return The creationRecord. */ com.google.monitoring.v3.MutationRecord getCreationRecord(); /** + * + * *
    * A read-only record of the creation of the alerting policy. If provided
    * in a call to create or update, this field will be ignored.
@@ -525,26 +611,34 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
   com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder();
 
   /**
+   *
+   *
    * 
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return Whether the mutationRecord field is set. */ boolean hasMutationRecord(); /** + * + * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
    * 
* * .google.monitoring.v3.MutationRecord mutation_record = 11; + * * @return The mutationRecord. */ com.google.monitoring.v3.MutationRecord getMutationRecord(); /** + * + * *
    * A read-only record of the most recent change to the alerting policy. If
    * provided in a call to create or update, this field will be ignored.
@@ -555,24 +649,32 @@ com.google.monitoring.v3.AlertPolicy.ConditionOrBuilder getConditionsOrBuilder(
   com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuilder();
 
   /**
+   *
+   *
    * 
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return Whether the alertStrategy field is set. */ boolean hasAlertStrategy(); /** + * + * *
    * Control over how this alert policy's notification channels are notified.
    * 
* * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; + * * @return The alertStrategy. */ com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy(); /** + * + * *
    * Control over how this alert policy's notification channels are notified.
    * 
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java new file mode 100644 index 000000000000..c0579be51495 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java @@ -0,0 +1,431 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert.proto + +package com.google.monitoring.v3; + +public final class AlertProto { + private AlertProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n google/monitoring/v3/alert.proto\022\024goog" + + "le.monitoring.v3\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032!go" + + "ogle/monitoring/v3/common.proto\032*google/" + + "monitoring/v3/mutation_record.proto\032\036goo" + + "gle/protobuf/duration.proto\032\036google/prot" + + "obuf/wrappers.proto\032\027google/rpc/status.p" + + "roto\"\222\"\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" + + "/.google.monitoring.v3.AlertPolicy.Docum" + + "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" + + "onitoring.v3.AlertPolicy.UserLabelsEntry" + + "\022?\n\nconditions\030\014 \003(\0132+.google.monitoring" + + ".v3.AlertPolicy.Condition\022I\n\010combiner\030\006 " + + "\001(\01627.google.monitoring.v3.AlertPolicy.C" + + "onditionCombinerType\022+\n\007enabled\030\021 \001(\0132\032." + + "google.protobuf.BoolValue\022$\n\010validity\030\022 " + + "\001(\0132\022.google.rpc.Status\022\035\n\025notification_" + + "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132" + + "$.google.monitoring.v3.MutationRecord\022=\n" + + "\017mutation_record\030\013 \001(\0132$.google.monitori" + + "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025" + + " \001(\0132/.google.monitoring.v3.AlertPolicy." + + "AlertStrategy\032J\n\rDocumentation\022\017\n\007conten" + + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\025\n\007subject\030\003 " + + "\001(\tB\004\342A\001\001\032\201\026\n\tCondition\022\014\n\004name\030\014 \001(\t\022\024\n" + + "\014display_name\030\006 \001(\t\022Z\n\023condition_thresho" + + "ld\030\001 \001(\0132;.google.monitoring.v3.AlertPol" + + "icy.Condition.MetricThresholdH\000\022U\n\020condi" + + "tion_absent\030\002 \001(\01329.google.monitoring.v3" + + ".AlertPolicy.Condition.MetricAbsenceH\000\022U" + + "\n\025condition_matched_log\030\024 \001(\01324.google.m" + + "onitoring.v3.AlertPolicy.Condition.LogMa" + + "tchH\000\022{\n#condition_monitoring_query_lang" + + "uage\030\023 \001(\0132L.google.monitoring.v3.AlertP" + + "olicy.Condition.MonitoringQueryLanguageC" + + "onditionH\000\022{\n#condition_prometheus_query" + + "_language\030\025 \001(\0132L.google.monitoring.v3.A" + + "lertPolicy.Condition.PrometheusQueryLang" + + "uageConditionH\000\0325\n\007Trigger\022\017\n\005count\030\001 \001(" + + "\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004type\032\240\005\n\017Metri" + + "cThreshold\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\0227\n\014aggr" + + "egations\030\010 \003(\0132!.google.monitoring.v3.Ag" + + "gregation\022\032\n\022denominator_filter\030\t \001(\t\022C\n" + + "\030denominator_aggregations\030\n \003(\0132!.google" + + ".monitoring.v3.Aggregation\022e\n\020forecast_o" + + "ptions\030\014 \001(\0132K.google.monitoring.v3.Aler" + + "tPolicy.Condition.MetricThreshold.Foreca" + + "stOptions\0228\n\ncomparison\030\004 \001(\0162$.google.m" + + "onitoring.v3.ComparisonType\022\027\n\017threshold" + + "_value\030\005 \001(\001\022+\n\010duration\030\006 \001(\0132\031.google." + + "protobuf.Duration\022D\n\007trigger\030\007 \001(\01323.goo" + + "gle.monitoring.v3.AlertPolicy.Condition." + + "Trigger\022b\n\027evaluation_missing_data\030\013 \001(\016" + + "2A.google.monitoring.v3.AlertPolicy.Cond" + + "ition.EvaluationMissingData\032L\n\017ForecastO" + + "ptions\0229\n\020forecast_horizon\030\001 \001(\0132\031.googl" + + "e.protobuf.DurationB\004\342A\001\002\032\321\001\n\rMetricAbse" + + "nce\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\0227\n\014aggregation" + + "s\030\005 \003(\0132!.google.monitoring.v3.Aggregati" + + "on\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.D" + + "uration\022D\n\007trigger\030\003 \001(\01323.google.monito" + + "ring.v3.AlertPolicy.Condition.Trigger\032\275\001" + + "\n\010LogMatch\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022c\n\020labe" + + "l_extractors\030\002 \003(\0132I.google.monitoring.v" + + "3.AlertPolicy.Condition.LogMatch.LabelEx" + + "tractorsEntry\0326\n\024LabelExtractorsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\210\002\n Monito" + + "ringQueryLanguageCondition\022\r\n\005query\030\001 \001(" + + "\t\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\022D\n\007trigger\030\003 \001(\01323.google.monitor" + + "ing.v3.AlertPolicy.Condition.Trigger\022b\n\027" + + "evaluation_missing_data\030\004 \001(\0162A.google.m" + + "onitoring.v3.AlertPolicy.Condition.Evalu" + + "ationMissingData\032\373\002\n PrometheusQueryLang" + + "uageCondition\022\023\n\005query\030\001 \001(\tB\004\342A\001\002\0221\n\010du" + + "ration\030\002 \001(\0132\031.google.protobuf.DurationB" + + "\004\342A\001\001\022<\n\023evaluation_interval\030\003 \001(\0132\031.goo" + + "gle.protobuf.DurationB\004\342A\001\001\022n\n\006labels\030\004 " + + "\003(\0132X.google.monitoring.v3.AlertPolicy.C" + + "ondition.PrometheusQueryLanguageConditio" + + "n.LabelsEntryB\004\342A\001\001\022\030\n\nrule_group\030\005 \001(\tB" + + "\004\342A\001\001\022\030\n\nalert_rule\030\006 \001(\tB\004\342A\001\001\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\255" + + "\001\n\025EvaluationMissingData\022\'\n#EVALUATION_M" + + "ISSING_DATA_UNSPECIFIED\020\000\022$\n EVALUATION_" + + "MISSING_DATA_INACTIVE\020\001\022\"\n\036EVALUATION_MI" + + "SSING_DATA_ACTIVE\020\002\022!\n\035EVALUATION_MISSIN" + + "G_DATA_NO_OP\020\003:\227\002\352A\223\002\n.monitoring.google" + + "apis.com/AlertPolicyCondition\022Fprojects/" + + "{project}/alertPolicies/{alert_policy}/c" + + "onditions/{condition}\022Porganizations/{or" + + "ganization}/alertPolicies/{alert_policy}" + + "/conditions/{condition}\022Dfolders/{folder" + + "}/alertPolicies/{alert_policy}/condition" + + "s/{condition}\022\001*B\013\n\tcondition\032\327\003\n\rAlertS" + + "trategy\022f\n\027notification_rate_limit\030\001 \001(\013" + + "2E.google.monitoring.v3.AlertPolicy.Aler" + + "tStrategy.NotificationRateLimit\022-\n\nauto_" + + "close\030\003 \001(\0132\031.google.protobuf.Duration\022r" + + "\n\035notification_channel_strategy\030\004 \003(\0132K." + + "google.monitoring.v3.AlertPolicy.AlertSt" + + "rategy.NotificationChannelStrategy\032B\n\025No" + + "tificationRateLimit\022)\n\006period\030\001 \001(\0132\031.go" + + "ogle.protobuf.Duration\032w\n\033NotificationCh" + + "annelStrategy\022\"\n\032notification_channel_na" + + "mes\030\001 \003(\t\0224\n\021renotify_interval\030\002 \001(\0132\031.g" + + "oogle.protobuf.Duration\0321\n\017UserLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025Co" + + "nditionCombinerType\022\027\n\023COMBINE_UNSPECIFI" + + "ED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHI" + + "NG_RESOURCE\020\003:\311\001\352A\305\001\n%monitoring.googlea" + + "pis.com/AlertPolicy\022/projects/{project}/" + + "alertPolicies/{alert_policy}\0229organizati" + + "ons/{organization}/alertPolicies/{alert_" + + "policy}\022-folders/{folder}/alertPolicies/" + + "{alert_policy}\022\001*B\305\001\n\030com.google.monitor" + + "ing.v3B\nAlertProtoP\001ZAcloud.google.com/g" + + "o/monitoring/apiv3/v2/monitoringpb;monit" + + "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + + "d::Monitoring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.MutationRecordProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_AlertPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Documentation", + "UserLabels", + "Conditions", + "Combiner", + "Enabled", + "Validity", + "NotificationChannels", + "CreationRecord", + "MutationRecord", + "AlertStrategy", + }); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor, + new java.lang.String[] { + "Content", "MimeType", "Subject", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "ConditionThreshold", + "ConditionAbsent", + "ConditionMatchedLog", + "ConditionMonitoringQueryLanguage", + "ConditionPrometheusQueryLanguage", + "Condition", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor, + new java.lang.String[] { + "Count", "Percent", "Type", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(1); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor, + new java.lang.String[] { + "Filter", + "Aggregations", + "DenominatorFilter", + "DenominatorAggregations", + "ForecastOptions", + "Comparison", + "ThresholdValue", + "Duration", + "Trigger", + "EvaluationMissingData", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor, + new java.lang.String[] { + "ForecastHorizon", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(2); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor, + new java.lang.String[] { + "Filter", "Aggregations", "Duration", "Trigger", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(3); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor, + new java.lang.String[] { + "Filter", "LabelExtractors", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(4); + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor, + new java.lang.String[] { + "Query", "Duration", "Trigger", "EvaluationMissingData", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor + .getNestedTypes() + .get(5); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor, + new java.lang.String[] { + "Query", "Duration", "EvaluationInterval", "Labels", "RuleGroup", "AlertRule", + }); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor, + new java.lang.String[] { + "NotificationRateLimit", "AutoClose", "NotificationChannelStrategy", + }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor, + new java.lang.String[] { + "Period", + }); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor, + new java.lang.String[] { + "NotificationChannelNames", "RenotifyInterval", + }); + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(3); + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.MutationRecordProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java new file mode 100644 index 000000000000..4d8f495c497f --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java @@ -0,0 +1,202 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public final class AlertServiceProto { + private AlertServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/alert_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032 google/monitoring/v" + + "3/alert.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\"\227\001\n" + + "\030CreateAlertPolicyRequest\022<\n\004name\030\003 \001(\tB" + + ".\342A\001\002\372A\'\022%monitoring.googleapis.com/Aler" + + "tPolicy\022=\n\014alert_policy\030\002 \001(\0132!.google.m" + + "onitoring.v3.AlertPolicyB\004\342A\001\002\"U\n\025GetAle" + + "rtPolicyRequest\022<\n\004name\030\003 \001(\tB.\342A\001\002\372A\'\n%" + + "monitoring.googleapis.com/AlertPolicy\"\241\001" + + "\n\030ListAlertPoliciesRequest\022<\n\004name\030\004 \001(\t" + + "B.\342A\001\002\372A\'\022%monitoring.googleapis.com/Ale" + + "rtPolicy\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001" + + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\203\001\n\031ListAlertPoliciesResponse\0229\n\016alert" + + "_policies\030\003 \003(\0132!.google.monitoring.v3.A" + + "lertPolicy\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + + "otal_size\030\004 \001(\005\"\212\001\n\030UpdateAlertPolicyReq" + + "uest\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\022=\n\014alert_policy\030\003 \001(\0132!.go" + + "ogle.monitoring.v3.AlertPolicyB\004\342A\001\002\"X\n\030" + + "DeleteAlertPolicyRequest\022<\n\004name\030\003 \001(\tB." + + "\342A\001\002\372A\'\n%monitoring.googleapis.com/Alert" + + "Policy2\236\010\n\022AlertPolicyService\022\250\001\n\021ListAl" + + "ertPolicies\022..google.monitoring.v3.ListA" + + "lertPoliciesRequest\032/.google.monitoring." + + "v3.ListAlertPoliciesResponse\"2\332A\004name\202\323\344" + + "\223\002%\022#/v3/{name=projects/*}/alertPolicies" + + "\022\226\001\n\016GetAlertPolicy\022+.google.monitoring." + + "v3.GetAlertPolicyRequest\032!.google.monito" + + "ring.v3.AlertPolicy\"4\332A\004name\202\323\344\223\002\'\022%/v3/" + + "{name=projects/*/alertPolicies/*}\022\265\001\n\021Cr" + + "eateAlertPolicy\022..google.monitoring.v3.C" + + "reateAlertPolicyRequest\032!.google.monitor" + + "ing.v3.AlertPolicy\"M\332A\021name,alert_policy" + + "\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolic" + + "ies:\014alert_policy\022\221\001\n\021DeleteAlertPolicy\022" + + "..google.monitoring.v3.DeleteAlertPolicy" + + "Request\032\026.google.protobuf.Empty\"4\332A\004name" + + "\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolici" + + "es/*}\022\313\001\n\021UpdateAlertPolicy\022..google.mon" + + "itoring.v3.UpdateAlertPolicyRequest\032!.go" + + "ogle.monitoring.v3.AlertPolicy\"c\332A\030updat" + + "e_mask,alert_policy\202\323\344\223\002B22/v3/{alert_po" + + "licy.name=projects/*/alertPolicies/*}:\014a" + + "lert_policy\032\251\001\312A\031monitoring.googleapis.c" + + "om\322A\211\001https://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/monitoring,https://www.googleapis.c" + + "om/auth/monitoring.readB\314\001\n\030com.google.m" + + "onitoring.v3B\021AlertServiceProtoP\001ZAcloud" + + ".google.com/go/monitoring/apiv3/v2/monit" + + "oringpb;monitoringpb\252\002\032Google.Cloud.Moni" + + "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002" + + "\035Google::Cloud::Monitoring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.AlertProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "AlertPolicy", + }); + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "OrderBy", "PageSize", "PageToken", + }); + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor, + new java.lang.String[] { + "AlertPolicies", "NextPageToken", "TotalSize", + }); + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AlertPolicy", + }); + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.AlertProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java index f87a8f20c1be..37f75c01be85 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * An SLI measuring performance on a well-known service type. Performance will
  * be computed on the basis of pre-defined metrics. The type of the
@@ -15,88 +32,91 @@
  *
  * Protobuf type {@code google.monitoring.v3.BasicSli}
  */
-public final class BasicSli extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BasicSli extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli)
     BasicSliOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BasicSli.newBuilder() to construct.
   private BasicSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BasicSli() {
-    method_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-    location_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-    version_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    method_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    location_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    version_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BasicSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_BasicSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.BasicSli.class, com.google.monitoring.v3.BasicSli.Builder.class);
+            com.google.monitoring.v3.BasicSli.class,
+            com.google.monitoring.v3.BasicSli.Builder.class);
   }
 
-  public interface AvailabilityCriteriaOrBuilder extends
+  public interface AvailabilityCriteriaOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli.AvailabilityCriteria)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * Future parameters for the availability SLI.
    * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.AvailabilityCriteria} */ - public static final class AvailabilityCriteria extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AvailabilityCriteria extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli.AvailabilityCriteria) AvailabilityCriteriaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvailabilityCriteria.newBuilder() to construct. private AvailabilityCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvailabilityCriteria() { - } + + private AvailabilityCriteria() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvailabilityCriteria(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -127,12 +146,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.BasicSli.AvailabilityCriteria)) { return super.equals(obj); } - com.google.monitoring.v3.BasicSli.AvailabilityCriteria other = (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) obj; + com.google.monitoring.v3.BasicSli.AvailabilityCriteria other = + (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -151,89 +171,94 @@ public int hashCode() { } public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.BasicSli.AvailabilityCriteria prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.BasicSli.AvailabilityCriteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -243,39 +268,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Future parameters for the availability SLI.
      * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.AvailabilityCriteria} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli.AvailabilityCriteria) com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.class, + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder.class); } // Construct using com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -283,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; } @java.lang.Override @@ -304,7 +331,8 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria build() { @java.lang.Override public com.google.monitoring.v3.BasicSli.AvailabilityCriteria buildPartial() { - com.google.monitoring.v3.BasicSli.AvailabilityCriteria result = new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(this); + com.google.monitoring.v3.BasicSli.AvailabilityCriteria result = + new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(this); onBuilt(); return result; } @@ -313,38 +341,41 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.BasicSli.AvailabilityCriteria) { - return mergeFrom((com.google.monitoring.v3.BasicSli.AvailabilityCriteria)other); + return mergeFrom((com.google.monitoring.v3.BasicSli.AvailabilityCriteria) other); } else { super.mergeFrom(other); return this; @@ -352,7 +383,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.BasicSli.AvailabilityCriteria other) { - if (other == com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -379,12 +411,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -394,6 +427,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -406,12 +440,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) private static final com.google.monitoring.v3.BasicSli.AvailabilityCriteria DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli.AvailabilityCriteria(); } @@ -420,27 +454,28 @@ public static com.google.monitoring.v3.BasicSli.AvailabilityCriteria getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvailabilityCriteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvailabilityCriteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -455,34 +490,42 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LatencyCriteriaOrBuilder extends + public interface LatencyCriteriaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli.LatencyCriteria) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; + * * @return Whether the threshold field is set. */ boolean hasThreshold(); /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; + * * @return The threshold. */ com.google.protobuf.Duration getThreshold(); /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
@@ -493,53 +536,59 @@ public interface LatencyCriteriaOrBuilder extends
     com.google.protobuf.DurationOrBuilder getThresholdOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Parameters for a latency threshold SLI.
    * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.LatencyCriteria} */ - public static final class LatencyCriteria extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LatencyCriteria extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.BasicSli.LatencyCriteria) LatencyCriteriaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LatencyCriteria.newBuilder() to construct. private LatencyCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LatencyCriteria() { - } + + private LatencyCriteria() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LatencyCriteria(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.LatencyCriteria.class, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.LatencyCriteria.class, + com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); } public static final int THRESHOLD_FIELD_NUMBER = 3; private com.google.protobuf.Duration threshold_; /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; + * * @return Whether the threshold field is set. */ @java.lang.Override @@ -547,12 +596,15 @@ public boolean hasThreshold() { return threshold_ != null; } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
      * 
* * .google.protobuf.Duration threshold = 3; + * * @return The threshold. */ @java.lang.Override @@ -560,6 +612,8 @@ public com.google.protobuf.Duration getThreshold() { return threshold_ == null ? com.google.protobuf.Duration.getDefaultInstance() : threshold_; } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return in no more than `threshold`.
@@ -573,6 +627,7 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -584,8 +639,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (threshold_ != null) {
         output.writeMessage(3, getThreshold());
       }
@@ -599,8 +653,7 @@ public int getSerializedSize() {
 
       size = 0;
       if (threshold_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getThreshold());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getThreshold());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -610,17 +663,17 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.BasicSli.LatencyCriteria)) {
         return super.equals(obj);
       }
-      com.google.monitoring.v3.BasicSli.LatencyCriteria other = (com.google.monitoring.v3.BasicSli.LatencyCriteria) obj;
+      com.google.monitoring.v3.BasicSli.LatencyCriteria other =
+          (com.google.monitoring.v3.BasicSli.LatencyCriteria) obj;
 
       if (hasThreshold() != other.hasThreshold()) return false;
       if (hasThreshold()) {
-        if (!getThreshold()
-            .equals(other.getThreshold())) return false;
+        if (!getThreshold().equals(other.getThreshold())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -643,89 +696,93 @@ public int hashCode() {
     }
 
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.BasicSli.LatencyCriteria parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
+
     public static Builder newBuilder(com.google.monitoring.v3.BasicSli.LatencyCriteria prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -735,39 +792,41 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Parameters for a latency threshold SLI.
      * 
* * Protobuf type {@code google.monitoring.v3.BasicSli.LatencyCriteria} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli.LatencyCriteria) com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.BasicSli.LatencyCriteria.class, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); + com.google.monitoring.v3.BasicSli.LatencyCriteria.class, + com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder.class); } // Construct using com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -781,9 +840,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; } @java.lang.Override @@ -802,8 +861,11 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria build() { @java.lang.Override public com.google.monitoring.v3.BasicSli.LatencyCriteria buildPartial() { - com.google.monitoring.v3.BasicSli.LatencyCriteria result = new com.google.monitoring.v3.BasicSli.LatencyCriteria(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.BasicSli.LatencyCriteria result = + new com.google.monitoring.v3.BasicSli.LatencyCriteria(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -811,9 +873,7 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria buildPartial() { private void buildPartial0(com.google.monitoring.v3.BasicSli.LatencyCriteria result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.threshold_ = thresholdBuilder_ == null - ? threshold_ - : thresholdBuilder_.build(); + result.threshold_ = thresholdBuilder_ == null ? threshold_ : thresholdBuilder_.build(); } } @@ -821,38 +881,41 @@ private void buildPartial0(com.google.monitoring.v3.BasicSli.LatencyCriteria res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.BasicSli.LatencyCriteria) { - return mergeFrom((com.google.monitoring.v3.BasicSli.LatencyCriteria)other); + return mergeFrom((com.google.monitoring.v3.BasicSli.LatencyCriteria) other); } else { super.mergeFrom(other); return this; @@ -860,7 +923,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.BasicSli.LatencyCriteria other) { - if (other == com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) + return this; if (other.hasThreshold()) { mergeThreshold(other.getThreshold()); } @@ -890,19 +954,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - input.readMessage( - getThresholdFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + input.readMessage(getThresholdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -912,40 +976,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration threshold_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> thresholdBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + thresholdBuilder_; /** + * + * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
        * 
* * .google.protobuf.Duration threshold = 3; + * * @return Whether the threshold field is set. */ public boolean hasThreshold() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
        * 
* * .google.protobuf.Duration threshold = 3; + * * @return The threshold. */ public com.google.protobuf.Duration getThreshold() { if (thresholdBuilder_ == null) { - return threshold_ == null ? com.google.protobuf.Duration.getDefaultInstance() : threshold_; + return threshold_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : threshold_; } else { return thresholdBuilder_.getMessage(); } } /** + * + * *
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -967,6 +1045,8 @@ public Builder setThreshold(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -974,8 +1054,7 @@ public Builder setThreshold(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration threshold = 3;
        */
-      public Builder setThreshold(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setThreshold(com.google.protobuf.Duration.Builder builderForValue) {
         if (thresholdBuilder_ == null) {
           threshold_ = builderForValue.build();
         } else {
@@ -986,6 +1065,8 @@ public Builder setThreshold(
         return this;
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -995,9 +1076,9 @@ public Builder setThreshold(
        */
       public Builder mergeThreshold(com.google.protobuf.Duration value) {
         if (thresholdBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            threshold_ != null &&
-            threshold_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && threshold_ != null
+              && threshold_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getThresholdBuilder().mergeFrom(value);
           } else {
             threshold_ = value;
@@ -1010,6 +1091,8 @@ public Builder mergeThreshold(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1028,6 +1111,8 @@ public Builder clearThreshold() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1041,6 +1126,8 @@ public com.google.protobuf.Duration.Builder getThresholdBuilder() {
         return getThresholdFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1052,11 +1139,14 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
         if (thresholdBuilder_ != null) {
           return thresholdBuilder_.getMessageOrBuilder();
         } else {
-          return threshold_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : threshold_;
+          return threshold_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : threshold_;
         }
       }
       /**
+       *
+       *
        * 
        * Good service is defined to be the count of requests made to this service
        * that return in no more than `threshold`.
@@ -1065,18 +1155,22 @@ public com.google.protobuf.DurationOrBuilder getThresholdOrBuilder() {
        * .google.protobuf.Duration threshold = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getThresholdFieldBuilder() {
         if (thresholdBuilder_ == null) {
-          thresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getThreshold(),
-                  getParentForChildren(),
-                  isClean());
+          thresholdBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getThreshold(), getParentForChildren(), isClean());
           threshold_ = null;
         }
         return thresholdBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1089,12 +1183,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli.LatencyCriteria)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.LatencyCriteria)
     private static final com.google.monitoring.v3.BasicSli.LatencyCriteria DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli.LatencyCriteria();
     }
@@ -1103,27 +1197,28 @@ public static com.google.monitoring.v3.BasicSli.LatencyCriteria getDefaultInstan
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public LatencyCriteria parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public LatencyCriteria parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1138,19 +1233,22 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.BasicSli.LatencyCriteria getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int sliCriteriaCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object sliCriteria_;
+
   public enum SliCriteriaCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVAILABILITY(2),
     LATENCY(3),
     SLICRITERIA_NOT_SET(0);
     private final int value;
+
     private SliCriteriaCase(int value) {
       this.value = value;
     }
@@ -1166,28 +1264,34 @@ public static SliCriteriaCase valueOf(int value) {
 
     public static SliCriteriaCase forNumber(int value) {
       switch (value) {
-        case 2: return AVAILABILITY;
-        case 3: return LATENCY;
-        case 0: return SLICRITERIA_NOT_SET;
-        default: return null;
+        case 2:
+          return AVAILABILITY;
+        case 3:
+          return LATENCY;
+        case 0:
+          return SLICRITERIA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SliCriteriaCase
-  getSliCriteriaCase() {
-    return SliCriteriaCase.forNumber(
-        sliCriteriaCase_);
+  public SliCriteriaCase getSliCriteriaCase() {
+    return SliCriteriaCase.forNumber(sliCriteriaCase_);
   }
 
   public static final int METHOD_FIELD_NUMBER = 7;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList method_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1197,13 +1301,15 @@ public int getNumber() {
    * 
* * repeated string method = 7; + * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList - getMethodList() { + public com.google.protobuf.ProtocolStringList getMethodList() { return method_; } /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1213,12 +1319,15 @@ public int getNumber() {
    * 
* * repeated string method = 7; + * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1228,6 +1337,7 @@ public int getMethodCount() {
    * 
* * repeated string method = 7; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1235,6 +1345,8 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -1244,19 +1356,22 @@ public java.lang.String getMethod(int index) {
    * 
* * repeated string method = 7; + * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString - getMethodBytes(int index) { + public com.google.protobuf.ByteString getMethodBytes(int index) { return method_.getByteString(index); } public static final int LOCATION_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList location_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1266,13 +1381,15 @@ public java.lang.String getMethod(int index) {
    * 
* * repeated string location = 8; + * * @return A list containing the location. */ - public com.google.protobuf.ProtocolStringList - getLocationList() { + public com.google.protobuf.ProtocolStringList getLocationList() { return location_; } /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1282,12 +1399,15 @@ public java.lang.String getMethod(int index) {
    * 
* * repeated string location = 8; + * * @return The count of location. */ public int getLocationCount() { return location_.size(); } /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1297,6 +1417,7 @@ public int getLocationCount() {
    * 
* * repeated string location = 8; + * * @param index The index of the element to return. * @return The location at the given index. */ @@ -1304,6 +1425,8 @@ public java.lang.String getLocation(int index) { return location_.get(index); } /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -1313,19 +1436,22 @@ public java.lang.String getLocation(int index) {
    * 
* * repeated string location = 8; + * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - public com.google.protobuf.ByteString - getLocationBytes(int index) { + public com.google.protobuf.ByteString getLocationBytes(int index) { return location_.getByteString(index); } public static final int VERSION_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList version_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1335,13 +1461,15 @@ public java.lang.String getLocation(int index) {
    * 
* * repeated string version = 9; + * * @return A list containing the version. */ - public com.google.protobuf.ProtocolStringList - getVersionList() { + public com.google.protobuf.ProtocolStringList getVersionList() { return version_; } /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1351,12 +1479,15 @@ public java.lang.String getLocation(int index) {
    * 
* * repeated string version = 9; + * * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1366,6 +1497,7 @@ public int getVersionCount() {
    * 
* * repeated string version = 9; + * * @param index The index of the element to return. * @return The version at the given index. */ @@ -1373,6 +1505,8 @@ public java.lang.String getVersion(int index) { return version_.get(index); } /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -1382,22 +1516,25 @@ public java.lang.String getVersion(int index) {
    * 
* * repeated string version = 9; + * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - public com.google.protobuf.ByteString - getVersionBytes(int index) { + public com.google.protobuf.ByteString getVersionBytes(int index) { return version_.getByteString(index); } public static final int AVAILABILITY_FIELD_NUMBER = 2; /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return Whether the availability field is set. */ @java.lang.Override @@ -1405,22 +1542,27 @@ public boolean hasAvailability() { return sliCriteriaCase_ == 2; } /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return The availability. */ @java.lang.Override public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability() { if (sliCriteriaCase_ == 2) { - return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_; + return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_; } return com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance(); } /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
@@ -1429,21 +1571,25 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability()
    * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder() {
+  public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder
+      getAvailabilityOrBuilder() {
     if (sliCriteriaCase_ == 2) {
-       return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_;
+      return (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_;
     }
     return com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
   }
 
   public static final int LATENCY_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return Whether the latency field is set. */ @java.lang.Override @@ -1451,22 +1597,27 @@ public boolean hasLatency() { return sliCriteriaCase_ == 3; } /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return The latency. */ @java.lang.Override public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() { if (sliCriteriaCase_ == 3) { - return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_; + return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_; } return com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance(); } /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
@@ -1477,12 +1628,13 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() {
   @java.lang.Override
   public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBuilder() {
     if (sliCriteriaCase_ == 3) {
-       return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_;
+      return (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_;
     }
     return com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1494,8 +1646,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sliCriteriaCase_ == 2) {
       output.writeMessage(2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
     }
@@ -1521,12 +1672,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (sliCriteriaCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_);
     }
     if (sliCriteriaCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_);
     }
     {
       int dataSize = 0;
@@ -1560,28 +1713,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.BasicSli)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.BasicSli other = (com.google.monitoring.v3.BasicSli) obj;
 
-    if (!getMethodList()
-        .equals(other.getMethodList())) return false;
-    if (!getLocationList()
-        .equals(other.getLocationList())) return false;
-    if (!getVersionList()
-        .equals(other.getVersionList())) return false;
+    if (!getMethodList().equals(other.getMethodList())) return false;
+    if (!getLocationList().equals(other.getLocationList())) return false;
+    if (!getVersionList().equals(other.getVersionList())) return false;
     if (!getSliCriteriaCase().equals(other.getSliCriteriaCase())) return false;
     switch (sliCriteriaCase_) {
       case 2:
-        if (!getAvailability()
-            .equals(other.getAvailability())) return false;
+        if (!getAvailability().equals(other.getAvailability())) return false;
         break;
       case 3:
-        if (!getLatency()
-            .equals(other.getLatency())) return false;
+        if (!getLatency().equals(other.getLatency())) return false;
         break;
       case 0:
       default:
@@ -1626,99 +1774,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.BasicSli parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.BasicSli parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.BasicSli parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.monitoring.v3.BasicSli parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.BasicSli parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.BasicSli parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.BasicSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.BasicSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * An SLI measuring performance on a well-known service type. Performance will
    * be computed on the basis of pre-defined metrics. The type of the
@@ -1730,43 +1882,39 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.BasicSli}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.BasicSli)
       com.google.monitoring.v3.BasicSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_BasicSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.BasicSli.class, com.google.monitoring.v3.BasicSli.Builder.class);
+              com.google.monitoring.v3.BasicSli.class,
+              com.google.monitoring.v3.BasicSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.BasicSli.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      method_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      location_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      version_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      method_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      location_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      version_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (availabilityBuilder_ != null) {
         availabilityBuilder_.clear();
       }
@@ -1779,9 +1927,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_BasicSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_BasicSli_descriptor;
     }
 
     @java.lang.Override
@@ -1801,7 +1949,9 @@ public com.google.monitoring.v3.BasicSli build() {
     @java.lang.Override
     public com.google.monitoring.v3.BasicSli buildPartial() {
       com.google.monitoring.v3.BasicSli result = new com.google.monitoring.v3.BasicSli(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1826,12 +1976,10 @@ private void buildPartial0(com.google.monitoring.v3.BasicSli result) {
     private void buildPartialOneofs(com.google.monitoring.v3.BasicSli result) {
       result.sliCriteriaCase_ = sliCriteriaCase_;
       result.sliCriteria_ = this.sliCriteria_;
-      if (sliCriteriaCase_ == 2 &&
-          availabilityBuilder_ != null) {
+      if (sliCriteriaCase_ == 2 && availabilityBuilder_ != null) {
         result.sliCriteria_ = availabilityBuilder_.build();
       }
-      if (sliCriteriaCase_ == 3 &&
-          latencyBuilder_ != null) {
+      if (sliCriteriaCase_ == 3 && latencyBuilder_ != null) {
         result.sliCriteria_ = latencyBuilder_.build();
       }
     }
@@ -1840,38 +1988,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.BasicSli result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.BasicSli) {
-        return mergeFrom((com.google.monitoring.v3.BasicSli)other);
+        return mergeFrom((com.google.monitoring.v3.BasicSli) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1911,17 +2060,20 @@ public Builder mergeFrom(com.google.monitoring.v3.BasicSli other) {
         onChanged();
       }
       switch (other.getSliCriteriaCase()) {
-        case AVAILABILITY: {
-          mergeAvailability(other.getAvailability());
-          break;
-        }
-        case LATENCY: {
-          mergeLatency(other.getLatency());
-          break;
-        }
-        case SLICRITERIA_NOT_SET: {
-          break;
-        }
+        case AVAILABILITY:
+          {
+            mergeAvailability(other.getAvailability());
+            break;
+          }
+        case LATENCY:
+          {
+            mergeLatency(other.getLatency());
+            break;
+          }
+        case SLICRITERIA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1949,44 +2101,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getAvailabilityFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              sliCriteriaCase_ = 2;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getLatencyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              sliCriteriaCase_ = 3;
-              break;
-            } // case 26
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureMethodIsMutable();
-              method_.add(s);
-              break;
-            } // case 58
-            case 66: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLocationIsMutable();
-              location_.add(s);
-              break;
-            } // case 66
-            case 74: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureVersionIsMutable();
-              version_.add(s);
-              break;
-            } // case 74
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getAvailabilityFieldBuilder().getBuilder(), extensionRegistry);
+                sliCriteriaCase_ = 2;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getLatencyFieldBuilder().getBuilder(), extensionRegistry);
+                sliCriteriaCase_ = 3;
+                break;
+              } // case 26
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMethodIsMutable();
+                method_.add(s);
+                break;
+              } // case 58
+            case 66:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLocationIsMutable();
+                location_.add(s);
+                break;
+              } // case 66
+            case 74:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureVersionIsMutable();
+                version_.add(s);
+                break;
+              } // case 74
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1996,12 +2150,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int sliCriteriaCase_ = 0;
     private java.lang.Object sliCriteria_;
-    public SliCriteriaCase
-        getSliCriteriaCase() {
-      return SliCriteriaCase.forNumber(
-          sliCriteriaCase_);
+
+    public SliCriteriaCase getSliCriteriaCase() {
+      return SliCriteriaCase.forNumber(sliCriteriaCase_);
     }
 
     public Builder clearSliCriteria() {
@@ -2015,6 +2169,7 @@ public Builder clearSliCriteria() {
 
     private com.google.protobuf.LazyStringArrayList method_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureMethodIsMutable() {
       if (!method_.isModifiable()) {
         method_ = new com.google.protobuf.LazyStringArrayList(method_);
@@ -2022,6 +2177,8 @@ private void ensureMethodIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2031,14 +2188,16 @@ private void ensureMethodIsMutable() {
      * 
* * repeated string method = 7; + * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList - getMethodList() { + public com.google.protobuf.ProtocolStringList getMethodList() { method_.makeImmutable(); return method_; } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2048,12 +2207,15 @@ private void ensureMethodIsMutable() {
      * 
* * repeated string method = 7; + * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2063,6 +2225,7 @@ public int getMethodCount() {
      * 
* * repeated string method = 7; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -2070,6 +2233,8 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2079,14 +2244,16 @@ public java.lang.String getMethod(int index) {
      * 
* * repeated string method = 7; + * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString - getMethodBytes(int index) { + public com.google.protobuf.ByteString getMethodBytes(int index) { return method_.getByteString(index); } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2096,13 +2263,15 @@ public java.lang.String getMethod(int index) {
      * 
* * repeated string method = 7; + * * @param index The index to set the value at. * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethod(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMethodIsMutable(); method_.set(index, value); bitField0_ |= 0x00000001; @@ -2110,6 +2279,8 @@ public Builder setMethod( return this; } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2119,12 +2290,14 @@ public Builder setMethod(
      * 
* * repeated string method = 7; + * * @param value The method to add. * @return This builder for chaining. */ - public Builder addMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMethodIsMutable(); method_.add(value); bitField0_ |= 0x00000001; @@ -2132,6 +2305,8 @@ public Builder addMethod( return this; } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2141,19 +2316,20 @@ public Builder addMethod(
      * 
* * repeated string method = 7; + * * @param values The method to add. * @return This builder for chaining. */ - public Builder addAllMethod( - java.lang.Iterable values) { + public Builder addAllMethod(java.lang.Iterable values) { ensureMethodIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, method_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, method_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2163,16 +2339,19 @@ public Builder addAllMethod(
      * 
* * repeated string method = 7; + * * @return This builder for chaining. */ public Builder clearMethod() { - method_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + method_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
      * other methods will not be used to calculate performance for this SLI. If
@@ -2182,12 +2361,14 @@ public Builder clearMethod() {
      * 
* * repeated string method = 7; + * * @param value The bytes of the method to add. * @return This builder for chaining. */ - public Builder addMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMethodIsMutable(); method_.add(value); @@ -2198,6 +2379,7 @@ public Builder addMethodBytes( private com.google.protobuf.LazyStringArrayList location_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationIsMutable() { if (!location_.isModifiable()) { location_ = new com.google.protobuf.LazyStringArrayList(location_); @@ -2205,6 +2387,8 @@ private void ensureLocationIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2214,14 +2398,16 @@ private void ensureLocationIsMutable() {
      * 
* * repeated string location = 8; + * * @return A list containing the location. */ - public com.google.protobuf.ProtocolStringList - getLocationList() { + public com.google.protobuf.ProtocolStringList getLocationList() { location_.makeImmutable(); return location_; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2231,12 +2417,15 @@ private void ensureLocationIsMutable() {
      * 
* * repeated string location = 8; + * * @return The count of location. */ public int getLocationCount() { return location_.size(); } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2246,6 +2435,7 @@ public int getLocationCount() {
      * 
* * repeated string location = 8; + * * @param index The index of the element to return. * @return The location at the given index. */ @@ -2253,6 +2443,8 @@ public java.lang.String getLocation(int index) { return location_.get(index); } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2262,14 +2454,16 @@ public java.lang.String getLocation(int index) {
      * 
* * repeated string location = 8; + * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - public com.google.protobuf.ByteString - getLocationBytes(int index) { + public com.google.protobuf.ByteString getLocationBytes(int index) { return location_.getByteString(index); } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2279,13 +2473,15 @@ public java.lang.String getLocation(int index) {
      * 
* * repeated string location = 8; + * * @param index The index to set the value at. * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLocationIsMutable(); location_.set(index, value); bitField0_ |= 0x00000002; @@ -2293,6 +2489,8 @@ public Builder setLocation( return this; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2302,12 +2500,14 @@ public Builder setLocation(
      * 
* * repeated string location = 8; + * * @param value The location to add. * @return This builder for chaining. */ - public Builder addLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLocationIsMutable(); location_.add(value); bitField0_ |= 0x00000002; @@ -2315,6 +2515,8 @@ public Builder addLocation( return this; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2324,19 +2526,20 @@ public Builder addLocation(
      * 
* * repeated string location = 8; + * * @param values The location to add. * @return This builder for chaining. */ - public Builder addAllLocation( - java.lang.Iterable values) { + public Builder addAllLocation(java.lang.Iterable values) { ensureLocationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, location_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, location_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2346,16 +2549,19 @@ public Builder addAllLocation(
      * 
* * repeated string location = 8; + * * @return This builder for chaining. */ public Builder clearLocation() { - location_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + location_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
      * from other locations will not be used to calculate performance for this
@@ -2365,12 +2571,14 @@ public Builder clearLocation() {
      * 
* * repeated string location = 8; + * * @param value The bytes of the location to add. * @return This builder for chaining. */ - public Builder addLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLocationIsMutable(); location_.add(value); @@ -2381,6 +2589,7 @@ public Builder addLocationBytes( private com.google.protobuf.LazyStringArrayList version_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureVersionIsMutable() { if (!version_.isModifiable()) { version_ = new com.google.protobuf.LazyStringArrayList(version_); @@ -2388,6 +2597,8 @@ private void ensureVersionIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2397,14 +2608,16 @@ private void ensureVersionIsMutable() {
      * 
* * repeated string version = 9; + * * @return A list containing the version. */ - public com.google.protobuf.ProtocolStringList - getVersionList() { + public com.google.protobuf.ProtocolStringList getVersionList() { version_.makeImmutable(); return version_; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2414,12 +2627,15 @@ private void ensureVersionIsMutable() {
      * 
* * repeated string version = 9; + * * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2429,6 +2645,7 @@ public int getVersionCount() {
      * 
* * repeated string version = 9; + * * @param index The index of the element to return. * @return The version at the given index. */ @@ -2436,6 +2653,8 @@ public java.lang.String getVersion(int index) { return version_.get(index); } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2445,14 +2664,16 @@ public java.lang.String getVersion(int index) {
      * 
* * repeated string version = 9; + * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - public com.google.protobuf.ByteString - getVersionBytes(int index) { + public com.google.protobuf.ByteString getVersionBytes(int index) { return version_.getByteString(index); } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2462,13 +2683,15 @@ public java.lang.String getVersion(int index) {
      * 
* * repeated string version = 9; + * * @param index The index to set the value at. * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersion(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVersionIsMutable(); version_.set(index, value); bitField0_ |= 0x00000004; @@ -2476,6 +2699,8 @@ public Builder setVersion( return this; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2485,12 +2710,14 @@ public Builder setVersion(
      * 
* * repeated string version = 9; + * * @param value The version to add. * @return This builder for chaining. */ - public Builder addVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVersionIsMutable(); version_.add(value); bitField0_ |= 0x00000004; @@ -2498,6 +2725,8 @@ public Builder addVersion( return this; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2507,19 +2736,20 @@ public Builder addVersion(
      * 
* * repeated string version = 9; + * * @param values The version to add. * @return This builder for chaining. */ - public Builder addAllVersion( - java.lang.Iterable values) { + public Builder addAllVersion(java.lang.Iterable values) { ensureVersionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, version_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, version_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2529,16 +2759,19 @@ public Builder addAllVersion(
      * 
* * repeated string version = 9; + * * @return This builder for chaining. */ public Builder clearVersion() { - version_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + version_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
      * from other API versions will not be used to calculate performance for this
@@ -2548,12 +2781,14 @@ public Builder clearVersion() {
      * 
* * repeated string version = 9; + * * @param value The bytes of the version to add. * @return This builder for chaining. */ - public Builder addVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureVersionIsMutable(); version_.add(value); @@ -2563,14 +2798,20 @@ public Builder addVersionBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> availabilityBuilder_; + com.google.monitoring.v3.BasicSli.AvailabilityCriteria, + com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, + com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> + availabilityBuilder_; /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
      * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return Whether the availability field is set. */ @java.lang.Override @@ -2578,12 +2819,15 @@ public boolean hasAvailability() { return sliCriteriaCase_ == 2; } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
      * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return The availability. */ @java.lang.Override @@ -2601,6 +2845,8 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability() } } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2622,6 +2868,8 @@ public Builder setAvailability(com.google.monitoring.v3.BasicSli.AvailabilityCri
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2641,6 +2889,8 @@ public Builder setAvailability(
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2650,10 +2900,14 @@ public Builder setAvailability(
      */
     public Builder mergeAvailability(com.google.monitoring.v3.BasicSli.AvailabilityCriteria value) {
       if (availabilityBuilder_ == null) {
-        if (sliCriteriaCase_ == 2 &&
-            sliCriteria_ != com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) {
-          sliCriteria_ = com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder((com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_)
-              .mergeFrom(value).buildPartial();
+        if (sliCriteriaCase_ == 2
+            && sliCriteria_
+                != com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance()) {
+          sliCriteria_ =
+              com.google.monitoring.v3.BasicSli.AvailabilityCriteria.newBuilder(
+                      (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           sliCriteria_ = value;
         }
@@ -2669,6 +2923,8 @@ public Builder mergeAvailability(com.google.monitoring.v3.BasicSli.AvailabilityC
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2693,6 +2949,8 @@ public Builder clearAvailability() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2704,6 +2962,8 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
       return getAvailabilityFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2712,7 +2972,8 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder getAvailab
      * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder() {
+    public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder
+        getAvailabilityOrBuilder() {
       if ((sliCriteriaCase_ == 2) && (availabilityBuilder_ != null)) {
         return availabilityBuilder_.getMessageOrBuilder();
       } else {
@@ -2723,6 +2984,8 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvaila
       }
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that return successfully.
@@ -2731,14 +2994,20 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvaila
      * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder> 
+            com.google.monitoring.v3.BasicSli.AvailabilityCriteria,
+            com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder,
+            com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>
         getAvailabilityFieldBuilder() {
       if (availabilityBuilder_ == null) {
         if (!(sliCriteriaCase_ == 2)) {
-          sliCriteria_ = com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
+          sliCriteria_ =
+              com.google.monitoring.v3.BasicSli.AvailabilityCriteria.getDefaultInstance();
         }
-        availabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli.AvailabilityCriteria, com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder, com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>(
+        availabilityBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.BasicSli.AvailabilityCriteria,
+                com.google.monitoring.v3.BasicSli.AvailabilityCriteria.Builder,
+                com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder>(
                 (com.google.monitoring.v3.BasicSli.AvailabilityCriteria) sliCriteria_,
                 getParentForChildren(),
                 isClean());
@@ -2750,14 +3019,20 @@ public com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvaila
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder> latencyBuilder_;
+            com.google.monitoring.v3.BasicSli.LatencyCriteria,
+            com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
+            com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>
+        latencyBuilder_;
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
      * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return Whether the latency field is set. */ @java.lang.Override @@ -2765,12 +3040,15 @@ public boolean hasLatency() { return sliCriteriaCase_ == 3; } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
      * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return The latency. */ @java.lang.Override @@ -2788,6 +3066,8 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency() { } } /** + * + * *
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2809,6 +3089,8 @@ public Builder setLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2828,6 +3110,8 @@ public Builder setLatency(
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2837,10 +3121,14 @@ public Builder setLatency(
      */
     public Builder mergeLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria value) {
       if (latencyBuilder_ == null) {
-        if (sliCriteriaCase_ == 3 &&
-            sliCriteria_ != com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) {
-          sliCriteria_ = com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder((com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_)
-              .mergeFrom(value).buildPartial();
+        if (sliCriteriaCase_ == 3
+            && sliCriteria_
+                != com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance()) {
+          sliCriteria_ =
+              com.google.monitoring.v3.BasicSli.LatencyCriteria.newBuilder(
+                      (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           sliCriteria_ = value;
         }
@@ -2856,6 +3144,8 @@ public Builder mergeLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria va
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2880,6 +3170,8 @@ public Builder clearLatency() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2891,6 +3183,8 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder getLatencyBuild
       return getLatencyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2910,6 +3204,8 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Good service is defined to be the count of requests made to this service
      * that are fast enough with respect to `latency.threshold`.
@@ -2918,14 +3214,19 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
      * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder> 
+            com.google.monitoring.v3.BasicSli.LatencyCriteria,
+            com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
+            com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>
         getLatencyFieldBuilder() {
       if (latencyBuilder_ == null) {
         if (!(sliCriteriaCase_ == 3)) {
           sliCriteria_ = com.google.monitoring.v3.BasicSli.LatencyCriteria.getDefaultInstance();
         }
-        latencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.BasicSli.LatencyCriteria, com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder, com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>(
+        latencyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.BasicSli.LatencyCriteria,
+                com.google.monitoring.v3.BasicSli.LatencyCriteria.Builder,
+                com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder>(
                 (com.google.monitoring.v3.BasicSli.LatencyCriteria) sliCriteria_,
                 getParentForChildren(),
                 isClean());
@@ -2935,9 +3236,9 @@ public com.google.monitoring.v3.BasicSli.LatencyCriteriaOrBuilder getLatencyOrBu
       onChanged();
       return latencyBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2947,12 +3248,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.BasicSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli)
   private static final com.google.monitoring.v3.BasicSli DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.BasicSli();
   }
@@ -2961,27 +3262,27 @@ public static com.google.monitoring.v3.BasicSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BasicSli parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BasicSli parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2996,6 +3297,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.BasicSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
similarity index 87%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
index 80a31e19bc6d..8cad5753c8c8 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSliOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface BasicSliOrBuilder extends
+public interface BasicSliOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.BasicSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -17,11 +35,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string method = 7; + * * @return A list containing the method. */ - java.util.List - getMethodList(); + java.util.List getMethodList(); /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -31,10 +51,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string method = 7; + * * @return The count of method. */ int getMethodCount(); /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -44,11 +67,14 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string method = 7; + * * @param index The index of the element to return. * @return The method at the given index. */ java.lang.String getMethod(int index); /** + * + * *
    * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
    * other methods will not be used to calculate performance for this SLI. If
@@ -58,13 +84,15 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string method = 7; + * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - com.google.protobuf.ByteString - getMethodBytes(int index); + com.google.protobuf.ByteString getMethodBytes(int index); /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -74,11 +102,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string location = 8; + * * @return A list containing the location. */ - java.util.List - getLocationList(); + java.util.List getLocationList(); /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -88,10 +118,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string location = 8; + * * @return The count of location. */ int getLocationCount(); /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -101,11 +134,14 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string location = 8; + * * @param index The index of the element to return. * @return The location at the given index. */ java.lang.String getLocation(int index); /** + * + * *
    * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
    * from other locations will not be used to calculate performance for this
@@ -115,13 +151,15 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string location = 8; + * * @param index The index of the value to return. * @return The bytes of the location at the given index. */ - com.google.protobuf.ByteString - getLocationBytes(int index); + com.google.protobuf.ByteString getLocationBytes(int index); /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -131,11 +169,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string version = 9; + * * @return A list containing the version. */ - java.util.List - getVersionList(); + java.util.List getVersionList(); /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -145,10 +185,13 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string version = 9; + * * @return The count of version. */ int getVersionCount(); /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -158,11 +201,14 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string version = 9; + * * @param index The index of the element to return. * @return The version at the given index. */ java.lang.String getVersion(int index); /** + * + * *
    * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
    * from other API versions will not be used to calculate performance for this
@@ -172,33 +218,41 @@ public interface BasicSliOrBuilder extends
    * 
* * repeated string version = 9; + * * @param index The index of the value to return. * @return The bytes of the version at the given index. */ - com.google.protobuf.ByteString - getVersionBytes(int index); + com.google.protobuf.ByteString getVersionBytes(int index); /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return Whether the availability field is set. */ boolean hasAvailability(); /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
    * 
* * .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; + * * @return The availability. */ com.google.monitoring.v3.BasicSli.AvailabilityCriteria getAvailability(); /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that return successfully.
@@ -209,26 +263,34 @@ public interface BasicSliOrBuilder extends
   com.google.monitoring.v3.BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder();
 
   /**
+   *
+   *
    * 
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return Whether the latency field is set. */ boolean hasLatency(); /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
    * 
* * .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3; + * * @return The latency. */ com.google.monitoring.v3.BasicSli.LatencyCriteria getLatency(); /** + * + * *
    * Good service is defined to be the count of requests made to this service
    * that are fast enough with respect to `latency.threshold`.
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
new file mode 100644
index 000000000000..c4f4a3bbde3f
--- /dev/null
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java
@@ -0,0 +1,137 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/common.proto
+
+package com.google.monitoring.v3;
+
+public final class CommonProto {
+  private CommonProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_TypedValue_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_TimeInterval_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Aggregation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/monitoring/v3/common.proto\022\024goo"
+          + "gle.monitoring.v3\032\035google/api/distributi"
+          + "on.proto\032\036google/protobuf/duration.proto"
+          + "\032\037google/protobuf/timestamp.proto\"\252\001\n\nTy"
+          + "pedValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_"
+          + "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n"
+          + "\014string_value\030\004 \001(\tH\000\0226\n\022distribution_va"
+          + "lue\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n"
+          + "\005value\"l\n\014TimeInterval\022,\n\010end_time\030\002 \001(\013"
+          + "2\032.google.protobuf.Timestamp\022.\n\nstart_ti"
+          + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\"\255\007\n"
+          + "\013Aggregation\0223\n\020alignment_period\030\001 \001(\0132\031"
+          + ".google.protobuf.Duration\022E\n\022per_series_"
+          + "aligner\030\002 \001(\0162).google.monitoring.v3.Agg"
+          + "regation.Aligner\022G\n\024cross_series_reducer"
+          + "\030\004 \001(\0162).google.monitoring.v3.Aggregatio"
+          + "n.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007A"
+          + "ligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001\022"
+          + "\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022\024"
+          + "\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\tA"
+          + "LIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COUN"
+          + "T\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n\020"
+          + "ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE\020"
+          + "\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PERC"
+          + "ENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n\023"
+          + "ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTIL"
+          + "E_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Red"
+          + "ucer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022\016"
+          + "\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUCE"
+          + "_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COUN"
+          + "T\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_COU"
+          + "NT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n\024"
+          + "REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCENT"
+          + "ILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024RE"
+          + "DUCE_PERCENTILE_05\020\014*\236\001\n\016ComparisonType\022"
+          + "\032\n\026COMPARISON_UNSPECIFIED\020\000\022\021\n\rCOMPARISO"
+          + "N_GT\020\001\022\021\n\rCOMPARISON_GE\020\002\022\021\n\rCOMPARISON_"
+          + "LT\020\003\022\021\n\rCOMPARISON_LE\020\004\022\021\n\rCOMPARISON_EQ"
+          + "\020\005\022\021\n\rCOMPARISON_NE\020\006*a\n\013ServiceTier\022\034\n\030"
+          + "SERVICE_TIER_UNSPECIFIED\020\000\022\026\n\022SERVICE_TI"
+          + "ER_BASIC\020\001\022\030\n\024SERVICE_TIER_PREMIUM\020\002\032\002\030\001"
+          + "B\306\001\n\030com.google.monitoring.v3B\013CommonPro"
+          + "toP\001ZAcloud.google.com/go/monitoring/api"
+          + "v3/v2/monitoringpb;monitoringpb\252\002\032Google"
+          + ".Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Moni"
+          + "toring\\V3\352\002\035Google::Cloud::Monitoring::V"
+          + "3b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.DistributionProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
+    internal_static_google_monitoring_v3_TypedValue_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_TypedValue_descriptor,
+            new java.lang.String[] {
+              "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value",
+            });
+    internal_static_google_monitoring_v3_TimeInterval_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_TimeInterval_descriptor,
+            new java.lang.String[] {
+              "EndTime", "StartTime",
+            });
+    internal_static_google_monitoring_v3_Aggregation_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Aggregation_descriptor,
+            new java.lang.String[] {
+              "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields",
+            });
+    com.google.api.DistributionProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
similarity index 72%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
index 98216500c51e..26085a2c6797 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ComparisonType.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * Specifies an ordering relationship on two arguments, called `left` and
  * `right`.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.monitoring.v3.ComparisonType}
  */
-public enum ComparisonType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No ordering relationship is specified.
    * 
@@ -22,6 +40,8 @@ public enum ComparisonType */ COMPARISON_UNSPECIFIED(0), /** + * + * *
    * True if the left argument is greater than the right argument.
    * 
@@ -30,6 +50,8 @@ public enum ComparisonType */ COMPARISON_GT(1), /** + * + * *
    * True if the left argument is greater than or equal to the right argument.
    * 
@@ -38,6 +60,8 @@ public enum ComparisonType */ COMPARISON_GE(2), /** + * + * *
    * True if the left argument is less than the right argument.
    * 
@@ -46,6 +70,8 @@ public enum ComparisonType */ COMPARISON_LT(3), /** + * + * *
    * True if the left argument is less than or equal to the right argument.
    * 
@@ -54,6 +80,8 @@ public enum ComparisonType */ COMPARISON_LE(4), /** + * + * *
    * True if the left argument is equal to the right argument.
    * 
@@ -62,6 +90,8 @@ public enum ComparisonType */ COMPARISON_EQ(5), /** + * + * *
    * True if the left argument is not equal to the right argument.
    * 
@@ -73,6 +103,8 @@ public enum ComparisonType ; /** + * + * *
    * No ordering relationship is specified.
    * 
@@ -81,6 +113,8 @@ public enum ComparisonType */ public static final int COMPARISON_UNSPECIFIED_VALUE = 0; /** + * + * *
    * True if the left argument is greater than the right argument.
    * 
@@ -89,6 +123,8 @@ public enum ComparisonType */ public static final int COMPARISON_GT_VALUE = 1; /** + * + * *
    * True if the left argument is greater than or equal to the right argument.
    * 
@@ -97,6 +133,8 @@ public enum ComparisonType */ public static final int COMPARISON_GE_VALUE = 2; /** + * + * *
    * True if the left argument is less than the right argument.
    * 
@@ -105,6 +143,8 @@ public enum ComparisonType */ public static final int COMPARISON_LT_VALUE = 3; /** + * + * *
    * True if the left argument is less than or equal to the right argument.
    * 
@@ -113,6 +153,8 @@ public enum ComparisonType */ public static final int COMPARISON_LE_VALUE = 4; /** + * + * *
    * True if the left argument is equal to the right argument.
    * 
@@ -121,6 +163,8 @@ public enum ComparisonType */ public static final int COMPARISON_EQ_VALUE = 5; /** + * + * *
    * True if the left argument is not equal to the right argument.
    * 
@@ -129,7 +173,6 @@ public enum ComparisonType */ public static final int COMPARISON_NE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -154,53 +197,57 @@ public static ComparisonType valueOf(int value) { */ public static ComparisonType forNumber(int value) { switch (value) { - case 0: return COMPARISON_UNSPECIFIED; - case 1: return COMPARISON_GT; - case 2: return COMPARISON_GE; - case 3: return COMPARISON_LT; - case 4: return COMPARISON_LE; - case 5: return COMPARISON_EQ; - case 6: return COMPARISON_NE; - default: return null; + case 0: + return COMPARISON_UNSPECIFIED; + case 1: + return COMPARISON_GT; + case 2: + return COMPARISON_GE; + case 3: + return COMPARISON_LT; + case 4: + return COMPARISON_LE; + case 5: + return COMPARISON_EQ; + case 6: + return COMPARISON_NE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ComparisonType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComparisonType findValueByNumber(int number) { - return ComparisonType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonType findValueByNumber(int number) { + return ComparisonType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.CommonProto.getDescriptor().getEnumTypes().get(0); } private static final ComparisonType[] VALUES = values(); - public static ComparisonType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ComparisonType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -216,4 +263,3 @@ private ComparisonType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.ComparisonType) } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java index 273f4ac38d27..a2b754a8029e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `CreateAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateAlertPolicyRequest} */ -public final class CreateAlertPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateAlertPolicyRequest) CreateAlertPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAlertPolicyRequest.newBuilder() to construct. private CreateAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateAlertPolicyRequest.class, com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.CreateAlertPolicyRequest.class, + com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * container.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -72,14 +97,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -96,17 +122,18 @@ public java.lang.String getName() {
    * container.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -117,13 +144,18 @@ public java.lang.String getName() { public static final int ALERT_POLICY_FIELD_NUMBER = 2; private com.google.monitoring.v3.AlertPolicy alertPolicy_; /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ @java.lang.Override @@ -131,34 +163,48 @@ public boolean hasAlertPolicy() { return alertPolicy_ != null; } /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +216,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (alertPolicy_ != null) { output.writeMessage(2, getAlertPolicy()); } @@ -188,8 +233,7 @@ public int getSerializedSize() { size = 0; if (alertPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAlertPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlertPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -202,19 +246,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateAlertPolicyRequest other = (com.google.monitoring.v3.CreateAlertPolicyRequest) obj; + com.google.monitoring.v3.CreateAlertPolicyRequest other = + (com.google.monitoring.v3.CreateAlertPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasAlertPolicy() != other.hasAlertPolicy()) return false; if (hasAlertPolicy()) { - if (!getAlertPolicy() - .equals(other.getAlertPolicy())) return false; + if (!getAlertPolicy().equals(other.getAlertPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -239,131 +282,135 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `CreateAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateAlertPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateAlertPolicyRequest) com.google.monitoring.v3.CreateAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateAlertPolicyRequest.class, com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.CreateAlertPolicyRequest.class, + com.google.monitoring.v3.CreateAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateAlertPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; } @java.lang.Override @@ -399,8 +446,11 @@ public com.google.monitoring.v3.CreateAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.CreateAlertPolicyRequest result = new com.google.monitoring.v3.CreateAlertPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateAlertPolicyRequest result = + new com.google.monitoring.v3.CreateAlertPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -411,9 +461,8 @@ private void buildPartial0(com.google.monitoring.v3.CreateAlertPolicyRequest res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.alertPolicy_ = alertPolicyBuilder_ == null - ? alertPolicy_ - : alertPolicyBuilder_.build(); + result.alertPolicy_ = + alertPolicyBuilder_ == null ? alertPolicy_ : alertPolicyBuilder_.build(); } } @@ -421,38 +470,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateAlertPolicyRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.CreateAlertPolicyRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateAlertPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -460,7 +510,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateAlertPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -495,24 +546,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getAlertPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getAlertPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -522,10 +574,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -542,14 +597,16 @@ public Builder mergeFrom(
      * container.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -558,6 +615,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -574,16 +633,17 @@ public java.lang.String getName() {
      * container.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -591,6 +651,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -607,19 +669,25 @@ public java.lang.String getName() {
      * container.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -636,7 +704,10 @@ public Builder setName(
      * container.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -646,6 +717,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -662,13 +735,17 @@ public Builder clearName() {
      * container.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -678,45 +755,64 @@ public Builder setNameBytes( private com.google.monitoring.v3.AlertPolicy alertPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPolicyBuilder_; + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder> + alertPolicyBuilder_; /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ public boolean hasAlertPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { @@ -732,16 +828,19 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAlertPolicy( - com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPolicyBuilder_ == null) { alertPolicy_ = builderForValue.build(); } else { @@ -752,19 +851,23 @@ public Builder setAlertPolicy( return this; } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - alertPolicy_ != null && - alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && alertPolicy_ != null + && alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { getAlertPolicyBuilder().mergeFrom(value); } else { alertPolicy_ = value; @@ -777,13 +880,17 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAlertPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -796,13 +903,17 @@ public Builder clearAlertPolicy() { return this; } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { bitField0_ |= 0x00000002; @@ -810,47 +921,59 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { return getAlertPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { - return alertPolicy_ == null ? - com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } } /** + * + * *
      * Required. The requested alerting policy. You should omit the `name` field
      * in this policy. The name will be returned in the new policy, including a
      * new `[ALERT_POLICY_ID]` value.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPolicyFieldBuilder() { if (alertPolicyBuilder_ == null) { - alertPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( - getAlertPolicy(), - getParentForChildren(), - isClean()); + alertPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder>( + getAlertPolicy(), getParentForChildren(), isClean()); alertPolicy_ = null; } return alertPolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) private static final com.google.monitoring.v3.CreateAlertPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateAlertPolicyRequest(); } @@ -874,27 +997,27 @@ public static com.google.monitoring.v3.CreateAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +1032,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java index 4725f5771403..1447a58ce5d3 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface CreateAlertPolicyRequestOrBuilder extends +public interface CreateAlertPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateAlertPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -24,11 +42,16 @@ public interface CreateAlertPolicyRequestOrBuilder extends
    * container.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -45,42 +68,58 @@ public interface CreateAlertPolicyRequestOrBuilder extends
    * container.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ boolean hasAlertPolicy(); /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ com.google.monitoring.v3.AlertPolicy getAlertPolicy(); /** + * + * *
    * Required. The requested alerting policy. You should omit the `name` field
    * in this policy. The name will be returned in the new policy, including a
    * new `[ALERT_POLICY_ID]` value.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java similarity index 69% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java index e8ad7be7cb4c..8a81cf365dbf 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateGroupRequest} */ -public final class CreateGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateGroupRequest) CreateGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGroupRequest.newBuilder() to construct. private CreateGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGroupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateGroupRequest.class, com.google.monitoring.v3.CreateGroupRequest.Builder.class); + com.google.monitoring.v3.CreateGroupRequest.class, + com.google.monitoring.v3.CreateGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -54,7 +76,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,14 +88,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -78,17 +104,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int GROUP_FIELD_NUMBER = 2; private com.google.monitoring.v3.Group group_; /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ @java.lang.Override @@ -112,12 +142,15 @@ public boolean hasGroup() { return group_ != null; } /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ @java.lang.Override @@ -125,6 +158,8 @@ public com.google.monitoring.v3.Group getGroup() { return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_; } /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
@@ -140,11 +175,14 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If true, validate this request but do not create the group.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -153,6 +191,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (group_ != null) { output.writeMessage(2, getGroup()); } @@ -185,12 +223,10 @@ public int getSerializedSize() { size = 0; if (group_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGroup()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGroup()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); @@ -203,22 +239,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateGroupRequest other = (com.google.monitoring.v3.CreateGroupRequest) obj; + com.google.monitoring.v3.CreateGroupRequest other = + (com.google.monitoring.v3.CreateGroupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasGroup() != other.hasGroup()) return false; if (hasGroup()) { - if (!getGroup() - .equals(other.getGroup())) return false; + if (!getGroup().equals(other.getGroup())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,139 +271,142 @@ public int hashCode() { hash = (53 * hash) + getGroup().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateGroupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateGroupRequest) com.google.monitoring.v3.CreateGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateGroupRequest.class, com.google.monitoring.v3.CreateGroupRequest.Builder.class); + com.google.monitoring.v3.CreateGroupRequest.class, + com.google.monitoring.v3.CreateGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateGroupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; } @java.lang.Override @@ -406,8 +443,11 @@ public com.google.monitoring.v3.CreateGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateGroupRequest buildPartial() { - com.google.monitoring.v3.CreateGroupRequest result = new com.google.monitoring.v3.CreateGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateGroupRequest result = + new com.google.monitoring.v3.CreateGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -418,9 +458,7 @@ private void buildPartial0(com.google.monitoring.v3.CreateGroupRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.group_ = groupBuilder_ == null - ? group_ - : groupBuilder_.build(); + result.group_ = groupBuilder_ == null ? group_ : groupBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -431,38 +469,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateGroupRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateGroupRequest) { - return mergeFrom((com.google.monitoring.v3.CreateGroupRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -508,29 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,10 +581,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -551,14 +595,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -567,6 +613,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -574,16 +622,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -591,6 +640,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -598,19 +649,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -618,7 +675,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -628,6 +688,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
      * which to create the group. The format is:
@@ -635,13 +697,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -651,26 +717,35 @@ public Builder setNameBytes( private com.google.monitoring.v3.Group group_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; + com.google.monitoring.v3.Group, + com.google.monitoring.v3.Group.Builder, + com.google.monitoring.v3.GroupOrBuilder> + groupBuilder_; /** + * + * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ public boolean hasGroup() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ public com.google.monitoring.v3.Group getGroup() { @@ -681,6 +756,8 @@ public com.google.monitoring.v3.Group getGroup() { } } /** + * + * *
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -702,6 +779,8 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -709,8 +788,7 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
      *
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setGroup(
-        com.google.monitoring.v3.Group.Builder builderForValue) {
+    public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue) {
       if (groupBuilder_ == null) {
         group_ = builderForValue.build();
       } else {
@@ -721,6 +799,8 @@ public Builder setGroup(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -730,9 +810,9 @@ public Builder setGroup(
      */
     public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       if (groupBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          group_ != null &&
-          group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && group_ != null
+            && group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
           getGroupBuilder().mergeFrom(value);
         } else {
           group_ = value;
@@ -745,6 +825,8 @@ public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -763,6 +845,8 @@ public Builder clearGroup() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -776,6 +860,8 @@ public com.google.monitoring.v3.Group.Builder getGroupBuilder() {
       return getGroupFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -787,11 +873,12 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
       if (groupBuilder_ != null) {
         return groupBuilder_.getMessageOrBuilder();
       } else {
-        return group_ == null ?
-            com.google.monitoring.v3.Group.getDefaultInstance() : group_;
+        return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. A group definition. It is an error to define the `name` field because
      * the system assigns the name.
@@ -800,26 +887,32 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> 
+            com.google.monitoring.v3.Group,
+            com.google.monitoring.v3.Group.Builder,
+            com.google.monitoring.v3.GroupOrBuilder>
         getGroupFieldBuilder() {
       if (groupBuilder_ == null) {
-        groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>(
-                getGroup(),
-                getParentForChildren(),
-                isClean());
+        groupBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.Group,
+                com.google.monitoring.v3.Group.Builder,
+                com.google.monitoring.v3.GroupOrBuilder>(
+                getGroup(), getParentForChildren(), isClean());
         group_ = null;
       }
       return groupBuilder_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -827,11 +920,14 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -843,11 +939,14 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * If true, validate this request but do not create the group.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -856,9 +955,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +967,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) private static final com.google.monitoring.v3.CreateGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateGroupRequest(); } @@ -882,27 +981,27 @@ public static com.google.monitoring.v3.CreateGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,6 +1016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java index 0039340400a7..6aae1d400947 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface CreateGroupRequestOrBuilder extends +public interface CreateGroupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateGroupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -15,11 +33,16 @@ public interface CreateGroupRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
    * which to create the group. The format is:
@@ -27,33 +50,43 @@ public interface CreateGroupRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ boolean hasGroup(); /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ com.google.monitoring.v3.Group getGroup(); /** + * + * *
    * Required. A group definition. It is an error to define the `name` field because
    * the system assigns the name.
@@ -64,11 +97,14 @@ public interface CreateGroupRequestOrBuilder extends
   com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * If true, validate this request but do not create the group.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java index 59836467b395..94fdf30f5d2b 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateMetricDescriptorRequest} */ -public final class CreateMetricDescriptorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateMetricDescriptorRequest) CreateMetricDescriptorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMetricDescriptorRequest.newBuilder() to construct. private CreateMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateMetricDescriptorRequest.class, com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.CreateMetricDescriptorRequest.class, + com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -54,7 +76,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,14 +88,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -78,17 +104,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,12 +126,17 @@ public java.lang.String getName() { public static final int METRIC_DESCRIPTOR_FIELD_NUMBER = 2; private com.google.api.MetricDescriptor metricDescriptor_; /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the metricDescriptor field is set. */ @java.lang.Override @@ -112,32 +144,46 @@ public boolean hasMetricDescriptor() { return metricDescriptor_ != null; } /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricDescriptor. */ @java.lang.Override public com.google.api.MetricDescriptor getMetricDescriptor() { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metricDescriptor_ != null) { output.writeMessage(2, getMetricDescriptor()); } @@ -167,8 +212,7 @@ public int getSerializedSize() { size = 0; if (metricDescriptor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetricDescriptor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetricDescriptor()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -181,19 +225,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateMetricDescriptorRequest other = (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; + com.google.monitoring.v3.CreateMetricDescriptorRequest other = + (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { - if (!getMetricDescriptor() - .equals(other.getMetricDescriptor())) return false; + if (!getMetricDescriptor().equals(other.getMetricDescriptor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -218,131 +261,136 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateMetricDescriptorRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.CreateMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateMetricDescriptorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateMetricDescriptorRequest) com.google.monitoring.v3.CreateMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateMetricDescriptorRequest.class, com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.CreateMetricDescriptorRequest.class, + com.google.monitoring.v3.CreateMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateMetricDescriptorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -378,8 +426,11 @@ public com.google.monitoring.v3.CreateMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.CreateMetricDescriptorRequest result = new com.google.monitoring.v3.CreateMetricDescriptorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateMetricDescriptorRequest result = + new com.google.monitoring.v3.CreateMetricDescriptorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -390,9 +441,8 @@ private void buildPartial0(com.google.monitoring.v3.CreateMetricDescriptorReques result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metricDescriptor_ = metricDescriptorBuilder_ == null - ? metricDescriptor_ - : metricDescriptorBuilder_.build(); + result.metricDescriptor_ = + metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build(); } } @@ -400,38 +450,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateMetricDescriptorReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.CreateMetricDescriptorRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateMetricDescriptorRequest) other); } else { super.mergeFrom(other); return this; @@ -439,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -474,24 +526,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getMetricDescriptorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage( + getMetricDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -501,10 +555,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -512,14 +569,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -528,6 +587,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -535,16 +596,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -552,6 +614,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -559,19 +623,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -579,7 +649,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,6 +662,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -596,13 +671,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -612,42 +691,61 @@ public Builder setNameBytes( private com.google.api.MetricDescriptor metricDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorBuilder_; + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> + metricDescriptorBuilder_; /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricDescriptor. */ public com.google.api.MetricDescriptor getMetricDescriptor() { if (metricDescriptorBuilder_ == null) { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } else { return metricDescriptorBuilder_.getMessage(); } } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { @@ -663,15 +761,18 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMetricDescriptor( - com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder builderForValue) { if (metricDescriptorBuilder_ == null) { metricDescriptor_ = builderForValue.build(); } else { @@ -682,18 +783,22 @@ public Builder setMetricDescriptor( return this; } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metricDescriptor_ != null && - metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metricDescriptor_ != null + && metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { getMetricDescriptorBuilder().mergeFrom(value); } else { metricDescriptor_ = value; @@ -706,12 +811,16 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetricDescriptor() { bitField0_ = (bitField0_ & ~0x00000002); @@ -724,12 +833,16 @@ public Builder clearMetricDescriptor() { return this; } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { bitField0_ |= 0x00000002; @@ -737,45 +850,57 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { return getMetricDescriptorFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { if (metricDescriptorBuilder_ != null) { return metricDescriptorBuilder_.getMessageOrBuilder(); } else { - return metricDescriptor_ == null ? - com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } } /** + * + * *
      * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
      * descriptor.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> getMetricDescriptorFieldBuilder() { if (metricDescriptorBuilder_ == null) { - metricDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( - getMetricDescriptor(), - getParentForChildren(), - isClean()); + metricDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder>( + getMetricDescriptor(), getParentForChildren(), isClean()); metricDescriptor_ = null; } return metricDescriptorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -785,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) private static final com.google.monitoring.v3.CreateMetricDescriptorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateMetricDescriptorRequest(); } @@ -799,27 +924,27 @@ public static com.google.monitoring.v3.CreateMetricDescriptorRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,6 +959,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.CreateMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java index 817cca68d50b..bf607413f81b 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateMetricDescriptorRequestOrBuilder extends +public interface CreateMetricDescriptorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateMetricDescriptorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -15,11 +33,16 @@ public interface CreateMetricDescriptorRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -27,39 +50,55 @@ public interface CreateMetricDescriptorRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the metricDescriptor field is set. */ boolean hasMetricDescriptor(); /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricDescriptor. */ com.google.api.MetricDescriptor getMetricDescriptor(); /** + * + * *
    * Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
    * descriptor.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java index 94f703479807..20adb1ed301f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java @@ -1,52 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateNotificationChannelRequest} */ -public final class CreateNotificationChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateNotificationChannelRequest) CreateNotificationChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNotificationChannelRequest.newBuilder() to construct. - private CreateNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationChannelRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateNotificationChannelRequest.class, com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.CreateNotificationChannelRequest.class, + com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -60,7 +83,10 @@ protected java.lang.Object newInstance(
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -69,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -90,17 +117,18 @@ public java.lang.String getName() {
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -111,11 +139,16 @@ public java.lang.String getName() { public static final int NOTIFICATION_CHANNEL_FIELD_NUMBER = 2; private com.google.monitoring.v3.NotificationChannel notificationChannel_; /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ @java.lang.Override @@ -123,30 +156,44 @@ public boolean hasNotificationChannel() { return notificationChannel_ != null; } /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (notificationChannel_ != null) { output.writeMessage(2, getNotificationChannel()); } @@ -176,8 +222,7 @@ public int getSerializedSize() { size = 0; if (notificationChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNotificationChannel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationChannel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -190,19 +235,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateNotificationChannelRequest other = (com.google.monitoring.v3.CreateNotificationChannelRequest) obj; + com.google.monitoring.v3.CreateNotificationChannelRequest other = + (com.google.monitoring.v3.CreateNotificationChannelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasNotificationChannel() != other.hasNotificationChannel()) return false; if (hasNotificationChannel()) { - if (!getNotificationChannel() - .equals(other.getNotificationChannel())) return false; + if (!getNotificationChannel().equals(other.getNotificationChannel())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -227,131 +271,136 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateNotificationChannelRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.CreateNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateNotificationChannelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateNotificationChannelRequest) com.google.monitoring.v3.CreateNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateNotificationChannelRequest.class, com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.CreateNotificationChannelRequest.class, + com.google.monitoring.v3.CreateNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateNotificationChannelRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_CreateNotificationChannelRequest_descriptor; } @java.lang.Override @@ -387,8 +436,11 @@ public com.google.monitoring.v3.CreateNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.CreateNotificationChannelRequest result = new com.google.monitoring.v3.CreateNotificationChannelRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateNotificationChannelRequest result = + new com.google.monitoring.v3.CreateNotificationChannelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -399,9 +451,10 @@ private void buildPartial0(com.google.monitoring.v3.CreateNotificationChannelReq result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationChannel_ = notificationChannelBuilder_ == null - ? notificationChannel_ - : notificationChannelBuilder_.build(); + result.notificationChannel_ = + notificationChannelBuilder_ == null + ? notificationChannel_ + : notificationChannelBuilder_.build(); } } @@ -409,38 +462,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateNotificationChannelReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.CreateNotificationChannelRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateNotificationChannelRequest) other); } else { super.mergeFrom(other); return this; @@ -448,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -483,24 +538,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getNotificationChannelFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage( + getNotificationChannelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,10 +567,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -527,14 +587,16 @@ public Builder mergeFrom(
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -543,6 +605,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -556,16 +620,17 @@ public java.lang.String getName() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -573,6 +638,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -586,19 +653,25 @@ public java.lang.String getName() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -612,7 +685,10 @@ public Builder setName(
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -622,6 +698,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -635,13 +713,17 @@ public Builder clearName() {
      * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -651,39 +733,58 @@ public Builder setNameBytes( private com.google.monitoring.v3.NotificationChannel notificationChannel_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelBuilder_; + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> + notificationChannelBuilder_; /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ public boolean hasNotificationChannel() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { if (notificationChannelBuilder_ == null) { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { @@ -699,11 +800,15 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann return this; } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationChannel( com.google.monitoring.v3.NotificationChannel.Builder builderForValue) { @@ -717,17 +822,22 @@ public Builder setNotificationChannel( return this; } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - notificationChannel_ != null && - notificationChannel_ != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && notificationChannel_ != null + && notificationChannel_ + != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { getNotificationChannelBuilder().mergeFrom(value); } else { notificationChannel_ = value; @@ -740,11 +850,15 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha return this; } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationChannel() { bitField0_ = (bitField0_ & ~0x00000002); @@ -757,11 +871,15 @@ public Builder clearNotificationChannel() { return this; } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { bitField0_ |= 0x00000002; @@ -769,43 +887,55 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { - return notificationChannel_ == null ? - com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } } /** + * + * *
      * Required. The definition of the `NotificationChannel` to create.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelFieldBuilder() { if (notificationChannelBuilder_ == null) { - notificationChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( - getNotificationChannel(), - getParentForChildren(), - isClean()); + notificationChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder>( + getNotificationChannel(), getParentForChildren(), isClean()); notificationChannel_ = null; } return notificationChannelBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) private static final com.google.monitoring.v3.CreateNotificationChannelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateNotificationChannelRequest(); } @@ -829,27 +959,27 @@ public static com.google.monitoring.v3.CreateNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +994,4 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.CreateNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java index 3d502450272e..7312e5a6455c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface CreateNotificationChannelRequestOrBuilder extends +public interface CreateNotificationChannelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -21,11 +39,16 @@ public interface CreateNotificationChannelRequestOrBuilder extends
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -39,36 +62,52 @@ public interface CreateNotificationChannelRequestOrBuilder extends
    * but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ boolean hasNotificationChannel(); /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ com.google.monitoring.v3.NotificationChannel getNotificationChannel(); /** + * + * *
    * Required. The definition of the `NotificationChannel` to create.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java index e29703f9ed68..eafe69ed8cef 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceLevelObjectiveRequest} */ -public final class CreateServiceLevelObjectiveRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateServiceLevelObjectiveRequest) CreateServiceLevelObjectiveRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateServiceLevelObjectiveRequest.newBuilder() to construct. - private CreateServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateServiceLevelObjectiveRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateServiceLevelObjectiveRequest() { parent_ = ""; serviceLevelObjectiveId_ = ""; @@ -26,35 +45,42 @@ private CreateServiceLevelObjectiveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,31 +89,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -96,9 +124,12 @@ public java.lang.String getParent() { } public static final int SERVICE_LEVEL_OBJECTIVE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceLevelObjectiveId_ = ""; /** + * + * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -106,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * string service_level_objective_id = 3; + * * @return The serviceLevelObjectiveId. */ @java.lang.Override @@ -114,14 +146,15 @@ public java.lang.String getServiceLevelObjectiveId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceLevelObjectiveId_ = s; return s; } } /** + * + * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -129,16 +162,15 @@ public java.lang.String getServiceLevelObjectiveId() {
    * 
* * string service_level_objective_id = 3; + * * @return The bytes for serviceLevelObjectiveId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceLevelObjectiveIdBytes() { + public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { java.lang.Object ref = serviceLevelObjectiveId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceLevelObjectiveId_ = b; return b; } else { @@ -149,13 +181,18 @@ public java.lang.String getServiceLevelObjectiveId() { public static final int SERVICE_LEVEL_OBJECTIVE_FIELD_NUMBER = 2; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ @java.lang.Override @@ -163,34 +200,49 @@ public boolean hasServiceLevelObjective() { return serviceLevelObjective_ != null; } /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder + getServiceLevelObjectiveOrBuilder() { + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,8 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (serviceLevelObjective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getServiceLevelObjective()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceLevelObjective()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLevelObjectiveId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceLevelObjectiveId_); @@ -240,21 +291,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other = (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other = + (com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getServiceLevelObjectiveId() - .equals(other.getServiceLevelObjectiveId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getServiceLevelObjectiveId().equals(other.getServiceLevelObjectiveId())) return false; if (hasServiceLevelObjective() != other.hasServiceLevelObjective()) return false; if (hasServiceLevelObjective()) { - if (!getServiceLevelObjective() - .equals(other.getServiceLevelObjective())) return false; + if (!getServiceLevelObjective().equals(other.getServiceLevelObjective())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -281,131 +330,136 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceLevelObjectiveRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateServiceLevelObjectiveRequest) com.google.monitoring.v3.CreateServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -442,8 +496,11 @@ public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest result = new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest result = + new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -457,9 +514,10 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceLevelObjectiveR result.serviceLevelObjectiveId_ = serviceLevelObjectiveId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.serviceLevelObjective_ = serviceLevelObjectiveBuilder_ == null - ? serviceLevelObjective_ - : serviceLevelObjectiveBuilder_.build(); + result.serviceLevelObjective_ = + serviceLevelObjectiveBuilder_ == null + ? serviceLevelObjective_ + : serviceLevelObjectiveBuilder_.build(); } } @@ -467,38 +525,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceLevelObjectiveR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) other); } else { super.mergeFrom(other); return this; @@ -506,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -546,29 +606,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getServiceLevelObjectiveFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - serviceLevelObjectiveId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getServiceLevelObjectiveFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + serviceLevelObjectiveId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,24 +641,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -604,22 +672,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -627,32 +698,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -662,19 +744,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Resource name of the parent `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -684,6 +772,8 @@ public Builder setParentBytes( private java.lang.Object serviceLevelObjectiveId_ = ""; /** + * + * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -691,13 +781,13 @@ public Builder setParentBytes(
      * 
* * string service_level_objective_id = 3; + * * @return The serviceLevelObjectiveId. */ public java.lang.String getServiceLevelObjectiveId() { java.lang.Object ref = serviceLevelObjectiveId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceLevelObjectiveId_ = s; return s; @@ -706,6 +796,8 @@ public java.lang.String getServiceLevelObjectiveId() { } } /** + * + * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -713,15 +805,14 @@ public java.lang.String getServiceLevelObjectiveId() {
      * 
* * string service_level_objective_id = 3; + * * @return The bytes for serviceLevelObjectiveId. */ - public com.google.protobuf.ByteString - getServiceLevelObjectiveIdBytes() { + public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes() { java.lang.Object ref = serviceLevelObjectiveId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceLevelObjectiveId_ = b; return b; } else { @@ -729,6 +820,8 @@ public java.lang.String getServiceLevelObjectiveId() { } } /** + * + * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -736,18 +829,22 @@ public java.lang.String getServiceLevelObjectiveId() {
      * 
* * string service_level_objective_id = 3; + * * @param value The serviceLevelObjectiveId to set. * @return This builder for chaining. */ - public Builder setServiceLevelObjectiveId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceLevelObjectiveId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceLevelObjectiveId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -755,6 +852,7 @@ public Builder setServiceLevelObjectiveId(
      * 
* * string service_level_objective_id = 3; + * * @return This builder for chaining. */ public Builder clearServiceLevelObjectiveId() { @@ -764,6 +862,8 @@ public Builder clearServiceLevelObjectiveId() { return this; } /** + * + * *
      * Optional. The ServiceLevelObjective id to use for this
      * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -771,12 +871,14 @@ public Builder clearServiceLevelObjectiveId() {
      * 
* * string service_level_objective_id = 3; + * * @param value The bytes for serviceLevelObjectiveId to set. * @return This builder for chaining. */ - public Builder setServiceLevelObjectiveIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceLevelObjectiveIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceLevelObjectiveId_ = value; bitField0_ |= 0x00000002; @@ -786,45 +888,64 @@ public Builder setServiceLevelObjectiveIdBytes( private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectiveBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + serviceLevelObjectiveBuilder_; /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ public boolean hasServiceLevelObjective() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { if (serviceLevelObjectiveBuilder_ == null) { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } else { return serviceLevelObjectiveBuilder_.getMessage(); } } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { @@ -840,13 +961,17 @@ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObj return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setServiceLevelObjective( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -860,19 +985,25 @@ public Builder setServiceLevelObjective( return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { + public Builder mergeServiceLevelObjective( + com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - serviceLevelObjective_ != null && - serviceLevelObjective_ != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && serviceLevelObjective_ != null + && serviceLevelObjective_ + != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { getServiceLevelObjectiveBuilder().mergeFrom(value); } else { serviceLevelObjective_ = value; @@ -885,13 +1016,17 @@ public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelO return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearServiceLevelObjective() { bitField0_ = (bitField0_ & ~0x00000004); @@ -904,61 +1039,79 @@ public Builder clearServiceLevelObjective() { return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectiveBuilder() { + public com.google.monitoring.v3.ServiceLevelObjective.Builder + getServiceLevelObjectiveBuilder() { bitField0_ |= 0x00000004; onChanged(); return getServiceLevelObjectiveFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder + getServiceLevelObjectiveOrBuilder() { if (serviceLevelObjectiveBuilder_ != null) { return serviceLevelObjectiveBuilder_.getMessageOrBuilder(); } else { - return serviceLevelObjective_ == null ? - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } } /** + * + * *
      * Required. The `ServiceLevelObjective` to create.
      * The provided `name` will be respected if no `ServiceLevelObjective` exists
      * with this name.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectiveFieldBuilder() { if (serviceLevelObjectiveBuilder_ == null) { - serviceLevelObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( - getServiceLevelObjective(), - getParentForChildren(), - isClean()); + serviceLevelObjectiveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + getServiceLevelObjective(), getParentForChildren(), isClean()); serviceLevelObjective_ = null; } return serviceLevelObjectiveBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.CreateServiceLevelObjectiveRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateServiceLevelObjectiveRequest(); } @@ -982,27 +1135,27 @@ public static com.google.monitoring.v3.CreateServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,6 +1170,4 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.CreateServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java index 6c37fb2c61d4..c7660d89f05e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface CreateServiceLevelObjectiveRequestOrBuilder extends +public interface CreateServiceLevelObjectiveRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -39,10 +66,13 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder extends
    * 
* * string service_level_objective_id = 3; + * * @return The serviceLevelObjectiveId. */ java.lang.String getServiceLevelObjectiveId(); /** + * + * *
    * Optional. The ServiceLevelObjective id to use for this
    * ServiceLevelObjective. If omitted, an id will be generated instead. Must
@@ -50,41 +80,55 @@ public interface CreateServiceLevelObjectiveRequestOrBuilder extends
    * 
* * string service_level_objective_id = 3; + * * @return The bytes for serviceLevelObjectiveId. */ - com.google.protobuf.ByteString - getServiceLevelObjectiveIdBytes(); + com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes(); /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ boolean hasServiceLevelObjective(); /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(); /** + * + * *
    * Required. The `ServiceLevelObjective` to create.
    * The provided `name` will be respected if no `ServiceLevelObjective` exists
    * with this name.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java index df9529471003..7022cc8d448f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceRequest} */ -public final class CreateServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateServiceRequest) CreateServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateServiceRequest.newBuilder() to construct. private CreateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateServiceRequest() { parent_ = ""; serviceId_ = ""; @@ -26,28 +44,32 @@ private CreateServiceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceRequest.class, com.google.monitoring.v3.CreateServiceRequest.Builder.class); + com.google.monitoring.v3.CreateServiceRequest.class, + com.google.monitoring.v3.CreateServiceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,14 +89,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -79,17 +105,18 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,15 +125,19 @@ public java.lang.String getParent() { } public static final int SERVICE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceId_ = ""; /** + * + * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; + * * @return The serviceId. */ @java.lang.Override @@ -115,30 +146,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** + * + * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; + * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -149,11 +180,15 @@ public java.lang.String getServiceId() { public static final int SERVICE_FIELD_NUMBER = 2; private com.google.monitoring.v3.Service service_; /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ @java.lang.Override @@ -161,11 +196,15 @@ public boolean hasService() { return service_ != null; } /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ @java.lang.Override @@ -173,11 +212,14 @@ public com.google.monitoring.v3.Service getService() { return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { @@ -185,6 +227,7 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +239,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -220,8 +262,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (service_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getService()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceId_); @@ -234,21 +275,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateServiceRequest other = (com.google.monitoring.v3.CreateServiceRequest) obj; + com.google.monitoring.v3.CreateServiceRequest other = + (com.google.monitoring.v3.CreateServiceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getServiceId() - .equals(other.getServiceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getServiceId().equals(other.getServiceId())) return false; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,132 +313,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateServiceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateServiceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateServiceRequest) com.google.monitoring.v3.CreateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateServiceRequest.class, com.google.monitoring.v3.CreateServiceRequest.Builder.class); + com.google.monitoring.v3.CreateServiceRequest.class, + com.google.monitoring.v3.CreateServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateServiceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; } @java.lang.Override @@ -436,8 +479,11 @@ public com.google.monitoring.v3.CreateServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateServiceRequest buildPartial() { - com.google.monitoring.v3.CreateServiceRequest result = new com.google.monitoring.v3.CreateServiceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateServiceRequest result = + new com.google.monitoring.v3.CreateServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -451,9 +497,7 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceRequest result) result.serviceId_ = serviceId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.service_ = serviceBuilder_ == null - ? service_ - : serviceBuilder_.build(); + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); } } @@ -461,38 +505,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateServiceRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateServiceRequest) { - return mergeFrom((com.google.monitoring.v3.CreateServiceRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -540,29 +585,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getServiceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - serviceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + serviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -572,10 +619,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -583,14 +633,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,6 +651,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -606,16 +660,17 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -623,6 +678,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -630,19 +687,25 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -650,7 +713,10 @@ public Builder setParent(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -660,6 +726,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
      * the parent workspace. The format is:
@@ -667,13 +735,17 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -683,19 +755,21 @@ public Builder setParentBytes( private java.lang.Object serviceId_ = ""; /** + * + * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; + * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -704,21 +778,22 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; + * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -726,30 +801,37 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; + * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; + * * @return This builder for chaining. */ public Builder clearServiceId() { @@ -759,18 +841,22 @@ public Builder clearServiceId() { return this; } /** + * + * *
      * Optional. The Service id to use for this Service. If omitted, an id will be
      * generated instead. Must match the pattern `[a-z0-9\-]+`
      * 
* * string service_id = 3; + * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceId_ = value; bitField0_ |= 0x00000002; @@ -780,24 +866,35 @@ public Builder setServiceIdBytes( private com.google.monitoring.v3.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> serviceBuilder_; + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> + serviceBuilder_; /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ public boolean hasService() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ public com.google.monitoring.v3.Service getService() { @@ -808,11 +905,14 @@ public com.google.monitoring.v3.Service getService() { } } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { @@ -828,14 +928,16 @@ public Builder setService(com.google.monitoring.v3.Service value) { return this; } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setService( - com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder setService(com.google.monitoring.v3.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); } else { @@ -846,17 +948,20 @@ public Builder setService( return this; } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - service_ != null && - service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && service_ != null + && service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { getServiceBuilder().mergeFrom(value); } else { service_ = value; @@ -869,11 +974,14 @@ public Builder mergeService(com.google.monitoring.v3.Service value) { return this; } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000004); @@ -886,11 +994,14 @@ public Builder clearService() { return this; } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { bitField0_ |= 0x00000004; @@ -898,43 +1009,51 @@ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { return getServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? - com.google.monitoring.v3.Service.getDefaultInstance() : service_; + return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } } /** + * + * *
      * Required. The `Service` to create.
      * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( - getService(), - getParentForChildren(), - isClean()); + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -944,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateServiceRequest) private static final com.google.monitoring.v3.CreateServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateServiceRequest(); } @@ -958,27 +1077,27 @@ public static com.google.monitoring.v3.CreateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,6 +1112,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java index 8fab79c043fa..0bdccbd6b012 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface CreateServiceRequestOrBuilder extends +public interface CreateServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -15,11 +33,16 @@ public interface CreateServiceRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
    * the parent workspace. The format is:
@@ -27,58 +50,76 @@ public interface CreateServiceRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; + * * @return The serviceId. */ java.lang.String getServiceId(); /** + * + * *
    * Optional. The Service id to use for this Service. If omitted, an id will be
    * generated instead. Must match the pattern `[a-z0-9\-]+`
    * 
* * string service_id = 3; + * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString - getServiceIdBytes(); + com.google.protobuf.ByteString getServiceIdBytes(); /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ boolean hasService(); /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ com.google.monitoring.v3.Service getService(); /** + * + * *
    * Required. The `Service` to create.
    * 
* - * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java index a73efe878dc9..bc22d682aebe 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** + * + * *
  * The message definition for creating a `Snooze`. Users must provide the body
  * of the `Snooze` to be created but must omit the `Snooze` field, `name`.
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.monitoring.v3.CreateSnoozeRequest}
  */
-public final class CreateSnoozeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateSnoozeRequest)
     CreateSnoozeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateSnoozeRequest.newBuilder() to construct.
   private CreateSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateSnoozeRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.CreateSnoozeRequest.class, com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.CreateSnoozeRequest.class,
+            com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -81,17 +107,18 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -102,12 +129,15 @@ public java.lang.String getParent() { public static final int SNOOZE_FIELD_NUMBER = 2; private com.google.monitoring.v3.Snooze snooze_; /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snooze field is set. */ @java.lang.Override @@ -115,12 +145,15 @@ public boolean hasSnooze() { return snooze_ != null; } /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snooze. */ @java.lang.Override @@ -128,6 +161,8 @@ public com.google.monitoring.v3.Snooze getSnooze() { return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
@@ -141,6 +176,7 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,8 +188,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -173,8 +208,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (snooze_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSnooze());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnooze());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -184,19 +218,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.CreateSnoozeRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.CreateSnoozeRequest other = (com.google.monitoring.v3.CreateSnoozeRequest) obj;
+    com.google.monitoring.v3.CreateSnoozeRequest other =
+        (com.google.monitoring.v3.CreateSnoozeRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasSnooze() != other.hasSnooze()) return false;
     if (hasSnooze()) {
-      if (!getSnooze()
-          .equals(other.getSnooze())) return false;
+      if (!getSnooze().equals(other.getSnooze())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -220,99 +253,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.CreateSnoozeRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.CreateSnoozeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.CreateSnoozeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The message definition for creating a `Snooze`. Users must provide the body
    * of the `Snooze` to be created but must omit the `Snooze` field, `name`.
@@ -320,33 +358,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.CreateSnoozeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateSnoozeRequest)
       com.google.monitoring.v3.CreateSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.CreateSnoozeRequest.class, com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.CreateSnoozeRequest.class,
+              com.google.monitoring.v3.CreateSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.CreateSnoozeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -361,9 +398,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -382,8 +419,11 @@ public com.google.monitoring.v3.CreateSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.CreateSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.CreateSnoozeRequest result = new com.google.monitoring.v3.CreateSnoozeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.CreateSnoozeRequest result =
+          new com.google.monitoring.v3.CreateSnoozeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -394,9 +434,7 @@ private void buildPartial0(com.google.monitoring.v3.CreateSnoozeRequest result)
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.snooze_ = snoozeBuilder_ == null
-            ? snooze_
-            : snoozeBuilder_.build();
+        result.snooze_ = snoozeBuilder_ == null ? snooze_ : snoozeBuilder_.build();
       }
     }
 
@@ -404,38 +442,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateSnoozeRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.CreateSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.CreateSnoozeRequest)other);
+        return mergeFrom((com.google.monitoring.v3.CreateSnoozeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,24 +517,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSnoozeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSnoozeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -505,10 +545,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -517,14 +560,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -533,6 +578,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -541,16 +588,17 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -558,6 +606,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -566,19 +616,25 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -587,7 +643,10 @@ public Builder setParent(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -597,6 +656,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -605,13 +666,17 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -621,26 +686,37 @@ public Builder setParentBytes( private com.google.monitoring.v3.Snooze snooze_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozeBuilder_; + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder> + snoozeBuilder_; /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snooze field is set. */ public boolean hasSnooze() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snooze. */ public com.google.monitoring.v3.Snooze getSnooze() { @@ -651,12 +727,15 @@ public com.google.monitoring.v3.Snooze getSnooze() { } } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { @@ -672,15 +751,17 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSnooze( - com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozeBuilder_ == null) { snooze_ = builderForValue.build(); } else { @@ -691,18 +772,21 @@ public Builder setSnooze( return this; } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - snooze_ != null && - snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && snooze_ != null + && snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { getSnoozeBuilder().mergeFrom(value); } else { snooze_ = value; @@ -715,12 +799,15 @@ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnooze() { bitField0_ = (bitField0_ & ~0x00000002); @@ -733,12 +820,15 @@ public Builder clearSnooze() { return this; } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { bitField0_ |= 0x00000002; @@ -746,45 +836,53 @@ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { return getSnoozeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { if (snoozeBuilder_ != null) { return snoozeBuilder_.getMessageOrBuilder(); } else { - return snooze_ == null ? - com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; + return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } } /** + * + * *
      * Required. The `Snooze` to create. Omit the `name` field, as it will be
      * filled in by the API.
      * 
* - * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder> getSnoozeFieldBuilder() { if (snoozeBuilder_ == null) { - snoozeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( - getSnooze(), - getParentForChildren(), - isClean()); + snoozeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder>( + getSnooze(), getParentForChildren(), isClean()); snooze_ = null; } return snoozeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateSnoozeRequest) private static final com.google.monitoring.v3.CreateSnoozeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateSnoozeRequest(); } @@ -808,27 +906,27 @@ public static com.google.monitoring.v3.CreateSnoozeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +941,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java index ddcc5bb68a53..2f17f14b653d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateSnoozeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface CreateSnoozeRequestOrBuilder extends +public interface CreateSnoozeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateSnoozeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -16,11 +34,16 @@ public interface CreateSnoozeRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -29,33 +52,43 @@ public interface CreateSnoozeRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snooze field is set. */ boolean hasSnooze(); /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
    * 
* * .google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snooze. */ com.google.monitoring.v3.Snooze getSnooze(); /** + * + * *
    * Required. The `Snooze` to create. Omit the `name` field, as it will be
    * filled in by the API.
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
similarity index 64%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
index d32d5a30bd36..aad6b3e69bd9 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java
@@ -1,78 +1,108 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * DEPRECATED. Used to hold per-time-series error status.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesError} */ -public final class CreateTimeSeriesError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateTimeSeriesError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesError) CreateTimeSeriesErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateTimeSeriesError.newBuilder() to construct. private CreateTimeSeriesError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTimeSeriesError() { - } + + private CreateTimeSeriesError() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateTimeSeriesError(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesError.class, com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesError.class, + com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); } public static final int TIME_SERIES_FIELD_NUMBER = 1; private com.google.monitoring.v3.TimeSeries timeSeries_; /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasTimeSeries() { + @java.lang.Deprecated + public boolean hasTimeSeries() { return timeSeries_ != null; } /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries getTimeSeries() { - return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; + @java.lang.Deprecated + public com.google.monitoring.v3.TimeSeries getTimeSeries() { + return timeSeries_ == null + ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() + : timeSeries_; } /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
@@ -80,41 +110,54 @@ protected java.lang.Object newInstance( * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { - return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; + @java.lang.Deprecated + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { + return timeSeries_ == null + ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() + : timeSeries_; } public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasStatus() { + @java.lang.Deprecated + public boolean hasStatus() { return status_ != null; } /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ @java.lang.Override - @java.lang.Deprecated public com.google.rpc.Status getStatus() { + @java.lang.Deprecated + public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
@@ -122,11 +165,13 @@ protected java.lang.Object newInstance( * .google.rpc.Status status = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + @java.lang.Deprecated + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (timeSeries_ != null) { output.writeMessage(1, getTimeSeries()); } @@ -156,12 +200,10 @@ public int getSerializedSize() { size = 0; if (timeSeries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeSeries()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeries()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +213,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesError)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesError other = (com.google.monitoring.v3.CreateTimeSeriesError) obj; + com.google.monitoring.v3.CreateTimeSeriesError other = + (com.google.monitoring.v3.CreateTimeSeriesError) obj; if (hasTimeSeries() != other.hasTimeSeries()) return false; if (hasTimeSeries()) { - if (!getTimeSeries() - .equals(other.getTimeSeries())) return false; + if (!getTimeSeries().equals(other.getTimeSeries())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,132 +253,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DEPRECATED. Used to hold per-time-series error status.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesError) com.google.monitoring.v3.CreateTimeSeriesErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesError.class, com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesError.class, + com.google.monitoring.v3.CreateTimeSeriesError.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesError.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; } @java.lang.Override @@ -377,8 +422,11 @@ public com.google.monitoring.v3.CreateTimeSeriesError build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesError buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesError result = new com.google.monitoring.v3.CreateTimeSeriesError(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateTimeSeriesError result = + new com.google.monitoring.v3.CreateTimeSeriesError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -386,14 +434,10 @@ public com.google.monitoring.v3.CreateTimeSeriesError buildPartial() { private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeries_ = timeSeriesBuilder_ == null - ? timeSeries_ - : timeSeriesBuilder_.build(); + result.timeSeries_ = timeSeriesBuilder_ == null ? timeSeries_ : timeSeriesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); } } @@ -401,38 +445,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesError result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesError) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesError)other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesError) other); } else { super.mergeFrom(other); return this; @@ -473,26 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeSeriesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,49 +546,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.TimeSeries timeSeries_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> + timeSeriesBuilder_; /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ - @java.lang.Deprecated public boolean hasTimeSeries() { + @java.lang.Deprecated + public boolean hasTimeSeries() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ - @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries getTimeSeries() { + @java.lang.Deprecated + public com.google.monitoring.v3.TimeSeries getTimeSeries() { if (timeSeriesBuilder_ == null) { - return timeSeries_ == null ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; + return timeSeries_ == null + ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() + : timeSeries_; } else { return timeSeriesBuilder_.getMessage(); } } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries value) { + @java.lang.Deprecated + public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -558,14 +619,16 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public Builder setTimeSeries( - com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + @java.lang.Deprecated + public Builder setTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { timeSeries_ = builderForValue.build(); } else { @@ -576,17 +639,20 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public Builder mergeTimeSeries(com.google.monitoring.v3.TimeSeries value) { + @java.lang.Deprecated + public Builder mergeTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeries_ != null && - timeSeries_ != com.google.monitoring.v3.TimeSeries.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeries_ != null + && timeSeries_ != com.google.monitoring.v3.TimeSeries.getDefaultInstance()) { getTimeSeriesBuilder().mergeFrom(value); } else { timeSeries_ = value; @@ -599,13 +665,16 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public Builder clearTimeSeries() { + @java.lang.Deprecated + public Builder clearTimeSeries() { bitField0_ = (bitField0_ & ~0x00000001); timeSeries_ = null; if (timeSeriesBuilder_ != null) { @@ -616,33 +685,42 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder() { + @java.lang.Deprecated + public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesFieldBuilder().getBuilder(); } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { + @java.lang.Deprecated + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilder(); } else { - return timeSeries_ == null ? - com.google.monitoring.v3.TimeSeries.getDefaultInstance() : timeSeries_; + return timeSeries_ == null + ? com.google.monitoring.v3.TimeSeries.getDefaultInstance() + : timeSeries_; } } /** + * + * *
      * DEPRECATED. Time series ID that resulted in the `status` error.
      * 
@@ -650,14 +728,17 @@ public Builder mergeFrom( * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( - getTimeSeries(), - getParentForChildren(), - isClean()); + timeSeriesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder>( + getTimeSeries(), getParentForChildren(), isClean()); timeSeries_ = null; } return timeSeriesBuilder_; @@ -665,31 +746,40 @@ public Builder mergeFrom( private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ - @java.lang.Deprecated public boolean hasStatus() { + @java.lang.Deprecated + public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ - @java.lang.Deprecated public com.google.rpc.Status getStatus() { + @java.lang.Deprecated + public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { @@ -697,13 +787,16 @@ public Builder mergeFrom( } } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public Builder setStatus(com.google.rpc.Status value) { + @java.lang.Deprecated + public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,14 +810,16 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + @java.lang.Deprecated + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -735,17 +830,20 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public Builder mergeStatus(com.google.rpc.Status value) { + @java.lang.Deprecated + public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -758,13 +856,16 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public Builder clearStatus() { + @java.lang.Deprecated + public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = null; if (statusBuilder_ != null) { @@ -775,33 +876,40 @@ public Builder mergeFrom( return this; } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public com.google.rpc.Status.Builder getStatusBuilder() { + @java.lang.Deprecated + public com.google.rpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + @java.lang.Deprecated + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
      * DEPRECATED. The status of the requested write operation for `time_series`.
      * 
@@ -809,21 +917,21 @@ public Builder mergeFrom( * .google.rpc.Status status = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -833,12 +941,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesError) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) private static final com.google.monitoring.v3.CreateTimeSeriesError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesError(); } @@ -847,27 +955,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesError getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -882,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java similarity index 55% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java index 0bde619b166a..268b232f38b0 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java @@ -1,71 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesErrorOrBuilder extends +public interface CreateTimeSeriesErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ - @java.lang.Deprecated boolean hasTimeSeries(); + @java.lang.Deprecated + boolean hasTimeSeries(); /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. - * See google/monitoring/v3/metric_service.proto;l=445 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ - @java.lang.Deprecated com.google.monitoring.v3.TimeSeries getTimeSeries(); + @java.lang.Deprecated + com.google.monitoring.v3.TimeSeries getTimeSeries(); /** + * + * *
    * DEPRECATED. Time series ID that resulted in the `status` error.
    * 
* * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; */ - @java.lang.Deprecated com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(); + @java.lang.Deprecated + com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(); /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ - @java.lang.Deprecated boolean hasStatus(); + @java.lang.Deprecated + boolean hasStatus(); /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; - * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. - * See google/monitoring/v3/metric_service.proto;l=448 + * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ - @java.lang.Deprecated com.google.rpc.Status getStatus(); + @java.lang.Deprecated + com.google.rpc.Status getStatus(); /** + * + * *
    * DEPRECATED. The status of the requested write operation for `time_series`.
    * 
* * .google.rpc.Status status = 2 [deprecated = true]; */ - @java.lang.Deprecated com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + @java.lang.Deprecated + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java index 718c13b6f711..f1dc8482b82c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `CreateTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesRequest} */ -public final class CreateTimeSeriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesRequest) CreateTimeSeriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateTimeSeriesRequest.newBuilder() to construct. private CreateTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateTimeSeriesRequest() { name_ = ""; timeSeries_ = java.util.Collections.emptyList(); @@ -26,28 +44,32 @@ private CreateTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesRequest.class, com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesRequest.class, + com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -79,17 +105,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,9 +125,12 @@ public java.lang.String getName() { } public static final int TIME_SERIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List timeSeries_; /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -111,13 +141,17 @@ public java.lang.String getName() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getTimeSeriesList() { return timeSeries_; } /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -128,14 +162,18 @@ public java.util.List getTimeSeriesList() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesOrBuilderList() { return timeSeries_; } /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -146,13 +184,17 @@ public java.util.List getTimeSeriesList() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getTimeSeriesCount() { return timeSeries_.size(); } /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -163,13 +205,17 @@ public int getTimeSeriesCount() {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { return timeSeries_.get(index); } /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -180,15 +226,17 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) {
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { return timeSeries_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < timeSeries_.size(); i++) { output.writeMessage(2, timeSeries_.get(i)); } @@ -218,8 +265,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < timeSeries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, timeSeries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timeSeries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); @@ -232,17 +278,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesRequest other = (com.google.monitoring.v3.CreateTimeSeriesRequest) obj; + com.google.monitoring.v3.CreateTimeSeriesRequest other = + (com.google.monitoring.v3.CreateTimeSeriesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTimeSeriesList() - .equals(other.getTimeSeriesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTimeSeriesList().equals(other.getTimeSeriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,132 +310,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `CreateTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesRequest) com.google.monitoring.v3.CreateTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesRequest.class, com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesRequest.class, + com.google.monitoring.v3.CreateTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; } @java.lang.Override @@ -428,14 +477,18 @@ public com.google.monitoring.v3.CreateTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesRequest result = new com.google.monitoring.v3.CreateTimeSeriesRequest(this); + com.google.monitoring.v3.CreateTimeSeriesRequest result = + new com.google.monitoring.v3.CreateTimeSeriesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.CreateTimeSeriesRequest result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.CreateTimeSeriesRequest result) { if (timeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); @@ -458,38 +511,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesRequest) other); } else { super.mergeFrom(other); return this; @@ -497,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesRequest other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -521,9 +576,10 @@ public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesRequest other) timeSeriesBuilder_ = null; timeSeries_ = other.timeSeries_; bitField0_ = (bitField0_ & ~0x00000002); - timeSeriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimeSeriesFieldBuilder() : null; + timeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeSeriesFieldBuilder() + : null; } else { timeSeriesBuilder_.addAllMessages(other.timeSeries_); } @@ -555,30 +611,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - com.google.monitoring.v3.TimeSeries m = - input.readMessage( - com.google.monitoring.v3.TimeSeries.parser(), - extensionRegistry); - if (timeSeriesBuilder_ == null) { - ensureTimeSeriesIsMutable(); - timeSeries_.add(m); - } else { - timeSeriesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + com.google.monitoring.v3.TimeSeries m = + input.readMessage( + com.google.monitoring.v3.TimeSeries.parser(), extensionRegistry); + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(m); + } else { + timeSeriesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -588,10 +646,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -599,14 +660,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -615,6 +678,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -622,16 +687,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -639,6 +705,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -646,19 +714,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -666,7 +740,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -676,6 +753,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -683,13 +762,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -698,18 +781,24 @@ public Builder setNameBytes( } private java.util.List timeSeries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeSeriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { timeSeries_ = new java.util.ArrayList(timeSeries_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> + timeSeriesBuilder_; /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -720,7 +809,9 @@ private void ensureTimeSeriesIsMutable() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getTimeSeriesList() { if (timeSeriesBuilder_ == null) { @@ -730,6 +821,8 @@ public java.util.List getTimeSeriesList() { } } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -740,7 +833,9 @@ public java.util.List getTimeSeriesList() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getTimeSeriesCount() { if (timeSeriesBuilder_ == null) { @@ -750,6 +845,8 @@ public int getTimeSeriesCount() { } } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -760,7 +857,9 @@ public int getTimeSeriesCount() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { if (timeSeriesBuilder_ == null) { @@ -770,6 +869,8 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { } } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -780,10 +881,11 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTimeSeries( - int index, com.google.monitoring.v3.TimeSeries value) { + public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -797,6 +899,8 @@ public Builder setTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -807,7 +911,9 @@ public Builder setTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTimeSeries( int index, com.google.monitoring.v3.TimeSeries.Builder builderForValue) { @@ -821,6 +927,8 @@ public Builder setTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -831,7 +939,9 @@ public Builder setTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { @@ -847,6 +957,8 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -857,10 +969,11 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addTimeSeries( - int index, com.google.monitoring.v3.TimeSeries value) { + public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -874,6 +987,8 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -884,10 +999,11 @@ public Builder addTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addTimeSeries( - com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); timeSeries_.add(builderForValue.build()); @@ -898,6 +1014,8 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -908,7 +1026,9 @@ public Builder addTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addTimeSeries( int index, com.google.monitoring.v3.TimeSeries.Builder builderForValue) { @@ -922,6 +1042,8 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -932,14 +1054,15 @@ public Builder addTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllTimeSeries( java.lang.Iterable values) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timeSeries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeries_); onChanged(); } else { timeSeriesBuilder_.addAllMessages(values); @@ -947,6 +1070,8 @@ public Builder addAllTimeSeries( return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -957,7 +1082,9 @@ public Builder addAllTimeSeries(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTimeSeries() { if (timeSeriesBuilder_ == null) { @@ -970,6 +1097,8 @@ public Builder clearTimeSeries() { return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -980,7 +1109,9 @@ public Builder clearTimeSeries() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeTimeSeries(int index) { if (timeSeriesBuilder_ == null) { @@ -993,6 +1124,8 @@ public Builder removeTimeSeries(int index) { return this; } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1003,13 +1136,16 @@ public Builder removeTimeSeries(int index) {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder( - int index) { + public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(int index) { return getTimeSeriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1020,16 +1156,20 @@ public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { if (timeSeriesBuilder_ == null) { - return timeSeries_.get(index); } else { + return timeSeries_.get(index); + } else { return timeSeriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1040,10 +1180,12 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getTimeSeriesOrBuilderList() { + public java.util.List + getTimeSeriesOrBuilderList() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilderList(); } else { @@ -1051,6 +1193,8 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( } } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1061,13 +1205,17 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() { - return getTimeSeriesFieldBuilder().addBuilder( - com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + return getTimeSeriesFieldBuilder() + .addBuilder(com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1078,14 +1226,17 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() {
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder( - int index) { - return getTimeSeriesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(int index) { + return getTimeSeriesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** + * + * *
      * Required. The new data to be added to a list of time series.
      * Adds at most one data point to each of several time series.  The new data
@@ -1096,29 +1247,33 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(
      * The maximum number of `TimeSeries` objects per `Create` request is 200.
      * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getTimeSeriesBuilderList() { + public java.util.List getTimeSeriesBuilderList() { return getTimeSeriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( - timeSeries_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + timeSeriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder>( + timeSeries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); timeSeries_ = null; } return timeSeriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) private static final com.google.monitoring.v3.CreateTimeSeriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesRequest(); } @@ -1142,27 +1297,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1177,6 +1332,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java index 4efe1f47d42a..ee3b6536d97f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesRequestOrBuilder extends +public interface CreateTimeSeriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -15,11 +33,16 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -27,13 +50,17 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -44,11 +71,14 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getTimeSeriesList(); + java.util.List getTimeSeriesList(); /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -59,10 +89,14 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.TimeSeries getTimeSeries(int index); /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -73,10 +107,14 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getTimeSeriesCount(); /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -87,11 +125,15 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getTimeSeriesOrBuilderList(); /** + * + * *
    * Required. The new data to be added to a list of time series.
    * Adds at most one data point to each of several time series.  The new data
@@ -102,8 +144,9 @@ public interface CreateTimeSeriesRequestOrBuilder extends
    * The maximum number of `TimeSeries` objects per `Create` request is 200.
    * 
* - * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.monitoring.v3.TimeSeries time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index); + com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java index 5a14a05dc10e..21c7fd8b597a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java @@ -1,71 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * Summary of the result of a failed request to write data to a time series.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary} */ -public final class CreateTimeSeriesSummary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateTimeSeriesSummary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesSummary) CreateTimeSeriesSummaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateTimeSeriesSummary.newBuilder() to construct. private CreateTimeSeriesSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateTimeSeriesSummary() { errors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateTimeSeriesSummary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.class, + com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); } - public interface ErrorOrBuilder extends + public interface ErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesSummary.Error) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status of the requested write operation.
      * 
@@ -75,62 +103,71 @@ public interface ErrorOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
      * The number of points that couldn't be written because of `status`.
      * 
* * int32 point_count = 2; + * * @return The pointCount. */ int getPointCount(); } /** + * + * *
    * Detailed information about an error category.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary.Error} */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Error extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateTimeSeriesSummary.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { - } + + private Error() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** + * + * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ @java.lang.Override @@ -138,11 +175,14 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
      * The status of the requested write operation.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ @java.lang.Override @@ -150,6 +190,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status of the requested write operation.
      * 
@@ -164,11 +206,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int POINT_COUNT_FIELD_NUMBER = 2; private int pointCount_ = 0; /** + * + * *
      * The number of points that couldn't be written because of `status`.
      * 
* * int32 point_count = 2; + * * @return The pointCount. */ @java.lang.Override @@ -177,6 +222,7 @@ public int getPointCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +234,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != null) { output.writeMessage(1, getStatus()); } @@ -206,12 +251,10 @@ public int getSerializedSize() { size = 0; if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); } if (pointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pointCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pointCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -221,20 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesSummary.Error)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesSummary.Error other = (com.google.monitoring.v3.CreateTimeSeriesSummary.Error) obj; + com.google.monitoring.v3.CreateTimeSeriesSummary.Error other = + (com.google.monitoring.v3.CreateTimeSeriesSummary.Error) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } - if (getPointCount() - != other.getPointCount()) return false; + if (getPointCount() != other.getPointCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,89 +300,94 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary.Error prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.CreateTimeSeriesSummary.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -350,39 +397,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Detailed information about an error category.
      * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary.Error} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesSummary.Error) com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.class, + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesSummary.Error.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; } @java.lang.Override @@ -418,8 +467,11 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesSummary.Error buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesSummary.Error result = new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateTimeSeriesSummary.Error result = + new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,9 +479,7 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error buildPartial() { private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary.Error result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.pointCount_ = pointCount_; @@ -440,38 +490,41 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary.Erro public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesSummary.Error) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary.Error)other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary.Error) other); } else { super.mergeFrom(other); return this; @@ -479,7 +532,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary.Error other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()) + return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -512,24 +566,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pointCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pointCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,28 +594,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -571,6 +634,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -591,14 +656,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status of the requested write operation.
        * 
* * .google.rpc.Status status = 1; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -609,6 +675,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -617,9 +685,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -632,6 +700,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -649,6 +719,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -661,6 +733,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -671,11 +745,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status of the requested write operation.
        * 
@@ -683,26 +758,29 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } - private int pointCount_ ; + private int pointCount_; /** + * + * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; + * * @return The pointCount. */ @java.lang.Override @@ -710,11 +788,14 @@ public int getPointCount() { return pointCount_; } /** + * + * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; + * * @param value The pointCount to set. * @return This builder for chaining. */ @@ -726,11 +807,14 @@ public Builder setPointCount(int value) { return this; } /** + * + * *
        * The number of points that couldn't be written because of `status`.
        * 
* * int32 point_count = 2; + * * @return This builder for chaining. */ public Builder clearPointCount() { @@ -739,6 +823,7 @@ public Builder clearPointCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -751,12 +836,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesSummary.Error) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary.Error) private static final com.google.monitoring.v3.CreateTimeSeriesSummary.Error DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesSummary.Error(); } @@ -765,27 +850,28 @@ public static com.google.monitoring.v3.CreateTimeSeriesSummary.Error getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,17 +886,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int TOTAL_POINT_COUNT_FIELD_NUMBER = 1; private int totalPointCount_ = 0; /** + * + * *
    * The number of points in the request.
    * 
* * int32 total_point_count = 1; + * * @return The totalPointCount. */ @java.lang.Override @@ -821,11 +909,14 @@ public int getTotalPointCount() { public static final int SUCCESS_POINT_COUNT_FIELD_NUMBER = 2; private int successPointCount_ = 0; /** + * + * *
    * The number of points that were successfully written.
    * 
* * int32 success_point_count = 2; + * * @return The successPointCount. */ @java.lang.Override @@ -834,9 +925,12 @@ public int getSuccessPointCount() { } public static final int ERRORS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -848,6 +942,8 @@ public java.util.List ge return errors_; } /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -855,11 +951,13 @@ public java.util.List ge * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -871,6 +969,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -882,6 +982,8 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int inde return errors_.get(index); } /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -895,6 +997,7 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -906,8 +1009,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (totalPointCount_ != 0) { output.writeInt32(1, totalPointCount_); } @@ -927,16 +1029,13 @@ public int getSerializedSize() { size = 0; if (totalPointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, totalPointCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalPointCount_); } if (successPointCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, successPointCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, successPointCount_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -946,19 +1045,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateTimeSeriesSummary)) { return super.equals(obj); } - com.google.monitoring.v3.CreateTimeSeriesSummary other = (com.google.monitoring.v3.CreateTimeSeriesSummary) obj; + com.google.monitoring.v3.CreateTimeSeriesSummary other = + (com.google.monitoring.v3.CreateTimeSeriesSummary) obj; - if (getTotalPointCount() - != other.getTotalPointCount()) return false; - if (getSuccessPointCount() - != other.getSuccessPointCount()) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (getTotalPointCount() != other.getTotalPointCount()) return false; + if (getSuccessPointCount() != other.getSuccessPointCount()) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -983,132 +1080,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateTimeSeriesSummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateTimeSeriesSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Summary of the result of a failed request to write data to a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateTimeSeriesSummary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateTimeSeriesSummary) com.google.monitoring.v3.CreateTimeSeriesSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateTimeSeriesSummary.class, com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); + com.google.monitoring.v3.CreateTimeSeriesSummary.class, + com.google.monitoring.v3.CreateTimeSeriesSummary.Builder.class); } // Construct using com.google.monitoring.v3.CreateTimeSeriesSummary.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1126,9 +1227,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; } @java.lang.Override @@ -1147,14 +1248,18 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary build() { @java.lang.Override public com.google.monitoring.v3.CreateTimeSeriesSummary buildPartial() { - com.google.monitoring.v3.CreateTimeSeriesSummary result = new com.google.monitoring.v3.CreateTimeSeriesSummary(this); + com.google.monitoring.v3.CreateTimeSeriesSummary result = + new com.google.monitoring.v3.CreateTimeSeriesSummary(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.CreateTimeSeriesSummary result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.CreateTimeSeriesSummary result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -1180,38 +1285,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateTimeSeriesSummary resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateTimeSeriesSummary) { - return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary)other); + return mergeFrom((com.google.monitoring.v3.CreateTimeSeriesSummary) other); } else { super.mergeFrom(other); return this; @@ -1219,7 +1325,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary other) { - if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateTimeSeriesSummary.getDefaultInstance()) + return this; if (other.getTotalPointCount() != 0) { setTotalPointCount(other.getTotalPointCount()); } @@ -1244,9 +1351,10 @@ public Builder mergeFrom(com.google.monitoring.v3.CreateTimeSeriesSummary other) errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000004); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1278,35 +1386,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - totalPointCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - successPointCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.monitoring.v3.CreateTimeSeriesSummary.Error m = - input.readMessage( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + totalPointCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + successPointCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.monitoring.v3.CreateTimeSeriesSummary.Error m = + input.readMessage( + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1316,15 +1428,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int totalPointCount_ ; + private int totalPointCount_; /** + * + * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; + * * @return The totalPointCount. */ @java.lang.Override @@ -1332,11 +1448,14 @@ public int getTotalPointCount() { return totalPointCount_; } /** + * + * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; + * * @param value The totalPointCount to set. * @return This builder for chaining. */ @@ -1348,11 +1467,14 @@ public Builder setTotalPointCount(int value) { return this; } /** + * + * *
      * The number of points in the request.
      * 
* * int32 total_point_count = 1; + * * @return This builder for chaining. */ public Builder clearTotalPointCount() { @@ -1362,13 +1484,16 @@ public Builder clearTotalPointCount() { return this; } - private int successPointCount_ ; + private int successPointCount_; /** + * + * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; + * * @return The successPointCount. */ @java.lang.Override @@ -1376,11 +1501,14 @@ public int getSuccessPointCount() { return successPointCount_; } /** + * + * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; + * * @param value The successPointCount to set. * @return This builder for chaining. */ @@ -1392,11 +1520,14 @@ public Builder setSuccessPointCount(int value) { return this; } /** + * + * *
      * The number of points that were successfully written.
      * 
* * int32 success_point_count = 2; + * * @return This builder for chaining. */ public Builder clearSuccessPointCount() { @@ -1407,18 +1538,26 @@ public Builder clearSuccessPointCount() { } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> errorsBuilder_; + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, + com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1433,6 +1572,8 @@ public java.util.List ge } } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1447,6 +1588,8 @@ public int getErrorsCount() { } } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1461,6 +1604,8 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int inde } } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1482,6 +1627,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1500,6 +1647,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1520,6 +1669,8 @@ public Builder addErrors(com.google.monitoring.v3.CreateTimeSeriesSummary.Error return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1541,6 +1692,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1559,6 +1712,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1577,6 +1732,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1584,11 +1741,11 @@ public Builder addErrors( * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ public Builder addAllErrors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1596,6 +1753,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1613,6 +1772,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1630,6 +1791,8 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1641,6 +1804,8 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder getErrorsB return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1650,19 +1815,22 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder getErrorsB public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1670,6 +1838,8 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors } } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1677,10 +1847,12 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrors * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
@@ -1689,37 +1861,43 @@ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsB */ public com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.getDefaultInstance()); } /** + * + * *
      * The number of points that failed to be written. Order is not guaranteed.
      * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, + com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.CreateTimeSeriesSummary.Error, com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.CreateTimeSeriesSummary.Error, + com.google.monitoring.v3.CreateTimeSeriesSummary.Error.Builder, + com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1729,12 +1907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateTimeSeriesSummary) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesSummary) private static final com.google.monitoring.v3.CreateTimeSeriesSummary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateTimeSeriesSummary(); } @@ -1743,27 +1921,27 @@ public static com.google.monitoring.v3.CreateTimeSeriesSummary getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTimeSeriesSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTimeSeriesSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1778,6 +1956,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.CreateTimeSeriesSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java index 8558dcfbc0a0..3ef4e9333197 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummaryOrBuilder.java @@ -1,42 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface CreateTimeSeriesSummaryOrBuilder extends +public interface CreateTimeSeriesSummaryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateTimeSeriesSummary) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The number of points in the request.
    * 
* * int32 total_point_count = 1; + * * @return The totalPointCount. */ int getTotalPointCount(); /** + * + * *
    * The number of points that were successfully written.
    * 
* * int32 success_point_count = 2; + * * @return The successPointCount. */ int getSuccessPointCount(); /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -45,6 +70,8 @@ public interface CreateTimeSeriesSummaryOrBuilder extends */ com.google.monitoring.v3.CreateTimeSeriesSummary.Error getErrors(int index); /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
@@ -53,21 +80,24 @@ public interface CreateTimeSeriesSummaryOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * The number of points that failed to be written. Order is not guaranteed.
    * 
* * repeated .google.monitoring.v3.CreateTimeSeriesSummary.Error errors = 3; */ - com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.monitoring.v3.CreateTimeSeriesSummary.ErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java similarity index 61% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java index 8498f99e9926..e5e6a19b6888 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java @@ -1,52 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `CreateUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.CreateUptimeCheckConfigRequest} */ -public final class CreateUptimeCheckConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.CreateUptimeCheckConfigRequest) CreateUptimeCheckConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateUptimeCheckConfigRequest.newBuilder() to construct. - private CreateUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateUptimeCheckConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateUptimeCheckConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -55,7 +78,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,14 +90,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -80,17 +107,18 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,11 +129,16 @@ public java.lang.String getParent() { public static final int UPTIME_CHECK_CONFIG_FIELD_NUMBER = 2; private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_; /** + * + * *
    * Required. The new Uptime check configuration.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the uptimeCheckConfig field is set. */ @java.lang.Override @@ -113,30 +146,44 @@ public boolean hasUptimeCheckConfig() { return uptimeCheckConfig_ != null; } /** + * + * *
    * Required. The new Uptime check configuration.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The uptimeCheckConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } /** + * + * *
    * Required. The new Uptime check configuration.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -169,8 +215,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (uptimeCheckConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUptimeCheckConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUptimeCheckConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +225,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.CreateUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.CreateUptimeCheckConfigRequest other = (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.CreateUptimeCheckConfigRequest other = + (com.google.monitoring.v3.CreateUptimeCheckConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasUptimeCheckConfig() != other.hasUptimeCheckConfig()) return false; if (hasUptimeCheckConfig()) { - if (!getUptimeCheckConfig() - .equals(other.getUptimeCheckConfig())) return false; + if (!getUptimeCheckConfig().equals(other.getUptimeCheckConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -217,131 +261,136 @@ public int hashCode() { } public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.CreateUptimeCheckConfigRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `CreateUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.CreateUptimeCheckConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.CreateUptimeCheckConfigRequest) com.google.monitoring.v3.CreateUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, + com.google.monitoring.v3.CreateUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.CreateUptimeCheckConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -377,8 +426,11 @@ public com.google.monitoring.v3.CreateUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.CreateUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.CreateUptimeCheckConfigRequest result = new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.CreateUptimeCheckConfigRequest result = + new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -389,9 +441,10 @@ private void buildPartial0(com.google.monitoring.v3.CreateUptimeCheckConfigReque result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.uptimeCheckConfig_ = uptimeCheckConfigBuilder_ == null - ? uptimeCheckConfig_ - : uptimeCheckConfigBuilder_.build(); + result.uptimeCheckConfig_ = + uptimeCheckConfigBuilder_ == null + ? uptimeCheckConfig_ + : uptimeCheckConfigBuilder_.build(); } } @@ -399,38 +452,39 @@ private void buildPartial0(com.google.monitoring.v3.CreateUptimeCheckConfigReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.CreateUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.CreateUptimeCheckConfigRequest)other); + return mergeFrom((com.google.monitoring.v3.CreateUptimeCheckConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -438,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.CreateUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -473,24 +528,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUptimeCheckConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getUptimeCheckConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,10 +557,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -512,14 +572,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -528,6 +590,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -536,16 +600,17 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -553,6 +618,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -561,19 +628,25 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -582,7 +655,10 @@ public Builder setParent(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -592,6 +668,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
@@ -600,13 +678,17 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -616,39 +698,58 @@ public Builder setParentBytes( private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + uptimeCheckConfigBuilder_; /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the uptimeCheckConfig field is set. */ public boolean hasUptimeCheckConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The uptimeCheckConfig. */ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { if (uptimeCheckConfigBuilder_ == null) { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } else { return uptimeCheckConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { @@ -664,11 +765,15 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v return this; } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUptimeCheckConfig( com.google.monitoring.v3.UptimeCheckConfig.Builder builderForValue) { @@ -682,17 +787,22 @@ public Builder setUptimeCheckConfig( return this; } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - uptimeCheckConfig_ != null && - uptimeCheckConfig_ != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && uptimeCheckConfig_ != null + && uptimeCheckConfig_ + != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { getUptimeCheckConfigBuilder().mergeFrom(value); } else { uptimeCheckConfig_ = value; @@ -705,11 +815,15 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig return this; } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUptimeCheckConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -722,11 +836,15 @@ public Builder clearUptimeCheckConfig() { return this; } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBuilder() { bitField0_ |= 0x00000002; @@ -734,43 +852,55 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu return getUptimeCheckConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { if (uptimeCheckConfigBuilder_ != null) { return uptimeCheckConfigBuilder_.getMessageOrBuilder(); } else { - return uptimeCheckConfig_ == null ? - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } } /** + * + * *
      * Required. The new Uptime check configuration.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigFieldBuilder() { if (uptimeCheckConfigBuilder_ == null) { - uptimeCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( - getUptimeCheckConfig(), - getParentForChildren(), - isClean()); + uptimeCheckConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + getUptimeCheckConfig(), getParentForChildren(), isClean()); uptimeCheckConfig_ = null; } return uptimeCheckConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -780,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) private static final com.google.monitoring.v3.CreateUptimeCheckConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.CreateUptimeCheckConfigRequest(); } @@ -794,27 +924,27 @@ public static com.google.monitoring.v3.CreateUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,6 +959,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.CreateUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b476d684a25f --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface CreateUptimeCheckConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the Uptime check. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The
+   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
+   * to create the Uptime check. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the uptimeCheckConfig field is set. + */ + boolean hasUptimeCheckConfig(); + /** + * + * + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The uptimeCheckConfig. + */ + com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); + /** + * + * + *
+   * Required. The new Uptime check configuration.
+   * 
+ * + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java index a594d73590bf..3441009f15ab 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `DeleteAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteAlertPolicyRequest} */ -public final class DeleteAlertPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteAlertPolicyRequest) DeleteAlertPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAlertPolicyRequest.newBuilder() to construct. private DeleteAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteAlertPolicyRequest.class, com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.DeleteAlertPolicyRequest.class, + com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The alerting policy to delete. The format is:
    *
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The alerting policy to delete. The format is:
    *
@@ -80,17 +106,18 @@ public java.lang.String getName() {
    * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -135,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteAlertPolicyRequest other = (com.google.monitoring.v3.DeleteAlertPolicyRequest) obj; + com.google.monitoring.v3.DeleteAlertPolicyRequest other = + (com.google.monitoring.v3.DeleteAlertPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,131 +190,135 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.DeleteAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `DeleteAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteAlertPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteAlertPolicyRequest) com.google.monitoring.v3.DeleteAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteAlertPolicyRequest.class, com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.DeleteAlertPolicyRequest.class, + com.google.monitoring.v3.DeleteAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteAlertPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; } @java.lang.Override @@ -318,8 +349,11 @@ public com.google.monitoring.v3.DeleteAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.DeleteAlertPolicyRequest result = new com.google.monitoring.v3.DeleteAlertPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteAlertPolicyRequest result = + new com.google.monitoring.v3.DeleteAlertPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +369,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteAlertPolicyRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteAlertPolicyRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteAlertPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -374,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.DeleteAlertPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -406,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,10 +464,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -438,14 +479,16 @@ public Builder mergeFrom(
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -454,6 +497,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -462,16 +507,17 @@ public java.lang.String getName() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -479,6 +525,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -487,19 +535,25 @@ public java.lang.String getName() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -508,7 +562,10 @@ public Builder setName(
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -518,6 +575,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The alerting policy to delete. The format is:
      *
@@ -526,22 +585,26 @@ public Builder clearName() {
      * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -551,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) private static final com.google.monitoring.v3.DeleteAlertPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteAlertPolicyRequest(); } @@ -565,27 +628,27 @@ public static com.google.monitoring.v3.DeleteAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -600,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..87afc875b428 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public interface DeleteAlertPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteAlertPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The alerting policy to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   *
+   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The alerting policy to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   *
+   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java index 8b6bd1fa2f70..dd762250221a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `DeleteGroup` request. The default behavior is to be able to delete a
  * single group without any descendants.
@@ -11,50 +28,58 @@
  *
  * Protobuf type {@code google.monitoring.v3.DeleteGroupRequest}
  */
-public final class DeleteGroupRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGroupRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteGroupRequest)
     DeleteGroupRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGroupRequest.newBuilder() to construct.
   private DeleteGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGroupRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGroupRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.GroupServiceProto
+        .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
+    return com.google.monitoring.v3.GroupServiceProto
+        .internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DeleteGroupRequest.class, com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
+            com.google.monitoring.v3.DeleteGroupRequest.class,
+            com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getName() { public static final int RECURSIVE_FIELD_NUMBER = 4; private boolean recursive_ = false; /** + * + * *
    * If this field is true, then the request means to delete a group with all
    * its descendants. Otherwise, the request means to delete a group only when
@@ -105,6 +134,7 @@ public java.lang.String getName() {
    * 
* * bool recursive = 4; + * * @return The recursive. */ @java.lang.Override @@ -113,6 +143,7 @@ public boolean getRecursive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -145,8 +175,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (recursive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, recursive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, recursive_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteGroupRequest other = (com.google.monitoring.v3.DeleteGroupRequest) obj; + com.google.monitoring.v3.DeleteGroupRequest other = + (com.google.monitoring.v3.DeleteGroupRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getRecursive() - != other.getRecursive()) return false; + if (!getName().equals(other.getName())) return false; + if (getRecursive() != other.getRecursive()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,106 +209,110 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.DeleteGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `DeleteGroup` request. The default behavior is to be able to delete a
    * single group without any descendants.
@@ -288,33 +320,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.DeleteGroupRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteGroupRequest)
       com.google.monitoring.v3.DeleteGroupRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.GroupServiceProto
+          .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
+      return com.google.monitoring.v3.GroupServiceProto
+          .internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DeleteGroupRequest.class, com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
+              com.google.monitoring.v3.DeleteGroupRequest.class,
+              com.google.monitoring.v3.DeleteGroupRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DeleteGroupRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -325,9 +356,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.GroupServiceProto
+          .internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor;
     }
 
     @java.lang.Override
@@ -346,8 +377,11 @@ public com.google.monitoring.v3.DeleteGroupRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DeleteGroupRequest buildPartial() {
-      com.google.monitoring.v3.DeleteGroupRequest result = new com.google.monitoring.v3.DeleteGroupRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.DeleteGroupRequest result =
+          new com.google.monitoring.v3.DeleteGroupRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -366,38 +400,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteGroupRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DeleteGroupRequest) {
-        return mergeFrom((com.google.monitoring.v3.DeleteGroupRequest)other);
+        return mergeFrom((com.google.monitoring.v3.DeleteGroupRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -440,22 +475,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            case 32: {
-              recursive_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 26:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 26
+            case 32:
+              {
+                recursive_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,24 +503,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,22 +534,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -514,32 +560,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -549,19 +606,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The group to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -569,8 +632,10 @@ public Builder setNameBytes( return this; } - private boolean recursive_ ; + private boolean recursive_; /** + * + * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -578,6 +643,7 @@ public Builder setNameBytes(
      * 
* * bool recursive = 4; + * * @return The recursive. */ @java.lang.Override @@ -585,6 +651,8 @@ public boolean getRecursive() { return recursive_; } /** + * + * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -592,6 +660,7 @@ public boolean getRecursive() {
      * 
* * bool recursive = 4; + * * @param value The recursive to set. * @return This builder for chaining. */ @@ -603,6 +672,8 @@ public Builder setRecursive(boolean value) { return this; } /** + * + * *
      * If this field is true, then the request means to delete a group with all
      * its descendants. Otherwise, the request means to delete a group only when
@@ -610,6 +681,7 @@ public Builder setRecursive(boolean value) {
      * 
* * bool recursive = 4; + * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -618,9 +690,9 @@ public Builder clearRecursive() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -630,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) private static final com.google.monitoring.v3.DeleteGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteGroupRequest(); } @@ -644,27 +716,27 @@ public static com.google.monitoring.v3.DeleteGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -679,6 +751,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java index ca0c8118d35d..1b5636bd551c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface DeleteGroupRequestOrBuilder extends +public interface DeleteGroupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteGroupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The group to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this field is true, then the request means to delete a group with all
    * its descendants. Otherwise, the request means to delete a group only when
@@ -39,6 +66,7 @@ public interface DeleteGroupRequestOrBuilder extends
    * 
* * bool recursive = 4; + * * @return The recursive. */ boolean getRecursive(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java index 2f0f5d41de86..ce0ce04a4806 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `DeleteMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteMetricDescriptorRequest} */ -public final class DeleteMetricDescriptorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteMetricDescriptorRequest) DeleteMetricDescriptorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMetricDescriptorRequest.newBuilder() to construct. private DeleteMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, + com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
    * `"custom.googleapis.com/my_test_metric"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -82,17 +108,18 @@ public java.lang.String getName() {
    * `"custom.googleapis.com/my_test_metric"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -137,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteMetricDescriptorRequest other = (com.google.monitoring.v3.DeleteMetricDescriptorRequest) obj; + com.google.monitoring.v3.DeleteMetricDescriptorRequest other = + (com.google.monitoring.v3.DeleteMetricDescriptorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,131 +192,136 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteMetricDescriptorRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.DeleteMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `DeleteMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteMetricDescriptorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteMetricDescriptorRequest) com.google.monitoring.v3.DeleteMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, + com.google.monitoring.v3.DeleteMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteMetricDescriptorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -299,9 +331,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -320,8 +352,11 @@ public com.google.monitoring.v3.DeleteMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.DeleteMetricDescriptorRequest result = new com.google.monitoring.v3.DeleteMetricDescriptorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteMetricDescriptorRequest result = + new com.google.monitoring.v3.DeleteMetricDescriptorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -337,38 +372,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteMetricDescriptorReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteMetricDescriptorRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteMetricDescriptorRequest) other); } else { super.mergeFrom(other); return this; @@ -376,7 +412,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -408,17 +445,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -428,10 +467,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -441,14 +483,16 @@ public Builder mergeFrom(
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -457,6 +501,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -466,16 +512,17 @@ public java.lang.String getName() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -483,6 +530,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -492,19 +541,25 @@ public java.lang.String getName() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -514,7 +569,10 @@ public Builder setName(
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -524,6 +582,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -533,22 +593,26 @@ public Builder clearName() {
      * `"custom.googleapis.com/my_test_metric"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -558,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) private static final com.google.monitoring.v3.DeleteMetricDescriptorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteMetricDescriptorRequest(); } @@ -572,27 +636,27 @@ public static com.google.monitoring.v3.DeleteMetricDescriptorRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -607,6 +671,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.DeleteMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..898ea9de63d1 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public interface DeleteMetricDescriptorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteMetricDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The metric descriptor on which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
+   *
+   * An example of `[METRIC_ID]` is:
+   * `"custom.googleapis.com/my_test_metric"`.
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The metric descriptor on which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
+   *
+   * An example of `[METRIC_ID]` is:
+   * `"custom.googleapis.com/my_test_metric"`.
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java index 950dc57e8088..f6ce31c22488 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java @@ -1,59 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `DeleteNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteNotificationChannelRequest} */ -public final class DeleteNotificationChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteNotificationChannelRequest) DeleteNotificationChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNotificationChannelRequest.newBuilder() to construct. - private DeleteNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationChannelRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteNotificationChannelRequest.class, com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.DeleteNotificationChannelRequest.class, + com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,6 +125,8 @@ public java.lang.String getName() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** + * + * *
    * If true, the notification channel will be deleted regardless of its
    * use in alert policies (the policies will be updated to remove the
@@ -105,6 +135,7 @@ public java.lang.String getName() {
    * 
* * bool force = 5; + * * @return The force. */ @java.lang.Override @@ -113,6 +144,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -145,8 +176,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +186,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteNotificationChannelRequest other = (com.google.monitoring.v3.DeleteNotificationChannelRequest) obj; + com.google.monitoring.v3.DeleteNotificationChannelRequest other = + (com.google.monitoring.v3.DeleteNotificationChannelRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,139 +210,143 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteNotificationChannelRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.DeleteNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `DeleteNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteNotificationChannelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteNotificationChannelRequest) com.google.monitoring.v3.DeleteNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteNotificationChannelRequest.class, com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.DeleteNotificationChannelRequest.class, + com.google.monitoring.v3.DeleteNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteNotificationChannelRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_DeleteNotificationChannelRequest_descriptor; } @java.lang.Override @@ -345,8 +378,11 @@ public com.google.monitoring.v3.DeleteNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.DeleteNotificationChannelRequest result = new com.google.monitoring.v3.DeleteNotificationChannelRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteNotificationChannelRequest result = + new com.google.monitoring.v3.DeleteNotificationChannelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -365,38 +401,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteNotificationChannelReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteNotificationChannelRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteNotificationChannelRequest) other); } else { super.mergeFrom(other); return this; @@ -404,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,22 +477,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - case 40: { - force_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 40: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,24 +505,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,22 +536,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -513,32 +562,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -548,19 +608,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -568,8 +634,10 @@ public Builder setNameBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -578,6 +646,7 @@ public Builder setNameBytes(
      * 
* * bool force = 5; + * * @return The force. */ @java.lang.Override @@ -585,6 +654,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -593,6 +664,7 @@ public boolean getForce() {
      * 
* * bool force = 5; + * * @param value The force to set. * @return This builder for chaining. */ @@ -604,6 +676,8 @@ public Builder setForce(boolean value) { return this; } /** + * + * *
      * If true, the notification channel will be deleted regardless of its
      * use in alert policies (the policies will be updated to remove the
@@ -612,6 +686,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 5; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -620,9 +695,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,12 +707,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) private static final com.google.monitoring.v3.DeleteNotificationChannelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteNotificationChannelRequest(); } @@ -646,27 +721,27 @@ public static com.google.monitoring.v3.DeleteNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,6 +756,4 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.DeleteNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java index d5e3a8e5e71a..13822d4f1ac5 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface DeleteNotificationChannelRequestOrBuilder extends +public interface DeleteNotificationChannelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If true, the notification channel will be deleted regardless of its
    * use in alert policies (the policies will be updated to remove the
@@ -40,6 +67,7 @@ public interface DeleteNotificationChannelRequestOrBuilder extends
    * 
* * bool force = 5; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java index b69b2f438016..5a467cd3e491 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java @@ -1,59 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `DeleteServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceLevelObjectiveRequest} */ -public final class DeleteServiceLevelObjectiveRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) DeleteServiceLevelObjectiveRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteServiceLevelObjectiveRequest.newBuilder() to construct. - private DeleteServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteServiceLevelObjectiveRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteServiceLevelObjectiveRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other = (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other = + (com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +187,136 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `DeleteServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceLevelObjectiveRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) com.google.monitoring.v3.DeleteServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -314,8 +347,11 @@ public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest result = new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest result = + new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +367,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteServiceLevelObjectiveR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +462,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +493,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +519,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +565,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest(); } @@ -551,27 +616,27 @@ public static com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +651,4 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java new file mode 100644 index 000000000000..5908cb8f6d1f --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface DeleteServiceLevelObjectiveRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java index ad2bd2a88cd7..40e400f76fbe 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `DeleteService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceRequest} */ -public final class DeleteServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteServiceRequest) DeleteServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteServiceRequest.newBuilder() to construct. private DeleteServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceRequest.class, com.google.monitoring.v3.DeleteServiceRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceRequest.class, + com.google.monitoring.v3.DeleteServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Resource name of the `Service` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the `Service` to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteServiceRequest other = (com.google.monitoring.v3.DeleteServiceRequest) obj; + com.google.monitoring.v3.DeleteServiceRequest other = + (com.google.monitoring.v3.DeleteServiceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +185,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteServiceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.DeleteServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `DeleteService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteServiceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteServiceRequest) com.google.monitoring.v3.DeleteServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteServiceRequest.class, com.google.monitoring.v3.DeleteServiceRequest.Builder.class); + com.google.monitoring.v3.DeleteServiceRequest.class, + com.google.monitoring.v3.DeleteServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteServiceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; } @java.lang.Override @@ -314,8 +345,11 @@ public com.google.monitoring.v3.DeleteServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteServiceRequest buildPartial() { - com.google.monitoring.v3.DeleteServiceRequest result = new com.google.monitoring.v3.DeleteServiceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteServiceRequest result = + new com.google.monitoring.v3.DeleteServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +365,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteServiceRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteServiceRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteServiceRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -402,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +459,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +490,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +516,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +562,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Resource name of the `Service` to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteServiceRequest) private static final com.google.monitoring.v3.DeleteServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteServiceRequest(); } @@ -551,27 +613,27 @@ public static com.google.monitoring.v3.DeleteServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java new file mode 100644 index 000000000000..30b7f804f354 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface DeleteServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the `Service` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the `Service` to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java index 13a9aae68f51..0d23002c9ef2 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java @@ -1,59 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `DeleteUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.DeleteUptimeCheckConfigRequest} */ -public final class DeleteUptimeCheckConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.DeleteUptimeCheckConfigRequest) DeleteUptimeCheckConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteUptimeCheckConfigRequest.newBuilder() to construct. - private DeleteUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteUptimeCheckConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteUptimeCheckConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The Uptime check configuration to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Uptime check configuration to delete. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DeleteUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other = (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other = + (com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +187,136 @@ public int hashCode() { } public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `DeleteUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.DeleteUptimeCheckConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DeleteUptimeCheckConfigRequest) com.google.monitoring.v3.DeleteUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -314,8 +347,11 @@ public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest result = new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest result = + new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +367,39 @@ private void buildPartial0(com.google.monitoring.v3.DeleteUptimeCheckConfigReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest)other); + return mergeFrom((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +462,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +493,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +519,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +565,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The Uptime check configuration to delete. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) private static final com.google.monitoring.v3.DeleteUptimeCheckConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DeleteUptimeCheckConfigRequest(); } @@ -551,27 +616,27 @@ public static com.google.monitoring.v3.DeleteUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +651,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.DeleteUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..aff26e2737db --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface DeleteUptimeCheckConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Uptime check configuration to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Uptime check configuration to delete. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java index 55685895e747..4cd796801350 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
  * good service and total service. The `TimeSeries` must have `ValueType =
@@ -14,43 +31,48 @@
  *
  * Protobuf type {@code google.monitoring.v3.DistributionCut}
  */
-public final class DistributionCut extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DistributionCut extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DistributionCut)
     DistributionCutOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DistributionCut.newBuilder() to construct.
   private DistributionCut(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DistributionCut() {
     distributionFilter_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DistributionCut();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_DistributionCut_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DistributionCut.class, com.google.monitoring.v3.DistributionCut.Builder.class);
+            com.google.monitoring.v3.DistributionCut.class,
+            com.google.monitoring.v3.DistributionCut.Builder.class);
   }
 
   public static final int DISTRIBUTION_FILTER_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object distributionFilter_ = "";
   /**
+   *
+   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string distribution_filter = 4; + * * @return The distributionFilter. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getDistributionFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); distributionFilter_ = s; return s; } } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -81,16 +105,15 @@ public java.lang.String getDistributionFilter() {
    * 
* * string distribution_filter = 4; + * * @return The bytes for distributionFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getDistributionFilterBytes() { + public com.google.protobuf.ByteString getDistributionFilterBytes() { java.lang.Object ref = distributionFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); distributionFilter_ = b; return b; } else { @@ -101,12 +124,15 @@ public java.lang.String getDistributionFilter() { public static final int RANGE_FIELD_NUMBER = 5; private com.google.monitoring.v3.Range range_; /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; + * * @return Whether the range field is set. */ @java.lang.Override @@ -114,12 +140,15 @@ public boolean hasRange() { return range_ != null; } /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; + * * @return The range. */ @java.lang.Override @@ -127,6 +156,8 @@ public com.google.monitoring.v3.Range getRange() { return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_; } /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
@@ -140,6 +171,7 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,8 +183,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distributionFilter_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, distributionFilter_);
     }
@@ -172,8 +203,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, distributionFilter_);
     }
     if (range_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getRange());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRange());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -183,19 +213,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.DistributionCut)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.DistributionCut other = (com.google.monitoring.v3.DistributionCut) obj;
 
-    if (!getDistributionFilter()
-        .equals(other.getDistributionFilter())) return false;
+    if (!getDistributionFilter().equals(other.getDistributionFilter())) return false;
     if (hasRange() != other.hasRange()) return false;
     if (hasRange()) {
-      if (!getRange()
-          .equals(other.getRange())) return false;
+      if (!getRange().equals(other.getRange())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -219,99 +247,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.DistributionCut parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.DistributionCut parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.DistributionCut parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.DistributionCut parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.DistributionCut prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
    * good service and total service. The `TimeSeries` must have `ValueType =
@@ -322,33 +355,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.DistributionCut}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DistributionCut)
       com.google.monitoring.v3.DistributionCutOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_DistributionCut_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DistributionCut.class, com.google.monitoring.v3.DistributionCut.Builder.class);
+              com.google.monitoring.v3.DistributionCut.class,
+              com.google.monitoring.v3.DistributionCut.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DistributionCut.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -363,9 +395,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_DistributionCut_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_DistributionCut_descriptor;
     }
 
     @java.lang.Override
@@ -384,8 +416,11 @@ public com.google.monitoring.v3.DistributionCut build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DistributionCut buildPartial() {
-      com.google.monitoring.v3.DistributionCut result = new com.google.monitoring.v3.DistributionCut(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.DistributionCut result =
+          new com.google.monitoring.v3.DistributionCut(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -396,9 +431,7 @@ private void buildPartial0(com.google.monitoring.v3.DistributionCut result) {
         result.distributionFilter_ = distributionFilter_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.range_ = rangeBuilder_ == null
-            ? range_
-            : rangeBuilder_.build();
+        result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build();
       }
     }
 
@@ -406,38 +439,39 @@ private void buildPartial0(com.google.monitoring.v3.DistributionCut result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DistributionCut) {
-        return mergeFrom((com.google.monitoring.v3.DistributionCut)other);
+        return mergeFrom((com.google.monitoring.v3.DistributionCut) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -480,24 +514,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 34: {
-              distributionFilter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getRangeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 34:
+              {
+                distributionFilter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -507,10 +542,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object distributionFilter_ = "";
     /**
+     *
+     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -518,13 +556,13 @@ public Builder mergeFrom(
      * 
* * string distribution_filter = 4; + * * @return The distributionFilter. */ public java.lang.String getDistributionFilter() { java.lang.Object ref = distributionFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); distributionFilter_ = s; return s; @@ -533,6 +571,8 @@ public java.lang.String getDistributionFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -540,15 +580,14 @@ public java.lang.String getDistributionFilter() {
      * 
* * string distribution_filter = 4; + * * @return The bytes for distributionFilter. */ - public com.google.protobuf.ByteString - getDistributionFilterBytes() { + public com.google.protobuf.ByteString getDistributionFilterBytes() { java.lang.Object ref = distributionFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); distributionFilter_ = b; return b; } else { @@ -556,6 +595,8 @@ public java.lang.String getDistributionFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -563,18 +604,22 @@ public java.lang.String getDistributionFilter() {
      * 
* * string distribution_filter = 4; + * * @param value The distributionFilter to set. * @return This builder for chaining. */ - public Builder setDistributionFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDistributionFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } distributionFilter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -582,6 +627,7 @@ public Builder setDistributionFilter(
      * 
* * string distribution_filter = 4; + * * @return This builder for chaining. */ public Builder clearDistributionFilter() { @@ -591,6 +637,8 @@ public Builder clearDistributionFilter() { return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -598,12 +646,14 @@ public Builder clearDistributionFilter() {
      * 
* * string distribution_filter = 4; + * * @param value The bytes for distributionFilter to set. * @return This builder for chaining. */ - public Builder setDistributionFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDistributionFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); distributionFilter_ = value; bitField0_ |= 0x00000001; @@ -613,26 +663,35 @@ public Builder setDistributionFilterBytes( private com.google.monitoring.v3.Range range_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> rangeBuilder_; + com.google.monitoring.v3.Range, + com.google.monitoring.v3.Range.Builder, + com.google.monitoring.v3.RangeOrBuilder> + rangeBuilder_; /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
      * 
* * .google.monitoring.v3.Range range = 5; + * * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
      * 
* * .google.monitoring.v3.Range range = 5; + * * @return The range. */ public com.google.monitoring.v3.Range getRange() { @@ -643,6 +702,8 @@ public com.google.monitoring.v3.Range getRange() { } } /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -664,6 +725,8 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -671,8 +734,7 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
      *
      * .google.monitoring.v3.Range range = 5;
      */
-    public Builder setRange(
-        com.google.monitoring.v3.Range.Builder builderForValue) {
+    public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue) {
       if (rangeBuilder_ == null) {
         range_ = builderForValue.build();
       } else {
@@ -683,6 +745,8 @@ public Builder setRange(
       return this;
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -692,9 +756,9 @@ public Builder setRange(
      */
     public Builder mergeRange(com.google.monitoring.v3.Range value) {
       if (rangeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          range_ != null &&
-          range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && range_ != null
+            && range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
           getRangeBuilder().mergeFrom(value);
         } else {
           range_ = value;
@@ -707,6 +771,8 @@ public Builder mergeRange(com.google.monitoring.v3.Range value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -725,6 +791,8 @@ public Builder clearRange() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -738,6 +806,8 @@ public com.google.monitoring.v3.Range.Builder getRangeBuilder() {
       return getRangeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -749,11 +819,12 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
       if (rangeBuilder_ != null) {
         return rangeBuilder_.getMessageOrBuilder();
       } else {
-        return range_ == null ?
-            com.google.monitoring.v3.Range.getDefaultInstance() : range_;
+        return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_;
       }
     }
     /**
+     *
+     *
      * 
      * Range of values considered "good." For a one-sided range, set one bound to
      * an infinite value.
@@ -762,21 +833,24 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
      * .google.monitoring.v3.Range range = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> 
+            com.google.monitoring.v3.Range,
+            com.google.monitoring.v3.Range.Builder,
+            com.google.monitoring.v3.RangeOrBuilder>
         getRangeFieldBuilder() {
       if (rangeBuilder_ == null) {
-        rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder>(
-                getRange(),
-                getParentForChildren(),
-                isClean());
+        rangeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.Range,
+                com.google.monitoring.v3.Range.Builder,
+                com.google.monitoring.v3.RangeOrBuilder>(
+                getRange(), getParentForChildren(), isClean());
         range_ = null;
       }
       return rangeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -786,12 +860,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DistributionCut)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.DistributionCut)
   private static final com.google.monitoring.v3.DistributionCut DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.DistributionCut();
   }
@@ -800,27 +874,27 @@ public static com.google.monitoring.v3.DistributionCut getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DistributionCut parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DistributionCut parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -835,6 +909,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.DistributionCut getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
similarity index 70%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
index bc6dd007ad59..3fb2a8ca948c 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCutOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface DistributionCutOrBuilder extends
+public interface DistributionCutOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DistributionCut)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -15,10 +33,13 @@ public interface DistributionCutOrBuilder extends
    * 
* * string distribution_filter = 4; + * * @return The distributionFilter. */ java.lang.String getDistributionFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` aggregating values. Must have `ValueType =
@@ -26,32 +47,40 @@ public interface DistributionCutOrBuilder extends
    * 
* * string distribution_filter = 4; + * * @return The bytes for distributionFilter. */ - com.google.protobuf.ByteString - getDistributionFilterBytes(); + com.google.protobuf.ByteString getDistributionFilterBytes(); /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; + * * @return Whether the range field is set. */ boolean hasRange(); /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
    * 
* * .google.monitoring.v3.Range range = 5; + * * @return The range. */ com.google.monitoring.v3.Range getRange(); /** + * + * *
    * Range of values considered "good." For a one-sided range, set one bound to
    * an infinite value.
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
similarity index 61%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
index 6f3b0064039d..286ff1590b4c 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/dropped_labels.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * A set of (label, value) pairs that were removed from a Distribution
  * time series during aggregation and then added as an attachment to a
@@ -25,77 +42,79 @@
  *
  * Protobuf type {@code google.monitoring.v3.DroppedLabels}
  */
-public final class DroppedLabels extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DroppedLabels extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.DroppedLabels)
     DroppedLabelsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DroppedLabels.newBuilder() to construct.
   private DroppedLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private DroppedLabels() {
-  }
+
+  private DroppedLabels() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DroppedLabels();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.DroppedLabelsProto
+        .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetLabel();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
+    return com.google.monitoring.v3.DroppedLabelsProto
+        .internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.DroppedLabels.class, com.google.monitoring.v3.DroppedLabels.Builder.class);
+            com.google.monitoring.v3.DroppedLabels.class,
+            com.google.monitoring.v3.DroppedLabels.Builder.class);
   }
 
   public static final int LABEL_FIELD_NUMBER = 1;
+
   private static final class LabelDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.monitoring.v3.DroppedLabelsProto
+                .internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> label_;
-  private com.google.protobuf.MapField
-  internalGetLabel() {
+  private com.google.protobuf.MapField label_;
+
+  private com.google.protobuf.MapField internalGetLabel() {
     if (label_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          LabelDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(LabelDefaultEntryHolder.defaultEntry);
     }
     return label_;
   }
+
   public int getLabelCount() {
     return internalGetLabel().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -103,20 +122,21 @@ public int getLabelCount() { * map<string, string> label = 1; */ @java.lang.Override - public boolean containsLabel( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabel(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabel().getMap().containsKey(key); } - /** - * Use {@link #getLabelMap()} instead. - */ + /** Use {@link #getLabelMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabel() { return getLabelMap(); } /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -128,6 +148,8 @@ public java.util.Map getLabelMap() { return internalGetLabel().getMap(); } /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -135,17 +157,19 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelOrDefault( + public /* nullable */ java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabel().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -153,11 +177,11 @@ java.lang.String getLabelOrDefault( * map<string, string> label = 1; */ @java.lang.Override - public java.lang.String getLabelOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabel().getMap(); + public java.lang.String getLabelOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabel().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -165,6 +189,7 @@ public java.lang.String getLabelOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,14 +201,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabel(), - LabelDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabel(), LabelDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -193,15 +213,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetLabel().getMap().entrySet()) { - com.google.protobuf.MapEntry - label__ = LabelDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, label__); + for (java.util.Map.Entry entry : + internalGetLabel().getMap().entrySet()) { + com.google.protobuf.MapEntry label__ = + LabelDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, label__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,15 +231,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.DroppedLabels)) { return super.equals(obj); } com.google.monitoring.v3.DroppedLabels other = (com.google.monitoring.v3.DroppedLabels) obj; - if (!internalGetLabel().equals( - other.internalGetLabel())) return false; + if (!internalGetLabel().equals(other.internalGetLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,99 +259,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.DroppedLabels parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.DroppedLabels parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DroppedLabels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.DroppedLabels parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.DroppedLabels parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.DroppedLabels parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.DroppedLabels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.DroppedLabels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of (label, value) pairs that were removed from a Distribution
    * time series during aggregation and then added as an attachment to a
@@ -354,55 +378,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.DroppedLabels}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DroppedLabels)
       com.google.monitoring.v3.DroppedLabelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.DroppedLabelsProto
+          .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetLabel();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableLabel();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
+      return com.google.monitoring.v3.DroppedLabelsProto
+          .internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.DroppedLabels.class, com.google.monitoring.v3.DroppedLabels.Builder.class);
+              com.google.monitoring.v3.DroppedLabels.class,
+              com.google.monitoring.v3.DroppedLabels.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.DroppedLabels.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +433,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.DroppedLabelsProto.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.DroppedLabelsProto
+          .internal_static_google_monitoring_v3_DroppedLabels_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +454,11 @@ public com.google.monitoring.v3.DroppedLabels build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.DroppedLabels buildPartial() {
-      com.google.monitoring.v3.DroppedLabels result = new com.google.monitoring.v3.DroppedLabels(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.DroppedLabels result =
+          new com.google.monitoring.v3.DroppedLabels(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -451,38 +475,39 @@ private void buildPartial0(com.google.monitoring.v3.DroppedLabels result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.DroppedLabels) {
-        return mergeFrom((com.google.monitoring.v3.DroppedLabels)other);
+        return mergeFrom((com.google.monitoring.v3.DroppedLabels) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -491,8 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.monitoring.v3.DroppedLabels other) {
       if (other == com.google.monitoring.v3.DroppedLabels.getDefaultInstance()) return this;
-      internalGetMutableLabel().mergeFrom(
-          other.internalGetLabel());
+      internalGetMutableLabel().mergeFrom(other.internalGetLabel());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -520,21 +544,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              label__ = input.readMessage(
-                  LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabel().getMutableMap().put(
-                  label__.getKey(), label__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry label__ =
+                    input.readMessage(
+                        LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableLabel().getMutableMap().put(label__.getKey(), label__.getValue());
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,23 +569,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> label_;
-    private com.google.protobuf.MapField
-        internalGetLabel() {
+    private com.google.protobuf.MapField label_;
+
+    private com.google.protobuf.MapField internalGetLabel() {
       if (label_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            LabelDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(LabelDefaultEntryHolder.defaultEntry);
       }
       return label_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableLabel() {
       if (label_ == null) {
-        label_ = com.google.protobuf.MapField.newMapField(
-            LabelDefaultEntryHolder.defaultEntry);
+        label_ = com.google.protobuf.MapField.newMapField(LabelDefaultEntryHolder.defaultEntry);
       }
       if (!label_.isMutable()) {
         label_ = label_.copy();
@@ -569,10 +593,13 @@ public Builder mergeFrom(
       onChanged();
       return label_;
     }
+
     public int getLabelCount() {
       return internalGetLabel().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -580,20 +607,21 @@ public int getLabelCount() { * map<string, string> label = 1; */ @java.lang.Override - public boolean containsLabel( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabel(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabel().getMap().containsKey(key); } - /** - * Use {@link #getLabelMap()} instead. - */ + /** Use {@link #getLabelMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabel() { return getLabelMap(); } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -605,6 +633,8 @@ public java.util.Map getLabelMap() { return internalGetLabel().getMap(); } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -612,17 +642,19 @@ public java.util.Map getLabelMap() { * map<string, string> label = 1; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelOrDefault( + public /* nullable */ java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabel().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
@@ -630,79 +662,81 @@ java.lang.String getLabelOrDefault( * map<string, string> label = 1; */ @java.lang.Override - public java.lang.String getLabelOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabel().getMap(); + public java.lang.String getLabelOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabel().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabel().getMutableMap() - .clear(); + internalGetMutableLabel().getMutableMap().clear(); return this; } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder removeLabel( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabel().getMutableMap() - .remove(key); + public Builder removeLabel(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabel().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabel() { + public java.util.Map getMutableLabel() { bitField0_ |= 0x00000001; return internalGetMutableLabel().getMutableMap(); } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder putLabel( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabel().getMutableMap() - .put(key, value); + public Builder putLabel(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabel().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Map from label to its value, for all labels dropped in any aggregation.
      * 
* * map<string, string> label = 1; */ - public Builder putAllLabel( - java.util.Map values) { - internalGetMutableLabel().getMutableMap() - .putAll(values); + public Builder putAllLabel(java.util.Map values) { + internalGetMutableLabel().getMutableMap().putAll(values); bitField0_ |= 0x00000001; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -712,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DroppedLabels) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) private static final com.google.monitoring.v3.DroppedLabels DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.DroppedLabels(); } @@ -726,27 +760,27 @@ public static com.google.monitoring.v3.DroppedLabels getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DroppedLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DroppedLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -761,6 +795,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.DroppedLabels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java similarity index 54% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java index 5b8261bfc3ca..9ba956817761 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/dropped_labels.proto package com.google.monitoring.v3; -public interface DroppedLabelsOrBuilder extends +public interface DroppedLabelsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DroppedLabels) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -16,30 +34,31 @@ public interface DroppedLabelsOrBuilder extends */ int getLabelCount(); /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - boolean containsLabel( - java.lang.String key); - /** - * Use {@link #getLabelMap()} instead. - */ + boolean containsLabel(java.lang.String key); + /** Use {@link #getLabelMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabel(); + java.util.Map getLabel(); /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - java.util.Map - getLabelMap(); + java.util.Map getLabelMap(); /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
@@ -47,17 +66,18 @@ boolean containsLabel( * map<string, string> label = 1; */ /* nullable */ -java.lang.String getLabelOrDefault( + java.lang.String getLabelOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Map from label to its value, for all labels dropped in any aggregation.
    * 
* * map<string, string> label = 1; */ - java.lang.String getLabelOrThrow( - java.lang.String key); + java.lang.String getLabelOrThrow(java.lang.String key); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java new file mode 100644 index 000000000000..20a02262347d --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/dropped_labels.proto + +package com.google.monitoring.v3; + +public final class DroppedLabelsProto { + private DroppedLabelsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/dropped_labels.pr" + + "oto\022\024google.monitoring.v3\"|\n\rDroppedLabe" + + "ls\022=\n\005label\030\001 \003(\0132..google.monitoring.v3" + + ".DroppedLabels.LabelEntry\032,\n\nLabelEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\315\001\n\030com." + + "google.monitoring.v3B\022DroppedLabelsProto" + + "P\001ZAcloud.google.com/go/monitoring/apiv3" + + "/v2/monitoringpb;monitoringpb\252\002\032Google.C" + + "loud.Monitoring.V3\312\002\032Google\\Cloud\\Monito" + + "ring\\V3\352\002\035Google::Cloud::Monitoring::V3b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_v3_DroppedLabels_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_descriptor, + new java.lang.String[] { + "Label", + }); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor = + internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java index f8a2a2067435..e411ee113a30 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `GetAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetAlertPolicyRequest} */ -public final class GetAlertPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetAlertPolicyRequest) GetAlertPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAlertPolicyRequest.newBuilder() to construct. private GetAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAlertPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetAlertPolicyRequest.class, com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.GetAlertPolicyRequest.class, + com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The alerting policy to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The alerting policy to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetAlertPolicyRequest other = (com.google.monitoring.v3.GetAlertPolicyRequest) obj; + com.google.monitoring.v3.GetAlertPolicyRequest other = + (com.google.monitoring.v3.GetAlertPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +185,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `GetAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetAlertPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetAlertPolicyRequest) com.google.monitoring.v3.GetAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetAlertPolicyRequest.class, com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.GetAlertPolicyRequest.class, + com.google.monitoring.v3.GetAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetAlertPolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; } @java.lang.Override @@ -314,8 +345,11 @@ public com.google.monitoring.v3.GetAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.GetAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.GetAlertPolicyRequest result = new com.google.monitoring.v3.GetAlertPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetAlertPolicyRequest result = + new com.google.monitoring.v3.GetAlertPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +365,39 @@ private void buildPartial0(com.google.monitoring.v3.GetAlertPolicyRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.GetAlertPolicyRequest)other); + return mergeFrom((com.google.monitoring.v3.GetAlertPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -402,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +459,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +490,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +516,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +562,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The alerting policy to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) private static final com.google.monitoring.v3.GetAlertPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetAlertPolicyRequest(); } @@ -551,27 +613,27 @@ public static com.google.monitoring.v3.GetAlertPolicyRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..f51e30b4b215 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/alert_service.proto + +package com.google.monitoring.v3; + +public interface GetAlertPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetAlertPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The alerting policy to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The alerting policy to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java index 29a40f88ff0e..345b89a953d7 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetGroupRequest} */ -public final class GetGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetGroupRequest) GetGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGroupRequest.newBuilder() to construct. private GetGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGroupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetGroupRequest.class, com.google.monitoring.v3.GetGroupRequest.Builder.class); + com.google.monitoring.v3.GetGroupRequest.class, + com.google.monitoring.v3.GetGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The group to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The group to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -131,15 +158,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetGroupRequest)) { return super.equals(obj); } com.google.monitoring.v3.GetGroupRequest other = (com.google.monitoring.v3.GetGroupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +184,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetGroupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetGroupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetGroupRequest) com.google.monitoring.v3.GetGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetGroupRequest.class, com.google.monitoring.v3.GetGroupRequest.Builder.class); + com.google.monitoring.v3.GetGroupRequest.class, + com.google.monitoring.v3.GetGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetGroupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_GetGroupRequest_descriptor; } @java.lang.Override @@ -314,8 +344,11 @@ public com.google.monitoring.v3.GetGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.GetGroupRequest buildPartial() { - com.google.monitoring.v3.GetGroupRequest result = new com.google.monitoring.v3.GetGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetGroupRequest result = + new com.google.monitoring.v3.GetGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +364,39 @@ private void buildPartial0(com.google.monitoring.v3.GetGroupRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetGroupRequest) { - return mergeFrom((com.google.monitoring.v3.GetGroupRequest)other); + return mergeFrom((com.google.monitoring.v3.GetGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -402,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +458,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +489,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +515,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +561,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The group to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) private static final com.google.monitoring.v3.GetGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetGroupRequest(); } @@ -551,27 +612,27 @@ public static com.google.monitoring.v3.GetGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java new file mode 100644 index 000000000000..159e2af6d802 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group_service.proto + +package com.google.monitoring.v3; + +public interface GetGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The group to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The group to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java index 356085150c3d..1f78f20adea8 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetMetricDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetMetricDescriptorRequest} */ -public final class GetMetricDescriptorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMetricDescriptorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetMetricDescriptorRequest) GetMetricDescriptorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMetricDescriptorRequest.newBuilder() to construct. private GetMetricDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMetricDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMetricDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMetricDescriptorRequest.class, com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMetricDescriptorRequest.class, + com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -82,17 +108,18 @@ public java.lang.String getName() {
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -137,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetMetricDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetMetricDescriptorRequest other = (com.google.monitoring.v3.GetMetricDescriptorRequest) obj; + com.google.monitoring.v3.GetMetricDescriptorRequest other = + (com.google.monitoring.v3.GetMetricDescriptorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,131 +192,135 @@ public int hashCode() { } public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetMetricDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetMetricDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetMetricDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetMetricDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetMetricDescriptorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetMetricDescriptorRequest) com.google.monitoring.v3.GetMetricDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMetricDescriptorRequest.class, com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMetricDescriptorRequest.class, + com.google.monitoring.v3.GetMetricDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetMetricDescriptorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -299,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; } @java.lang.Override @@ -320,8 +351,11 @@ public com.google.monitoring.v3.GetMetricDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.GetMetricDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetMetricDescriptorRequest result = new com.google.monitoring.v3.GetMetricDescriptorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetMetricDescriptorRequest result = + new com.google.monitoring.v3.GetMetricDescriptorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -337,38 +371,39 @@ private void buildPartial0(com.google.monitoring.v3.GetMetricDescriptorRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetMetricDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetMetricDescriptorRequest)other); + return mergeFrom((com.google.monitoring.v3.GetMetricDescriptorRequest) other); } else { super.mergeFrom(other); return this; @@ -376,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetMetricDescriptorRequest other) { - if (other == com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -408,17 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -428,10 +466,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -441,14 +482,16 @@ public Builder mergeFrom(
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -457,6 +500,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -466,16 +511,17 @@ public java.lang.String getName() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -483,6 +529,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -492,19 +540,25 @@ public java.lang.String getName() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -514,7 +568,10 @@ public Builder setName(
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -524,6 +581,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The metric descriptor on which to execute the request. The format is:
      *
@@ -533,22 +592,26 @@ public Builder clearName() {
      * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -558,12 +621,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetMetricDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) private static final com.google.monitoring.v3.GetMetricDescriptorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetMetricDescriptorRequest(); } @@ -572,27 +635,27 @@ public static com.google.monitoring.v3.GetMetricDescriptorRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMetricDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetricDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -607,6 +670,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.GetMetricDescriptorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java index 89b9cf73c2c7..f1942beef16c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface GetMetricDescriptorRequestOrBuilder extends +public interface GetMetricDescriptorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMetricDescriptorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -17,11 +35,16 @@ public interface GetMetricDescriptorRequestOrBuilder extends
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The metric descriptor on which to execute the request. The format is:
    *
@@ -31,9 +54,11 @@ public interface GetMetricDescriptorRequestOrBuilder extends
    * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java similarity index 61% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java index c2832cf6c6af..0db5af95ad91 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java @@ -1,52 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetMonitoredResourceDescriptor` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetMonitoredResourceDescriptorRequest} */ -public final class GetMonitoredResourceDescriptorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMonitoredResourceDescriptorRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) GetMonitoredResourceDescriptorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMonitoredResourceDescriptorRequest.newBuilder() to construct. - private GetMonitoredResourceDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetMonitoredResourceDescriptorRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMonitoredResourceDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMonitoredResourceDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The monitored resource descriptor to get.  The format is:
    *
@@ -56,7 +80,10 @@ protected java.lang.Object newInstance(
    * `cloudsql_database`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The monitored resource descriptor to get.  The format is:
    *
@@ -82,17 +110,18 @@ public java.lang.String getName() {
    * `cloudsql_database`.
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +130,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +142,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -137,15 +166,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other = (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) obj; + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other = + (com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,131 +194,136 @@ public int hashCode() { } public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetMonitoredResourceDescriptor` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetMonitoredResourceDescriptorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) com.google.monitoring.v3.GetMonitoredResourceDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -299,13 +333,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest + getDefaultInstanceForType() { return com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance(); } @@ -320,13 +355,17 @@ public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest build() { @java.lang.Override public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result = new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result = + new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result) { + private void buildPartial0( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -337,38 +376,39 @@ private void buildPartial0(com.google.monitoring.v3.GetMonitoredResourceDescript public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest)other); + return mergeFrom((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) other); } else { super.mergeFrom(other); return this; @@ -376,7 +416,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest other) { - if (other == com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance()) return this; + if (other + == com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -408,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -428,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -441,14 +488,16 @@ public Builder mergeFrom(
      * `cloudsql_database`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -457,6 +506,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -466,16 +517,17 @@ public java.lang.String getName() {
      * `cloudsql_database`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -483,6 +535,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -492,19 +546,25 @@ public java.lang.String getName() {
      * `cloudsql_database`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -514,7 +574,10 @@ public Builder setName(
      * `cloudsql_database`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -524,6 +587,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The monitored resource descriptor to get.  The format is:
      *
@@ -533,22 +598,26 @@ public Builder clearName() {
      * `cloudsql_database`.
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -558,41 +627,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - private static final com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest(); } - public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstance() { + public static com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMonitoredResourceDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMonitoredResourceDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,9 +675,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..e4784eaf3607 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public interface GetMonitoredResourceDescriptorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The monitored resource descriptor to get.  The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
+   *
+   * The `[RESOURCE_TYPE]` is a predefined type, such as
+   * `cloudsql_database`.
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The monitored resource descriptor to get.  The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
+   *
+   * The `[RESOURCE_TYPE]` is a predefined type, such as
+   * `cloudsql_database`.
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java similarity index 60% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java index 7d4ec8646358..2e969fb6c6c1 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java @@ -1,59 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetNotificationChannelDescriptor` response.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelDescriptorRequest} */ -public final class GetNotificationChannelDescriptorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationChannelDescriptorRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelDescriptorRequest) GetNotificationChannelDescriptorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationChannelDescriptorRequest.newBuilder() to construct. - private GetNotificationChannelDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelDescriptorRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationChannelDescriptorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationChannelDescriptorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The channel type for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +89,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The channel type for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +136,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -131,15 +160,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelDescriptorRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other = (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) obj; + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other = + (com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +188,136 @@ public int hashCode() { } public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetNotificationChannelDescriptor` response.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelDescriptorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelDescriptorRequest) com.google.monitoring.v3.GetNotificationChannelDescriptorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +327,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelDescriptorRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest + getDefaultInstanceForType() { return com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance(); } @@ -314,13 +349,17 @@ public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest build() @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result = new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result = + new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result) { + private void buildPartial0( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,46 +370,50 @@ private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelDescri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest)other); + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other) { - if (other == com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest other) { + if (other + == com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +445,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +467,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +498,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +524,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +570,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The channel type for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,41 +607,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - private static final com.google.monitoring.v3.GetNotificationChannelDescriptorRequest DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.GetNotificationChannelDescriptorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelDescriptorRequest(); } - public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstance() { + public static com.google.monitoring.v3.GetNotificationChannelDescriptorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationChannelDescriptorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationChannelDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +655,8 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.GetNotificationChannelDescriptorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java new file mode 100644 index 000000000000..be7a391d27b1 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface GetNotificationChannelDescriptorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The channel type for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The channel type for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java index 21f24294aba7..dfdb920905ed 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelRequest} */ -public final class GetNotificationChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelRequest) GetNotificationChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationChannelRequest.newBuilder() to construct. private GetNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationChannelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelRequest.class, com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelRequest.class, + com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The channel for which to execute the request. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
    * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetNotificationChannelRequest other = (com.google.monitoring.v3.GetNotificationChannelRequest) obj; + com.google.monitoring.v3.GetNotificationChannelRequest other = + (com.google.monitoring.v3.GetNotificationChannelRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ public int hashCode() { } public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.GetNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelRequest) com.google.monitoring.v3.GetNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelRequest.class, com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelRequest.class, + com.google.monitoring.v3.GetNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetNotificationChannelRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelRequest_descriptor; } @java.lang.Override @@ -314,8 +346,11 @@ public com.google.monitoring.v3.GetNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelRequest result = new com.google.monitoring.v3.GetNotificationChannelRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetNotificationChannelRequest result = + new com.google.monitoring.v3.GetNotificationChannelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +366,39 @@ private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelRequest)other); + return mergeFrom((com.google.monitoring.v3.GetNotificationChannelRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +461,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +518,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +564,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The channel for which to execute the request. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
      * 
* - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) private static final com.google.monitoring.v3.GetNotificationChannelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelRequest(); } @@ -551,27 +615,27 @@ public static com.google.monitoring.v3.GetNotificationChannelRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +650,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.GetNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java new file mode 100644 index 000000000000..0acb8d030053 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface GetNotificationChannelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The channel for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The channel for which to execute the request. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
+   * 
+ * + * + * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java index 993e4582a2a7..2d624a9eab2a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java @@ -1,59 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeRequest} */ -public final class GetNotificationChannelVerificationCodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationChannelVerificationCodeRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) GetNotificationChannelVerificationCodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationChannelVerificationCodeRequest.newBuilder() to construct. - private GetNotificationChannelVerificationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelVerificationCodeRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationChannelVerificationCodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationChannelVerificationCodeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The notification channel for which a verification code is to be
    * generated and retrieved. This must name a channel that is already verified;
    * if the specified channel is not verified, the request will fail.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +89,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The notification channel for which a verification code is to be
    * generated and retrieved. This must name a channel that is already verified;
    * if the specified channel is not verified, the request will fail.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,6 +126,8 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -110,6 +141,7 @@ public java.lang.String getName() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -117,6 +149,8 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -130,6 +164,7 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -137,6 +172,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -157,6 +194,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,8 +206,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -189,8 +226,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (expireTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getExpireTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -200,19 +236,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other = (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) obj;
+    com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other =
+        (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime()
-          .equals(other.getExpireTime())) return false;
+      if (!getExpireTime().equals(other.getExpireTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -237,131 +272,138 @@ public int hashCode() {
   }
 
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The `GetNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.Builder.class); } - // Construct using com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,19 +418,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { - return com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance(); + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest + getDefaultInstanceForType() { + return com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest build() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = buildPartial(); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -397,21 +442,23 @@ public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest bu @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest buildPartial() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result = + new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result) { + private void buildPartial0( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -419,46 +466,51 @@ private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerifi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)other); + return mergeFrom( + (com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other) { - if (other == com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest other) { + if (other + == com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -493,24 +545,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,24 +573,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The notification channel for which a verification code is to be
      * generated and retrieved. This must name a channel that is already verified;
      * if the specified channel is not verified, the request will fail.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -546,22 +604,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel for which a verification code is to be
      * generated and retrieved. This must name a channel that is already verified;
      * if the specified channel is not verified, the request will fail.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -569,32 +630,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel for which a verification code is to be
      * generated and retrieved. This must name a channel that is already verified;
      * if the specified channel is not verified, the request will fail.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The notification channel for which a verification code is to be
      * generated and retrieved. This must name a channel that is already verified;
      * if the specified channel is not verified, the request will fail.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -604,19 +676,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The notification channel for which a verification code is to be
      * generated and retrieved. This must name a channel that is already verified;
      * if the specified channel is not verified, the request will fail.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,8 +704,13 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -641,12 +724,15 @@ public Builder setNameBytes(
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -660,16 +746,21 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -698,6 +789,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -712,8 +805,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
       } else {
@@ -724,6 +816,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -740,9 +834,9 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          expireTime_ != null &&
-          expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && expireTime_ != null
+            && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getExpireTimeBuilder().mergeFrom(value);
         } else {
           expireTime_ = value;
@@ -755,6 +849,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -780,6 +876,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -800,6 +898,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -818,11 +918,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       if (expireTimeBuilder_ != null) {
         return expireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expireTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+        return expireTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : expireTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The desired expiration time. If specified, the API will guarantee that
      * the returned code will not be valid after the specified timestamp;
@@ -838,21 +941,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getExpireTime(),
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getExpireTime(), getParentForChildren(), isClean());
         expireTime_ = null;
       }
       return expireTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -862,55 +968,59 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
-  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest DEFAULT_INSTANCE;
+  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest();
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstance() {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
   private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GetNotificationChannelVerificationCodeRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+      PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public GetNotificationChannelVerificationCodeRequest parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              Builder builder = newBuilder();
+              try {
+                builder.mergeFrom(input, extensionRegistry);
+              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(builder.buildPartial());
+              } catch (com.google.protobuf.UninitializedMessageException e) {
+                throw e.asInvalidProtocolBufferException()
+                    .setUnfinishedMessage(builder.buildPartial());
+              } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                    .setUnfinishedMessage(builder.buildPartial());
+              }
+              return builder.buildPartial();
+            }
+          };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.protobuf.Parser getParserForType() {
+  public com.google.protobuf.Parser
+      getParserForType() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest getDefaultInstanceForType() {
+  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
similarity index 77%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
index 1232c45d8372..be449b5aeca0 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequestOrBuilder.java
@@ -1,37 +1,64 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
-public interface GetNotificationChannelVerificationCodeRequestOrBuilder extends
+public interface GetNotificationChannelVerificationCodeRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The notification channel for which a verification code is to be
    * generated and retrieved. This must name a channel that is already verified;
    * if the specified channel is not verified, the request will fail.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The notification channel for which a verification code is to be
    * generated and retrieved. This must name a channel that is already verified;
    * if the specified channel is not verified, the request will fail.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -45,10 +72,13 @@ public interface GetNotificationChannelVerificationCodeRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
@@ -62,10 +92,13 @@ public interface GetNotificationChannelVerificationCodeRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The desired expiration time. If specified, the API will guarantee that
    * the returned code will not be valid after the specified timestamp;
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
similarity index 66%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
index ede990520638..d9904d3467f7 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java
@@ -1,52 +1,76 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The `GetNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeResponse} */ -public final class GetNotificationChannelVerificationCodeResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationChannelVerificationCodeResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) GetNotificationChannelVerificationCodeResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationChannelVerificationCodeResponse.newBuilder() to construct. - private GetNotificationChannelVerificationCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetNotificationChannelVerificationCodeResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationChannelVerificationCodeResponse() { code_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationChannelVerificationCodeResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -55,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string code = 1; + * * @return The code. */ @java.lang.Override @@ -63,14 +88,15 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -79,16 +105,15 @@ public java.lang.String getCode() {
    * 
* * string code = 1; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -99,6 +124,8 @@ public java.lang.String getCode() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -106,6 +133,7 @@ public java.lang.String getCode() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -113,6 +141,8 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -120,6 +150,7 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -127,6 +158,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -141,6 +174,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,8 +186,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
     }
@@ -173,8 +206,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
     }
     if (expireTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getExpireTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -184,19 +216,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other = (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) obj;
+    com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other =
+        (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) obj;
 
-    if (!getCode()
-        .equals(other.getCode())) return false;
+    if (!getCode().equals(other.getCode())) return false;
     if (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime()
-          .equals(other.getExpireTime())) return false;
+      if (!getExpireTime().equals(other.getExpireTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -221,131 +252,139 @@ public int hashCode() {
   }
 
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The `GetNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetNotificationChannelVerificationCodeResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder.class); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.Builder + .class); } - // Construct using com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,19 +399,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_GetNotificationChannelVerificationCodeResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstanceForType() { - return com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance(); + public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse + getDefaultInstanceForType() { + return com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse + .getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse build() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = buildPartial(); + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -381,21 +423,23 @@ public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse b @java.lang.Override public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse buildPartial() { - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result = + new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result) { + private void buildPartial0( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -403,46 +447,52 @@ private void buildPartial0(com.google.monitoring.v3.GetNotificationChannelVerifi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) { - return mergeFrom((com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)other); + if (other + instanceof com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) { + return mergeFrom( + (com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other) { - if (other == com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse other) { + if (other + == com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse + .getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; bitField0_ |= 0x00000001; @@ -477,24 +527,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,10 +555,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object code_ = ""; /** + * + * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -516,13 +570,13 @@ public Builder mergeFrom(
      * 
* * string code = 1; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -531,6 +585,8 @@ public java.lang.String getCode() { } } /** + * + * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -539,15 +595,14 @@ public java.lang.String getCode() {
      * 
* * string code = 1; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -555,6 +610,8 @@ public java.lang.String getCode() { } } /** + * + * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -563,18 +620,22 @@ public java.lang.String getCode() {
      * 
* * string code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -583,6 +644,7 @@ public Builder setCode(
      * 
* * string code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -592,6 +654,8 @@ public Builder clearCode() { return this; } /** + * + * *
      * The verification code, which may be used to verify other channels
      * that have an equivalent identity (i.e. other channels of the same
@@ -600,12 +664,14 @@ public Builder clearCode() {
      * 
* * string code = 1; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000001; @@ -615,8 +681,13 @@ public Builder setCodeBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -624,12 +695,15 @@ public Builder setCodeBytes(
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -637,16 +711,21 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -669,6 +748,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -677,8 +758,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
       } else {
@@ -689,6 +769,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -699,9 +781,9 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          expireTime_ != null &&
-          expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && expireTime_ != null
+            && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getExpireTimeBuilder().mergeFrom(value);
         } else {
           expireTime_ = value;
@@ -714,6 +796,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -733,6 +817,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -747,6 +833,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -759,11 +847,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       if (expireTimeBuilder_ != null) {
         return expireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expireTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+        return expireTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : expireTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The expiration time associated with the code that was returned. If
      * an expiration was provided in the request, this is the minimum of the
@@ -773,21 +864,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getExpireTime(),
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getExpireTime(), getParentForChildren(), isClean());
         expireTime_ = null;
       }
       return expireTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -797,55 +891,61 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
-  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse DEFAULT_INSTANCE;
+  private static final com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse();
+    DEFAULT_INSTANCE =
+        new com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse();
   }
 
-  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstance() {
+  public static com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
   private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GetNotificationChannelVerificationCodeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+      PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public GetNotificationChannelVerificationCodeResponse parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              Builder builder = newBuilder();
+              try {
+                builder.mergeFrom(input, extensionRegistry);
+              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+                throw e.setUnfinishedMessage(builder.buildPartial());
+              } catch (com.google.protobuf.UninitializedMessageException e) {
+                throw e.asInvalidProtocolBufferException()
+                    .setUnfinishedMessage(builder.buildPartial());
+              } catch (java.io.IOException e) {
+                throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                    .setUnfinishedMessage(builder.buildPartial());
+              }
+              return builder.buildPartial();
+            }
+          };
 
-  public static com.google.protobuf.Parser parser() {
+  public static com.google.protobuf.Parser
+      parser() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.protobuf.Parser getParserForType() {
+  public com.google.protobuf.Parser
+      getParserForType() {
     return PARSER;
   }
 
   @java.lang.Override
-  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getDefaultInstanceForType() {
+  public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
index fce8597ea02a..ac66ab93b0c1 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
-public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
+public interface GetNotificationChannelVerificationCodeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -16,10 +34,13 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
    * 
* * string code = 1; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * The verification code, which may be used to verify other channels
    * that have an equivalent identity (i.e. other channels of the same
@@ -28,12 +49,14 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
    * 
* * string code = 1; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -41,10 +64,13 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
@@ -52,10 +78,13 @@ public interface GetNotificationChannelVerificationCodeResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The expiration time associated with the code that was returned. If
    * an expiration was provided in the request, this is the minimum of the
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
similarity index 68%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
index 311b455abfb9..1af372787961 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java
@@ -1,24 +1,43 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The `GetServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetServiceLevelObjectiveRequest} */ -public final class GetServiceLevelObjectiveRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetServiceLevelObjectiveRequest) GetServiceLevelObjectiveRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetServiceLevelObjectiveRequest.newBuilder() to construct. - private GetServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetServiceLevelObjectiveRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetServiceLevelObjectiveRequest() { name_ = ""; view_ = 0; @@ -26,35 +45,42 @@ private GetServiceLevelObjectiveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +89,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +126,8 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -106,12 +136,16 @@ public java.lang.String getName() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -120,14 +154,20 @@ public java.lang.String getName() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The view. */ - @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.ServiceLevelObjective.View getView() { + com.google.monitoring.v3.ServiceLevelObjective.View result = + com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,8 +199,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetServiceLevelObjectiveRequest other = (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.GetServiceLevelObjectiveRequest other = + (com.google.monitoring.v3.GetServiceLevelObjectiveRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -202,131 +240,136 @@ public int hashCode() { } public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.GetServiceLevelObjectiveRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetServiceLevelObjectiveRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetServiceLevelObjectiveRequest) com.google.monitoring.v3.GetServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.GetServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetServiceLevelObjectiveRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -358,8 +401,11 @@ public com.google.monitoring.v3.GetServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.GetServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.GetServiceLevelObjectiveRequest result = new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetServiceLevelObjectiveRequest result = + new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -378,38 +424,39 @@ private void buildPartial0(com.google.monitoring.v3.GetServiceLevelObjectiveRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.GetServiceLevelObjectiveRequest)other); + return mergeFrom((com.google.monitoring.v3.GetServiceLevelObjectiveRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +464,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -452,22 +500,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -477,24 +528,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -503,22 +559,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -526,32 +585,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -561,19 +631,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -583,6 +659,8 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -591,12 +669,16 @@ public Builder setNameBytes(
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -605,6 +687,7 @@ public Builder setNameBytes(
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -615,6 +698,8 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -623,14 +708,20 @@ public Builder setViewValue(int value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; + com.google.monitoring.v3.ServiceLevelObjective.View result = + com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED + : result; } /** + * + * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -639,6 +730,7 @@ public com.google.monitoring.v3.ServiceLevelObjective.View getView() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @param value The view to set. * @return This builder for chaining. */ @@ -652,6 +744,8 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value return this; } /** + * + * *
      * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -660,6 +754,7 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return This builder for chaining. */ public Builder clearView() { @@ -668,9 +763,9 @@ public Builder clearView() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -680,12 +775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.GetServiceLevelObjectiveRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetServiceLevelObjectiveRequest(); } @@ -694,27 +789,27 @@ public static com.google.monitoring.v3.GetServiceLevelObjectiveRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -729,6 +824,4 @@ public com.google.protobuf.Parser getParserForT public com.google.monitoring.v3.GetServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java index 2d62012722ac..423c463c2da8 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface GetServiceLevelObjectiveRequestOrBuilder extends +public interface GetServiceLevelObjectiveRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Resource name of the `ServiceLevelObjective` to get. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -40,10 +67,13 @@ public interface GetServiceLevelObjectiveRequestOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -52,6 +82,7 @@ public interface GetServiceLevelObjectiveRequestOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 2; + * * @return The view. */ com.google.monitoring.v3.ServiceLevelObjective.View getView(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java index 988cbc9f0d5a..0650958e91aa 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `GetService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetServiceRequest} */ -public final class GetServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetServiceRequest) GetServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetServiceRequest.newBuilder() to construct. private GetServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetServiceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceRequest.class, com.google.monitoring.v3.GetServiceRequest.Builder.class); + com.google.monitoring.v3.GetServiceRequest.class, + com.google.monitoring.v3.GetServiceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Resource name of the `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the `Service`. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetServiceRequest other = (com.google.monitoring.v3.GetServiceRequest) obj; + com.google.monitoring.v3.GetServiceRequest other = + (com.google.monitoring.v3.GetServiceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +185,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetServiceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `GetService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetServiceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetServiceRequest) com.google.monitoring.v3.GetServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetServiceRequest.class, com.google.monitoring.v3.GetServiceRequest.Builder.class); + com.google.monitoring.v3.GetServiceRequest.class, + com.google.monitoring.v3.GetServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetServiceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_GetServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_GetServiceRequest_descriptor; } @java.lang.Override @@ -314,8 +345,11 @@ public com.google.monitoring.v3.GetServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.GetServiceRequest buildPartial() { - com.google.monitoring.v3.GetServiceRequest result = new com.google.monitoring.v3.GetServiceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetServiceRequest result = + new com.google.monitoring.v3.GetServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +365,39 @@ private void buildPartial0(com.google.monitoring.v3.GetServiceRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetServiceRequest) { - return mergeFrom((com.google.monitoring.v3.GetServiceRequest)other); + return mergeFrom((com.google.monitoring.v3.GetServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -402,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +459,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +490,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +516,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +562,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Resource name of the `Service`. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetServiceRequest) private static final com.google.monitoring.v3.GetServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetServiceRequest(); } @@ -551,27 +613,27 @@ public static com.google.monitoring.v3.GetServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java new file mode 100644 index 000000000000..539a4adb03d2 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service_service.proto + +package com.google.monitoring.v3; + +public interface GetServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the `Service`. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the `Service`. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java index e47ad31f2515..2b6ca31701bc 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** + * + * *
  * The message definition for retrieving a `Snooze`. Users must specify the
  * field, `name`, which identifies the `Snooze`.
@@ -11,50 +28,58 @@
  *
  * Protobuf type {@code google.monitoring.v3.GetSnoozeRequest}
  */
-public final class GetSnoozeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetSnoozeRequest)
     GetSnoozeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetSnoozeRequest.newBuilder() to construct.
   private GetSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetSnoozeRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.GetSnoozeRequest.class, com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.GetSnoozeRequest.class,
+            com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The ID of the `Snooze` to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The ID of the `Snooze` to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetSnoozeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetSnoozeRequest other = (com.google.monitoring.v3.GetSnoozeRequest) obj; + com.google.monitoring.v3.GetSnoozeRequest other = + (com.google.monitoring.v3.GetSnoozeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,99 +186,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetSnoozeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetSnoozeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetSnoozeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The message definition for retrieving a `Snooze`. Users must specify the
    * field, `name`, which identifies the `Snooze`.
@@ -259,33 +291,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.GetSnoozeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetSnoozeRequest)
       com.google.monitoring.v3.GetSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.GetSnoozeRequest.class, com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.GetSnoozeRequest.class,
+              com.google.monitoring.v3.GetSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.GetSnoozeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -295,9 +326,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -316,8 +347,11 @@ public com.google.monitoring.v3.GetSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.GetSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.GetSnoozeRequest result = new com.google.monitoring.v3.GetSnoozeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.GetSnoozeRequest result =
+          new com.google.monitoring.v3.GetSnoozeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -333,38 +367,39 @@ private void buildPartial0(com.google.monitoring.v3.GetSnoozeRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.GetSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.GetSnoozeRequest)other);
+        return mergeFrom((com.google.monitoring.v3.GetSnoozeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -404,17 +439,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -424,24 +461,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -450,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -473,32 +518,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -508,28 +564,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The ID of the `Snooze` to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -539,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetSnoozeRequest) private static final com.google.monitoring.v3.GetSnoozeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetSnoozeRequest(); } @@ -553,27 +615,27 @@ public static com.google.monitoring.v3.GetSnoozeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.GetSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java new file mode 100644 index 000000000000..910d956817fc --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze_service.proto + +package com.google.monitoring.v3; + +public interface GetSnoozeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetSnoozeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the `Snooze` to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The ID of the `Snooze` to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java index 462ba223311a..3d7830fcc237 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `GetUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.GetUptimeCheckConfigRequest} */ -public final class GetUptimeCheckConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.GetUptimeCheckConfigRequest) GetUptimeCheckConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetUptimeCheckConfigRequest.newBuilder() to construct. private GetUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetUptimeCheckConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, + com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The Uptime check configuration to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,31 +87,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Uptime check configuration to retrieve. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.GetUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.GetUptimeCheckConfigRequest other = (com.google.monitoring.v3.GetUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.GetUptimeCheckConfigRequest other = + (com.google.monitoring.v3.GetUptimeCheckConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,135 @@ public int hashCode() { } public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.GetUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.GetUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `GetUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.GetUptimeCheckConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.GetUptimeCheckConfigRequest) com.google.monitoring.v3.GetUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, + com.google.monitoring.v3.GetUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.GetUptimeCheckConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -314,8 +345,11 @@ public com.google.monitoring.v3.GetUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.GetUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.GetUptimeCheckConfigRequest result = new com.google.monitoring.v3.GetUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.GetUptimeCheckConfigRequest result = + new com.google.monitoring.v3.GetUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +365,39 @@ private void buildPartial0(com.google.monitoring.v3.GetUptimeCheckConfigRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.GetUptimeCheckConfigRequest)other); + return mergeFrom((com.google.monitoring.v3.GetUptimeCheckConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +405,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.GetUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +460,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +491,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +517,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +563,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The Uptime check configuration to retrieve. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) private static final com.google.monitoring.v3.GetUptimeCheckConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.GetUptimeCheckConfigRequest(); } @@ -551,27 +614,27 @@ public static com.google.monitoring.v3.GetUptimeCheckConfigRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +649,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.monitoring.v3.GetUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java new file mode 100644 index 000000000000..fed181cbf5d4 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime_service.proto + +package com.google.monitoring.v3; + +public interface GetUptimeCheckConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetUptimeCheckConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Uptime check configuration to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Uptime check configuration to retrieve. The format is:
+   *
+   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java index 8d9b0bb16cd1..99e56a0d1b55 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group.proto package com.google.monitoring.v3; /** + * + * *
  * The description of a dynamic collection of monitored resources. Each group
  * has a filter that is matched against monitored resources and their associated
@@ -35,15 +52,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.Group}
  */
-public final class Group extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Group extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Group)
     GroupOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Group.newBuilder() to construct.
   private Group(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Group() {
     name_ = "";
     displayName_ = "";
@@ -53,28 +71,31 @@ private Group() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Group();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.GroupProto
+        .internal_static_google_monitoring_v3_Group_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_fieldAccessorTable
+    return com.google.monitoring.v3.GroupProto
+        .internal_static_google_monitoring_v3_Group_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Group.class, com.google.monitoring.v3.Group.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The name of this group. The format is:
    *
@@ -86,6 +107,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -94,14 +116,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of this group. The format is:
    *
@@ -113,16 +136,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -131,14 +153,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -147,29 +173,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -178,9 +204,12 @@ public java.lang.String getDisplayName() { } public static final int PARENT_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object parentName_ = ""; /** + * + * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -190,6 +219,7 @@ public java.lang.String getDisplayName() {
    * 
* * string parent_name = 3; + * * @return The parentName. */ @java.lang.Override @@ -198,14 +228,15 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** + * + * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -215,16 +246,15 @@ public java.lang.String getParentName() {
    * 
* * string parent_name = 3; + * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -233,15 +263,19 @@ public java.lang.String getParentName() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -250,30 +284,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -284,12 +318,15 @@ public java.lang.String getFilter() { public static final int IS_CLUSTER_FIELD_NUMBER = 6; private boolean isCluster_ = false; /** + * + * *
    * If true, the members of this group are considered to be a cluster.
    * The system can perform additional analysis on groups that are clusters.
    * 
* * bool is_cluster = 6; + * * @return The isCluster. */ @java.lang.Override @@ -298,6 +335,7 @@ public boolean getIsCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,8 +347,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -348,8 +385,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } if (isCluster_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isCluster_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isCluster_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,23 +395,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Group)) { return super.equals(obj); } com.google.monitoring.v3.Group other = (com.google.monitoring.v3.Group) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getParentName() - .equals(other.getParentName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getIsCluster() - != other.getIsCluster()) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getParentName().equals(other.getParentName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getIsCluster() != other.getIsCluster()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,106 +427,109 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + IS_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCluster()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.Group parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Group parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Group parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Group parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.Group parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Group parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Group parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Group parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Group parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Group parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Group parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.monitoring.v3.Group parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Group parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Group prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The description of a dynamic collection of monitored resources. Each group
    * has a filter that is matched against monitored resources and their associated
@@ -527,33 +561,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.Group}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Group)
       com.google.monitoring.v3.GroupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.GroupProto
+          .internal_static_google_monitoring_v3_Group_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_fieldAccessorTable
+      return com.google.monitoring.v3.GroupProto
+          .internal_static_google_monitoring_v3_Group_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.monitoring.v3.Group.class, com.google.monitoring.v3.Group.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Group.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -567,9 +599,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.GroupProto.internal_static_google_monitoring_v3_Group_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.GroupProto
+          .internal_static_google_monitoring_v3_Group_descriptor;
     }
 
     @java.lang.Override
@@ -589,7 +621,9 @@ public com.google.monitoring.v3.Group build() {
     @java.lang.Override
     public com.google.monitoring.v3.Group buildPartial() {
       com.google.monitoring.v3.Group result = new com.google.monitoring.v3.Group(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -617,38 +651,39 @@ private void buildPartial0(com.google.monitoring.v3.Group result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Group) {
-        return mergeFrom((com.google.monitoring.v3.Group)other);
+        return mergeFrom((com.google.monitoring.v3.Group) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -706,37 +741,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              parentName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 42: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 48: {
-              isCluster_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 48
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                parentName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 42:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 48:
+              {
+                isCluster_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 48
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -746,10 +787,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The name of this group. The format is:
      *
@@ -761,13 +805,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -776,6 +820,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this group. The format is:
      *
@@ -787,15 +833,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -803,6 +848,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this group. The format is:
      *
@@ -814,18 +861,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The name of this group. The format is:
      *
@@ -837,6 +888,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -846,6 +898,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The name of this group. The format is:
      *
@@ -857,12 +911,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -872,18 +928,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -892,20 +950,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -913,28 +972,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -944,17 +1010,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A user-assigned name for this group, used only for display purposes.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -964,6 +1034,8 @@ public Builder setDisplayNameBytes( private java.lang.Object parentName_ = ""; /** + * + * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -973,13 +1045,13 @@ public Builder setDisplayNameBytes(
      * 
* * string parent_name = 3; + * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -988,6 +1060,8 @@ public java.lang.String getParentName() { } } /** + * + * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -997,15 +1071,14 @@ public java.lang.String getParentName() {
      * 
* * string parent_name = 3; + * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -1013,6 +1086,8 @@ public java.lang.String getParentName() { } } /** + * + * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1022,18 +1097,22 @@ public java.lang.String getParentName() {
      * 
* * string parent_name = 3; + * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parentName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1043,6 +1122,7 @@ public Builder setParentName(
      * 
* * string parent_name = 3; + * * @return This builder for chaining. */ public Builder clearParentName() { @@ -1052,6 +1132,8 @@ public Builder clearParentName() { return this; } /** + * + * *
      * The name of the group's parent, if it has one. The format is:
      *
@@ -1061,12 +1143,14 @@ public Builder clearParentName() {
      * 
* * string parent_name = 3; + * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parentName_ = value; bitField0_ |= 0x00000004; @@ -1076,19 +1160,21 @@ public Builder setParentNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1097,21 +1183,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1119,30 +1206,37 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1152,18 +1246,22 @@ public Builder clearFilter() { return this; } /** + * + * *
      * The filter used to determine which monitored resources belong to this
      * group.
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1171,14 +1269,17 @@ public Builder setFilterBytes( return this; } - private boolean isCluster_ ; + private boolean isCluster_; /** + * + * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; + * * @return The isCluster. */ @java.lang.Override @@ -1186,12 +1287,15 @@ public boolean getIsCluster() { return isCluster_; } /** + * + * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; + * * @param value The isCluster to set. * @return This builder for chaining. */ @@ -1203,12 +1307,15 @@ public Builder setIsCluster(boolean value) { return this; } /** + * + * *
      * If true, the members of this group are considered to be a cluster.
      * The system can perform additional analysis on groups that are clusters.
      * 
* * bool is_cluster = 6; + * * @return This builder for chaining. */ public Builder clearIsCluster() { @@ -1217,9 +1324,9 @@ public Builder clearIsCluster() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1229,12 +1336,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Group) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) private static final com.google.monitoring.v3.Group DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Group(); } @@ -1243,27 +1350,27 @@ public static com.google.monitoring.v3.Group getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Group parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Group parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1278,6 +1385,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Group getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java index be95a7bc151f..31a886707b39 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group.proto package com.google.monitoring.v3; -public interface GroupOrBuilder extends +public interface GroupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Group) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of this group. The format is:
    *
@@ -19,10 +37,13 @@ public interface GroupOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of this group. The format is:
    *
@@ -34,32 +55,39 @@ public interface GroupOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A user-assigned name for this group, used only for display purposes.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -69,10 +97,13 @@ public interface GroupOrBuilder extends
    * 
* * string parent_name = 3; + * * @return The parentName. */ java.lang.String getParentName(); /** + * + * *
    * The name of the group's parent, if it has one. The format is:
    *
@@ -82,40 +113,48 @@ public interface GroupOrBuilder extends
    * 
* * string parent_name = 3; + * * @return The bytes for parentName. */ - com.google.protobuf.ByteString - getParentNameBytes(); + com.google.protobuf.ByteString getParentNameBytes(); /** + * + * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The filter used to determine which monitored resources belong to this
    * group.
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * If true, the members of this group are considered to be a cluster.
    * The system can perform additional analysis on groups that are clusters.
    * 
* * bool is_cluster = 6; + * * @return The isCluster. */ boolean getIsCluster(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java new file mode 100644 index 000000000000..cb42c9f971e1 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group.proto + +package com.google.monitoring.v3; + +public final class GroupProto { + private GroupProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Group_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Group_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n google/monitoring/v3/group.proto\022\024goog" + + "le.monitoring.v3\032\031google/api/resource.pr" + + "oto\"\200\002\n\005Group\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + + "ame\030\002 \001(\t\022\023\n\013parent_name\030\003 \001(\t\022\016\n\006filter" + + "\030\005 \001(\t\022\022\n\nis_cluster\030\006 \001(\010:\231\001\352A\225\001\n\037monit" + + "oring.googleapis.com/Group\022!projects/{pr" + + "oject}/groups/{group}\022+organizations/{or" + + "ganization}/groups/{group}\022\037folders/{fol" + + "der}/groups/{group}\022\001*B\305\001\n\030com.google.mo" + + "nitoring.v3B\nGroupProtoP\001ZAcloud.google." + + "com/go/monitoring/apiv3/v2/monitoringpb;" + + "monitoringpb\252\002\032Google.Cloud.Monitoring.V" + + "3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google:" + + ":Cloud::Monitoring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Group_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Group_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Group_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "ParentName", "Filter", "IsCluster", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java index 0b0d242b1720..d24ca7ec53b3 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** + * + * *
  * The supported resource types that can be used as values of
  * `group_resource.resource_type`.
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.monitoring.v3.GroupResourceType}
  */
-public enum GroupResourceType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum GroupResourceType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Default value (not valid).
    * 
@@ -25,6 +43,8 @@ public enum GroupResourceType */ RESOURCE_TYPE_UNSPECIFIED(0), /** + * + * *
    * A group of instances from Google Cloud Platform (GCP) or
    * Amazon Web Services (AWS).
@@ -34,6 +54,8 @@ public enum GroupResourceType
    */
   INSTANCE(1),
   /**
+   *
+   *
    * 
    * A group of Amazon ELB load balancers.
    * 
@@ -45,6 +67,8 @@ public enum GroupResourceType ; /** + * + * *
    * Default value (not valid).
    * 
@@ -53,6 +77,8 @@ public enum GroupResourceType */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * A group of instances from Google Cloud Platform (GCP) or
    * Amazon Web Services (AWS).
@@ -62,6 +88,8 @@ public enum GroupResourceType
    */
   public static final int INSTANCE_VALUE = 1;
   /**
+   *
+   *
    * 
    * A group of Amazon ELB load balancers.
    * 
@@ -70,7 +98,6 @@ public enum GroupResourceType */ public static final int AWS_ELB_LOAD_BALANCER_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -95,39 +122,42 @@ public static GroupResourceType valueOf(int value) { */ public static GroupResourceType forNumber(int value) { switch (value) { - case 0: return RESOURCE_TYPE_UNSPECIFIED; - case 1: return INSTANCE; - case 2: return AWS_ELB_LOAD_BALANCER; - default: return null; + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return INSTANCE; + case 2: + return AWS_ELB_LOAD_BALANCER; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - GroupResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GroupResourceType findValueByNumber(int number) { - return GroupResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroupResourceType findValueByNumber(int number) { + return GroupResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.UptimeProto.getDescriptor().getEnumTypes().get(1); } @@ -136,8 +166,7 @@ public GroupResourceType findValueByNumber(int number) { public static GroupResourceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -153,4 +182,3 @@ private GroupResourceType(int value) { // @@protoc_insertion_point(enum_scope:google.monitoring.v3.GroupResourceType) } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java new file mode 100644 index 000000000000..7c686b22f9ed --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java @@ -0,0 +1,245 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/group_service.proto + +package com.google.monitoring.v3; + +public final class GroupServiceProto { + private GroupServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/group_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032#google" + + "/api/monitored_resource.proto\032\031google/ap" + + "i/resource.proto\032!google/monitoring/v3/c" + + "ommon.proto\032 google/monitoring/v3/group." + + "proto\032\033google/protobuf/empty.proto\"\311\002\n\021L" + + "istGroupsRequest\0226\n\004name\030\007 \001(\tB(\342A\001\002\372A!\022" + + "\037monitoring.googleapis.com/Group\022A\n\021chil" + + "dren_of_group\030\002 \001(\tB$\372A!\n\037monitoring.goo" + + "gleapis.com/GroupH\000\022B\n\022ancestors_of_grou" + + "p\030\003 \001(\tB$\372A!\n\037monitoring.googleapis.com/" + + "GroupH\000\022D\n\024descendants_of_group\030\004 \001(\tB$\372" + + "A!\n\037monitoring.googleapis.com/GroupH\000\022\021\n" + + "\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\tB\010\n\006" + + "filter\"Y\n\022ListGroupsResponse\022*\n\005group\030\001 " + + "\003(\0132\033.google.monitoring.v3.Group\022\027\n\017next" + + "_page_token\030\002 \001(\t\"I\n\017GetGroupRequest\0226\n\004" + + "name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.googleap" + + "is.com/Group\"\225\001\n\022CreateGroupRequest\0226\n\004n" + + "ame\030\004 \001(\tB(\342A\001\002\372A!\022\037monitoring.googleapi" + + "s.com/Group\0220\n\005group\030\002 \001(\0132\033.google.moni" + + "toring.v3.GroupB\004\342A\001\002\022\025\n\rvalidate_only\030\003" + + " \001(\010\"]\n\022UpdateGroupRequest\0220\n\005group\030\002 \001(" + + "\0132\033.google.monitoring.v3.GroupB\004\342A\001\002\022\025\n\r" + + "validate_only\030\003 \001(\010\"_\n\022DeleteGroupReques" + + "t\0226\n\004name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.goo" + + "gleapis.com/Group\022\021\n\trecursive\030\004 \001(\010\"\276\001\n" + + "\027ListGroupMembersRequest\0226\n\004name\030\007 \001(\tB(" + + "\342A\001\002\372A!\n\037monitoring.googleapis.com/Group" + + "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" + + "\016\n\006filter\030\005 \001(\t\0224\n\010interval\030\006 \001(\0132\".goog" + + "le.monitoring.v3.TimeInterval\"w\n\030ListGro" + + "upMembersResponse\022.\n\007members\030\001 \003(\0132\035.goo" + + "gle.api.MonitoredResource\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\230\010\n\014Group" + + "Service\022\214\001\n\nListGroups\022\'.google.monitori" + + "ng.v3.ListGroupsRequest\032(.google.monitor" + + "ing.v3.ListGroupsResponse\"+\332A\004name\202\323\344\223\002\036" + + "\022\034/v3/{name=projects/*}/groups\022}\n\010GetGro" + + "up\022%.google.monitoring.v3.GetGroupReques" + + "t\032\033.google.monitoring.v3.Group\"-\332A\004name\202" + + "\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\022\216\001" + + "\n\013CreateGroup\022(.google.monitoring.v3.Cre" + + "ateGroupRequest\032\033.google.monitoring.v3.G" + + "roup\"8\332A\nname,group\202\323\344\223\002%\"\034/v3/{name=pro" + + "jects/*}/groups:\005group\022\221\001\n\013UpdateGroup\022(" + + ".google.monitoring.v3.UpdateGroupRequest" + + "\032\033.google.monitoring.v3.Group\";\332A\005group\202" + + "\323\344\223\002-\032$/v3/{group.name=projects/*/groups" + + "/*}:\005group\022~\n\013DeleteGroup\022(.google.monit" + + "oring.v3.DeleteGroupRequest\032\026.google.pro" + + "tobuf.Empty\"-\332A\004name\202\323\344\223\002 *\036/v3/{name=pr" + + "ojects/*/groups/*}\022\250\001\n\020ListGroupMembers\022" + + "-.google.monitoring.v3.ListGroupMembersR" + + "equest\032..google.monitoring.v3.ListGroupM" + + "embersResponse\"5\332A\004name\202\323\344\223\002(\022&/v3/{name" + + "=projects/*/groups/*}/members\032\251\001\312A\031monit" + + "oring.googleapis.com\322A\211\001https://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/monitoring,https:" + + "//www.googleapis.com/auth/monitoring.rea" + + "dB\314\001\n\030com.google.monitoring.v3B\021GroupSer" + + "viceProtoP\001ZAcloud.google.com/go/monitor" + + "ing/apiv3/v2/monitoringpb;monitoringpb\252\002" + + "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" + + "ud\\Monitoring\\V3\352\002\035Google::Cloud::Monito" + + "ring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.GroupProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupsRequest_descriptor, + new java.lang.String[] { + "Name", + "ChildrenOfGroup", + "AncestorsOfGroup", + "DescendantsOfGroup", + "PageSize", + "PageToken", + "Filter", + }); + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupsResponse_descriptor, + new java.lang.String[] { + "Group", "NextPageToken", + }); + internal_static_google_monitoring_v3_GetGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Group", "ValidateOnly", + }); + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor, + new java.lang.String[] { + "Group", "ValidateOnly", + }); + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Recursive", + }); + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", "Filter", "Interval", + }); + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor, + new java.lang.String[] { + "Members", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.GroupProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java index 1c3131180914..cd233622cc33 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** + * + * *
  * An internal checker allows Uptime checks to run on private/internal GCP
  * resources.
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.monitoring.v3.InternalChecker}
  */
-@java.lang.Deprecated public final class InternalChecker extends
-    com.google.protobuf.GeneratedMessageV3 implements
+@java.lang.Deprecated
+public final class InternalChecker extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.InternalChecker)
     InternalCheckerOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InternalChecker.newBuilder() to construct.
   private InternalChecker(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InternalChecker() {
     name_ = "";
     displayName_ = "";
@@ -31,34 +50,38 @@ private InternalChecker() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InternalChecker();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_InternalChecker_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class);
+            com.google.monitoring.v3.InternalChecker.class,
+            com.google.monitoring.v3.InternalChecker.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Operational states for an internal checker.
    * 
* * Protobuf enum {@code google.monitoring.v3.InternalChecker.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * An internal checker should never be in the unspecified state.
      * 
@@ -67,6 +90,8 @@ public enum State */ UNSPECIFIED(0), /** + * + * *
      * The checker is being created, provisioned, and configured. A checker in
      * this state can be returned by `ListInternalCheckers` or
@@ -79,6 +104,8 @@ public enum State
      */
     CREATING(1),
     /**
+     *
+     *
      * 
      * The checker is running and available for use. A checker in this state
      * can be returned by `ListInternalCheckers` or `GetInternalChecker` as
@@ -96,6 +123,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * An internal checker should never be in the unspecified state.
      * 
@@ -104,6 +133,8 @@ public enum State */ public static final int UNSPECIFIED_VALUE = 0; /** + * + * *
      * The checker is being created, provisioned, and configured. A checker in
      * this state can be returned by `ListInternalCheckers` or
@@ -116,6 +147,8 @@ public enum State
      */
     public static final int CREATING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The checker is running and available for use. A checker in this state
      * can be returned by `ListInternalCheckers` or `GetInternalChecker` as
@@ -130,7 +163,6 @@ public enum State
      */
     public static final int RUNNING_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -155,49 +187,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return RUNNING;
-        default: return null;
+        case 0:
+          return UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return RUNNING;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.InternalChecker.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -215,9 +247,12 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -228,6 +263,7 @@ private State(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -236,14 +272,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -254,16 +291,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -272,9 +308,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -282,6 +321,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -290,14 +330,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -305,16 +346,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -323,15 +363,19 @@ public java.lang.String getDisplayName() { } public static final int NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; + * * @return The network. */ @java.lang.Override @@ -340,30 +384,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -372,15 +416,19 @@ public java.lang.String getNetwork() { } public static final int GCP_ZONE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object gcpZone_ = ""; /** + * + * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; + * * @return The gcpZone. */ @java.lang.Override @@ -389,30 +437,30 @@ public java.lang.String getGcpZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpZone_ = s; return s; } } /** + * + * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; + * * @return The bytes for gcpZone. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpZoneBytes() { + public com.google.protobuf.ByteString getGcpZoneBytes() { java.lang.Object ref = gcpZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpZone_ = b; return b; } else { @@ -421,15 +469,19 @@ public java.lang.String getGcpZone() { } public static final int PEER_PROJECT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object peerProjectId_ = ""; /** + * + * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; + * * @return The peerProjectId. */ @java.lang.Override @@ -438,30 +490,30 @@ public java.lang.String getPeerProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerProjectId_ = s; return s; } } /** + * + * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; + * * @return The bytes for peerProjectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPeerProjectIdBytes() { + public com.google.protobuf.ByteString getPeerProjectIdBytes() { java.lang.Object ref = peerProjectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerProjectId_ = b; return b; } else { @@ -472,30 +524,40 @@ public java.lang.String getPeerProjectId() { public static final int STATE_FIELD_NUMBER = 7; private int state_ = 0; /** + * + * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The state. */ - @java.lang.Override public com.google.monitoring.v3.InternalChecker.State getState() { - com.google.monitoring.v3.InternalChecker.State result = com.google.monitoring.v3.InternalChecker.State.forNumber(state_); + @java.lang.Override + public com.google.monitoring.v3.InternalChecker.State getState() { + com.google.monitoring.v3.InternalChecker.State result = + com.google.monitoring.v3.InternalChecker.State.forNumber(state_); return result == null ? com.google.monitoring.v3.InternalChecker.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -507,8 +569,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -552,8 +613,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, peerProjectId_); } if (state_ != com.google.monitoring.v3.InternalChecker.State.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -563,23 +623,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.InternalChecker)) { return super.equals(obj); } com.google.monitoring.v3.InternalChecker other = (com.google.monitoring.v3.InternalChecker) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getGcpZone() - .equals(other.getGcpZone())) return false; - if (!getPeerProjectId() - .equals(other.getPeerProjectId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getGcpZone().equals(other.getGcpZone())) return false; + if (!getPeerProjectId().equals(other.getPeerProjectId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -609,99 +664,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.InternalChecker parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.InternalChecker parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.InternalChecker parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.InternalChecker parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.InternalChecker parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.InternalChecker parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.InternalChecker parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.InternalChecker parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.InternalChecker parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.InternalChecker parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.InternalChecker prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An internal checker allows Uptime checks to run on private/internal GCP
    * resources.
@@ -709,33 +769,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.InternalChecker}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.InternalChecker)
       com.google.monitoring.v3.InternalCheckerOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_InternalChecker_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class);
+              com.google.monitoring.v3.InternalChecker.class,
+              com.google.monitoring.v3.InternalChecker.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.InternalChecker.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -750,9 +809,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_InternalChecker_descriptor;
     }
 
     @java.lang.Override
@@ -771,8 +830,11 @@ public com.google.monitoring.v3.InternalChecker build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.InternalChecker buildPartial() {
-      com.google.monitoring.v3.InternalChecker result = new com.google.monitoring.v3.InternalChecker(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.InternalChecker result =
+          new com.google.monitoring.v3.InternalChecker(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -803,38 +865,39 @@ private void buildPartial0(com.google.monitoring.v3.InternalChecker result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.InternalChecker) {
-        return mergeFrom((com.google.monitoring.v3.InternalChecker)other);
+        return mergeFrom((com.google.monitoring.v3.InternalChecker) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -897,42 +960,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              gcpZone_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 50: {
-              peerProjectId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            case 56: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 56
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                gcpZone_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 50:
+              {
+                peerProjectId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            case 56:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 56
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -942,10 +1012,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -956,13 +1029,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -971,6 +1044,8 @@ public java.lang.String getName() { } } /** + * + * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -981,15 +1056,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -997,6 +1071,8 @@ public java.lang.String getName() { } } /** + * + * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1007,18 +1083,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1029,6 +1109,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1038,6 +1119,8 @@ public Builder clearName() { return this; } /** + * + * *
      * A unique resource name for this InternalChecker. The format is:
      *
@@ -1048,12 +1131,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1063,6 +1148,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1070,13 +1157,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1085,6 +1172,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1092,15 +1181,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1108,6 +1196,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1115,18 +1205,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1134,6 +1228,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1143,6 +1238,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The checker's human-readable name. The display name
      * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -1150,12 +1247,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1165,19 +1264,21 @@ public Builder setDisplayNameBytes( private java.lang.Object network_ = ""; /** + * + * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1186,21 +1287,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1208,30 +1310,37 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -1241,18 +1350,22 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
      * internal resource lives (ex: "default").
      * 
* * string network = 3; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000004; @@ -1262,19 +1375,21 @@ public Builder setNetworkBytes( private java.lang.Object gcpZone_ = ""; /** + * + * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; + * * @return The gcpZone. */ public java.lang.String getGcpZone() { java.lang.Object ref = gcpZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpZone_ = s; return s; @@ -1283,21 +1398,22 @@ public java.lang.String getGcpZone() { } } /** + * + * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; + * * @return The bytes for gcpZone. */ - public com.google.protobuf.ByteString - getGcpZoneBytes() { + public com.google.protobuf.ByteString getGcpZoneBytes() { java.lang.Object ref = gcpZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpZone_ = b; return b; } else { @@ -1305,30 +1421,37 @@ public java.lang.String getGcpZone() { } } /** + * + * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; + * * @param value The gcpZone to set. * @return This builder for chaining. */ - public Builder setGcpZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcpZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } gcpZone_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; + * * @return This builder for chaining. */ public Builder clearGcpZone() { @@ -1338,18 +1461,22 @@ public Builder clearGcpZone() { return this; } /** + * + * *
      * The GCP zone the Uptime check should egress from. Only respected for
      * internal Uptime checks, where internal_network is specified.
      * 
* * string gcp_zone = 4; + * * @param value The bytes for gcpZone to set. * @return This builder for chaining. */ - public Builder setGcpZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcpZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); gcpZone_ = value; bitField0_ |= 0x00000008; @@ -1359,19 +1486,21 @@ public Builder setGcpZoneBytes( private java.lang.Object peerProjectId_ = ""; /** + * + * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; + * * @return The peerProjectId. */ public java.lang.String getPeerProjectId() { java.lang.Object ref = peerProjectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerProjectId_ = s; return s; @@ -1380,21 +1509,22 @@ public java.lang.String getPeerProjectId() { } } /** + * + * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; + * * @return The bytes for peerProjectId. */ - public com.google.protobuf.ByteString - getPeerProjectIdBytes() { + public com.google.protobuf.ByteString getPeerProjectIdBytes() { java.lang.Object ref = peerProjectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerProjectId_ = b; return b; } else { @@ -1402,30 +1532,37 @@ public java.lang.String getPeerProjectId() { } } /** + * + * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; + * * @param value The peerProjectId to set. * @return This builder for chaining. */ - public Builder setPeerProjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPeerProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } peerProjectId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; + * * @return This builder for chaining. */ public Builder clearPeerProjectId() { @@ -1435,18 +1572,22 @@ public Builder clearPeerProjectId() { return this; } /** + * + * *
      * The GCP project ID where the internal checker lives. Not necessary
      * the same as the Metrics Scope project.
      * 
* * string peer_project_id = 6; + * * @param value The bytes for peerProjectId to set. * @return This builder for chaining. */ - public Builder setPeerProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPeerProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); peerProjectId_ = value; bitField0_ |= 0x00000010; @@ -1456,22 +1597,29 @@ public Builder setPeerProjectIdBytes( private int state_ = 0; /** + * + * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1482,24 +1630,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The state. */ @java.lang.Override public com.google.monitoring.v3.InternalChecker.State getState() { - com.google.monitoring.v3.InternalChecker.State result = com.google.monitoring.v3.InternalChecker.State.forNumber(state_); + com.google.monitoring.v3.InternalChecker.State result = + com.google.monitoring.v3.InternalChecker.State.forNumber(state_); return result == null ? com.google.monitoring.v3.InternalChecker.State.UNRECOGNIZED : result; } /** + * + * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1513,11 +1668,14 @@ public Builder setState(com.google.monitoring.v3.InternalChecker.State value) { return this; } /** + * + * *
      * The current operational state of the internal checker.
      * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1526,9 +1684,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1538,12 +1696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.InternalChecker) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) private static final com.google.monitoring.v3.InternalChecker DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.InternalChecker(); } @@ -1552,27 +1710,27 @@ public static com.google.monitoring.v3.InternalChecker getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InternalChecker parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalChecker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1587,6 +1745,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.InternalChecker getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java index be951103e8de..8695267d0439 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java @@ -1,13 +1,32 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; -@java.lang.Deprecated public interface InternalCheckerOrBuilder extends +@java.lang.Deprecated +public interface InternalCheckerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.InternalChecker) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -18,10 +37,13 @@
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * A unique resource name for this InternalChecker. The format is:
    *
@@ -32,12 +54,14 @@
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -45,10 +69,13 @@
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The checker's human-readable name. The display name
    * should be unique within a Cloud Monitoring Metrics Scope in order to make
@@ -56,92 +83,113 @@
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
    * internal resource lives (ex: "default").
    * 
* * string network = 3; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; + * * @return The gcpZone. */ java.lang.String getGcpZone(); /** + * + * *
    * The GCP zone the Uptime check should egress from. Only respected for
    * internal Uptime checks, where internal_network is specified.
    * 
* * string gcp_zone = 4; + * * @return The bytes for gcpZone. */ - com.google.protobuf.ByteString - getGcpZoneBytes(); + com.google.protobuf.ByteString getGcpZoneBytes(); /** + * + * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; + * * @return The peerProjectId. */ java.lang.String getPeerProjectId(); /** + * + * *
    * The GCP project ID where the internal checker lives. Not necessary
    * the same as the Metrics Scope project.
    * 
* * string peer_project_id = 6; + * * @return The bytes for peerProjectId. */ - com.google.protobuf.ByteString - getPeerProjectIdBytes(); + com.google.protobuf.ByteString getPeerProjectIdBytes(); /** + * + * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current operational state of the internal checker.
    * 
* * .google.monitoring.v3.InternalChecker.State state = 7; + * * @return The state. */ com.google.monitoring.v3.InternalChecker.State getState(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java index e18130a0b328..78c90309a93d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java @@ -1,58 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** + * + * *
  * A label value.
  * 
* * Protobuf type {@code google.monitoring.v3.LabelValue} */ -public final class LabelValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.LabelValue) LabelValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelValue.newBuilder() to construct. private LabelValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelValue() { - } + + private LabelValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelValue(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.LabelValue.class, com.google.monitoring.v3.LabelValue.Builder.class); + com.google.monitoring.v3.LabelValue.class, + com.google.monitoring.v3.LabelValue.Builder.class); } private int valueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object value_; + public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), STRING_VALUE(3), VALUE_NOT_SET(0); private final int value; + private ValueCase(int value) { this.value = value; } @@ -68,31 +90,38 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: return BOOL_VALUE; - case 2: return INT64_VALUE; - case 3: return STRING_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; + case 1: + return BOOL_VALUE; + case 2: + return INT64_VALUE; + case 3: + return STRING_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * A bool label value.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -100,11 +129,14 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
    * A bool label value.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ @java.lang.Override @@ -117,11 +149,14 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -129,11 +164,14 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ @java.lang.Override @@ -146,22 +184,28 @@ public long getInt64Value() { public static final int STRING_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 3; } /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -172,8 +216,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; @@ -182,23 +225,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } @@ -209,6 +253,7 @@ public java.lang.String getStringValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,15 +265,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) value_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) value_)); + output.writeInt64(2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); @@ -243,14 +285,14 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) value_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) value_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); @@ -263,7 +305,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.LabelValue)) { return super.equals(obj); @@ -273,16 +315,13 @@ public boolean equals(final java.lang.Object obj) { if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() - != other.getBoolValue()) return false; + if (getBoolValue() != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() - != other.getInt64Value()) return false; + if (getInt64Value() != other.getInt64Value()) return false; break; case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 0: default: @@ -301,13 +340,11 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); break; case 3: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -321,132 +358,135 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.LabelValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.LabelValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.LabelValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.LabelValue parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.LabelValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.LabelValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.LabelValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.LabelValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.LabelValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.LabelValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.LabelValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.LabelValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.LabelValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.LabelValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.LabelValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A label value.
    * 
* * Protobuf type {@code google.monitoring.v3.LabelValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.LabelValue) com.google.monitoring.v3.LabelValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.LabelValue.class, com.google.monitoring.v3.LabelValue.Builder.class); + com.google.monitoring.v3.LabelValue.class, + com.google.monitoring.v3.LabelValue.Builder.class); } // Construct using com.google.monitoring.v3.LabelValue.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_LabelValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_LabelValue_descriptor; } @java.lang.Override @@ -479,7 +519,9 @@ public com.google.monitoring.v3.LabelValue build() { @java.lang.Override public com.google.monitoring.v3.LabelValue buildPartial() { com.google.monitoring.v3.LabelValue result = new com.google.monitoring.v3.LabelValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -498,38 +540,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.LabelValue result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.LabelValue) { - return mergeFrom((com.google.monitoring.v3.LabelValue)other); + return mergeFrom((com.google.monitoring.v3.LabelValue) other); } else { super.mergeFrom(other); return this; @@ -539,23 +582,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.monitoring.v3.LabelValue other) { if (other == com.google.monitoring.v3.LabelValue.getDefaultInstance()) return this; switch (other.getValueCase()) { - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case STRING_VALUE: { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: { - break; - } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case STRING_VALUE: + { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -583,28 +630,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: + { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,12 +665,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueCase_ = 0; private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public Builder clearValue() { @@ -632,22 +683,28 @@ public Builder clearValue() { private int bitField0_; /** + * + * *
      * A bool label value.
      * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
      * A bool label value.
      * 
* * bool bool_value = 1; + * * @return The boolValue. */ public boolean getBoolValue() { @@ -657,11 +714,14 @@ public boolean getBoolValue() { return false; } /** + * + * *
      * A bool label value.
      * 
* * bool bool_value = 1; + * * @param value The boolValue to set. * @return This builder for chaining. */ @@ -673,11 +733,14 @@ public Builder setBoolValue(boolean value) { return this; } /** + * + * *
      * A bool label value.
      * 
* * bool bool_value = 1; + * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -690,22 +753,28 @@ public Builder clearBoolValue() { } /** + * + * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; + * * @return The int64Value. */ public long getInt64Value() { @@ -715,11 +784,14 @@ public long getInt64Value() { return 0L; } /** + * + * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; + * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -731,11 +803,14 @@ public Builder setInt64Value(long value) { return this; } /** + * + * *
      * An int64 label value.
      * 
* * int64 int64_value = 2; + * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -748,11 +823,14 @@ public Builder clearInt64Value() { } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -760,11 +838,14 @@ public boolean hasStringValue() { return valueCase_ == 3; } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @return The stringValue. */ @java.lang.Override @@ -774,8 +855,7 @@ public java.lang.String getStringValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; @@ -786,24 +866,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } @@ -813,28 +894,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 3; value_ = value; onChanged(); return this; } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -846,26 +934,30 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * A string label value.
      * 
* * string string_value = 3; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 3; value_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +967,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.LabelValue) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.LabelValue) private static final com.google.monitoring.v3.LabelValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.LabelValue(); } @@ -889,27 +981,27 @@ public static com.google.monitoring.v3.LabelValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,6 +1016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.LabelValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java index beba9aec51b1..915ca8be0eee 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValueOrBuilder.java @@ -1,78 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface LabelValueOrBuilder extends +public interface LabelValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.LabelValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A bool label value.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** + * + * *
    * A bool label value.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ boolean getBoolValue(); /** + * + * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** + * + * *
    * An int64 label value.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ long getInt64Value(); /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * A string label value.
    * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); com.google.monitoring.v3.LabelValue.ValueCase getValueCase(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java index 9fd5e4e63012..0011f103a54e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListAlertPolicies` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesRequest} */ -public final class ListAlertPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAlertPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListAlertPoliciesRequest) ListAlertPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAlertPoliciesRequest.newBuilder() to construct. private ListAlertPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAlertPoliciesRequest() { name_ = ""; filter_ = ""; @@ -28,28 +46,32 @@ private ListAlertPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAlertPoliciesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesRequest.class, com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesRequest.class, + com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -73,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -95,17 +121,18 @@ public java.lang.String getName() {
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -114,9 +141,12 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -126,6 +156,7 @@ public java.lang.String getName() {
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -134,14 +165,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -151,16 +183,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -169,9 +200,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -182,6 +216,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -190,14 +225,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -208,16 +244,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -228,11 +263,14 @@ public java.lang.String getOrderBy() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results to return in a single response.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -241,9 +279,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -251,6 +292,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -259,14 +301,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -274,16 +317,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -292,6 +334,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,8 +346,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -330,8 +372,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -353,23 +394,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListAlertPoliciesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListAlertPoliciesRequest other = (com.google.monitoring.v3.ListAlertPoliciesRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListAlertPoliciesRequest other = + (com.google.monitoring.v3.ListAlertPoliciesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,131 +434,135 @@ public int hashCode() { } public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListAlertPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListAlertPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListAlertPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListAlertPolicies` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListAlertPoliciesRequest) com.google.monitoring.v3.ListAlertPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesRequest.class, com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesRequest.class, + com.google.monitoring.v3.ListAlertPoliciesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListAlertPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; } @java.lang.Override @@ -556,8 +597,11 @@ public com.google.monitoring.v3.ListAlertPoliciesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListAlertPoliciesRequest buildPartial() { - com.google.monitoring.v3.ListAlertPoliciesRequest result = new com.google.monitoring.v3.ListAlertPoliciesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListAlertPoliciesRequest result = + new com.google.monitoring.v3.ListAlertPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -585,38 +629,39 @@ private void buildPartial0(com.google.monitoring.v3.ListAlertPoliciesRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListAlertPoliciesRequest) { - return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesRequest)other); + return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -624,7 +669,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesRequest other) { - if (other == com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListAlertPoliciesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -674,37 +720,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,10 +766,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -732,14 +787,16 @@ public Builder mergeFrom(
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -748,6 +805,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -762,16 +821,17 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -779,6 +839,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -793,19 +855,25 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -820,7 +888,10 @@ public Builder setName(
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -830,6 +901,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -844,13 +917,17 @@ public Builder clearName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -860,6 +937,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -869,13 +948,13 @@ public Builder setNameBytes(
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -884,6 +963,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -893,15 +974,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -909,6 +989,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -918,18 +1000,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -939,6 +1025,7 @@ public Builder setFilter(
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -948,6 +1035,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * alert policies to be included in the response.
@@ -957,12 +1046,14 @@ public Builder clearFilter() {
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -972,6 +1063,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -982,13 +1075,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -997,6 +1090,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1007,15 +1102,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1023,6 +1117,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1033,18 +1129,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1055,6 +1155,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1064,6 +1165,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of field references as the `filter` field. Entries can be
@@ -1074,12 +1177,14 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1087,13 +1192,16 @@ public Builder setOrderByBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -1101,11 +1209,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1117,11 +1228,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of results to return in a single response.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1133,6 +1247,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1140,13 +1256,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1155,6 +1271,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1162,15 +1280,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1178,6 +1295,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1185,18 +1304,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1204,6 +1327,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1213,6 +1337,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1220,21 +1346,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1372,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListAlertPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) private static final com.google.monitoring.v3.ListAlertPoliciesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListAlertPoliciesRequest(); } @@ -1258,27 +1386,27 @@ public static com.google.monitoring.v3.ListAlertPoliciesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAlertPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAlertPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,6 +1421,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListAlertPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java index 82f33c5ecdf8..0496aa25b831 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface ListAlertPoliciesRequestOrBuilder extends +public interface ListAlertPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListAlertPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -22,11 +40,16 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -41,13 +64,17 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -57,10 +84,13 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * alert policies to be included in the response.
@@ -70,12 +100,14 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -86,10 +118,13 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of field references as the `filter` field. Entries can be
@@ -100,22 +135,27 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * The maximum number of results to return in a single response.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -123,10 +163,13 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -134,8 +177,8 @@ public interface ListAlertPoliciesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java index 22f801f89a9d..9b4824971c5d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListAlertPolicies` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesResponse} */ -public final class ListAlertPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAlertPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListAlertPoliciesResponse) ListAlertPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAlertPoliciesResponse.newBuilder() to construct. private ListAlertPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAlertPoliciesResponse() { alertPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListAlertPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAlertPoliciesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesResponse.class, com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesResponse.class, + com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); } public static final int ALERT_POLICIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List alertPolicies_; /** + * + * *
    * The returned alert policies.
    * 
@@ -59,6 +81,8 @@ public java.util.List getAlertPoliciesList return alertPolicies_; } /** + * + * *
    * The returned alert policies.
    * 
@@ -66,11 +90,13 @@ public java.util.List getAlertPoliciesList * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ @java.lang.Override - public java.util.List + public java.util.List getAlertPoliciesOrBuilderList() { return alertPolicies_; } /** + * + * *
    * The returned alert policies.
    * 
@@ -82,6 +108,8 @@ public int getAlertPoliciesCount() { return alertPolicies_.size(); } /** + * + * *
    * The returned alert policies.
    * 
@@ -93,6 +121,8 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { return alertPolicies_.get(index); } /** + * + * *
    * The returned alert policies.
    * 
@@ -100,15 +130,17 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ @java.lang.Override - public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index) { return alertPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -116,6 +148,7 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,12 +192,15 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** + * + * *
    * The total number of alert policies in all pages. This number is only an
    * estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -173,6 +209,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -208,12 +244,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < alertPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, alertPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, alertPolicies_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,19 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListAlertPoliciesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListAlertPoliciesResponse other = (com.google.monitoring.v3.ListAlertPoliciesResponse) obj; - - if (!getAlertPoliciesList() - .equals(other.getAlertPoliciesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + com.google.monitoring.v3.ListAlertPoliciesResponse other = + (com.google.monitoring.v3.ListAlertPoliciesResponse) obj; + + if (!getAlertPoliciesList().equals(other.getAlertPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,131 +293,135 @@ public int hashCode() { } public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListAlertPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListAlertPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListAlertPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListAlertPolicies` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListAlertPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListAlertPoliciesResponse) com.google.monitoring.v3.ListAlertPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListAlertPoliciesResponse.class, com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); + com.google.monitoring.v3.ListAlertPoliciesResponse.class, + com.google.monitoring.v3.ListAlertPoliciesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListAlertPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; } @java.lang.Override @@ -424,14 +460,18 @@ public com.google.monitoring.v3.ListAlertPoliciesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListAlertPoliciesResponse buildPartial() { - com.google.monitoring.v3.ListAlertPoliciesResponse result = new com.google.monitoring.v3.ListAlertPoliciesResponse(this); + com.google.monitoring.v3.ListAlertPoliciesResponse result = + new com.google.monitoring.v3.ListAlertPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListAlertPoliciesResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListAlertPoliciesResponse result) { if (alertPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alertPolicies_ = java.util.Collections.unmodifiableList(alertPolicies_); @@ -457,38 +497,39 @@ private void buildPartial0(com.google.monitoring.v3.ListAlertPoliciesResponse re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListAlertPoliciesResponse) { - return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesResponse)other); + return mergeFrom((com.google.monitoring.v3.ListAlertPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -496,7 +537,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesResponse other) { - if (other == com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListAlertPoliciesResponse.getDefaultInstance()) + return this; if (alertPoliciesBuilder_ == null) { if (!other.alertPolicies_.isEmpty()) { if (alertPolicies_.isEmpty()) { @@ -515,9 +557,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListAlertPoliciesResponse othe alertPoliciesBuilder_ = null; alertPolicies_ = other.alertPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - alertPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAlertPoliciesFieldBuilder() : null; + alertPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAlertPoliciesFieldBuilder() + : null; } else { alertPoliciesBuilder_.addAllMessages(other.alertPolicies_); } @@ -557,35 +600,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.monitoring.v3.AlertPolicy m = - input.readMessage( - com.google.monitoring.v3.AlertPolicy.parser(), - extensionRegistry); - if (alertPoliciesBuilder_ == null) { - ensureAlertPoliciesIsMutable(); - alertPolicies_.add(m); - } else { - alertPoliciesBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.monitoring.v3.AlertPolicy m = + input.readMessage( + com.google.monitoring.v3.AlertPolicy.parser(), extensionRegistry); + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(m); + } else { + alertPoliciesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,21 +641,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List alertPolicies_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAlertPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alertPolicies_ = new java.util.ArrayList(alertPolicies_); + alertPolicies_ = + new java.util.ArrayList(alertPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPoliciesBuilder_; + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder> + alertPoliciesBuilder_; /** + * + * *
      * The returned alert policies.
      * 
@@ -624,6 +678,8 @@ public java.util.List getAlertPoliciesList } } /** + * + * *
      * The returned alert policies.
      * 
@@ -638,6 +694,8 @@ public int getAlertPoliciesCount() { } } /** + * + * *
      * The returned alert policies.
      * 
@@ -652,14 +710,15 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index) { } } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder setAlertPolicies( - int index, com.google.monitoring.v3.AlertPolicy value) { + public Builder setAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy value) { if (alertPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,6 +732,8 @@ public Builder setAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -691,6 +752,8 @@ public Builder setAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -711,14 +774,15 @@ public Builder addAlertPolicies(com.google.monitoring.v3.AlertPolicy value) { return this; } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder addAlertPolicies( - int index, com.google.monitoring.v3.AlertPolicy value) { + public Builder addAlertPolicies(int index, com.google.monitoring.v3.AlertPolicy value) { if (alertPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -732,14 +796,15 @@ public Builder addAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public Builder addAlertPolicies( - com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder addAlertPolicies(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPoliciesBuilder_ == null) { ensureAlertPoliciesIsMutable(); alertPolicies_.add(builderForValue.build()); @@ -750,6 +815,8 @@ public Builder addAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -768,6 +835,8 @@ public Builder addAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -778,8 +847,7 @@ public Builder addAllAlertPolicies( java.lang.Iterable values) { if (alertPoliciesBuilder_ == null) { ensureAlertPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, alertPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alertPolicies_); onChanged(); } else { alertPoliciesBuilder_.addAllMessages(values); @@ -787,6 +855,8 @@ public Builder addAllAlertPolicies( return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -804,6 +874,8 @@ public Builder clearAlertPolicies() { return this; } /** + * + * *
      * The returned alert policies.
      * 
@@ -821,39 +893,44 @@ public Builder removeAlertPolicies(int index) { return this; } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicy.Builder getAlertPoliciesBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicy.Builder getAlertPoliciesBuilder(int index) { return getAlertPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( - int index) { + public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index) { if (alertPoliciesBuilder_ == null) { - return alertPolicies_.get(index); } else { + return alertPolicies_.get(index); + } else { return alertPoliciesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public java.util.List - getAlertPoliciesOrBuilderList() { + public java.util.List + getAlertPoliciesOrBuilderList() { if (alertPoliciesBuilder_ != null) { return alertPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -861,6 +938,8 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( } } /** + * + * *
      * The returned alert policies.
      * 
@@ -868,38 +947,47 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder() { - return getAlertPoliciesFieldBuilder().addBuilder( - com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); + return getAlertPoliciesFieldBuilder() + .addBuilder(com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder( - int index) { - return getAlertPoliciesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); + public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(int index) { + return getAlertPoliciesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /** + * + * *
      * The returned alert policies.
      * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - public java.util.List - getAlertPoliciesBuilderList() { + public java.util.List + getAlertPoliciesBuilderList() { return getAlertPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPoliciesFieldBuilder() { if (alertPoliciesBuilder_ == null) { - alertPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( + alertPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder>( alertPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -911,6 +999,8 @@ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -918,13 +1008,13 @@ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -933,6 +1023,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -940,15 +1032,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -956,6 +1047,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -963,18 +1056,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -982,6 +1079,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -991,6 +1089,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than were returned, then this field is set
      * to a non-empty value. To see the additional results,
@@ -998,12 +1098,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1011,14 +1113,17 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1026,12 +1131,15 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1043,12 +1151,15 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * The total number of alert policies in all pages. This number is only an
      * estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1057,9 +1168,9 @@ public Builder clearTotalSize() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +1180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListAlertPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) private static final com.google.monitoring.v3.ListAlertPoliciesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListAlertPoliciesResponse(); } @@ -1083,27 +1194,27 @@ public static com.google.monitoring.v3.ListAlertPoliciesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAlertPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAlertPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1118,6 +1229,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListAlertPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java index 88d4ac61d656..f205191f08d4 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface ListAlertPoliciesResponseOrBuilder extends +public interface ListAlertPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListAlertPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - java.util.List - getAlertPoliciesList(); + java.util.List getAlertPoliciesList(); /** + * + * *
    * The returned alert policies.
    * 
@@ -25,6 +44,8 @@ public interface ListAlertPoliciesResponseOrBuilder extends */ com.google.monitoring.v3.AlertPolicy getAlertPolicies(int index); /** + * + * *
    * The returned alert policies.
    * 
@@ -33,25 +54,30 @@ public interface ListAlertPoliciesResponseOrBuilder extends */ int getAlertPoliciesCount(); /** + * + * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - java.util.List + java.util.List getAlertPoliciesOrBuilderList(); /** + * + * *
    * The returned alert policies.
    * 
* * repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; */ - com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( - int index); + com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index); /** + * + * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -59,10 +85,13 @@ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than were returned, then this field is set
    * to a non-empty value. To see the additional results,
@@ -70,18 +99,21 @@ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of alert policies in all pages. This number is only an
    * estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java index d4a22dcd206d..9499005d62c4 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListGroupMembers` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersRequest} */ -public final class ListGroupMembersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGroupMembersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupMembersRequest) ListGroupMembersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGroupMembersRequest.newBuilder() to construct. private ListGroupMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGroupMembersRequest() { name_ = ""; pageToken_ = ""; @@ -27,35 +45,42 @@ private ListGroupMembersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGroupMembersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersRequest.class, com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); + com.google.monitoring.v3.ListGroupMembersRequest.class, + com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,31 +89,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,11 +126,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -122,6 +155,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -130,14 +164,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -145,16 +180,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -163,9 +197,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -178,6 +215,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 5; + * * @return The filter. */ @java.lang.Override @@ -186,14 +224,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -206,16 +245,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -226,6 +264,8 @@ public java.lang.String getFilter() { public static final int INTERVAL_FIELD_NUMBER = 6; private com.google.monitoring.v3.TimeInterval interval_; /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -234,6 +274,7 @@ public java.lang.String getFilter() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return Whether the interval field is set. */ @java.lang.Override @@ -241,6 +282,8 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -249,13 +292,18 @@ public boolean hasInterval() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -267,10 +315,13 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
+    return interval_ == null
+        ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+        : interval_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -282,8 +333,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (pageSize_ != 0) {
       output.writeInt32(3, pageSize_);
     }
@@ -309,8 +359,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(3, pageSize_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
@@ -319,8 +368,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_);
     }
     if (interval_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getInterval());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInterval());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
@@ -333,25 +381,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.ListGroupMembersRequest)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.ListGroupMembersRequest other = (com.google.monitoring.v3.ListGroupMembersRequest) obj;
+    com.google.monitoring.v3.ListGroupMembersRequest other =
+        (com.google.monitoring.v3.ListGroupMembersRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (getPageSize()
-        != other.getPageSize()) return false;
-    if (!getPageToken()
-        .equals(other.getPageToken())) return false;
-    if (!getFilter()
-        .equals(other.getFilter())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (getPageSize() != other.getPageSize()) return false;
+    if (!getPageToken().equals(other.getPageToken())) return false;
+    if (!getFilter().equals(other.getFilter())) return false;
     if (hasInterval() != other.hasInterval()) return false;
     if (hasInterval()) {
-      if (!getInterval()
-          .equals(other.getInterval())) return false;
+      if (!getInterval().equals(other.getInterval())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -381,132 +425,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.ListGroupMembersRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.ListGroupMembersRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.ListGroupMembersRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The `ListGroupMembers` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupMembersRequest) com.google.monitoring.v3.ListGroupMembersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersRequest.class, com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); + com.google.monitoring.v3.ListGroupMembersRequest.class, + com.google.monitoring.v3.ListGroupMembersRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupMembersRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +572,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; } @java.lang.Override @@ -545,8 +593,11 @@ public com.google.monitoring.v3.ListGroupMembersRequest build() { @java.lang.Override public com.google.monitoring.v3.ListGroupMembersRequest buildPartial() { - com.google.monitoring.v3.ListGroupMembersRequest result = new com.google.monitoring.v3.ListGroupMembersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListGroupMembersRequest result = + new com.google.monitoring.v3.ListGroupMembersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -566,9 +617,7 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersRequest resu result.filter_ = filter_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.interval_ = intervalBuilder_ == null - ? interval_ - : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); } } @@ -576,38 +625,39 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupMembersRequest) { - return mergeFrom((com.google.monitoring.v3.ListGroupMembersRequest)other); + return mergeFrom((com.google.monitoring.v3.ListGroupMembersRequest) other); } else { super.mergeFrom(other); return this; @@ -615,7 +665,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersRequest other) { - if (other == com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListGroupMembersRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -663,39 +714,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - input.readMessage( - getIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -705,24 +760,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -731,22 +791,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -754,32 +817,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -789,19 +863,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The group whose members are listed. The format is:
      *
      *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -809,13 +889,16 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -823,11 +906,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -839,11 +925,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -855,6 +944,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -862,13 +953,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -877,6 +968,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -884,15 +977,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -900,6 +992,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -907,18 +1001,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -926,6 +1024,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -935,6 +1034,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -942,12 +1043,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -957,6 +1060,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -969,13 +1074,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 5; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -984,6 +1089,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -996,15 +1103,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1012,6 +1118,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1024,18 +1132,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1048,6 +1160,7 @@ public Builder setFilter(
      * 
* * string filter = 5; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1057,6 +1170,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An optional [list
      * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -1069,12 +1184,14 @@ public Builder clearFilter() {
      * 
* * string filter = 5; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1084,8 +1201,13 @@ public Builder setFilterBytes( private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1094,12 +1216,15 @@ public Builder setFilterBytes(
      * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1108,16 +1233,21 @@ public boolean hasInterval() {
      * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1141,6 +1271,8 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1150,8 +1282,7 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      *
      * .google.monitoring.v3.TimeInterval interval = 6;
      */
-    public Builder setInterval(
-        com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
+    public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
       if (intervalBuilder_ == null) {
         interval_ = builderForValue.build();
       } else {
@@ -1162,6 +1293,8 @@ public Builder setInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1173,9 +1306,9 @@ public Builder setInterval(
      */
     public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          interval_ != null &&
-          interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && interval_ != null
+            && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -1188,6 +1321,8 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1208,6 +1343,8 @@ public Builder clearInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1223,6 +1360,8 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1236,11 +1375,14 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null ?
-            com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
+        return interval_ == null
+            ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+            : interval_;
       }
     }
     /**
+     *
+     *
      * 
      * An optional time interval for which results should be returned. Only
      * members that were part of the group during the specified interval are
@@ -1251,21 +1393,24 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * .google.monitoring.v3.TimeInterval interval = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> 
+            com.google.monitoring.v3.TimeInterval,
+            com.google.monitoring.v3.TimeInterval.Builder,
+            com.google.monitoring.v3.TimeIntervalOrBuilder>
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>(
-                getInterval(),
-                getParentForChildren(),
-                isClean());
+        intervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.TimeInterval,
+                com.google.monitoring.v3.TimeInterval.Builder,
+                com.google.monitoring.v3.TimeIntervalOrBuilder>(
+                getInterval(), getParentForChildren(), isClean());
         interval_ = null;
       }
       return intervalBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1275,12 +1420,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupMembersRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest)
   private static final com.google.monitoring.v3.ListGroupMembersRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupMembersRequest();
   }
@@ -1289,27 +1434,27 @@ public static com.google.monitoring.v3.ListGroupMembersRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ListGroupMembersRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ListGroupMembersRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1324,6 +1469,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.ListGroupMembersRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
index 13d69f6ffbe8..db21a64daa91 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequestOrBuilder.java
@@ -1,47 +1,77 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/group_service.proto
 
 package com.google.monitoring.v3;
 
-public interface ListGroupMembersRequestOrBuilder extends
+public interface ListGroupMembersRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupMembersRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The group whose members are listed. The format is:
    *
    *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -49,10 +79,13 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -60,12 +93,14 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -78,10 +113,13 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * string filter = 5; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An optional [list
    * filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
@@ -94,12 +132,14 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * string filter = 5; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -108,10 +148,13 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
@@ -120,10 +163,13 @@ public interface ListGroupMembersRequestOrBuilder extends
    * 
* * .google.monitoring.v3.TimeInterval interval = 6; + * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** + * + * *
    * An optional time interval for which results should be returned. Only
    * members that were part of the group during the specified interval are
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
similarity index 72%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
index 48da564450dd..6ea9815c5a18 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/group_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The `ListGroupMembers` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersResponse} */ -public final class ListGroupMembersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGroupMembersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupMembersResponse) ListGroupMembersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGroupMembersResponse.newBuilder() to construct. private ListGroupMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGroupMembersResponse() { members_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGroupMembersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGroupMembersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersResponse.class, com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); + com.google.monitoring.v3.ListGroupMembersResponse.class, + com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); } public static final int MEMBERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List members_; /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -59,6 +81,8 @@ public java.util.List getMembersList() { return members_; } /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -66,11 +90,13 @@ public java.util.List getMembersList() { * repeated .google.api.MonitoredResource members = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMembersOrBuilderList() { return members_; } /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -82,6 +108,8 @@ public int getMembersCount() { return members_.size(); } /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -93,6 +121,8 @@ public com.google.api.MonitoredResource getMembers(int index) { return members_.get(index); } /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -100,15 +130,17 @@ public com.google.api.MonitoredResource getMembers(int index) { * repeated .google.api.MonitoredResource members = 1; */ @java.lang.Override - public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( - int index) { + public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) { return members_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -116,6 +148,7 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,11 +192,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** + * + * *
    * The total number of elements matching this request.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -172,6 +208,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < members_.size(); i++) { output.writeMessage(1, members_.get(i)); } @@ -204,15 +240,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < members_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, members_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, members_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,19 +256,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupMembersResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupMembersResponse other = (com.google.monitoring.v3.ListGroupMembersResponse) obj; - - if (!getMembersList() - .equals(other.getMembersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + com.google.monitoring.v3.ListGroupMembersResponse other = + (com.google.monitoring.v3.ListGroupMembersResponse) obj; + + if (!getMembersList().equals(other.getMembersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,131 +292,135 @@ public int hashCode() { } public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupMembersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupMembersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListGroupMembersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListGroupMembers` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupMembersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupMembersResponse) com.google.monitoring.v3.ListGroupMembersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupMembersResponse.class, com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); + com.google.monitoring.v3.ListGroupMembersResponse.class, + com.google.monitoring.v3.ListGroupMembersResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupMembersResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; } @java.lang.Override @@ -423,14 +459,18 @@ public com.google.monitoring.v3.ListGroupMembersResponse build() { @java.lang.Override public com.google.monitoring.v3.ListGroupMembersResponse buildPartial() { - com.google.monitoring.v3.ListGroupMembersResponse result = new com.google.monitoring.v3.ListGroupMembersResponse(this); + com.google.monitoring.v3.ListGroupMembersResponse result = + new com.google.monitoring.v3.ListGroupMembersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListGroupMembersResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListGroupMembersResponse result) { if (membersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { members_ = java.util.Collections.unmodifiableList(members_); @@ -456,38 +496,39 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupMembersResponse res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupMembersResponse) { - return mergeFrom((com.google.monitoring.v3.ListGroupMembersResponse)other); + return mergeFrom((com.google.monitoring.v3.ListGroupMembersResponse) other); } else { super.mergeFrom(other); return this; @@ -495,7 +536,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersResponse other) { - if (other == com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListGroupMembersResponse.getDefaultInstance()) + return this; if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { @@ -514,9 +556,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupMembersResponse other membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000001); - membersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMembersFieldBuilder() : null; + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMembersFieldBuilder() + : null; } else { membersBuilder_.addAllMessages(other.members_); } @@ -556,35 +599,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.MonitoredResource m = - input.readMessage( - com.google.api.MonitoredResource.parser(), - extensionRegistry); - if (membersBuilder_ == null) { - ensureMembersIsMutable(); - members_.add(m); - } else { - membersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.MonitoredResource m = + input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,21 +639,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List members_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> membersBuilder_; + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> + membersBuilder_; /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -623,6 +675,8 @@ public java.util.List getMembersList() { } } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -637,6 +691,8 @@ public int getMembersCount() { } } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -651,14 +707,15 @@ public com.google.api.MonitoredResource getMembers(int index) { } } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder setMembers( - int index, com.google.api.MonitoredResource value) { + public Builder setMembers(int index, com.google.api.MonitoredResource value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -672,14 +729,15 @@ public Builder setMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder setMembers( - int index, com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setMembers(int index, com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); @@ -690,6 +748,8 @@ public Builder setMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -710,14 +770,15 @@ public Builder addMembers(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers( - int index, com.google.api.MonitoredResource value) { + public Builder addMembers(int index, com.google.api.MonitoredResource value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -731,14 +792,15 @@ public Builder addMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers( - com.google.api.MonitoredResource.Builder builderForValue) { + public Builder addMembers(com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); @@ -749,14 +811,15 @@ public Builder addMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public Builder addMembers( - int index, com.google.api.MonitoredResource.Builder builderForValue) { + public Builder addMembers(int index, com.google.api.MonitoredResource.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); @@ -767,6 +830,8 @@ public Builder addMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -777,8 +842,7 @@ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); @@ -786,6 +850,8 @@ public Builder addAllMembers( return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -803,6 +869,8 @@ public Builder clearMembers() { return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -820,39 +888,44 @@ public Builder removeMembers(int index) { return this; } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResource.Builder getMembersBuilder( - int index) { + public com.google.api.MonitoredResource.Builder getMembersBuilder(int index) { return getMembersFieldBuilder().getBuilder(index); } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( - int index) { + public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index) { if (membersBuilder_ == null) { - return members_.get(index); } else { + return members_.get(index); + } else { return membersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public java.util.List - getMembersOrBuilderList() { + public java.util.List + getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { @@ -860,6 +933,8 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( } } /** + * + * *
      * A set of monitored resources in the group.
      * 
@@ -867,42 +942,47 @@ public com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( * repeated .google.api.MonitoredResource members = 1; */ public com.google.api.MonitoredResource.Builder addMembersBuilder() { - return getMembersFieldBuilder().addBuilder( - com.google.api.MonitoredResource.getDefaultInstance()); + return getMembersFieldBuilder() + .addBuilder(com.google.api.MonitoredResource.getDefaultInstance()); } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public com.google.api.MonitoredResource.Builder addMembersBuilder( - int index) { - return getMembersFieldBuilder().addBuilder( - index, com.google.api.MonitoredResource.getDefaultInstance()); + public com.google.api.MonitoredResource.Builder addMembersBuilder(int index) { + return getMembersFieldBuilder() + .addBuilder(index, com.google.api.MonitoredResource.getDefaultInstance()); } /** + * + * *
      * A set of monitored resources in the group.
      * 
* * repeated .google.api.MonitoredResource members = 1; */ - public java.util.List - getMembersBuilderList() { + public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { - membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( - members_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + membersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder>( + members_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; @@ -910,6 +990,8 @@ public com.google.api.MonitoredResource.Builder addMembersBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -917,13 +999,13 @@ public com.google.api.MonitoredResource.Builder addMembersBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -932,6 +1014,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -939,15 +1023,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -955,6 +1038,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -962,18 +1047,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -981,6 +1070,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -990,6 +1080,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is
      * set to a non-empty value.  To see the additional results, use that value as
@@ -997,12 +1089,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1010,13 +1104,16 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1024,11 +1121,14 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1040,11 +1140,14 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * The total number of elements matching this request.
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1053,9 +1156,9 @@ public Builder clearTotalSize() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1065,12 +1168,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupMembersResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) private static final com.google.monitoring.v3.ListGroupMembersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupMembersResponse(); } @@ -1079,27 +1182,27 @@ public static com.google.monitoring.v3.ListGroupMembersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupMembersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,6 +1217,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupMembersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java index a149da475575..af58da4c9275 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupMembersResponseOrBuilder extends +public interface ListGroupMembersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupMembersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - java.util.List - getMembersList(); + java.util.List getMembersList(); /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -25,6 +44,8 @@ public interface ListGroupMembersResponseOrBuilder extends */ com.google.api.MonitoredResource getMembers(int index); /** + * + * *
    * A set of monitored resources in the group.
    * 
@@ -33,25 +54,29 @@ public interface ListGroupMembersResponseOrBuilder extends */ int getMembersCount(); /** + * + * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - java.util.List - getMembersOrBuilderList(); + java.util.List getMembersOrBuilderList(); /** + * + * *
    * A set of monitored resources in the group.
    * 
* * repeated .google.api.MonitoredResource members = 1; */ - com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder( - int index); + com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(int index); /** + * + * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -59,10 +84,13 @@ com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is
    * set to a non-empty value.  To see the additional results, use that value as
@@ -70,17 +98,20 @@ com.google.api.MonitoredResourceOrBuilder getMembersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of elements matching this request.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java index 419dc4372348..03d5e77308a7 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsRequest} */ -public final class ListGroupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupsRequest) ListGroupsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGroupsRequest.newBuilder() to construct. private ListGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGroupsRequest() { name_ = ""; pageToken_ = ""; @@ -26,35 +44,40 @@ private ListGroupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGroupsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsRequest.class, com.google.monitoring.v3.ListGroupsRequest.Builder.class); + com.google.monitoring.v3.ListGroupsRequest.class, + com.google.monitoring.v3.ListGroupsRequest.Builder.class); } private int filterCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object filter_; + public enum FilterCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHILDREN_OF_GROUP(2), ANCESTORS_OF_GROUP(3), DESCENDANTS_OF_GROUP(4), FILTER_NOT_SET(0); private final int value; + private FilterCase(int value) { this.value = value; } @@ -70,28 +93,35 @@ public static FilterCase valueOf(int value) { public static FilterCase forNumber(int value) { switch (value) { - case 2: return CHILDREN_OF_GROUP; - case 3: return ANCESTORS_OF_GROUP; - case 4: return DESCENDANTS_OF_GROUP; - case 0: return FILTER_NOT_SET; - default: return null; + case 2: + return CHILDREN_OF_GROUP; + case 3: + return ANCESTORS_OF_GROUP; + case 4: + return DESCENDANTS_OF_GROUP; + case 0: + return FILTER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); } public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -99,7 +129,10 @@ public int getNumber() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,14 +141,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -123,17 +157,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -143,6 +178,8 @@ public java.lang.String getName() { public static final int CHILDREN_OF_GROUP_FIELD_NUMBER = 2; /** + * + * *
    * A group name. The format is:
    *
@@ -153,12 +190,15 @@ public java.lang.String getName() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the childrenOfGroup field is set. */ public boolean hasChildrenOfGroup() { return filterCase_ == 2; } /** + * + * *
    * A group name. The format is:
    *
@@ -169,6 +209,7 @@ public boolean hasChildrenOfGroup() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The childrenOfGroup. */ public java.lang.String getChildrenOfGroup() { @@ -179,8 +220,7 @@ public java.lang.String getChildrenOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -189,6 +229,8 @@ public java.lang.String getChildrenOfGroup() { } } /** + * + * *
    * A group name. The format is:
    *
@@ -199,18 +241,17 @@ public java.lang.String getChildrenOfGroup() {
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for childrenOfGroup. */ - public com.google.protobuf.ByteString - getChildrenOfGroupBytes() { + public com.google.protobuf.ByteString getChildrenOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 2) { filter_ = b; } @@ -222,6 +263,8 @@ public java.lang.String getChildrenOfGroup() { public static final int ANCESTORS_OF_GROUP_FIELD_NUMBER = 3; /** + * + * *
    * A group name. The format is:
    *
@@ -234,12 +277,15 @@ public java.lang.String getChildrenOfGroup() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the ancestorsOfGroup field is set. */ public boolean hasAncestorsOfGroup() { return filterCase_ == 3; } /** + * + * *
    * A group name. The format is:
    *
@@ -252,6 +298,7 @@ public boolean hasAncestorsOfGroup() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The ancestorsOfGroup. */ public java.lang.String getAncestorsOfGroup() { @@ -262,8 +309,7 @@ public java.lang.String getAncestorsOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -272,6 +318,8 @@ public java.lang.String getAncestorsOfGroup() { } } /** + * + * *
    * A group name. The format is:
    *
@@ -284,18 +332,17 @@ public java.lang.String getAncestorsOfGroup() {
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for ancestorsOfGroup. */ - public com.google.protobuf.ByteString - getAncestorsOfGroupBytes() { + public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 3) { filter_ = b; } @@ -307,6 +354,8 @@ public java.lang.String getAncestorsOfGroup() { public static final int DESCENDANTS_OF_GROUP_FIELD_NUMBER = 4; /** + * + * *
    * A group name. The format is:
    *
@@ -318,12 +367,15 @@ public java.lang.String getAncestorsOfGroup() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the descendantsOfGroup field is set. */ public boolean hasDescendantsOfGroup() { return filterCase_ == 4; } /** + * + * *
    * A group name. The format is:
    *
@@ -335,6 +387,7 @@ public boolean hasDescendantsOfGroup() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The descendantsOfGroup. */ public java.lang.String getDescendantsOfGroup() { @@ -345,8 +398,7 @@ public java.lang.String getDescendantsOfGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 4) { filter_ = s; @@ -355,6 +407,8 @@ public java.lang.String getDescendantsOfGroup() { } } /** + * + * *
    * A group name. The format is:
    *
@@ -366,18 +420,17 @@ public java.lang.String getDescendantsOfGroup() {
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for descendantsOfGroup. */ - public com.google.protobuf.ByteString - getDescendantsOfGroupBytes() { + public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 4) { ref = filter_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 4) { filter_ = b; } @@ -390,11 +443,14 @@ public java.lang.String getDescendantsOfGroup() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -403,9 +459,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -413,6 +472,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -421,14 +481,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -436,16 +497,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -454,6 +514,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,8 +526,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filterCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -504,8 +564,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -521,32 +580,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupsRequest other = (com.google.monitoring.v3.ListGroupsRequest) obj; + com.google.monitoring.v3.ListGroupsRequest other = + (com.google.monitoring.v3.ListGroupsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilterCase().equals(other.getFilterCase())) return false; switch (filterCase_) { case 2: - if (!getChildrenOfGroup() - .equals(other.getChildrenOfGroup())) return false; + if (!getChildrenOfGroup().equals(other.getChildrenOfGroup())) return false; break; case 3: - if (!getAncestorsOfGroup() - .equals(other.getAncestorsOfGroup())) return false; + if (!getAncestorsOfGroup().equals(other.getAncestorsOfGroup())) return false; break; case 4: - if (!getDescendantsOfGroup() - .equals(other.getDescendantsOfGroup())) return false; + if (!getDescendantsOfGroup().equals(other.getDescendantsOfGroup())) return false; break; case 0: default: @@ -589,132 +643,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListGroupsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListGroupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupsRequest) com.google.monitoring.v3.ListGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsRequest.class, com.google.monitoring.v3.ListGroupsRequest.Builder.class); + com.google.monitoring.v3.ListGroupsRequest.class, + com.google.monitoring.v3.ListGroupsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -728,9 +786,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; } @java.lang.Override @@ -749,8 +807,11 @@ public com.google.monitoring.v3.ListGroupsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListGroupsRequest buildPartial() { - com.google.monitoring.v3.ListGroupsRequest result = new com.google.monitoring.v3.ListGroupsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListGroupsRequest result = + new com.google.monitoring.v3.ListGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -778,38 +839,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.ListGroupsRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupsRequest) { - return mergeFrom((com.google.monitoring.v3.ListGroupsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListGroupsRequest) other); } else { super.mergeFrom(other); return this; @@ -832,27 +894,31 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupsRequest other) { onChanged(); } switch (other.getFilterCase()) { - case CHILDREN_OF_GROUP: { - filterCase_ = 2; - filter_ = other.filter_; - onChanged(); - break; - } - case ANCESTORS_OF_GROUP: { - filterCase_ = 3; - filter_ = other.filter_; - onChanged(); - break; - } - case DESCENDANTS_OF_GROUP: { - filterCase_ = 4; - filter_ = other.filter_; - onChanged(); - break; - } - case FILTER_NOT_SET: { - break; - } + case CHILDREN_OF_GROUP: + { + filterCase_ = 2; + filter_ = other.filter_; + onChanged(); + break; + } + case ANCESTORS_OF_GROUP: + { + filterCase_ = 3; + filter_ = other.filter_; + onChanged(); + break; + } + case DESCENDANTS_OF_GROUP: + { + filterCase_ = 4; + filter_ = other.filter_; + onChanged(); + break; + } + case FILTER_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -880,45 +946,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 2; - filter_ = s; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 3; - filter_ = s; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 4; - filter_ = s; - break; - } // case 34 - case 40: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 2; + filter_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 3; + filter_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 4; + filter_ = s; + break; + } // case 34 + case 40: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -928,12 +1001,12 @@ public Builder mergeFrom( } // finally return this; } + private int filterCase_ = 0; private java.lang.Object filter_; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); } public Builder clearFilter() { @@ -947,6 +1020,8 @@ public Builder clearFilter() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -954,14 +1029,16 @@ public Builder clearFilter() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -970,6 +1047,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -977,16 +1056,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -994,6 +1074,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1001,19 +1083,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1021,7 +1109,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1031,6 +1122,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
      * whose groups are to be listed. The format is:
@@ -1038,13 +1131,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1053,6 +1150,8 @@ public Builder setNameBytes( } /** + * + * *
      * A group name. The format is:
      *
@@ -1063,6 +1162,7 @@ public Builder setNameBytes(
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the childrenOfGroup field is set. */ @java.lang.Override @@ -1070,6 +1170,8 @@ public boolean hasChildrenOfGroup() { return filterCase_ == 2; } /** + * + * *
      * A group name. The format is:
      *
@@ -1080,6 +1182,7 @@ public boolean hasChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The childrenOfGroup. */ @java.lang.Override @@ -1089,8 +1192,7 @@ public java.lang.String getChildrenOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -1101,6 +1203,8 @@ public java.lang.String getChildrenOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1111,19 +1215,18 @@ public java.lang.String getChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for childrenOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getChildrenOfGroupBytes() { + public com.google.protobuf.ByteString getChildrenOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 2) { filter_ = b; } @@ -1133,6 +1236,8 @@ public java.lang.String getChildrenOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1143,18 +1248,22 @@ public java.lang.String getChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @param value The childrenOfGroup to set. * @return This builder for chaining. */ - public Builder setChildrenOfGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChildrenOfGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filterCase_ = 2; filter_ = value; onChanged(); return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1165,6 +1274,7 @@ public Builder setChildrenOfGroup(
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearChildrenOfGroup() { @@ -1176,6 +1286,8 @@ public Builder clearChildrenOfGroup() { return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1186,12 +1298,14 @@ public Builder clearChildrenOfGroup() {
      * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for childrenOfGroup to set. * @return This builder for chaining. */ - public Builder setChildrenOfGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChildrenOfGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filterCase_ = 2; filter_ = value; @@ -1200,6 +1314,8 @@ public Builder setChildrenOfGroupBytes( } /** + * + * *
      * A group name. The format is:
      *
@@ -1212,6 +1328,7 @@ public Builder setChildrenOfGroupBytes(
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the ancestorsOfGroup field is set. */ @java.lang.Override @@ -1219,6 +1336,8 @@ public boolean hasAncestorsOfGroup() { return filterCase_ == 3; } /** + * + * *
      * A group name. The format is:
      *
@@ -1231,6 +1350,7 @@ public boolean hasAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The ancestorsOfGroup. */ @java.lang.Override @@ -1240,8 +1360,7 @@ public java.lang.String getAncestorsOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -1252,6 +1371,8 @@ public java.lang.String getAncestorsOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1264,19 +1385,18 @@ public java.lang.String getAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for ancestorsOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getAncestorsOfGroupBytes() { + public com.google.protobuf.ByteString getAncestorsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 3) { filter_ = b; } @@ -1286,6 +1406,8 @@ public java.lang.String getAncestorsOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1298,18 +1420,22 @@ public java.lang.String getAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @param value The ancestorsOfGroup to set. * @return This builder for chaining. */ - public Builder setAncestorsOfGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorsOfGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filterCase_ = 3; filter_ = value; onChanged(); return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1322,6 +1448,7 @@ public Builder setAncestorsOfGroup(
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearAncestorsOfGroup() { @@ -1333,6 +1460,8 @@ public Builder clearAncestorsOfGroup() { return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1345,12 +1474,14 @@ public Builder clearAncestorsOfGroup() {
      * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for ancestorsOfGroup to set. * @return This builder for chaining. */ - public Builder setAncestorsOfGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAncestorsOfGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filterCase_ = 3; filter_ = value; @@ -1359,6 +1490,8 @@ public Builder setAncestorsOfGroupBytes( } /** + * + * *
      * A group name. The format is:
      *
@@ -1370,6 +1503,7 @@ public Builder setAncestorsOfGroupBytes(
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the descendantsOfGroup field is set. */ @java.lang.Override @@ -1377,6 +1511,8 @@ public boolean hasDescendantsOfGroup() { return filterCase_ == 4; } /** + * + * *
      * A group name. The format is:
      *
@@ -1388,6 +1524,7 @@ public boolean hasDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The descendantsOfGroup. */ @java.lang.Override @@ -1397,8 +1534,7 @@ public java.lang.String getDescendantsOfGroup() { ref = filter_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 4) { filter_ = s; @@ -1409,6 +1545,8 @@ public java.lang.String getDescendantsOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1420,19 +1558,18 @@ public java.lang.String getDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for descendantsOfGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescendantsOfGroupBytes() { + public com.google.protobuf.ByteString getDescendantsOfGroupBytes() { java.lang.Object ref = ""; if (filterCase_ == 4) { ref = filter_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (filterCase_ == 4) { filter_ = b; } @@ -1442,6 +1579,8 @@ public java.lang.String getDescendantsOfGroup() { } } /** + * + * *
      * A group name. The format is:
      *
@@ -1453,18 +1592,22 @@ public java.lang.String getDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @param value The descendantsOfGroup to set. * @return This builder for chaining. */ - public Builder setDescendantsOfGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescendantsOfGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filterCase_ = 4; filter_ = value; onChanged(); return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1476,6 +1619,7 @@ public Builder setDescendantsOfGroup(
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDescendantsOfGroup() { @@ -1487,6 +1631,8 @@ public Builder clearDescendantsOfGroup() { return this; } /** + * + * *
      * A group name. The format is:
      *
@@ -1498,12 +1644,14 @@ public Builder clearDescendantsOfGroup() {
      * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for descendantsOfGroup to set. * @return This builder for chaining. */ - public Builder setDescendantsOfGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescendantsOfGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filterCase_ = 4; filter_ = value; @@ -1511,13 +1659,16 @@ public Builder setDescendantsOfGroupBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -1525,11 +1676,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1541,11 +1695,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 5; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1557,6 +1714,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1564,13 +1723,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1579,6 +1738,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1586,15 +1747,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1602,6 +1762,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1609,18 +1771,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1628,6 +1794,7 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1637,6 +1804,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `next_page_token` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1644,21 +1813,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1668,12 +1839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) private static final com.google.monitoring.v3.ListGroupsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupsRequest(); } @@ -1682,27 +1853,27 @@ public static com.google.monitoring.v3.ListGroupsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1717,6 +1888,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java index 4ed805c0e2a9..c490a4dc67a3 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupsRequestOrBuilder extends +public interface ListGroupsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -15,11 +33,16 @@ public interface ListGroupsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
    * whose groups are to be listed. The format is:
@@ -27,13 +50,17 @@ public interface ListGroupsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A group name. The format is:
    *
@@ -44,10 +71,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the childrenOfGroup field is set. */ boolean hasChildrenOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -58,10 +88,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The childrenOfGroup. */ java.lang.String getChildrenOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -72,12 +105,14 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string children_of_group = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for childrenOfGroup. */ - com.google.protobuf.ByteString - getChildrenOfGroupBytes(); + com.google.protobuf.ByteString getChildrenOfGroupBytes(); /** + * + * *
    * A group name. The format is:
    *
@@ -90,10 +125,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the ancestorsOfGroup field is set. */ boolean hasAncestorsOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -106,10 +144,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The ancestorsOfGroup. */ java.lang.String getAncestorsOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -122,12 +163,14 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string ancestors_of_group = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for ancestorsOfGroup. */ - com.google.protobuf.ByteString - getAncestorsOfGroupBytes(); + com.google.protobuf.ByteString getAncestorsOfGroupBytes(); /** + * + * *
    * A group name. The format is:
    *
@@ -139,10 +182,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return Whether the descendantsOfGroup field is set. */ boolean hasDescendantsOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -154,10 +200,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The descendantsOfGroup. */ java.lang.String getDescendantsOfGroup(); /** + * + * *
    * A group name. The format is:
    *
@@ -169,22 +218,27 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string descendants_of_group = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for descendantsOfGroup. */ - com.google.protobuf.ByteString - getDescendantsOfGroupBytes(); + com.google.protobuf.ByteString getDescendantsOfGroupBytes(); /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -192,10 +246,13 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `next_page_token` value
    * returned by a previous call to this method.  Using this field causes the
@@ -203,10 +260,10 @@ public interface ListGroupsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); com.google.monitoring.v3.ListGroupsRequest.FilterCase getFilterCase(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java index 2f8a6aa2f237..60c22e62e9ec 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListGroups` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsResponse} */ -public final class ListGroupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListGroupsResponse) ListGroupsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGroupsResponse.newBuilder() to construct. private ListGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGroupsResponse() { group_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGroupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGroupsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsResponse.class, com.google.monitoring.v3.ListGroupsResponse.Builder.class); + com.google.monitoring.v3.ListGroupsResponse.class, + com.google.monitoring.v3.ListGroupsResponse.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List group_; /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -59,6 +81,8 @@ public java.util.List getGroupList() { return group_; } /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -66,11 +90,12 @@ public java.util.List getGroupList() { * repeated .google.monitoring.v3.Group group = 1; */ @java.lang.Override - public java.util.List - getGroupOrBuilderList() { + public java.util.List getGroupOrBuilderList() { return group_; } /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -82,6 +107,8 @@ public int getGroupCount() { return group_.size(); } /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -93,6 +120,8 @@ public com.google.monitoring.v3.Group getGroup(int index) { return group_.get(index); } /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -100,15 +129,17 @@ public com.google.monitoring.v3.Group getGroup(int index) { * repeated .google.monitoring.v3.Group group = 1; */ @java.lang.Override - public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( - int index) { + public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { return group_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -116,6 +147,7 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +156,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -139,16 +172,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < group_.size(); i++) { output.writeMessage(1, group_.get(i)); } @@ -186,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < group_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, group_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, group_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListGroupsResponse other = (com.google.monitoring.v3.ListGroupsResponse) obj; + com.google.monitoring.v3.ListGroupsResponse other = + (com.google.monitoring.v3.ListGroupsResponse) obj; - if (!getGroupList() - .equals(other.getGroupList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getGroupList().equals(other.getGroupList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListGroupsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListGroupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListGroups` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListGroupsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListGroupsResponse) com.google.monitoring.v3.ListGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListGroupsResponse.class, com.google.monitoring.v3.ListGroupsResponse.Builder.class); + com.google.monitoring.v3.ListGroupsResponse.class, + com.google.monitoring.v3.ListGroupsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListGroupsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; } @java.lang.Override @@ -396,9 +430,12 @@ public com.google.monitoring.v3.ListGroupsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListGroupsResponse buildPartial() { - com.google.monitoring.v3.ListGroupsResponse result = new com.google.monitoring.v3.ListGroupsResponse(this); + com.google.monitoring.v3.ListGroupsResponse result = + new com.google.monitoring.v3.ListGroupsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +463,39 @@ private void buildPartial0(com.google.monitoring.v3.ListGroupsResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListGroupsResponse) { - return mergeFrom((com.google.monitoring.v3.ListGroupsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListGroupsResponse) other); } else { super.mergeFrom(other); return this; @@ -484,9 +522,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListGroupsResponse other) { groupBuilder_ = null; group_ = other.group_; bitField0_ = (bitField0_ & ~0x00000001); - groupBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupFieldBuilder() : null; + groupBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupFieldBuilder() + : null; } else { groupBuilder_.addAllMessages(other.group_); } @@ -523,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.Group m = - input.readMessage( - com.google.monitoring.v3.Group.parser(), - extensionRegistry); - if (groupBuilder_ == null) { - ensureGroupIsMutable(); - group_.add(m); - } else { - groupBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.Group m = + input.readMessage(com.google.monitoring.v3.Group.parser(), extensionRegistry); + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(m); + } else { + groupBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +596,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List group_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { group_ = new java.util.ArrayList(group_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; + com.google.monitoring.v3.Group, + com.google.monitoring.v3.Group.Builder, + com.google.monitoring.v3.GroupOrBuilder> + groupBuilder_; /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -585,6 +632,8 @@ public java.util.List getGroupList() { } } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -599,6 +648,8 @@ public int getGroupCount() { } } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -613,14 +664,15 @@ public com.google.monitoring.v3.Group getGroup(int index) { } } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder setGroup( - int index, com.google.monitoring.v3.Group value) { + public Builder setGroup(int index, com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,14 +686,15 @@ public Builder setGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder setGroup( - int index, com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder setGroup(int index, com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.set(index, builderForValue.build()); @@ -652,6 +705,8 @@ public Builder setGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -672,14 +727,15 @@ public Builder addGroup(com.google.monitoring.v3.Group value) { return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup( - int index, com.google.monitoring.v3.Group value) { + public Builder addGroup(int index, com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +749,15 @@ public Builder addGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup( - com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder addGroup(com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.add(builderForValue.build()); @@ -711,14 +768,15 @@ public Builder addGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public Builder addGroup( - int index, com.google.monitoring.v3.Group.Builder builderForValue) { + public Builder addGroup(int index, com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { ensureGroupIsMutable(); group_.add(index, builderForValue.build()); @@ -729,6 +787,8 @@ public Builder addGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -739,8 +799,7 @@ public Builder addAllGroup( java.lang.Iterable values) { if (groupBuilder_ == null) { ensureGroupIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, group_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, group_); onChanged(); } else { groupBuilder_.addAllMessages(values); @@ -748,6 +807,8 @@ public Builder addAllGroup( return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -765,6 +826,8 @@ public Builder clearGroup() { return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -782,39 +845,44 @@ public Builder removeGroup(int index) { return this; } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.Group.Builder getGroupBuilder( - int index) { + public com.google.monitoring.v3.Group.Builder getGroupBuilder(int index) { return getGroupFieldBuilder().getBuilder(index); } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( - int index) { + public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index) { if (groupBuilder_ == null) { - return group_.get(index); } else { + return group_.get(index); + } else { return groupBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public java.util.List - getGroupOrBuilderList() { + public java.util.List + getGroupOrBuilderList() { if (groupBuilder_ != null) { return groupBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +890,8 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( } } /** + * + * *
      * The groups that match the specified filters.
      * 
@@ -829,42 +899,46 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( * repeated .google.monitoring.v3.Group group = 1; */ public com.google.monitoring.v3.Group.Builder addGroupBuilder() { - return getGroupFieldBuilder().addBuilder( - com.google.monitoring.v3.Group.getDefaultInstance()); + return getGroupFieldBuilder().addBuilder(com.google.monitoring.v3.Group.getDefaultInstance()); } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public com.google.monitoring.v3.Group.Builder addGroupBuilder( - int index) { - return getGroupFieldBuilder().addBuilder( - index, com.google.monitoring.v3.Group.getDefaultInstance()); + public com.google.monitoring.v3.Group.Builder addGroupBuilder(int index) { + return getGroupFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.Group.getDefaultInstance()); } /** + * + * *
      * The groups that match the specified filters.
      * 
* * repeated .google.monitoring.v3.Group group = 1; */ - public java.util.List - getGroupBuilderList() { + public java.util.List getGroupBuilderList() { return getGroupFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> + com.google.monitoring.v3.Group, + com.google.monitoring.v3.Group.Builder, + com.google.monitoring.v3.GroupOrBuilder> getGroupFieldBuilder() { if (groupBuilder_ == null) { - groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>( - group_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + groupBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Group, + com.google.monitoring.v3.Group.Builder, + com.google.monitoring.v3.GroupOrBuilder>( + group_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); group_ = null; } return groupBuilder_; @@ -872,6 +946,8 @@ public com.google.monitoring.v3.Group.Builder addGroupBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -879,13 +955,13 @@ public com.google.monitoring.v3.Group.Builder addGroupBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +970,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -901,15 +979,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +994,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -924,18 +1003,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -943,6 +1026,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1036,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -959,21 +1045,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListGroupsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) private static final com.google.monitoring.v3.ListGroupsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListGroupsResponse(); } @@ -997,27 +1085,27 @@ public static com.google.monitoring.v3.ListGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java index c6f8c82383d1..4d1de690d188 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface ListGroupsResponseOrBuilder extends +public interface ListGroupsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListGroupsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - java.util.List - getGroupList(); + java.util.List getGroupList(); /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -25,6 +44,8 @@ public interface ListGroupsResponseOrBuilder extends */ com.google.monitoring.v3.Group getGroup(int index); /** + * + * *
    * The groups that match the specified filters.
    * 
@@ -33,25 +54,29 @@ public interface ListGroupsResponseOrBuilder extends */ int getGroupCount(); /** + * + * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - java.util.List - getGroupOrBuilderList(); + java.util.List getGroupOrBuilderList(); /** + * + * *
    * The groups that match the specified filters.
    * 
* * repeated .google.monitoring.v3.Group group = 1; */ - com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder( - int index); + com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(int index); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -59,10 +84,13 @@ com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -70,8 +98,8 @@ com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java index 685473429da1..cd36f4aae891 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListMetricDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsRequest} */ -public final class ListMetricDescriptorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMetricDescriptorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMetricDescriptorsRequest) ListMetricDescriptorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMetricDescriptorsRequest.newBuilder() to construct. private ListMetricDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMetricDescriptorsRequest() { name_ = ""; filter_ = ""; @@ -27,28 +45,32 @@ private ListMetricDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMetricDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsRequest.class, com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsRequest.class, + com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -80,17 +106,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,9 +126,12 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -114,6 +144,7 @@ public java.lang.String getName() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -122,14 +153,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -142,16 +174,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -162,11 +193,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -175,9 +209,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -185,6 +222,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -193,14 +231,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -208,16 +247,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -226,6 +264,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +276,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -264,8 +302,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -281,21 +318,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMetricDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListMetricDescriptorsRequest other = (com.google.monitoring.v3.ListMetricDescriptorsRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListMetricDescriptorsRequest other = + (com.google.monitoring.v3.ListMetricDescriptorsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,131 +355,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMetricDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListMetricDescriptorsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListMetricDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListMetricDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMetricDescriptorsRequest) com.google.monitoring.v3.ListMetricDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsRequest.class, com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsRequest.class, + com.google.monitoring.v3.ListMetricDescriptorsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListMetricDescriptorsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; } @java.lang.Override @@ -479,8 +518,11 @@ public com.google.monitoring.v3.ListMetricDescriptorsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListMetricDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListMetricDescriptorsRequest result = new com.google.monitoring.v3.ListMetricDescriptorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListMetricDescriptorsRequest result = + new com.google.monitoring.v3.ListMetricDescriptorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -505,38 +547,39 @@ private void buildPartial0(com.google.monitoring.v3.ListMetricDescriptorsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMetricDescriptorsRequest) { - return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsRequest) other); } else { super.mergeFrom(other); return this; @@ -544,7 +587,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsRequest other) { - if (other == com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -589,32 +633,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -624,10 +673,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -635,14 +687,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -651,6 +705,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -658,16 +714,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -675,6 +732,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -682,19 +741,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -702,7 +767,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -712,6 +780,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -719,13 +789,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -735,6 +809,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -747,13 +823,13 @@ public Builder setNameBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -762,6 +838,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -774,15 +852,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -790,6 +867,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -802,18 +881,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -826,6 +909,7 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -835,6 +919,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * If this field is empty, all custom and
      * system-defined metric descriptors are returned.
@@ -847,12 +933,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -860,13 +948,16 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -874,11 +965,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -890,11 +984,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -906,6 +1003,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -913,13 +1012,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -928,6 +1027,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -935,15 +1036,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -951,6 +1051,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -958,18 +1060,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -977,6 +1083,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -986,6 +1093,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -993,21 +1102,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMetricDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) private static final com.google.monitoring.v3.ListMetricDescriptorsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMetricDescriptorsRequest(); } @@ -1031,27 +1142,27 @@ public static com.google.monitoring.v3.ListMetricDescriptorsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMetricDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetricDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1066,6 +1177,4 @@ public com.google.protobuf.Parser getParserForType public com.google.monitoring.v3.ListMetricDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java index 6a580feff661..04ae36280d15 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMetricDescriptorsRequestOrBuilder extends +public interface ListMetricDescriptorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMetricDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -15,11 +33,16 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -27,13 +50,17 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -46,10 +73,13 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * If this field is empty, all custom and
    * system-defined metric descriptors are returned.
@@ -62,22 +92,27 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -85,10 +120,13 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -96,8 +134,8 @@ public interface ListMetricDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java index 037d17524b56..0eb5bd2df1dd 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListMetricDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsResponse} */ -public final class ListMetricDescriptorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMetricDescriptorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMetricDescriptorsResponse) ListMetricDescriptorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMetricDescriptorsResponse.newBuilder() to construct. private ListMetricDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMetricDescriptorsResponse() { metricDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListMetricDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMetricDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsResponse.class, com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsResponse.class, + com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); } public static final int METRIC_DESCRIPTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List metricDescriptors_; /** + * + * *
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -60,6 +82,8 @@ public java.util.List getMetricDescriptorsList(
     return metricDescriptors_;
   }
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -68,11 +92,13 @@ public java.util.List getMetricDescriptorsList(
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMetricDescriptorsOrBuilderList() {
     return metricDescriptors_;
   }
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -85,6 +111,8 @@ public int getMetricDescriptorsCount() {
     return metricDescriptors_.size();
   }
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -97,6 +125,8 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
     return metricDescriptors_.get(index);
   }
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -105,15 +135,17 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
   @java.lang.Override
-  public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
-      int index) {
+  public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index) {
     return metricDescriptors_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -121,6 +153,7 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,14 +162,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -144,16 +178,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -162,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < metricDescriptors_.size(); i++) { output.writeMessage(1, metricDescriptors_.get(i)); } @@ -191,8 +224,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metricDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, metricDescriptors_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, metricDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMetricDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListMetricDescriptorsResponse other = (com.google.monitoring.v3.ListMetricDescriptorsResponse) obj; + com.google.monitoring.v3.ListMetricDescriptorsResponse other = + (com.google.monitoring.v3.ListMetricDescriptorsResponse) obj; - if (!getMetricDescriptorsList() - .equals(other.getMetricDescriptorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMetricDescriptorsList().equals(other.getMetricDescriptorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,131 +271,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMetricDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListMetricDescriptorsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListMetricDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListMetricDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMetricDescriptorsResponse) com.google.monitoring.v3.ListMetricDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMetricDescriptorsResponse.class, com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMetricDescriptorsResponse.class, + com.google.monitoring.v3.ListMetricDescriptorsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListMetricDescriptorsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; } @java.lang.Override @@ -401,14 +438,18 @@ public com.google.monitoring.v3.ListMetricDescriptorsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListMetricDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListMetricDescriptorsResponse result = new com.google.monitoring.v3.ListMetricDescriptorsResponse(this); + com.google.monitoring.v3.ListMetricDescriptorsResponse result = + new com.google.monitoring.v3.ListMetricDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListMetricDescriptorsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListMetricDescriptorsResponse result) { if (metricDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metricDescriptors_ = java.util.Collections.unmodifiableList(metricDescriptors_); @@ -431,38 +472,39 @@ private void buildPartial0(com.google.monitoring.v3.ListMetricDescriptorsRespons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMetricDescriptorsResponse) { - return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListMetricDescriptorsResponse) other); } else { super.mergeFrom(other); return this; @@ -470,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsResponse other) { - if (other == com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance()) + return this; if (metricDescriptorsBuilder_ == null) { if (!other.metricDescriptors_.isEmpty()) { if (metricDescriptors_.isEmpty()) { @@ -489,9 +532,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsResponse metricDescriptorsBuilder_ = null; metricDescriptors_ = other.metricDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - metricDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricDescriptorsFieldBuilder() : null; + metricDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricDescriptorsFieldBuilder() + : null; } else { metricDescriptorsBuilder_.addAllMessages(other.metricDescriptors_); } @@ -528,30 +572,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.MetricDescriptor m = - input.readMessage( - com.google.api.MetricDescriptor.parser(), - extensionRegistry); - if (metricDescriptorsBuilder_ == null) { - ensureMetricDescriptorsIsMutable(); - metricDescriptors_.add(m); - } else { - metricDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.MetricDescriptor m = + input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry); + if (metricDescriptorsBuilder_ == null) { + ensureMetricDescriptorsIsMutable(); + metricDescriptors_.add(m); + } else { + metricDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,21 +606,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List metricDescriptors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - metricDescriptors_ = new java.util.ArrayList(metricDescriptors_); + metricDescriptors_ = + new java.util.ArrayList(metricDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorsBuilder_; + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> + metricDescriptorsBuilder_; /** + * + * *
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -591,6 +644,8 @@ public java.util.List getMetricDescriptorsList(
       }
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -606,6 +661,8 @@ public int getMetricDescriptorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -621,6 +678,8 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -628,8 +687,7 @@ public com.google.api.MetricDescriptor getMetricDescriptors(int index) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder setMetricDescriptors(
-        int index, com.google.api.MetricDescriptor value) {
+    public Builder setMetricDescriptors(int index, com.google.api.MetricDescriptor value) {
       if (metricDescriptorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -643,6 +701,8 @@ public Builder setMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -662,6 +722,8 @@ public Builder setMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -683,6 +745,8 @@ public Builder addMetricDescriptors(com.google.api.MetricDescriptor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -690,8 +754,7 @@ public Builder addMetricDescriptors(com.google.api.MetricDescriptor value) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder addMetricDescriptors(
-        int index, com.google.api.MetricDescriptor value) {
+    public Builder addMetricDescriptors(int index, com.google.api.MetricDescriptor value) {
       if (metricDescriptorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -705,6 +768,8 @@ public Builder addMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -712,8 +777,7 @@ public Builder addMetricDescriptors(
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public Builder addMetricDescriptors(
-        com.google.api.MetricDescriptor.Builder builderForValue) {
+    public Builder addMetricDescriptors(com.google.api.MetricDescriptor.Builder builderForValue) {
       if (metricDescriptorsBuilder_ == null) {
         ensureMetricDescriptorsIsMutable();
         metricDescriptors_.add(builderForValue.build());
@@ -724,6 +788,8 @@ public Builder addMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -743,6 +809,8 @@ public Builder addMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -754,8 +822,7 @@ public Builder addAllMetricDescriptors(
         java.lang.Iterable values) {
       if (metricDescriptorsBuilder_ == null) {
         ensureMetricDescriptorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, metricDescriptors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricDescriptors_);
         onChanged();
       } else {
         metricDescriptorsBuilder_.addAllMessages(values);
@@ -763,6 +830,8 @@ public Builder addAllMetricDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -781,6 +850,8 @@ public Builder clearMetricDescriptors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -799,6 +870,8 @@ public Builder removeMetricDescriptors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -806,11 +879,12 @@ public Builder removeMetricDescriptors(int index) {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(
-        int index) {
+    public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(int index) {
       return getMetricDescriptorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -818,14 +892,16 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorsBuilder(
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
-        int index) {
+    public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index) {
       if (metricDescriptorsBuilder_ == null) {
-        return metricDescriptors_.get(index);  } else {
+        return metricDescriptors_.get(index);
+      } else {
         return metricDescriptorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -833,8 +909,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public java.util.List 
-         getMetricDescriptorsOrBuilderList() {
+    public java.util.List
+        getMetricDescriptorsOrBuilderList() {
       if (metricDescriptorsBuilder_ != null) {
         return metricDescriptorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -842,6 +918,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -850,10 +928,12 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
     public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder() {
-      return getMetricDescriptorsFieldBuilder().addBuilder(
-          com.google.api.MetricDescriptor.getDefaultInstance());
+      return getMetricDescriptorsFieldBuilder()
+          .addBuilder(com.google.api.MetricDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -861,12 +941,13 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder() {
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(
-        int index) {
-      return getMetricDescriptorsFieldBuilder().addBuilder(
-          index, com.google.api.MetricDescriptor.getDefaultInstance());
+    public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(int index) {
+      return getMetricDescriptorsFieldBuilder()
+          .addBuilder(index, com.google.api.MetricDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The metric descriptors that are available to the project
      * and that match the value of `filter`, if present.
@@ -874,16 +955,22 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(
      *
      * repeated .google.api.MetricDescriptor metric_descriptors = 1;
      */
-    public java.util.List 
-         getMetricDescriptorsBuilderList() {
+    public java.util.List
+        getMetricDescriptorsBuilderList() {
       return getMetricDescriptorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> 
+            com.google.api.MetricDescriptor,
+            com.google.api.MetricDescriptor.Builder,
+            com.google.api.MetricDescriptorOrBuilder>
         getMetricDescriptorsFieldBuilder() {
       if (metricDescriptorsBuilder_ == null) {
-        metricDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>(
+        metricDescriptorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.MetricDescriptor,
+                com.google.api.MetricDescriptor.Builder,
+                com.google.api.MetricDescriptorOrBuilder>(
                 metricDescriptors_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -895,6 +982,8 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -902,13 +991,13 @@ public com.google.api.MetricDescriptor.Builder addMetricDescriptorsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -917,6 +1006,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -924,15 +1015,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -940,6 +1030,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -947,18 +1039,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -966,6 +1062,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -975,6 +1072,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -982,21 +1081,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1006,12 +1107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMetricDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) private static final com.google.monitoring.v3.ListMetricDescriptorsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMetricDescriptorsResponse(); } @@ -1020,27 +1121,27 @@ public static com.google.monitoring.v3.ListMetricDescriptorsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMetricDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetricDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1156,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.ListMetricDescriptorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java index 9572d805a413..dccf2129e7db 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMetricDescriptorsResponseOrBuilder extends +public interface ListMetricDescriptorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMetricDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -15,9 +33,10 @@ public interface ListMetricDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  java.util.List 
-      getMetricDescriptorsList();
+  java.util.List getMetricDescriptorsList();
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -27,6 +46,8 @@ public interface ListMetricDescriptorsResponseOrBuilder extends
    */
   com.google.api.MetricDescriptor getMetricDescriptors(int index);
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -36,6 +57,8 @@ public interface ListMetricDescriptorsResponseOrBuilder extends
    */
   int getMetricDescriptorsCount();
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -43,9 +66,11 @@ public interface ListMetricDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  java.util.List 
+  java.util.List
       getMetricDescriptorsOrBuilderList();
   /**
+   *
+   *
    * 
    * The metric descriptors that are available to the project
    * and that match the value of `filter`, if present.
@@ -53,10 +78,11 @@ public interface ListMetricDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MetricDescriptor metric_descriptors = 1;
    */
-  com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
-      int index);
+  com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -64,10 +90,13 @@ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -75,8 +104,8 @@ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java index e47ee20ab84d..6c374332fc8a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListMonitoredResourceDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsRequest} */ -public final class ListMonitoredResourceDescriptorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMonitoredResourceDescriptorsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) ListMonitoredResourceDescriptorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsRequest.newBuilder() to construct. - private ListMonitoredResourceDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMonitoredResourceDescriptorsRequest() { name_ = ""; filter_ = ""; @@ -27,28 +47,32 @@ private ListMonitoredResourceDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -56,7 +80,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +92,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -80,17 +108,18 @@ public java.lang.String getName() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,9 +128,12 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -112,6 +144,7 @@ public java.lang.String getName() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -120,14 +153,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -138,16 +172,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -158,11 +191,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -171,9 +207,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -181,6 +220,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -189,14 +229,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -204,16 +245,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -222,6 +262,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +274,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -260,8 +300,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -277,21 +316,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other = (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other = + (com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,131 +353,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListMonitoredResourceDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,13 +495,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest + getDefaultInstanceForType() { return com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance(); } @@ -475,13 +517,17 @@ public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest build() @java.lang.Override public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result = + new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result) { + private void buildPartial0( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -501,46 +547,50 @@ private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescrip public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) { - return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other) { - if (other == com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest other) { + if (other + == com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -585,32 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -620,10 +675,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -631,14 +689,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -647,6 +707,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -654,16 +716,17 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -671,6 +734,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -678,19 +743,25 @@ public java.lang.String getName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -698,7 +769,10 @@ public Builder setName(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -708,6 +782,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -715,13 +791,17 @@ public Builder clearName() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -731,6 +811,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -741,13 +823,13 @@ public Builder setNameBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -756,6 +838,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -766,15 +850,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -782,6 +865,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -792,18 +877,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -814,6 +903,7 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -823,6 +913,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
      * describing the descriptors to be returned.  The filter can reference the
@@ -833,12 +925,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -846,13 +940,16 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -860,11 +957,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -876,11 +976,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of results to return.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -892,6 +995,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -899,13 +1004,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -914,6 +1019,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -921,15 +1028,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -937,6 +1043,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -944,18 +1052,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -963,6 +1075,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -972,6 +1085,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -979,21 +1094,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,41 +1120,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) - private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest(); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstance() { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,9 +1168,8 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java index 6bb1aa226e7b..b50e61f81634 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends +public interface ListMonitoredResourceDescriptorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -15,11 +33,16 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -27,13 +50,17 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -44,10 +71,13 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An optional [filter](https://cloud.google.com/monitoring/api/v3/filters)
    * describing the descriptors to be returned.  The filter can reference the
@@ -58,22 +88,27 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A positive number that is the maximum number of results to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -81,10 +116,13 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -92,8 +130,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java index 33b83dc607af..88853a6c71d9 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListMonitoredResourceDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} */ -public final class ListMonitoredResourceDescriptorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMonitoredResourceDescriptorsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) ListMonitoredResourceDescriptorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsResponse.newBuilder() to construct. - private ListMonitoredResourceDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMonitoredResourceDescriptorsResponse() { resourceDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +46,32 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); } public static final int RESOURCE_DESCRIPTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List resourceDescriptors_; /** + * + * *
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -60,6 +84,8 @@ public java.util.List getResourceDes
     return resourceDescriptors_;
   }
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -68,11 +94,13 @@ public java.util.List getResourceDes
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResourceDescriptorsOrBuilderList() {
     return resourceDescriptors_;
   }
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -85,6 +113,8 @@ public int getResourceDescriptorsCount() {
     return resourceDescriptors_.size();
   }
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -97,6 +127,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind
     return resourceDescriptors_.get(index);
   }
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -111,9 +143,12 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -121,6 +156,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,14 +165,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -144,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -162,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -191,8 +227,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resourceDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resourceDescriptors_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +241,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other = (com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) obj; + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other = + (com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) obj; - if (!getResourceDescriptorsList() - .equals(other.getResourceDescriptorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResourceDescriptorsList().equals(other.getResourceDescriptorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,131 +274,138 @@ public int hashCode() { } public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListMonitoredResourceDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.Builder.class); } - // Construct using com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,13 +422,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + getDefaultInstanceForType() { return com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance(); } @@ -401,14 +444,18 @@ public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse build() @java.lang.Override public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(this); + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result = + new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -420,7 +467,8 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.ListMonitoredRe } } - private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartial0( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -431,46 +479,50 @@ private void buildPartial0(com.google.monitoring.v3.ListMonitoredResourceDescrip public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) { - return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other) { - if (other == com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse other) { + if (other + == com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) + return this; if (resourceDescriptorsBuilder_ == null) { if (!other.resourceDescriptors_.isEmpty()) { if (resourceDescriptors_.isEmpty()) { @@ -489,9 +541,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListMonitoredResourceDescripto resourceDescriptorsBuilder_ = null; resourceDescriptors_ = other.resourceDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - resourceDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceDescriptorsFieldBuilder() : null; + resourceDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceDescriptorsFieldBuilder() + : null; } else { resourceDescriptorsBuilder_.addAllMessages(other.resourceDescriptors_); } @@ -528,30 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.MonitoredResourceDescriptor m = - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), - extensionRegistry); - if (resourceDescriptorsBuilder_ == null) { - ensureResourceDescriptorsIsMutable(); - resourceDescriptors_.add(m); - } else { - resourceDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.MonitoredResourceDescriptor m = + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry); + if (resourceDescriptorsBuilder_ == null) { + ensureResourceDescriptorsIsMutable(); + resourceDescriptors_.add(m); + } else { + resourceDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,21 +616,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List resourceDescriptors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourceDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = new java.util.ArrayList(resourceDescriptors_); + resourceDescriptors_ = + new java.util.ArrayList( + resourceDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> resourceDescriptorsBuilder_; + com.google.api.MonitoredResourceDescriptor, + com.google.api.MonitoredResourceDescriptor.Builder, + com.google.api.MonitoredResourceDescriptorOrBuilder> + resourceDescriptorsBuilder_; /** + * + * *
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -591,6 +655,8 @@ public java.util.List getResourceDes
       }
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -606,6 +672,8 @@ public int getResourceDescriptorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -621,6 +689,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -643,6 +713,8 @@ public Builder setResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -662,6 +734,8 @@ public Builder setResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -683,6 +757,8 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -705,6 +781,8 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -724,6 +802,8 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -743,6 +823,8 @@ public Builder addResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -754,8 +836,7 @@ public Builder addAllResourceDescriptors(
         java.lang.Iterable values) {
       if (resourceDescriptorsBuilder_ == null) {
         ensureResourceDescriptorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, resourceDescriptors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDescriptors_);
         onChanged();
       } else {
         resourceDescriptorsBuilder_.addAllMessages(values);
@@ -763,6 +844,8 @@ public Builder addAllResourceDescriptors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -781,6 +864,8 @@ public Builder clearResourceDescriptors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -799,6 +884,8 @@ public Builder removeResourceDescriptors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -811,6 +898,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors
       return getResourceDescriptorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -821,11 +910,14 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors
     public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(
         int index) {
       if (resourceDescriptorsBuilder_ == null) {
-        return resourceDescriptors_.get(index);  } else {
+        return resourceDescriptors_.get(index);
+      } else {
         return resourceDescriptorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -833,8 +925,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
      *
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
-    public java.util.List 
-         getResourceDescriptorsOrBuilderList() {
+    public java.util.List
+        getResourceDescriptorsOrBuilderList() {
       if (resourceDescriptorsBuilder_ != null) {
         return resourceDescriptorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -842,6 +934,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
       }
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -850,10 +944,12 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder() {
-      return getResourceDescriptorsFieldBuilder().addBuilder(
-          com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getResourceDescriptorsFieldBuilder()
+          .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -863,10 +959,12 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      */
     public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder(
         int index) {
-      return getResourceDescriptorsFieldBuilder().addBuilder(
-          index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
+      return getResourceDescriptorsFieldBuilder()
+          .addBuilder(index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The monitored resource descriptors that are available to this project
      * and that match `filter`, if present.
@@ -874,16 +972,22 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      *
      * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
      */
-    public java.util.List 
-         getResourceDescriptorsBuilderList() {
+    public java.util.List
+        getResourceDescriptorsBuilderList() {
       return getResourceDescriptorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> 
+            com.google.api.MonitoredResourceDescriptor,
+            com.google.api.MonitoredResourceDescriptor.Builder,
+            com.google.api.MonitoredResourceDescriptorOrBuilder>
         getResourceDescriptorsFieldBuilder() {
       if (resourceDescriptorsBuilder_ == null) {
-        resourceDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>(
+        resourceDescriptorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.MonitoredResourceDescriptor,
+                com.google.api.MonitoredResourceDescriptor.Builder,
+                com.google.api.MonitoredResourceDescriptorOrBuilder>(
                 resourceDescriptors_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -895,6 +999,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -902,13 +1008,13 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -917,6 +1023,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -924,15 +1032,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -940,6 +1047,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -947,18 +1056,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -966,6 +1079,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -975,6 +1089,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -982,21 +1098,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1006,41 +1124,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) - private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse(); } - public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstance() { + public static com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1172,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { + public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java index 09db6c9522d6..9d222b02412e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends +public interface ListMonitoredResourceDescriptorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -15,9 +33,10 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  java.util.List 
-      getResourceDescriptorsList();
+  java.util.List getResourceDescriptorsList();
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -27,6 +46,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends
    */
   com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index);
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -36,6 +57,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends
    */
   int getResourceDescriptorsCount();
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -43,9 +66,11 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  java.util.List 
+  java.util.List
       getResourceDescriptorsOrBuilderList();
   /**
+   *
+   *
    * 
    * The monitored resource descriptors that are available to this project
    * and that match `filter`, if present.
@@ -53,10 +78,11 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends
    *
    * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1;
    */
-  com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(
-      int index);
+  com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -64,10 +90,13 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuil
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -75,8 +104,8 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuil
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java index be08fe044917..752d76a55d9e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListNotificationChannelDescriptors` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsRequest} */ -public final class ListNotificationChannelDescriptorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationChannelDescriptorsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) ListNotificationChannelDescriptorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationChannelDescriptorsRequest.newBuilder() to construct. - private ListNotificationChannelDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelDescriptorsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationChannelDescriptorsRequest() { name_ = ""; pageToken_ = ""; @@ -26,28 +46,32 @@ private ListNotificationChannelDescriptorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationChannelDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -62,7 +86,10 @@ protected java.lang.Object newInstance(
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -71,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -93,17 +121,18 @@ public java.lang.String getName() {
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -114,6 +143,8 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -121,6 +152,7 @@ public java.lang.String getName() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -129,9 +161,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -139,6 +174,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -147,14 +183,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -162,16 +199,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -180,6 +216,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -212,8 +248,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -229,19 +264,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other = (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) obj; + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other = + (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,131 +298,138 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListNotificationChannelDescriptors` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) com.google.monitoring.v3.ListNotificationChannelDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.Builder.class); } - // Construct using com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,14 +441,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstanceForType() { - return com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance(); + public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + getDefaultInstanceForType() { + return com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + .getDefaultInstance(); } @java.lang.Override @@ -422,13 +464,17 @@ public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest build( @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest buildPartial() { - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result = new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result = + new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result) { + private void buildPartial0( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -445,46 +491,51 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest)other); + return mergeFrom( + (com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other) { - if (other == com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest other) { + if (other + == com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -524,27 +575,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,10 +609,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -572,14 +630,16 @@ public Builder mergeFrom(
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -588,6 +648,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -602,16 +664,17 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -619,6 +682,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -633,19 +698,25 @@ public java.lang.String getName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -660,7 +731,10 @@ public Builder setName(
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -670,6 +744,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The REST resource name of the parent from which to retrieve
      * the notification channel descriptors. The expected syntax is:
@@ -684,13 +760,17 @@ public Builder clearName() {
      * operation, instead.
      * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -698,8 +778,10 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -707,6 +789,7 @@ public Builder setNameBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +797,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -721,6 +806,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -732,6 +818,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -739,6 +827,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -750,6 +839,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -757,13 +848,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -772,6 +863,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -779,15 +872,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -795,6 +887,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -802,18 +896,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -821,6 +919,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -830,6 +929,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -837,21 +938,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,41 +964,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) - private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest(); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstance() { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -907,9 +1014,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java index b9ac99139f1d..bbaf967876fc 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelDescriptorsRequestOrBuilder extends +public interface ListNotificationChannelDescriptorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -22,11 +40,16 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder extends
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The REST resource name of the parent from which to retrieve
    * the notification channel descriptors. The expected syntax is:
@@ -41,13 +64,17 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder extends
    * operation, instead.
    * 
* - * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -55,11 +82,14 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -67,10 +97,13 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -78,8 +111,8 @@ public interface ListNotificationChannelDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java index 94f86bb82f20..ee0c3be344fd 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListNotificationChannelDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsResponse} */ -public final class ListNotificationChannelDescriptorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationChannelDescriptorsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) ListNotificationChannelDescriptorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationChannelDescriptorsResponse.newBuilder() to construct. - private ListNotificationChannelDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelDescriptorsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationChannelDescriptorsResponse() { channelDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,94 +46,116 @@ private ListNotificationChannelDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationChannelDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); } public static final int CHANNEL_DESCRIPTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List channelDescriptors_; + private java.util.List + channelDescriptors_; /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ @java.lang.Override - public java.util.List getChannelDescriptorsList() { + public java.util.List + getChannelDescriptorsList() { return channelDescriptors_; } /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getChannelDescriptorsOrBuilderList() { return channelDescriptors_; } /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ @java.lang.Override public int getChannelDescriptorsCount() { return channelDescriptors_.size(); } /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index) { return channelDescriptors_.get(index); } /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ @java.lang.Override - public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( - int index) { + public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder + getChannelDescriptorsOrBuilder(int index) { return channelDescriptors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -122,6 +164,7 @@ public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChanne
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -130,14 +173,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -146,16 +190,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -164,6 +207,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < channelDescriptors_.size(); i++) { output.writeMessage(1, channelDescriptors_.get(i)); } @@ -193,8 +236,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < channelDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, channelDescriptors_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, channelDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -207,17 +250,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other = (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) obj; + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other = + (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) obj; - if (!getChannelDescriptorsList() - .equals(other.getChannelDescriptorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getChannelDescriptorsList().equals(other.getChannelDescriptorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +283,138 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListNotificationChannelDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelDescriptorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) com.google.monitoring.v3.ListNotificationChannelDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.Builder.class); } - // Construct using com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,14 +431,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstanceForType() { - return com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance(); + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + getDefaultInstanceForType() { + return com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + .getDefaultInstance(); } @java.lang.Override @@ -403,14 +454,18 @@ public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse build @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse buildPartial() { - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result = new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(this); + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result = + new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { if (channelDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { channelDescriptors_ = java.util.Collections.unmodifiableList(channelDescriptors_); @@ -422,7 +477,8 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.ListNotificatio } } - private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { + private void buildPartial0( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -433,46 +489,51 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelDescr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse)other); + return mergeFrom( + (com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other) { - if (other == com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse other) { + if (other + == com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + .getDefaultInstance()) return this; if (channelDescriptorsBuilder_ == null) { if (!other.channelDescriptors_.isEmpty()) { if (channelDescriptors_.isEmpty()) { @@ -491,9 +552,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelDescrip channelDescriptorsBuilder_ = null; channelDescriptors_ = other.channelDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - channelDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelDescriptorsFieldBuilder() : null; + channelDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelDescriptorsFieldBuilder() + : null; } else { channelDescriptorsBuilder_.addAllMessages(other.channelDescriptors_); } @@ -530,30 +592,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.NotificationChannelDescriptor m = - input.readMessage( - com.google.monitoring.v3.NotificationChannelDescriptor.parser(), - extensionRegistry); - if (channelDescriptorsBuilder_ == null) { - ensureChannelDescriptorsIsMutable(); - channelDescriptors_.add(m); - } else { - channelDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.NotificationChannelDescriptor m = + input.readMessage( + com.google.monitoring.v3.NotificationChannelDescriptor.parser(), + extensionRegistry); + if (channelDescriptorsBuilder_ == null) { + ensureChannelDescriptorsIsMutable(); + channelDescriptors_.add(m); + } else { + channelDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,29 +628,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List channelDescriptors_ = - java.util.Collections.emptyList(); + private java.util.List + channelDescriptors_ = java.util.Collections.emptyList(); + private void ensureChannelDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - channelDescriptors_ = new java.util.ArrayList(channelDescriptors_); + channelDescriptors_ = + new java.util.ArrayList( + channelDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> channelDescriptorsBuilder_; + com.google.monitoring.v3.NotificationChannelDescriptor, + com.google.monitoring.v3.NotificationChannelDescriptor.Builder, + com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> + channelDescriptorsBuilder_; /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public java.util.List getChannelDescriptorsList() { + public java.util.List + getChannelDescriptorsList() { if (channelDescriptorsBuilder_ == null) { return java.util.Collections.unmodifiableList(channelDescriptors_); } else { @@ -593,12 +669,15 @@ public java.util.List ge } } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public int getChannelDescriptorsCount() { if (channelDescriptorsBuilder_ == null) { @@ -608,12 +687,15 @@ public int getChannelDescriptorsCount() { } } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index) { if (channelDescriptorsBuilder_ == null) { @@ -623,12 +705,15 @@ public com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescript } } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder setChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor value) { @@ -645,12 +730,15 @@ public Builder setChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder setChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -664,14 +752,18 @@ public Builder setChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public Builder addChannelDescriptors(com.google.monitoring.v3.NotificationChannelDescriptor value) { + public Builder addChannelDescriptors( + com.google.monitoring.v3.NotificationChannelDescriptor value) { if (channelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -685,12 +777,15 @@ public Builder addChannelDescriptors(com.google.monitoring.v3.NotificationChanne return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder addChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor value) { @@ -707,12 +802,15 @@ public Builder addChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder addChannelDescriptors( com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -726,12 +824,15 @@ public Builder addChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder addChannelDescriptors( int index, com.google.monitoring.v3.NotificationChannelDescriptor.Builder builderForValue) { @@ -745,19 +846,22 @@ public Builder addChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder addAllChannelDescriptors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (channelDescriptorsBuilder_ == null) { ensureChannelDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channelDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channelDescriptors_); onChanged(); } else { channelDescriptorsBuilder_.addAllMessages(values); @@ -765,12 +869,15 @@ public Builder addAllChannelDescriptors( return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder clearChannelDescriptors() { if (channelDescriptorsBuilder_ == null) { @@ -783,12 +890,15 @@ public Builder clearChannelDescriptors() { return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ public Builder removeChannelDescriptors(int index) { if (channelDescriptorsBuilder_ == null) { @@ -801,42 +911,52 @@ public Builder removeChannelDescriptors(int index) { return this; } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder getChannelDescriptorsBuilder( - int index) { + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder + getChannelDescriptorsBuilder(int index) { return getChannelDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( - int index) { + public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder + getChannelDescriptorsOrBuilder(int index) { if (channelDescriptorsBuilder_ == null) { - return channelDescriptors_.get(index); } else { + return channelDescriptors_.get(index); + } else { return channelDescriptorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public java.util.List - getChannelDescriptorsOrBuilderList() { + public java.util.List + getChannelDescriptorsOrBuilderList() { if (channelDescriptorsBuilder_ != null) { return channelDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,48 +964,65 @@ public com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChanne } } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannelDescriptorsBuilder() { - return getChannelDescriptorsFieldBuilder().addBuilder( - com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder + addChannelDescriptorsBuilder() { + return getChannelDescriptorsFieldBuilder() + .addBuilder(com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannelDescriptorsBuilder( - int index) { - return getChannelDescriptorsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.NotificationChannelDescriptor.Builder + addChannelDescriptorsBuilder(int index) { + return getChannelDescriptorsFieldBuilder() + .addBuilder( + index, com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()); } /** + * + * *
      * The monitored resource descriptors supported for the specified
      * project, optionally filtered.
      * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - public java.util.List - getChannelDescriptorsBuilderList() { + public java.util.List + getChannelDescriptorsBuilderList() { return getChannelDescriptorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> + com.google.monitoring.v3.NotificationChannelDescriptor, + com.google.monitoring.v3.NotificationChannelDescriptor.Builder, + com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder> getChannelDescriptorsFieldBuilder() { if (channelDescriptorsBuilder_ == null) { - channelDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannelDescriptor, com.google.monitoring.v3.NotificationChannelDescriptor.Builder, com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder>( + channelDescriptorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.NotificationChannelDescriptor, + com.google.monitoring.v3.NotificationChannelDescriptor.Builder, + com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder>( channelDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -897,6 +1034,8 @@ public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannel private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -905,13 +1044,13 @@ public com.google.monitoring.v3.NotificationChannelDescriptor.Builder addChannel
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -920,6 +1059,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -928,15 +1069,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -944,6 +1084,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -952,18 +1094,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -972,6 +1118,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -981,6 +1128,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -989,21 +1138,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1013,41 +1164,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) - private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse(); } - public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstance() { + public static com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,9 +1214,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse getDefaultInstanceForType() { + public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java index b18dff7674ba..8cd5e6b6c9e5 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponseOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelDescriptorsResponseOrBuilder extends +public interface ListNotificationChannelDescriptorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - java.util.List + java.util.List getChannelDescriptorsList(); /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ com.google.monitoring.v3.NotificationChannelDescriptor getChannelDescriptors(int index); /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ int getChannelDescriptorsCount(); /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ - java.util.List + java.util.List getChannelDescriptorsOrBuilderList(); /** + * + * *
    * The monitored resource descriptors supported for the specified
    * project, optionally filtered.
    * 
* - * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1; + * */ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescriptorsOrBuilder( int index); /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -65,10 +98,13 @@ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescri
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -77,8 +113,8 @@ com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder getChannelDescri
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java index 3121f0999496..7076933bc734 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListNotificationChannels` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsRequest} */ -public final class ListNotificationChannelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationChannelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelsRequest) ListNotificationChannelsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationChannelsRequest.newBuilder() to construct. - private ListNotificationChannelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationChannelsRequest() { name_ = ""; filter_ = ""; @@ -28,28 +47,32 @@ private ListNotificationChannelsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationChannelsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsRequest.class, com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsRequest.class, + com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -65,7 +88,10 @@ protected java.lang.Object newInstance(
    * operation.
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -74,14 +100,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -97,17 +124,18 @@ public java.lang.String getName() {
    * operation.
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -116,9 +144,12 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -128,6 +159,7 @@ public java.lang.String getName() {
    * 
* * string filter = 6; + * * @return The filter. */ @java.lang.Override @@ -136,14 +168,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -153,16 +186,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 6; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -171,9 +203,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -184,6 +219,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 7; + * * @return The orderBy. */ @java.lang.Override @@ -192,14 +228,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -210,16 +247,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 7; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -230,6 +266,8 @@ public java.lang.String getOrderBy() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -237,6 +275,7 @@ public java.lang.String getOrderBy() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -245,9 +284,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -255,6 +297,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -263,14 +306,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -278,16 +322,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -296,6 +339,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,8 +351,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } @@ -334,8 +377,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -357,23 +399,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelsRequest other = (com.google.monitoring.v3.ListNotificationChannelsRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListNotificationChannelsRequest other = + (com.google.monitoring.v3.ListNotificationChannelsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,131 +439,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListNotificationChannelsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListNotificationChannelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListNotificationChannels` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelsRequest) com.google.monitoring.v3.ListNotificationChannelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsRequest.class, com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsRequest.class, + com.google.monitoring.v3.ListNotificationChannelsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListNotificationChannelsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +582,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsRequest_descriptor; } @java.lang.Override @@ -560,8 +603,11 @@ public com.google.monitoring.v3.ListNotificationChannelsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelsRequest buildPartial() { - com.google.monitoring.v3.ListNotificationChannelsRequest result = new com.google.monitoring.v3.ListNotificationChannelsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListNotificationChannelsRequest result = + new com.google.monitoring.v3.ListNotificationChannelsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -589,38 +635,39 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelsRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelsRequest) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsRequest) other); } else { super.mergeFrom(other); return this; @@ -628,7 +675,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsRequest other) { - if (other == com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -678,37 +726,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 50 - case 58: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 50 + case 58: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,10 +772,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -737,14 +794,16 @@ public Builder mergeFrom(
      * operation.
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -753,6 +812,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -768,16 +829,17 @@ public java.lang.String getName() {
      * operation.
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -785,6 +847,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -800,19 +864,25 @@ public java.lang.String getName() {
      * operation.
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -828,7 +898,10 @@ public Builder setName(
      * operation.
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -838,6 +911,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -853,13 +928,17 @@ public Builder clearName() {
      * operation.
      * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -869,6 +948,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -878,13 +959,13 @@ public Builder setNameBytes(
      * 
* * string filter = 6; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -893,6 +974,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -902,15 +985,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 6; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -918,6 +1000,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -927,18 +1011,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 6; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -948,6 +1036,7 @@ public Builder setFilter(
      * 
* * string filter = 6; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -957,6 +1046,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * notification channels to be included in the response.
@@ -966,12 +1057,14 @@ public Builder clearFilter() {
      * 
* * string filter = 6; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -981,6 +1074,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -991,13 +1086,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 7; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1006,6 +1101,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1016,15 +1113,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 7; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1032,6 +1128,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1042,18 +1140,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 7; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1064,6 +1166,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 7; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1073,6 +1176,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * A comma-separated list of fields by which to sort the result. Supports
      * the same set of fields as in `filter`. Entries can be prefixed with
@@ -1083,12 +1188,14 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 7; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1096,8 +1203,10 @@ public Builder setOrderByBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1105,6 +1214,7 @@ public Builder setOrderByBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -1112,6 +1222,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1119,6 +1231,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1130,6 +1243,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of results to return in a single response. If
      * not set to a positive number, a reasonable value will be chosen by the
@@ -1137,6 +1252,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1148,6 +1264,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1155,13 +1273,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1170,6 +1288,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1177,15 +1297,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1193,6 +1312,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1200,18 +1321,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1219,6 +1344,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1228,6 +1354,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If non-empty, `page_token` must contain a value returned as the
      * `next_page_token` in a previous response to request the next set
@@ -1235,21 +1363,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1389,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) private static final com.google.monitoring.v3.ListNotificationChannelsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelsRequest(); } @@ -1273,27 +1403,27 @@ public static com.google.monitoring.v3.ListNotificationChannelsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,6 +1438,4 @@ public com.google.protobuf.Parser getParserForT public com.google.monitoring.v3.ListNotificationChannelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java index 93e92683ee2c..ad10255a7695 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelsRequestOrBuilder extends +public interface ListNotificationChannelsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -23,11 +41,16 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * operation.
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
@@ -43,13 +66,17 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * operation.
    * 
* - * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -59,10 +86,13 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string filter = 6; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * notification channels to be included in the response.
@@ -72,12 +102,14 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string filter = 6; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -88,10 +120,13 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string order_by = 7; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * A comma-separated list of fields by which to sort the result. Supports
    * the same set of fields as in `filter`. Entries can be prefixed with
@@ -102,12 +137,14 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string order_by = 7; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * The maximum number of results to return in a single response. If
    * not set to a positive number, a reasonable value will be chosen by the
@@ -115,11 +152,14 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -127,10 +167,13 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If non-empty, `page_token` must contain a value returned as the
    * `next_page_token` in a previous response to request the next set
@@ -138,8 +181,8 @@ public interface ListNotificationChannelsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java index 661bffa174b4..05d1a6224539 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListNotificationChannels` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsResponse} */ -public final class ListNotificationChannelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationChannelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListNotificationChannelsResponse) ListNotificationChannelsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationChannelsResponse.newBuilder() to construct. - private ListNotificationChannelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationChannelsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationChannelsResponse() { notificationChannels_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +45,32 @@ private ListNotificationChannelsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationChannelsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsResponse.class, com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsResponse.class, + com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); } public static final int NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List notificationChannels_; /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -55,10 +78,13 @@ protected java.lang.Object newInstance( * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ @java.lang.Override - public java.util.List getNotificationChannelsList() { + public java.util.List + getNotificationChannelsList() { return notificationChannels_; } /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -66,11 +92,13 @@ public java.util.List getNotificat * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationChannelsOrBuilderList() { return notificationChannels_; } /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -82,6 +110,8 @@ public int getNotificationChannelsCount() { return notificationChannels_.size(); } /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -93,6 +123,8 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannels(int return notificationChannels_.get(index); } /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -106,9 +138,12 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -117,6 +152,7 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +161,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -141,16 +178,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,12 +197,15 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** + * + * *
    * The total number of notification channels in all pages. This number is only
    * an estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -175,6 +214,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +226,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -210,12 +249,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < notificationChannels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, notificationChannels_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, notificationChannels_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,19 +263,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListNotificationChannelsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListNotificationChannelsResponse other = (com.google.monitoring.v3.ListNotificationChannelsResponse) obj; - - if (!getNotificationChannelsList() - .equals(other.getNotificationChannelsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + com.google.monitoring.v3.ListNotificationChannelsResponse other = + (com.google.monitoring.v3.ListNotificationChannelsResponse) obj; + + if (!getNotificationChannelsList().equals(other.getNotificationChannelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,131 +299,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListNotificationChannelsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListNotificationChannelsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListNotificationChannelsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListNotificationChannelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListNotificationChannels` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListNotificationChannelsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListNotificationChannelsResponse) com.google.monitoring.v3.ListNotificationChannelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListNotificationChannelsResponse.class, com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); + com.google.monitoring.v3.ListNotificationChannelsResponse.class, + com.google.monitoring.v3.ListNotificationChannelsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListNotificationChannelsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_ListNotificationChannelsResponse_descriptor; } @java.lang.Override @@ -426,14 +467,18 @@ public com.google.monitoring.v3.ListNotificationChannelsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListNotificationChannelsResponse buildPartial() { - com.google.monitoring.v3.ListNotificationChannelsResponse result = new com.google.monitoring.v3.ListNotificationChannelsResponse(this); + com.google.monitoring.v3.ListNotificationChannelsResponse result = + new com.google.monitoring.v3.ListNotificationChannelsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListNotificationChannelsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListNotificationChannelsResponse result) { if (notificationChannelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notificationChannels_ = java.util.Collections.unmodifiableList(notificationChannels_); @@ -459,38 +504,39 @@ private void buildPartial0(com.google.monitoring.v3.ListNotificationChannelsResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListNotificationChannelsResponse) { - return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListNotificationChannelsResponse) other); } else { super.mergeFrom(other); return this; @@ -498,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsResponse other) { - if (other == com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance()) + return this; if (notificationChannelsBuilder_ == null) { if (!other.notificationChannels_.isEmpty()) { if (notificationChannels_.isEmpty()) { @@ -517,9 +564,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListNotificationChannelsRespon notificationChannelsBuilder_ = null; notificationChannels_ = other.notificationChannels_; bitField0_ = (bitField0_ & ~0x00000001); - notificationChannelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationChannelsFieldBuilder() : null; + notificationChannelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNotificationChannelsFieldBuilder() + : null; } else { notificationChannelsBuilder_.addAllMessages(other.notificationChannels_); } @@ -559,35 +607,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.monitoring.v3.NotificationChannel m = - input.readMessage( - com.google.monitoring.v3.NotificationChannel.parser(), - extensionRegistry); - if (notificationChannelsBuilder_ == null) { - ensureNotificationChannelsIsMutable(); - notificationChannels_.add(m); - } else { - notificationChannelsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.monitoring.v3.NotificationChannel m = + input.readMessage( + com.google.monitoring.v3.NotificationChannel.parser(), extensionRegistry); + if (notificationChannelsBuilder_ == null) { + ensureNotificationChannelsIsMutable(); + notificationChannels_.add(m); + } else { + notificationChannelsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,28 +648,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List notificationChannels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNotificationChannelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationChannels_ = new java.util.ArrayList(notificationChannels_); + notificationChannels_ = + new java.util.ArrayList( + notificationChannels_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelsBuilder_; + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> + notificationChannelsBuilder_; /** + * + * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List getNotificationChannelsList() { + public java.util.List + getNotificationChannelsList() { if (notificationChannelsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationChannels_); } else { @@ -626,6 +687,8 @@ public java.util.List getNotificat } } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -640,6 +703,8 @@ public int getNotificationChannelsCount() { } } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -654,6 +719,8 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannels(int } } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -675,6 +742,8 @@ public Builder setNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -693,6 +762,8 @@ public Builder setNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -713,6 +784,8 @@ public Builder addNotificationChannels(com.google.monitoring.v3.NotificationChan return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -734,6 +807,8 @@ public Builder addNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -752,6 +827,8 @@ public Builder addNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -770,6 +847,8 @@ public Builder addNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -780,8 +859,7 @@ public Builder addAllNotificationChannels( java.lang.Iterable values) { if (notificationChannelsBuilder_ == null) { ensureNotificationChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationChannels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannels_); onChanged(); } else { notificationChannelsBuilder_.addAllMessages(values); @@ -789,6 +867,8 @@ public Builder addAllNotificationChannels( return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -806,6 +886,8 @@ public Builder clearNotificationChannels() { return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -823,6 +905,8 @@ public Builder removeNotificationChannels(int index) { return this; } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -834,6 +918,8 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelsFieldBuilder().getBuilder(index); } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -843,19 +929,22 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder( int index) { if (notificationChannelsBuilder_ == null) { - return notificationChannels_.get(index); } else { + return notificationChannels_.get(index); + } else { return notificationChannelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List - getNotificationChannelsOrBuilderList() { + public java.util.List + getNotificationChannelsOrBuilderList() { if (notificationChannelsBuilder_ != null) { return notificationChannelsBuilder_.getMessageOrBuilderList(); } else { @@ -863,6 +952,8 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan } } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -870,10 +961,12 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder() { - return getNotificationChannelsFieldBuilder().addBuilder( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); + return getNotificationChannelsFieldBuilder() + .addBuilder(com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /** + * + * *
      * The notification channels defined for the specified project.
      * 
@@ -882,26 +975,34 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder( int index) { - return getNotificationChannelsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); + return getNotificationChannelsFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /** + * + * *
      * The notification channels defined for the specified project.
      * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - public java.util.List - getNotificationChannelsBuilderList() { + public java.util.List + getNotificationChannelsBuilderList() { return getNotificationChannelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelsFieldBuilder() { if (notificationChannelsBuilder_ == null) { - notificationChannelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( + notificationChannelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder>( notificationChannels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -913,6 +1014,8 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -921,13 +1024,13 @@ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChann
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -936,6 +1039,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -944,15 +1049,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -960,6 +1064,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -968,18 +1074,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -988,6 +1098,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -997,6 +1108,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more results that match
      * the request. Use the value in the `page_token` field in a
@@ -1005,12 +1118,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1018,14 +1133,17 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1033,12 +1151,15 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1050,12 +1171,15 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * The total number of notification channels in all pages. This number is only
      * an estimate, and may change in subsequent pages. https://aip.dev/158
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1064,9 +1188,9 @@ public Builder clearTotalSize() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListNotificationChannelsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) private static final com.google.monitoring.v3.ListNotificationChannelsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListNotificationChannelsResponse(); } @@ -1090,27 +1214,27 @@ public static com.google.monitoring.v3.ListNotificationChannelsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationChannelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationChannelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1249,4 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.ListNotificationChannelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java index 273b5d371f12..ce894ac50bf1 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface ListNotificationChannelsResponseOrBuilder extends +public interface ListNotificationChannelsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListNotificationChannelsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - java.util.List - getNotificationChannelsList(); + java.util.List getNotificationChannelsList(); /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -25,6 +44,8 @@ public interface ListNotificationChannelsResponseOrBuilder extends */ com.google.monitoring.v3.NotificationChannel getNotificationChannels(int index); /** + * + * *
    * The notification channels defined for the specified project.
    * 
@@ -33,25 +54,30 @@ public interface ListNotificationChannelsResponseOrBuilder extends */ int getNotificationChannelsCount(); /** + * + * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - java.util.List + java.util.List getNotificationChannelsOrBuilderList(); /** + * + * *
    * The notification channels defined for the specified project.
    * 
* * repeated .google.monitoring.v3.NotificationChannel notification_channels = 3; */ - com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder( - int index); + com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -60,10 +86,13 @@ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more results that match
    * the request. Use the value in the `page_token` field in a
@@ -72,18 +101,21 @@ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelsOrB
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of notification channels in all pages. This number is only
    * an estimate, and may change in subsequent pages. https://aip.dev/158
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java index f487d74f5bd6..38ce326631cc 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListServiceLevelObjectives` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesRequest} */ -public final class ListServiceLevelObjectivesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServiceLevelObjectivesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServiceLevelObjectivesRequest) ListServiceLevelObjectivesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServiceLevelObjectivesRequest.newBuilder() to construct. - private ListServiceLevelObjectivesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListServiceLevelObjectivesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServiceLevelObjectivesRequest() { parent_ = ""; filter_ = ""; @@ -28,28 +47,32 @@ private ListServiceLevelObjectivesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServiceLevelObjectivesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -58,7 +81,10 @@ protected java.lang.Object newInstance(
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,14 +93,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -83,17 +110,18 @@ public java.lang.String getParent() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -102,14 +130,18 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -118,29 +150,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -151,12 +183,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -165,9 +200,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -175,6 +213,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -183,14 +222,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -198,16 +238,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -218,6 +257,8 @@ public java.lang.String getPageToken() { public static final int VIEW_FIELD_NUMBER = 5; private int view_ = 0; /** + * + * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -226,12 +267,16 @@ public java.lang.String getPageToken() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -240,14 +285,20 @@ public java.lang.String getPageToken() {
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The view. */ - @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.ServiceLevelObjective.View getView() { + com.google.monitoring.v3.ServiceLevelObjective.View result = + com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,15 +342,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (view_ != com.google.monitoring.v3.ServiceLevelObjective.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,21 +358,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServiceLevelObjectivesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListServiceLevelObjectivesRequest other = (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListServiceLevelObjectivesRequest other = + (com.google.monitoring.v3.ListServiceLevelObjectivesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -353,131 +398,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListServiceLevelObjectivesRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListServiceLevelObjectives` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServiceLevelObjectivesRequest) com.google.monitoring.v3.ListServiceLevelObjectivesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, + com.google.monitoring.v3.ListServiceLevelObjectivesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListServiceLevelObjectivesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +541,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; } @java.lang.Override @@ -512,8 +562,11 @@ public com.google.monitoring.v3.ListServiceLevelObjectivesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListServiceLevelObjectivesRequest buildPartial() { - com.google.monitoring.v3.ListServiceLevelObjectivesRequest result = new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListServiceLevelObjectivesRequest result = + new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -541,38 +594,39 @@ private void buildPartial0(com.google.monitoring.v3.ListServiceLevelObjectivesRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServiceLevelObjectivesRequest) { - return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesRequest)other); + return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesRequest) other); } else { super.mergeFrom(other); return this; @@ -580,7 +634,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesRequest other) { - if (other == com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -628,37 +683,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - view_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -668,10 +729,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -680,14 +744,16 @@ public Builder mergeFrom(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -696,6 +762,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -704,16 +772,17 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -721,6 +790,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -729,19 +800,25 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -750,7 +827,10 @@ public Builder setParent(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -760,6 +840,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Resource name of the parent containing the listed SLOs, either a
      * project or a Monitoring Workspace. The formats are:
@@ -768,13 +850,17 @@ public Builder clearParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -784,18 +870,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -804,20 +892,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -825,28 +914,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -856,17 +952,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter specifying what `ServiceLevelObjective`s to return.
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -874,14 +974,17 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -889,12 +992,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -906,12 +1012,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -923,6 +1032,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -930,13 +1041,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -945,6 +1056,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -952,15 +1065,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -968,6 +1080,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -975,18 +1089,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -994,6 +1112,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1003,6 +1122,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1010,12 +1131,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; @@ -1025,6 +1148,8 @@ public Builder setPageTokenBytes( private int view_ = 0; /** + * + * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1033,12 +1158,16 @@ public Builder setPageTokenBytes(
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1047,6 +1176,7 @@ public Builder setPageTokenBytes(
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1057,6 +1187,8 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1065,14 +1197,20 @@ public Builder setViewValue(int value) {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective.View getView() { - com.google.monitoring.v3.ServiceLevelObjective.View result = com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); - return result == null ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED : result; + com.google.monitoring.v3.ServiceLevelObjective.View result = + com.google.monitoring.v3.ServiceLevelObjective.View.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ServiceLevelObjective.View.UNRECOGNIZED + : result; } /** + * + * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1081,6 +1219,7 @@ public com.google.monitoring.v3.ServiceLevelObjective.View getView() {
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @param value The view to set. * @return This builder for chaining. */ @@ -1094,6 +1233,8 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value return this; } /** + * + * *
      * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
      * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -1102,6 +1243,7 @@ public Builder setView(com.google.monitoring.v3.ServiceLevelObjective.View value
      * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return This builder for chaining. */ public Builder clearView() { @@ -1110,9 +1252,9 @@ public Builder clearView() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1122,12 +1264,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServiceLevelObjectivesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesRequest) private static final com.google.monitoring.v3.ListServiceLevelObjectivesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServiceLevelObjectivesRequest(); } @@ -1136,27 +1278,27 @@ public static com.google.monitoring.v3.ListServiceLevelObjectivesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceLevelObjectivesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServiceLevelObjectivesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1171,6 +1313,4 @@ public com.google.protobuf.Parser getParserFo public com.google.monitoring.v3.ListServiceLevelObjectivesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java index e52d370dbe44..e63d45af24e8 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServiceLevelObjectivesRequestOrBuilder extends +public interface ListServiceLevelObjectivesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServiceLevelObjectivesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -16,11 +34,16 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent containing the listed SLOs, either a
    * project or a Monitoring Workspace. The formats are:
@@ -29,44 +52,56 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter specifying what `ServiceLevelObjective`s to return.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -74,10 +109,13 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -85,12 +123,14 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -99,10 +139,13 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * View of the `ServiceLevelObjective`s to return. If `DEFAULT`, return each
    * `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -111,6 +154,7 @@ public interface ListServiceLevelObjectivesRequestOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelObjective.View view = 5; + * * @return The view. */ com.google.monitoring.v3.ServiceLevelObjective.View getView(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java index a10225eaf010..5568cc3f7d5e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListServiceLevelObjectives` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesResponse} */ -public final class ListServiceLevelObjectivesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServiceLevelObjectivesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServiceLevelObjectivesResponse) ListServiceLevelObjectivesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServiceLevelObjectivesResponse.newBuilder() to construct. - private ListServiceLevelObjectivesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListServiceLevelObjectivesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServiceLevelObjectivesResponse() { serviceLevelObjectives_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +45,32 @@ private ListServiceLevelObjectivesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServiceLevelObjectivesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); } public static final int SERVICE_LEVEL_OBJECTIVES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List serviceLevelObjectives_; /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -55,10 +78,13 @@ protected java.lang.Object newInstance( * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ @java.lang.Override - public java.util.List getServiceLevelObjectivesList() { + public java.util.List + getServiceLevelObjectivesList() { return serviceLevelObjectives_; } /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -66,11 +92,13 @@ public java.util.List getService * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServiceLevelObjectivesOrBuilderList() { return serviceLevelObjectives_; } /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -82,6 +110,8 @@ public int getServiceLevelObjectivesCount() { return serviceLevelObjectives_.size(); } /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -93,6 +123,8 @@ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives( return serviceLevelObjectives_.get(index); } /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -106,9 +138,12 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -116,6 +151,7 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -139,16 +176,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < serviceLevelObjectives_.size(); i++) { output.writeMessage(1, serviceLevelObjectives_.get(i)); } @@ -186,8 +222,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < serviceLevelObjectives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, serviceLevelObjectives_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, serviceLevelObjectives_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServiceLevelObjectivesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListServiceLevelObjectivesResponse other = (com.google.monitoring.v3.ListServiceLevelObjectivesResponse) obj; + com.google.monitoring.v3.ListServiceLevelObjectivesResponse other = + (com.google.monitoring.v3.ListServiceLevelObjectivesResponse) obj; - if (!getServiceLevelObjectivesList() - .equals(other.getServiceLevelObjectivesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getServiceLevelObjectivesList().equals(other.getServiceLevelObjectivesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +271,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListServiceLevelObjectivesResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListServiceLevelObjectivesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListServiceLevelObjectives` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServiceLevelObjectivesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServiceLevelObjectivesResponse) com.google.monitoring.v3.ListServiceLevelObjectivesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, + com.google.monitoring.v3.ListServiceLevelObjectivesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListServiceLevelObjectivesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; } @java.lang.Override @@ -396,14 +438,18 @@ public com.google.monitoring.v3.ListServiceLevelObjectivesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListServiceLevelObjectivesResponse buildPartial() { - com.google.monitoring.v3.ListServiceLevelObjectivesResponse result = new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(this); + com.google.monitoring.v3.ListServiceLevelObjectivesResponse result = + new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListServiceLevelObjectivesResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListServiceLevelObjectivesResponse result) { if (serviceLevelObjectivesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { serviceLevelObjectives_ = java.util.Collections.unmodifiableList(serviceLevelObjectives_); @@ -426,38 +472,39 @@ private void buildPartial0(com.google.monitoring.v3.ListServiceLevelObjectivesRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServiceLevelObjectivesResponse) { - return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesResponse)other); + return mergeFrom((com.google.monitoring.v3.ListServiceLevelObjectivesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesResponse other) { - if (other == com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance()) + return this; if (serviceLevelObjectivesBuilder_ == null) { if (!other.serviceLevelObjectives_.isEmpty()) { if (serviceLevelObjectives_.isEmpty()) { @@ -484,9 +532,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListServiceLevelObjectivesResp serviceLevelObjectivesBuilder_ = null; serviceLevelObjectives_ = other.serviceLevelObjectives_; bitField0_ = (bitField0_ & ~0x00000001); - serviceLevelObjectivesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServiceLevelObjectivesFieldBuilder() : null; + serviceLevelObjectivesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServiceLevelObjectivesFieldBuilder() + : null; } else { serviceLevelObjectivesBuilder_.addAllMessages(other.serviceLevelObjectives_); } @@ -523,30 +572,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.ServiceLevelObjective m = - input.readMessage( - com.google.monitoring.v3.ServiceLevelObjective.parser(), - extensionRegistry); - if (serviceLevelObjectivesBuilder_ == null) { - ensureServiceLevelObjectivesIsMutable(); - serviceLevelObjectives_.add(m); - } else { - serviceLevelObjectivesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.ServiceLevelObjective m = + input.readMessage( + com.google.monitoring.v3.ServiceLevelObjective.parser(), extensionRegistry); + if (serviceLevelObjectivesBuilder_ == null) { + ensureServiceLevelObjectivesIsMutable(); + serviceLevelObjectives_.add(m); + } else { + serviceLevelObjectivesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,28 +607,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List serviceLevelObjectives_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServiceLevelObjectivesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serviceLevelObjectives_ = new java.util.ArrayList(serviceLevelObjectives_); + serviceLevelObjectives_ = + new java.util.ArrayList( + serviceLevelObjectives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectivesBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + serviceLevelObjectivesBuilder_; /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ - public java.util.List getServiceLevelObjectivesList() { + public java.util.List + getServiceLevelObjectivesList() { if (serviceLevelObjectivesBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceLevelObjectives_); } else { @@ -585,11 +647,14 @@ public java.util.List getService } } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public int getServiceLevelObjectivesCount() { if (serviceLevelObjectivesBuilder_ == null) { @@ -599,11 +664,14 @@ public int getServiceLevelObjectivesCount() { } } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives(int index) { if (serviceLevelObjectivesBuilder_ == null) { @@ -613,11 +681,14 @@ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives( } } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder setServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective value) { @@ -634,11 +705,14 @@ public Builder setServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder setServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -652,11 +726,14 @@ public Builder setServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder addServiceLevelObjectives(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectivesBuilder_ == null) { @@ -672,11 +749,14 @@ public Builder addServiceLevelObjectives(com.google.monitoring.v3.ServiceLevelOb return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder addServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective value) { @@ -693,11 +773,14 @@ public Builder addServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder addServiceLevelObjectives( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -711,11 +794,14 @@ public Builder addServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder addServiceLevelObjectives( int index, com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -729,18 +815,20 @@ public Builder addServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder addAllServiceLevelObjectives( java.lang.Iterable values) { if (serviceLevelObjectivesBuilder_ == null) { ensureServiceLevelObjectivesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceLevelObjectives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceLevelObjectives_); onChanged(); } else { serviceLevelObjectivesBuilder_.addAllMessages(values); @@ -748,11 +836,14 @@ public Builder addAllServiceLevelObjectives( return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder clearServiceLevelObjectives() { if (serviceLevelObjectivesBuilder_ == null) { @@ -765,11 +856,14 @@ public Builder clearServiceLevelObjectives() { return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public Builder removeServiceLevelObjectives(int index) { if (serviceLevelObjectivesBuilder_ == null) { @@ -782,39 +876,49 @@ public Builder removeServiceLevelObjectives(int index) { return this; } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectivesBuilder( int index) { return getServiceLevelObjectivesFieldBuilder().getBuilder(index); } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectivesOrBuilder( - int index) { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder + getServiceLevelObjectivesOrBuilder(int index) { if (serviceLevelObjectivesBuilder_ == null) { - return serviceLevelObjectives_.get(index); } else { + return serviceLevelObjectives_.get(index); + } else { return serviceLevelObjectivesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ - public java.util.List - getServiceLevelObjectivesOrBuilderList() { + public java.util.List + getServiceLevelObjectivesOrBuilderList() { if (serviceLevelObjectivesBuilder_ != null) { return serviceLevelObjectivesBuilder_.getMessageOrBuilderList(); } else { @@ -822,45 +926,61 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb } } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObjectivesBuilder() { - return getServiceLevelObjectivesFieldBuilder().addBuilder( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); + public com.google.monitoring.v3.ServiceLevelObjective.Builder + addServiceLevelObjectivesBuilder() { + return getServiceLevelObjectivesFieldBuilder() + .addBuilder(com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObjectivesBuilder( int index) { - return getServiceLevelObjectivesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); + return getServiceLevelObjectivesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()); } /** + * + * *
      * The `ServiceLevelObjective`s matching the specified filter.
      * 
* - * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; + * */ - public java.util.List - getServiceLevelObjectivesBuilderList() { + public java.util.List + getServiceLevelObjectivesBuilderList() { return getServiceLevelObjectivesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectivesFieldBuilder() { if (serviceLevelObjectivesBuilder_ == null) { - serviceLevelObjectivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + serviceLevelObjectivesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( serviceLevelObjectives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -872,6 +992,8 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObj private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -879,13 +1001,13 @@ public com.google.monitoring.v3.ServiceLevelObjective.Builder addServiceLevelObj
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +1016,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -901,15 +1025,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1040,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -924,18 +1049,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -943,6 +1072,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1082,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -959,21 +1091,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1117,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServiceLevelObjectivesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServiceLevelObjectivesResponse) private static final com.google.monitoring.v3.ListServiceLevelObjectivesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServiceLevelObjectivesResponse(); } @@ -997,27 +1131,27 @@ public static com.google.monitoring.v3.ListServiceLevelObjectivesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceLevelObjectivesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServiceLevelObjectivesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1166,4 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.ListServiceLevelObjectivesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java index 8e3b46098492..d458abd95f95 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServiceLevelObjectivesResponseOrBuilder extends +public interface ListServiceLevelObjectivesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServiceLevelObjectivesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - java.util.List - getServiceLevelObjectivesList(); + java.util.List getServiceLevelObjectivesList(); /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -25,6 +44,8 @@ public interface ListServiceLevelObjectivesResponseOrBuilder extends */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjectives(int index); /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -33,15 +54,19 @@ public interface ListServiceLevelObjectivesResponseOrBuilder extends */ int getServiceLevelObjectivesCount(); /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.ServiceLevelObjective service_level_objectives = 1; */ - java.util.List + java.util.List getServiceLevelObjectivesOrBuilderList(); /** + * + * *
    * The `ServiceLevelObjective`s matching the specified filter.
    * 
@@ -52,6 +77,8 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective int index); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -59,10 +86,13 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -70,8 +100,8 @@ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjective
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java index 263bad4be21f..5b242d097b72 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListServices` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServicesRequest} */ -public final class ListServicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServicesRequest) ListServicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesRequest() { parent_ = ""; filter_ = ""; @@ -27,28 +45,32 @@ private ListServicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesRequest.class, com.google.monitoring.v3.ListServicesRequest.Builder.class); + com.google.monitoring.v3.ListServicesRequest.class, + com.google.monitoring.v3.ListServicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -84,17 +110,18 @@ public java.lang.String getParent() {
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -103,9 +130,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -129,6 +159,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -137,14 +168,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -168,16 +200,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -188,12 +219,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -202,9 +236,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -212,6 +249,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -220,14 +258,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -235,16 +274,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -253,6 +291,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +303,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,8 +332,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -308,21 +345,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServicesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListServicesRequest other = (com.google.monitoring.v3.ListServicesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListServicesRequest other = + (com.google.monitoring.v3.ListServicesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,132 +381,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListServicesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListServicesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListServicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListServices` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServicesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServicesRequest) com.google.monitoring.v3.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesRequest.class, com.google.monitoring.v3.ListServicesRequest.Builder.class); + com.google.monitoring.v3.ListServicesRequest.class, + com.google.monitoring.v3.ListServicesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListServicesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +523,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesRequest_descriptor; } @java.lang.Override @@ -506,8 +544,11 @@ public com.google.monitoring.v3.ListServicesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListServicesRequest buildPartial() { - com.google.monitoring.v3.ListServicesRequest result = new com.google.monitoring.v3.ListServicesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListServicesRequest result = + new com.google.monitoring.v3.ListServicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -532,38 +573,39 @@ private void buildPartial0(com.google.monitoring.v3.ListServicesRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServicesRequest) { - return mergeFrom((com.google.monitoring.v3.ListServicesRequest)other); + return mergeFrom((com.google.monitoring.v3.ListServicesRequest) other); } else { super.mergeFrom(other); return this; @@ -616,32 +658,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,10 +698,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -664,14 +714,16 @@ public Builder mergeFrom(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -680,6 +732,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -689,16 +743,17 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -706,6 +761,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -715,19 +772,25 @@ public java.lang.String getParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -737,7 +800,10 @@ public Builder setParent(
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -747,6 +813,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Resource name of the parent containing the listed services, either a
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -756,13 +824,17 @@ public Builder clearParent() {
      *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -772,6 +844,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -795,13 +869,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -810,6 +884,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -833,15 +909,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -849,6 +924,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -872,18 +949,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -907,6 +988,7 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -916,6 +998,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter specifying what `Service`s to return. The filter currently
      * supports the following fields:
@@ -939,12 +1023,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -952,14 +1038,17 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -967,12 +1056,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -984,12 +1076,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A non-negative number that is the maximum number of results to return.
      * When 0, use default page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1001,6 +1096,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1008,13 +1105,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1023,6 +1120,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1030,15 +1129,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1046,6 +1144,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1053,18 +1153,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1072,6 +1176,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1081,6 +1186,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -1088,21 +1195,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1221,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesRequest) private static final com.google.monitoring.v3.ListServicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServicesRequest(); } @@ -1126,27 +1235,27 @@ public static com.google.monitoring.v3.ListServicesRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,6 +1270,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java index 0c19e4782b3b..e9fde051fc24 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServicesRequestOrBuilder extends +public interface ListServicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -17,11 +35,16 @@ public interface ListServicesRequestOrBuilder extends
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent containing the listed services, either a
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
@@ -31,13 +54,17 @@ public interface ListServicesRequestOrBuilder extends
    *     workspaces/[HOST_PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -61,10 +88,13 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter specifying what `Service`s to return. The filter currently
    * supports the following fields:
@@ -88,23 +118,28 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A non-negative number that is the maximum number of results to return.
    * When 0, use default page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -112,10 +147,13 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -123,8 +161,8 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java index db1e2ba4ab5d..33e74211ed6c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListServices` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListServicesResponse} */ -public final class ListServicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListServicesResponse) ListServicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesResponse.class, com.google.monitoring.v3.ListServicesResponse.Builder.class); + com.google.monitoring.v3.ListServicesResponse.class, + com.google.monitoring.v3.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List services_; /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -59,6 +81,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -66,11 +90,13 @@ public java.util.List getServicesList() { * repeated .google.monitoring.v3.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -82,6 +108,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -93,6 +121,8 @@ public com.google.monitoring.v3.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -100,15 +130,17 @@ public com.google.monitoring.v3.Service getServices(int index) { * repeated .google.monitoring.v3.Service services = 1; */ @java.lang.Override - public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -116,6 +148,7 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListServicesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListServicesResponse other = (com.google.monitoring.v3.ListServicesResponse) obj; + com.google.monitoring.v3.ListServicesResponse other = + (com.google.monitoring.v3.ListServicesResponse) obj; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,132 +264,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListServicesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListServicesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListServicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListServicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListServices` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListServicesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListServicesResponse) com.google.monitoring.v3.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListServicesResponse.class, com.google.monitoring.v3.ListServicesResponse.Builder.class); + com.google.monitoring.v3.ListServicesResponse.class, + com.google.monitoring.v3.ListServicesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListServicesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_ListServicesResponse_descriptor; } @java.lang.Override @@ -396,9 +431,12 @@ public com.google.monitoring.v3.ListServicesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListServicesResponse buildPartial() { - com.google.monitoring.v3.ListServicesResponse result = new com.google.monitoring.v3.ListServicesResponse(this); + com.google.monitoring.v3.ListServicesResponse result = + new com.google.monitoring.v3.ListServicesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +464,39 @@ private void buildPartial0(com.google.monitoring.v3.ListServicesResponse result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListServicesResponse) { - return mergeFrom((com.google.monitoring.v3.ListServicesResponse)other); + return mergeFrom((com.google.monitoring.v3.ListServicesResponse) other); } else { super.mergeFrom(other); return this; @@ -484,9 +523,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListServicesResponse other) { servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServicesFieldBuilder() + : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -523,30 +563,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.Service m = - input.readMessage( - com.google.monitoring.v3.Service.parser(), - extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.Service m = + input.readMessage(com.google.monitoring.v3.Service.parser(), extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +597,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> servicesBuilder_; + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> + servicesBuilder_; /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -585,6 +633,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -599,6 +649,8 @@ public int getServicesCount() { } } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -613,14 +665,15 @@ public com.google.monitoring.v3.Service getServices(int index) { } } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder setServices( - int index, com.google.monitoring.v3.Service value) { + public Builder setServices(int index, com.google.monitoring.v3.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +687,8 @@ public Builder setServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -652,6 +707,8 @@ public Builder setServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -672,14 +729,15 @@ public Builder addServices(com.google.monitoring.v3.Service value) { return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder addServices( - int index, com.google.monitoring.v3.Service value) { + public Builder addServices(int index, com.google.monitoring.v3.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +751,15 @@ public Builder addServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public Builder addServices( - com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder addServices(com.google.monitoring.v3.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -711,6 +770,8 @@ public Builder addServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -729,6 +790,8 @@ public Builder addServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -739,8 +802,7 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -748,6 +810,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -765,6 +829,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -782,39 +848,44 @@ public Builder removeServices(int index) { return this; } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.Service.Builder getServicesBuilder( - int index) { + public com.google.monitoring.v3.Service.Builder getServicesBuilder(int index) { return getServicesFieldBuilder().getBuilder(index); } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index) { if (servicesBuilder_ == null) { - return services_.get(index); } else { + return services_.get(index); + } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +893,8 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
@@ -829,42 +902,47 @@ public com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( * repeated .google.monitoring.v3.Service services = 1; */ public com.google.monitoring.v3.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - com.google.monitoring.v3.Service.getDefaultInstance()); + return getServicesFieldBuilder() + .addBuilder(com.google.monitoring.v3.Service.getDefaultInstance()); } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public com.google.monitoring.v3.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.Service.getDefaultInstance()); + public com.google.monitoring.v3.Service.Builder addServicesBuilder(int index) { + return getServicesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.Service.getDefaultInstance()); } /** + * + * *
      * The `Service`s matching the specified filter.
      * 
* * repeated .google.monitoring.v3.Service services = 1; */ - public java.util.List - getServicesBuilderList() { + public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + servicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder>( + services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); services_ = null; } return servicesBuilder_; @@ -872,6 +950,8 @@ public com.google.monitoring.v3.Service.Builder addServicesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -879,13 +959,13 @@ public com.google.monitoring.v3.Service.Builder addServicesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +974,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -901,15 +983,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +998,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -924,18 +1007,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -943,6 +1030,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1040,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -959,21 +1049,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListServicesResponse) private static final com.google.monitoring.v3.ListServicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListServicesResponse(); } @@ -997,27 +1089,27 @@ public static com.google.monitoring.v3.ListServicesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java index c5573ae93f28..4e0e57e634ad 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface ListServicesResponseOrBuilder extends +public interface ListServicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -25,6 +44,8 @@ public interface ListServicesResponseOrBuilder extends */ com.google.monitoring.v3.Service getServices(int index); /** + * + * *
    * The `Service`s matching the specified filter.
    * 
@@ -33,25 +54,29 @@ public interface ListServicesResponseOrBuilder extends */ int getServicesCount(); /** + * + * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - java.util.List - getServicesOrBuilderList(); + java.util.List getServicesOrBuilderList(); /** + * + * *
    * The `Service`s matching the specified filter.
    * 
* * repeated .google.monitoring.v3.Service services = 1; */ - com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder( - int index); + com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(int index); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -59,10 +84,13 @@ com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -70,8 +98,8 @@ com.google.monitoring.v3.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java index 3e23e3f90da9..fa700099591d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** + * + * *
  * The message definition for listing `Snooze`s associated with the given
  * `parent`, satisfying the optional `filter`.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.ListSnoozesRequest}
  */
-public final class ListSnoozesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSnoozesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListSnoozesRequest)
     ListSnoozesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSnoozesRequest.newBuilder() to construct.
   private ListSnoozesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSnoozesRequest() {
     parent_ = "";
     filter_ = "";
@@ -28,28 +46,32 @@ private ListSnoozesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSnoozesRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ListSnoozesRequest.class, com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
+            com.google.monitoring.v3.ListSnoozesRequest.class,
+            com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -83,17 +109,18 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -102,9 +129,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -121,6 +151,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -129,14 +160,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -153,16 +185,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -173,6 +204,8 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return for a single query. The
    * server may further constrain the maximum number of results returned in a
@@ -182,6 +215,7 @@ public java.lang.String getFilter() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -190,15 +224,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +245,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,6 +277,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -280,8 +318,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -294,21 +331,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListSnoozesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListSnoozesRequest other = (com.google.monitoring.v3.ListSnoozesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListSnoozesRequest other = + (com.google.monitoring.v3.ListSnoozesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,99 +367,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListSnoozesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListSnoozesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListSnoozesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The message definition for listing `Snooze`s associated with the given
    * `parent`, satisfying the optional `filter`.
@@ -433,33 +472,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.ListSnoozesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListSnoozesRequest)
       com.google.monitoring.v3.ListSnoozesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ListSnoozesRequest.class, com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
+              com.google.monitoring.v3.ListSnoozesRequest.class,
+              com.google.monitoring.v3.ListSnoozesRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ListSnoozesRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -472,9 +510,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -493,8 +531,11 @@ public com.google.monitoring.v3.ListSnoozesRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ListSnoozesRequest buildPartial() {
-      com.google.monitoring.v3.ListSnoozesRequest result = new com.google.monitoring.v3.ListSnoozesRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.ListSnoozesRequest result =
+          new com.google.monitoring.v3.ListSnoozesRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -519,38 +560,39 @@ private void buildPartial0(com.google.monitoring.v3.ListSnoozesRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ListSnoozesRequest) {
-        return mergeFrom((com.google.monitoring.v3.ListSnoozesRequest)other);
+        return mergeFrom((com.google.monitoring.v3.ListSnoozesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -603,32 +645,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -638,10 +685,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -650,14 +700,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -666,6 +718,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -674,16 +728,17 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -691,6 +746,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -699,19 +756,25 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -720,7 +783,10 @@ public Builder setParent(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -730,6 +796,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -738,13 +806,17 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -754,6 +826,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -770,13 +844,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -785,6 +859,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -801,15 +877,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -817,6 +892,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -833,18 +910,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -861,6 +942,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -870,6 +952,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Optional filter to restrict results to the given criteria. The
      * following fields are supported.
@@ -886,12 +970,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -899,8 +985,10 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -910,6 +998,7 @@ public Builder setFilterBytes(
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -917,6 +1006,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -926,6 +1017,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -937,6 +1029,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return for a single query. The
      * server may further constrain the maximum number of results returned in a
@@ -946,6 +1040,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -957,19 +1052,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -978,21 +1075,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1000,30 +1098,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1033,27 +1138,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The `next_page_token` from a previous call to
      * `ListSnoozesRequest` to get the next page of results.
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +1172,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListSnoozesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListSnoozesRequest) private static final com.google.monitoring.v3.ListSnoozesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListSnoozesRequest(); } @@ -1077,27 +1186,27 @@ public static com.google.monitoring.v3.ListSnoozesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnoozesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnoozesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1221,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListSnoozesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java index 384b6b1526e9..5b77047b3374 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface ListSnoozesRequestOrBuilder extends +public interface ListSnoozesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListSnoozesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -16,11 +34,16 @@ public interface ListSnoozesRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -29,13 +52,17 @@ public interface ListSnoozesRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -52,10 +79,13 @@ public interface ListSnoozesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Optional filter to restrict results to the given criteria. The
    * following fields are supported.
@@ -72,12 +102,14 @@ public interface ListSnoozesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The maximum number of results to return for a single query. The
    * server may further constrain the maximum number of results returned in a
@@ -87,29 +119,35 @@ public interface ListSnoozesRequestOrBuilder extends
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The `next_page_token` from a previous call to
    * `ListSnoozesRequest` to get the next page of results.
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java index e4f4ccd2e842..036a712b78f8 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** + * + * *
  * The results of a successful `ListSnoozes` call, containing the matching
  * `Snooze`s.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.ListSnoozesResponse}
  */
-public final class ListSnoozesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSnoozesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListSnoozesResponse)
     ListSnoozesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSnoozesResponse.newBuilder() to construct.
   private ListSnoozesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSnoozesResponse() {
     snoozes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,28 +45,32 @@ private ListSnoozesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSnoozesResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ListSnoozesResponse.class, com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
+            com.google.monitoring.v3.ListSnoozesResponse.class,
+            com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
   }
 
   public static final int SNOOZES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List snoozes_;
   /**
+   *
+   *
    * 
    * `Snooze`s matching this list call.
    * 
@@ -60,6 +82,8 @@ public java.util.List getSnoozesList() { return snoozes_; } /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -67,11 +91,13 @@ public java.util.List getSnoozesList() { * repeated .google.monitoring.v3.Snooze snoozes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnoozesOrBuilderList() { return snoozes_; } /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -83,6 +109,8 @@ public int getSnoozesCount() { return snoozes_.size(); } /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -94,6 +122,8 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { return snoozes_.get(index); } /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -101,21 +131,24 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { * repeated .google.monitoring.v3.Snooze snoozes = 1; */ @java.lang.Override - public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( - int index) { + public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { return snoozes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snoozes_.size(); i++) { output.writeMessage(1, snoozes_.get(i)); } @@ -185,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snoozes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, snoozes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snoozes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListSnoozesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListSnoozesResponse other = (com.google.monitoring.v3.ListSnoozesResponse) obj; + com.google.monitoring.v3.ListSnoozesResponse other = + (com.google.monitoring.v3.ListSnoozesResponse) obj; - if (!getSnoozesList() - .equals(other.getSnoozesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSnoozesList().equals(other.getSnoozesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,99 +263,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListSnoozesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListSnoozesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListSnoozesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The results of a successful `ListSnoozes` call, containing the matching
    * `Snooze`s.
@@ -332,33 +368,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.ListSnoozesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListSnoozesResponse)
       com.google.monitoring.v3.ListSnoozesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ListSnoozesResponse.class, com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
+              com.google.monitoring.v3.ListSnoozesResponse.class,
+              com.google.monitoring.v3.ListSnoozesResponse.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ListSnoozesResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -396,9 +431,12 @@ public com.google.monitoring.v3.ListSnoozesResponse build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ListSnoozesResponse buildPartial() {
-      com.google.monitoring.v3.ListSnoozesResponse result = new com.google.monitoring.v3.ListSnoozesResponse(this);
+      com.google.monitoring.v3.ListSnoozesResponse result =
+          new com.google.monitoring.v3.ListSnoozesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -426,38 +464,39 @@ private void buildPartial0(com.google.monitoring.v3.ListSnoozesResponse result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ListSnoozesResponse) {
-        return mergeFrom((com.google.monitoring.v3.ListSnoozesResponse)other);
+        return mergeFrom((com.google.monitoring.v3.ListSnoozesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -484,9 +523,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListSnoozesResponse other) {
             snoozesBuilder_ = null;
             snoozes_ = other.snoozes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            snoozesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSnoozesFieldBuilder() : null;
+            snoozesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSnoozesFieldBuilder()
+                    : null;
           } else {
             snoozesBuilder_.addAllMessages(other.snoozes_);
           }
@@ -523,30 +563,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.monitoring.v3.Snooze m =
-                  input.readMessage(
-                      com.google.monitoring.v3.Snooze.parser(),
-                      extensionRegistry);
-              if (snoozesBuilder_ == null) {
-                ensureSnoozesIsMutable();
-                snoozes_.add(m);
-              } else {
-                snoozesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.monitoring.v3.Snooze m =
+                    input.readMessage(com.google.monitoring.v3.Snooze.parser(), extensionRegistry);
+                if (snoozesBuilder_ == null) {
+                  ensureSnoozesIsMutable();
+                  snoozes_.add(m);
+                } else {
+                  snoozesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -556,21 +597,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List snoozes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSnoozesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         snoozes_ = new java.util.ArrayList(snoozes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozesBuilder_;
+            com.google.monitoring.v3.Snooze,
+            com.google.monitoring.v3.Snooze.Builder,
+            com.google.monitoring.v3.SnoozeOrBuilder>
+        snoozesBuilder_;
 
     /**
+     *
+     *
      * 
      * `Snooze`s matching this list call.
      * 
@@ -585,6 +633,8 @@ public java.util.List getSnoozesList() { } } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -599,6 +649,8 @@ public int getSnoozesCount() { } } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -613,14 +665,15 @@ public com.google.monitoring.v3.Snooze getSnoozes(int index) { } } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder setSnoozes( - int index, com.google.monitoring.v3.Snooze value) { + public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze value) { if (snoozesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,14 +687,15 @@ public Builder setSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder setSnoozes( - int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnoozes(int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.set(index, builderForValue.build()); @@ -652,6 +706,8 @@ public Builder setSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -672,14 +728,15 @@ public Builder addSnoozes(com.google.monitoring.v3.Snooze value) { return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes( - int index, com.google.monitoring.v3.Snooze value) { + public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze value) { if (snoozesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +750,15 @@ public Builder addSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes( - com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder addSnoozes(com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.add(builderForValue.build()); @@ -711,14 +769,15 @@ public Builder addSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public Builder addSnoozes( - int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder addSnoozes(int index, com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); snoozes_.add(index, builderForValue.build()); @@ -729,6 +788,8 @@ public Builder addSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -739,8 +800,7 @@ public Builder addAllSnoozes( java.lang.Iterable values) { if (snoozesBuilder_ == null) { ensureSnoozesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snoozes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snoozes_); onChanged(); } else { snoozesBuilder_.addAllMessages(values); @@ -748,6 +808,8 @@ public Builder addAllSnoozes( return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -765,6 +827,8 @@ public Builder clearSnoozes() { return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -782,39 +846,44 @@ public Builder removeSnoozes(int index) { return this; } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.Snooze.Builder getSnoozesBuilder( - int index) { + public com.google.monitoring.v3.Snooze.Builder getSnoozesBuilder(int index) { return getSnoozesFieldBuilder().getBuilder(index); } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( - int index) { + public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index) { if (snoozesBuilder_ == null) { - return snoozes_.get(index); } else { + return snoozes_.get(index); + } else { return snoozesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public java.util.List - getSnoozesOrBuilderList() { + public java.util.List + getSnoozesOrBuilderList() { if (snoozesBuilder_ != null) { return snoozesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +891,8 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( } } /** + * + * *
      * `Snooze`s matching this list call.
      * 
@@ -829,42 +900,47 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( * repeated .google.monitoring.v3.Snooze snoozes = 1; */ public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder() { - return getSnoozesFieldBuilder().addBuilder( - com.google.monitoring.v3.Snooze.getDefaultInstance()); + return getSnoozesFieldBuilder() + .addBuilder(com.google.monitoring.v3.Snooze.getDefaultInstance()); } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder( - int index) { - return getSnoozesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.Snooze.getDefaultInstance()); + public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder(int index) { + return getSnoozesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.Snooze.getDefaultInstance()); } /** + * + * *
      * `Snooze`s matching this list call.
      * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - public java.util.List - getSnoozesBuilderList() { + public java.util.List getSnoozesBuilderList() { return getSnoozesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder> getSnoozesFieldBuilder() { if (snoozesBuilder_ == null) { - snoozesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( - snoozes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + snoozesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder>( + snoozes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snoozes_ = null; } return snoozesBuilder_; @@ -872,19 +948,21 @@ public com.google.monitoring.v3.Snooze.Builder addSnoozesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -893,21 +971,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -915,30 +994,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -948,27 +1034,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
      * of results. If this is empty or missing, there are no more pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -978,12 +1068,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListSnoozesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListSnoozesResponse) private static final com.google.monitoring.v3.ListSnoozesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListSnoozesResponse(); } @@ -992,27 +1082,27 @@ public static com.google.monitoring.v3.ListSnoozesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnoozesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnoozesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1117,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListSnoozesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java index 6ba1453bfe73..b2f6ef49de07 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListSnoozesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface ListSnoozesResponseOrBuilder extends +public interface ListSnoozesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListSnoozesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - java.util.List - getSnoozesList(); + java.util.List getSnoozesList(); /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -25,6 +44,8 @@ public interface ListSnoozesResponseOrBuilder extends */ com.google.monitoring.v3.Snooze getSnoozes(int index); /** + * + * *
    * `Snooze`s matching this list call.
    * 
@@ -33,43 +54,50 @@ public interface ListSnoozesResponseOrBuilder extends */ int getSnoozesCount(); /** + * + * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - java.util.List - getSnoozesOrBuilderList(); + java.util.List getSnoozesOrBuilderList(); /** + * + * *
    * `Snooze`s matching this list call.
    * 
* * repeated .google.monitoring.v3.Snooze snoozes = 1; */ - com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder( - int index); + com.google.monitoring.v3.SnoozeOrBuilder getSnoozesOrBuilder(int index); /** + * + * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token for repeated calls to `ListSnoozes`, to fetch additional pages
    * of results. If this is empty or missing, there are no more pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java index d63aeaad73ca..e9928a46d78e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesRequest} */ -public final class ListTimeSeriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListTimeSeriesRequest) ListTimeSeriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTimeSeriesRequest.newBuilder() to construct. private ListTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTimeSeriesRequest() { name_ = ""; filter_ = ""; @@ -29,34 +47,38 @@ private ListTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesRequest.class, com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.ListTimeSeriesRequest.class, + com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); } /** + * + * *
    * Controls which fields are returned by `ListTimeSeries`.
    * 
* * Protobuf enum {@code google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView} */ - public enum TimeSeriesView - implements com.google.protobuf.ProtocolMessageEnum { + public enum TimeSeriesView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Returns the identity of the metric(s), the time series,
      * and the time series data.
@@ -66,6 +88,8 @@ public enum TimeSeriesView
      */
     FULL(0),
     /**
+     *
+     *
      * 
      * Returns the identity of the metric and the time series resource,
      * but not the time series data.
@@ -78,6 +102,8 @@ public enum TimeSeriesView
     ;
 
     /**
+     *
+     *
      * 
      * Returns the identity of the metric(s), the time series,
      * and the time series data.
@@ -87,6 +113,8 @@ public enum TimeSeriesView
      */
     public static final int FULL_VALUE = 0;
     /**
+     *
+     *
      * 
      * Returns the identity of the metric and the time series resource,
      * but not the time series data.
@@ -96,7 +124,6 @@ public enum TimeSeriesView
      */
     public static final int HEADERS_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -121,48 +148,47 @@ public static TimeSeriesView valueOf(int value) {
      */
     public static TimeSeriesView forNumber(int value) {
       switch (value) {
-        case 0: return FULL;
-        case 1: return HEADERS;
-        default: return null;
+        case 0:
+          return FULL;
+        case 1:
+          return HEADERS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        TimeSeriesView> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TimeSeriesView findValueByNumber(int number) {
-              return TimeSeriesView.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public TimeSeriesView findValueByNumber(int number) {
+            return TimeSeriesView.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.ListTimeSeriesRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final TimeSeriesView[] VALUES = values();
 
-    public static TimeSeriesView valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static TimeSeriesView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -180,9 +206,12 @@ private TimeSeriesView(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 10;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -192,7 +221,10 @@ private TimeSeriesView(int value) {
    *     folders/[FOLDER_ID]
    * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -201,14 +233,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -218,17 +251,18 @@ public java.lang.String getName() {
    *     folders/[FOLDER_ID]
    * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -237,9 +271,12 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -251,6 +288,7 @@ public java.lang.String getName() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -259,14 +297,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -278,16 +317,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -298,13 +336,18 @@ public java.lang.String getFilter() { public static final int INTERVAL_FIELD_NUMBER = 4; private com.google.monitoring.v3.TimeInterval interval_; /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ @java.lang.Override @@ -312,36 +355,51 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } public static final int AGGREGATION_FIELD_NUMBER = 5; private com.google.monitoring.v3.Aggregation aggregation_; /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -351,6 +409,7 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return Whether the aggregation field is set. */ @java.lang.Override @@ -358,6 +417,8 @@ public boolean hasAggregation() { return aggregation_ != null; } /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -367,13 +428,18 @@ public boolean hasAggregation() {
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return The aggregation. */ @java.lang.Override public com.google.monitoring.v3.Aggregation getAggregation() { - return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.v3.Aggregation.getDefaultInstance() + : aggregation_; } /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -386,18 +452,23 @@ public com.google.monitoring.v3.Aggregation getAggregation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
-    return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_;
+    return aggregation_ == null
+        ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
+        : aggregation_;
   }
 
   public static final int SECONDARY_AGGREGATION_FIELD_NUMBER = 11;
   private com.google.monitoring.v3.Aggregation secondaryAggregation_;
   /**
+   *
+   *
    * 
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return Whether the secondaryAggregation field is set. */ @java.lang.Override @@ -405,19 +476,26 @@ public boolean hasSecondaryAggregation() { return secondaryAggregation_ != null; } /** + * + * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return The secondaryAggregation. */ @java.lang.Override public com.google.monitoring.v3.Aggregation getSecondaryAggregation() { - return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.v3.Aggregation.getDefaultInstance() + : secondaryAggregation_; } /** + * + * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
@@ -427,19 +505,25 @@ public com.google.monitoring.v3.Aggregation getSecondaryAggregation() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBuilder() {
-    return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_;
+    return secondaryAggregation_ == null
+        ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
+        : secondaryAggregation_;
   }
 
   public static final int ORDER_BY_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object orderBy_ = "";
   /**
+   *
+   *
    * 
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; + * * @return The orderBy. */ @java.lang.Override @@ -448,30 +532,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -482,32 +566,49 @@ public java.lang.String getOrderBy() { public static final int VIEW_FIELD_NUMBER = 7; private int view_ = 0; /** + * + * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The view. */ - @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); - return result == null ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED + : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of results to return. If
    * `page_size` is empty or more than 100,000 results, the effective
@@ -517,6 +618,7 @@ public java.lang.String getOrderBy() {
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -525,9 +627,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -535,6 +640,7 @@ public int getPageSize() {
    * 
* * string page_token = 9; + * * @return The pageToken. */ @java.lang.Override @@ -543,14 +649,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -558,16 +665,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 9; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -576,6 +682,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -587,8 +694,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -629,23 +735,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); } if (aggregation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAggregation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); } if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, view_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); @@ -654,8 +756,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, name_); } if (secondaryAggregation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getSecondaryAggregation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSecondaryAggregation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -665,39 +767,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListTimeSeriesRequest other = (com.google.monitoring.v3.ListTimeSeriesRequest) obj; + com.google.monitoring.v3.ListTimeSeriesRequest other = + (com.google.monitoring.v3.ListTimeSeriesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } if (hasAggregation() != other.hasAggregation()) return false; if (hasAggregation()) { - if (!getAggregation() - .equals(other.getAggregation())) return false; + if (!getAggregation().equals(other.getAggregation())) return false; } if (hasSecondaryAggregation() != other.hasSecondaryAggregation()) return false; if (hasSecondaryAggregation()) { - if (!getSecondaryAggregation() - .equals(other.getSecondaryAggregation())) return false; + if (!getSecondaryAggregation().equals(other.getSecondaryAggregation())) return false; } - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (view_ != other.view_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -738,132 +833,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListTimeSeriesRequest) com.google.monitoring.v3.ListTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesRequest.class, com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.ListTimeSeriesRequest.class, + com.google.monitoring.v3.ListTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListTimeSeriesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -893,9 +992,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; } @java.lang.Override @@ -914,8 +1013,11 @@ public com.google.monitoring.v3.ListTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.ListTimeSeriesRequest result = new com.google.monitoring.v3.ListTimeSeriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListTimeSeriesRequest result = + new com.google.monitoring.v3.ListTimeSeriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -929,19 +1031,17 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesRequest result result.filter_ = filter_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.interval_ = intervalBuilder_ == null - ? interval_ - : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.aggregation_ = aggregationBuilder_ == null - ? aggregation_ - : aggregationBuilder_.build(); + result.aggregation_ = + aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.secondaryAggregation_ = secondaryAggregationBuilder_ == null - ? secondaryAggregation_ - : secondaryAggregationBuilder_.build(); + result.secondaryAggregation_ = + secondaryAggregationBuilder_ == null + ? secondaryAggregation_ + : secondaryAggregationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.orderBy_ = orderBy_; @@ -961,38 +1061,39 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.ListTimeSeriesRequest)other); + return mergeFrom((com.google.monitoring.v3.ListTimeSeriesRequest) other); } else { super.mergeFrom(other); return this; @@ -1062,63 +1163,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - input.readMessage( - getIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - input.readMessage( - getAggregationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - view_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 82 - case 90: { - input.readMessage( - getSecondaryAggregationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage(getAggregationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 82 + case 90: + { + input.readMessage( + getSecondaryAggregationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1128,10 +1234,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1141,14 +1250,16 @@ public Builder mergeFrom(
      *     folders/[FOLDER_ID]
      * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1157,6 +1268,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1166,16 +1279,17 @@ public java.lang.String getName() {
      *     folders/[FOLDER_ID]
      * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1183,6 +1297,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1192,19 +1308,25 @@ public java.lang.String getName() {
      *     folders/[FOLDER_ID]
      * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1214,7 +1336,10 @@ public Builder setName(
      *     folders/[FOLDER_ID]
      * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1224,6 +1349,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
      * organization or folder on which to execute the request. The format is:
@@ -1233,13 +1360,17 @@ public Builder clearName() {
      *     folders/[FOLDER_ID]
      * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1249,6 +1380,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1260,13 +1393,13 @@ public Builder setNameBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1275,6 +1408,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1286,15 +1421,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1302,6 +1436,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1313,18 +1449,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1336,6 +1476,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1345,6 +1486,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * that specifies which time series should be returned.  The filter must
@@ -1356,12 +1499,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1371,45 +1516,64 @@ public Builder setFilterBytes( private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { @@ -1425,16 +1589,19 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInterval( - com.google.monitoring.v3.TimeInterval.Builder builderForValue) { + public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); } else { @@ -1445,19 +1612,23 @@ public Builder setInterval( return this; } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - interval_ != null && - interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && interval_ != null + && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getIntervalBuilder().mergeFrom(value); } else { interval_ = value; @@ -1470,13 +1641,17 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInterval() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1489,13 +1664,17 @@ public Builder clearInterval() { return this; } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { bitField0_ |= 0x00000004; @@ -1503,40 +1682,52 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { return getIntervalFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { - return interval_ == null ? - com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } } /** + * + * *
      * Required. The time interval for which results should be returned. Only time series
      * that contain data points in the specified interval are included
      * in the response.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { - intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( - getInterval(), - getParentForChildren(), - isClean()); + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; @@ -1544,8 +1735,13 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { private com.google.monitoring.v3.Aggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> aggregationBuilder_; + com.google.monitoring.v3.Aggregation, + com.google.monitoring.v3.Aggregation.Builder, + com.google.monitoring.v3.AggregationOrBuilder> + aggregationBuilder_; /** + * + * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1555,12 +1751,15 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1570,16 +1769,21 @@ public boolean hasAggregation() {
      * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return The aggregation. */ public com.google.monitoring.v3.Aggregation getAggregation() { if (aggregationBuilder_ == null) { - return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; + return aggregation_ == null + ? com.google.monitoring.v3.Aggregation.getDefaultInstance() + : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** + * + * *
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1604,6 +1808,8 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1614,8 +1820,7 @@ public Builder setAggregation(com.google.monitoring.v3.Aggregation value) {
      *
      * .google.monitoring.v3.Aggregation aggregation = 5;
      */
-    public Builder setAggregation(
-        com.google.monitoring.v3.Aggregation.Builder builderForValue) {
+    public Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder builderForValue) {
       if (aggregationBuilder_ == null) {
         aggregation_ = builderForValue.build();
       } else {
@@ -1626,6 +1831,8 @@ public Builder setAggregation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1638,9 +1845,9 @@ public Builder setAggregation(
      */
     public Builder mergeAggregation(com.google.monitoring.v3.Aggregation value) {
       if (aggregationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          aggregation_ != null &&
-          aggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && aggregation_ != null
+            && aggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
           getAggregationBuilder().mergeFrom(value);
         } else {
           aggregation_ = value;
@@ -1653,6 +1860,8 @@ public Builder mergeAggregation(com.google.monitoring.v3.Aggregation value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1674,6 +1883,8 @@ public Builder clearAggregation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1690,6 +1901,8 @@ public com.google.monitoring.v3.Aggregation.Builder getAggregationBuilder() {
       return getAggregationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1704,11 +1917,14 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
       if (aggregationBuilder_ != null) {
         return aggregationBuilder_.getMessageOrBuilder();
       } else {
-        return aggregation_ == null ?
-            com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_;
+        return aggregation_ == null
+            ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
+            : aggregation_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the alignment of data points in individual time series as
      * well as how to combine the retrieved time series across specified labels.
@@ -1720,14 +1936,17 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
      * .google.monitoring.v3.Aggregation aggregation = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
+            com.google.monitoring.v3.Aggregation,
+            com.google.monitoring.v3.Aggregation.Builder,
+            com.google.monitoring.v3.AggregationOrBuilder>
         getAggregationFieldBuilder() {
       if (aggregationBuilder_ == null) {
-        aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
-                getAggregation(),
-                getParentForChildren(),
-                isClean());
+        aggregationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.Aggregation,
+                com.google.monitoring.v3.Aggregation.Builder,
+                com.google.monitoring.v3.AggregationOrBuilder>(
+                getAggregation(), getParentForChildren(), isClean());
         aggregation_ = null;
       }
       return aggregationBuilder_;
@@ -1735,36 +1954,49 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() {
 
     private com.google.monitoring.v3.Aggregation secondaryAggregation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> secondaryAggregationBuilder_;
+            com.google.monitoring.v3.Aggregation,
+            com.google.monitoring.v3.Aggregation.Builder,
+            com.google.monitoring.v3.AggregationOrBuilder>
+        secondaryAggregationBuilder_;
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
      * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return Whether the secondaryAggregation field is set. */ public boolean hasSecondaryAggregation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
      * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return The secondaryAggregation. */ public com.google.monitoring.v3.Aggregation getSecondaryAggregation() { if (secondaryAggregationBuilder_ == null) { - return secondaryAggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_; + return secondaryAggregation_ == null + ? com.google.monitoring.v3.Aggregation.getDefaultInstance() + : secondaryAggregation_; } else { return secondaryAggregationBuilder_.getMessage(); } } /** + * + * *
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1786,6 +2018,8 @@ public Builder setSecondaryAggregation(com.google.monitoring.v3.Aggregation valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1805,6 +2039,8 @@ public Builder setSecondaryAggregation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1814,9 +2050,9 @@ public Builder setSecondaryAggregation(
      */
     public Builder mergeSecondaryAggregation(com.google.monitoring.v3.Aggregation value) {
       if (secondaryAggregationBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          secondaryAggregation_ != null &&
-          secondaryAggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && secondaryAggregation_ != null
+            && secondaryAggregation_ != com.google.monitoring.v3.Aggregation.getDefaultInstance()) {
           getSecondaryAggregationBuilder().mergeFrom(value);
         } else {
           secondaryAggregation_ = value;
@@ -1829,6 +2065,8 @@ public Builder mergeSecondaryAggregation(com.google.monitoring.v3.Aggregation va
       return this;
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1847,6 +2085,8 @@ public Builder clearSecondaryAggregation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1860,6 +2100,8 @@ public com.google.monitoring.v3.Aggregation.Builder getSecondaryAggregationBuild
       return getSecondaryAggregationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1871,11 +2113,14 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
       if (secondaryAggregationBuilder_ != null) {
         return secondaryAggregationBuilder_.getMessageOrBuilder();
       } else {
-        return secondaryAggregation_ == null ?
-            com.google.monitoring.v3.Aggregation.getDefaultInstance() : secondaryAggregation_;
+        return secondaryAggregation_ == null
+            ? com.google.monitoring.v3.Aggregation.getDefaultInstance()
+            : secondaryAggregation_;
       }
     }
     /**
+     *
+     *
      * 
      * Apply a second aggregation after `aggregation` is applied. May only be
      * specified if `aggregation` is specified.
@@ -1884,14 +2129,17 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
      * .google.monitoring.v3.Aggregation secondary_aggregation = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder> 
+            com.google.monitoring.v3.Aggregation,
+            com.google.monitoring.v3.Aggregation.Builder,
+            com.google.monitoring.v3.AggregationOrBuilder>
         getSecondaryAggregationFieldBuilder() {
       if (secondaryAggregationBuilder_ == null) {
-        secondaryAggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Aggregation, com.google.monitoring.v3.Aggregation.Builder, com.google.monitoring.v3.AggregationOrBuilder>(
-                getSecondaryAggregation(),
-                getParentForChildren(),
-                isClean());
+        secondaryAggregationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.Aggregation,
+                com.google.monitoring.v3.Aggregation.Builder,
+                com.google.monitoring.v3.AggregationOrBuilder>(
+                getSecondaryAggregation(), getParentForChildren(), isClean());
         secondaryAggregation_ = null;
       }
       return secondaryAggregationBuilder_;
@@ -1899,19 +2147,21 @@ public com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBu
 
     private java.lang.Object orderBy_ = "";
     /**
+     *
+     *
      * 
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1920,21 +2170,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1942,30 +2193,37 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1975,18 +2233,22 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Unsupported: must be left blank. The points in each time series are
      * currently returned in reverse time order (most recent to oldest).
      * 
* * string order_by = 6; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000020; @@ -1996,22 +2258,33 @@ public Builder setOrderByBytes( private int view_ = 0; /** + * + * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -2022,24 +2295,37 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The view. */ @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { - com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); - return result == null ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED : result; + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView result = + com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.forNumber(view_); + return result == null + ? com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -2053,11 +2339,16 @@ public Builder setView(com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeries return this; } /** + * + * *
      * Required. Specifies which information is returned about the time series.
      * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -2067,8 +2358,10 @@ public Builder clearView() { return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2078,6 +2371,7 @@ public Builder clearView() {
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2085,6 +2379,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2094,6 +2390,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -2105,6 +2402,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of results to return. If
      * `page_size` is empty or more than 100,000 results, the effective
@@ -2114,6 +2413,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -2125,6 +2425,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2132,13 +2434,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 9; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2147,6 +2449,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2154,15 +2458,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 9; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2170,6 +2473,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2177,18 +2482,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 9; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2196,6 +2505,7 @@ public Builder setPageToken(
      * 
* * string page_token = 9; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2205,6 +2515,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -2212,21 +2524,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 9; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2236,12 +2550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) private static final com.google.monitoring.v3.ListTimeSeriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListTimeSeriesRequest(); } @@ -2250,27 +2564,27 @@ public static com.google.monitoring.v3.ListTimeSeriesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2285,6 +2599,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java index a305926bc9a8..debe94aa1f23 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListTimeSeriesRequestOrBuilder extends +public interface ListTimeSeriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -17,11 +35,16 @@ public interface ListTimeSeriesRequestOrBuilder extends
    *     folders/[FOLDER_ID]
    * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
    * organization or folder on which to execute the request. The format is:
@@ -31,13 +54,17 @@ public interface ListTimeSeriesRequestOrBuilder extends
    *     folders/[FOLDER_ID]
    * 
* - * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -49,10 +76,13 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * that specifies which time series should be returned.  The filter must
@@ -64,45 +94,61 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** + * + * *
    * Required. The time interval for which results should be returned. Only time series
    * that contain data points in the specified interval are included
    * in the response.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder(); /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -112,10 +158,13 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -125,10 +174,13 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * .google.monitoring.v3.Aggregation aggregation = 5; + * * @return The aggregation. */ com.google.monitoring.v3.Aggregation getAggregation(); /** + * + * *
    * Specifies the alignment of data points in individual time series as
    * well as how to combine the retrieved time series across specified labels.
@@ -142,26 +194,34 @@ public interface ListTimeSeriesRequestOrBuilder extends
   com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return Whether the secondaryAggregation field is set. */ boolean hasSecondaryAggregation(); /** + * + * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
    * 
* * .google.monitoring.v3.Aggregation secondary_aggregation = 11; + * * @return The secondaryAggregation. */ com.google.monitoring.v3.Aggregation getSecondaryAggregation(); /** + * + * *
    * Apply a second aggregation after `aggregation` is applied. May only be
    * specified if `aggregation` is specified.
@@ -172,47 +232,64 @@ public interface ListTimeSeriesRequestOrBuilder extends
   com.google.monitoring.v3.AggregationOrBuilder getSecondaryAggregationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Unsupported: must be left blank. The points in each time series are
    * currently returned in reverse time order (most recent to oldest).
    * 
* * string order_by = 6; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Required. Specifies which information is returned about the time series.
    * 
* - * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The view. */ com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView(); /** + * + * *
    * A positive number that is the maximum number of results to return. If
    * `page_size` is empty or more than 100,000 results, the effective
@@ -222,11 +299,14 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -234,10 +314,13 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * string page_token = 9; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -245,8 +328,8 @@ public interface ListTimeSeriesRequestOrBuilder extends
    * 
* * string page_token = 9; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java index ac41971f74aa..62734e0bfa06 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `ListTimeSeries` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesResponse} */ -public final class ListTimeSeriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListTimeSeriesResponse) ListTimeSeriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTimeSeriesResponse.newBuilder() to construct. private ListTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTimeSeriesResponse() { timeSeries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -28,28 +46,32 @@ private ListTimeSeriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTimeSeriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesResponse.class, com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.ListTimeSeriesResponse.class, + com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); } public static final int TIME_SERIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List timeSeries_; /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -61,6 +83,8 @@ public java.util.List getTimeSeriesList() { return timeSeries_; } /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -68,11 +92,13 @@ public java.util.List getTimeSeriesList() { * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesOrBuilderList() { return timeSeries_; } /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -84,6 +110,8 @@ public int getTimeSeriesCount() { return timeSeries_.size(); } /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -95,6 +123,8 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { return timeSeries_.get(index); } /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -102,15 +132,17 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { return timeSeries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -118,6 +150,7 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,14 +159,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -141,16 +175,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,9 +192,12 @@ public java.lang.String getNextPageToken() { } public static final int EXECUTION_ERRORS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List executionErrors_; /** + * + * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -174,6 +210,8 @@ public java.util.List getExecutionErrorsList() {
     return executionErrors_;
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -182,11 +220,13 @@ public java.util.List getExecutionErrorsList() {
    * repeated .google.rpc.Status execution_errors = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getExecutionErrorsOrBuilderList() {
     return executionErrors_;
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -199,6 +239,8 @@ public int getExecutionErrorsCount() {
     return executionErrors_.size();
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -211,6 +253,8 @@ public com.google.rpc.Status getExecutionErrors(int index) {
     return executionErrors_.get(index);
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -219,15 +263,17 @@ public com.google.rpc.Status getExecutionErrors(int index) {
    * repeated .google.rpc.Status execution_errors = 3;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
     return executionErrors_.get(index);
   }
 
   public static final int UNIT_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object unit_ = "";
   /**
+   *
+   *
    * 
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -238,6 +284,7 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
    * 
* * string unit = 5; + * * @return The unit. */ @java.lang.Override @@ -246,14 +293,15 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** + * + * *
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -264,16 +312,15 @@ public java.lang.String getUnit() {
    * 
* * string unit = 5; + * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -282,6 +329,7 @@ public java.lang.String getUnit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < timeSeries_.size(); i++) { output.writeMessage(1, timeSeries_.get(i)); } @@ -317,15 +364,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < timeSeries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, timeSeries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, timeSeries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } for (int i = 0; i < executionErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, executionErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, executionErrors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_); @@ -338,21 +383,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListTimeSeriesResponse other = (com.google.monitoring.v3.ListTimeSeriesResponse) obj; + com.google.monitoring.v3.ListTimeSeriesResponse other = + (com.google.monitoring.v3.ListTimeSeriesResponse) obj; - if (!getTimeSeriesList() - .equals(other.getTimeSeriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getExecutionErrorsList() - .equals(other.getExecutionErrorsList())) return false; - if (!getUnit() - .equals(other.getUnit())) return false; + if (!getTimeSeriesList().equals(other.getTimeSeriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExecutionErrorsList().equals(other.getExecutionErrorsList())) return false; + if (!getUnit().equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,132 +423,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListTimeSeriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListTimeSeriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListTimeSeriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `ListTimeSeries` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListTimeSeriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListTimeSeriesResponse) com.google.monitoring.v3.ListTimeSeriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListTimeSeriesResponse.class, com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.ListTimeSeriesResponse.class, + com.google.monitoring.v3.ListTimeSeriesResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListTimeSeriesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -531,9 +577,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; } @java.lang.Override @@ -552,14 +598,18 @@ public com.google.monitoring.v3.ListTimeSeriesResponse build() { @java.lang.Override public com.google.monitoring.v3.ListTimeSeriesResponse buildPartial() { - com.google.monitoring.v3.ListTimeSeriesResponse result = new com.google.monitoring.v3.ListTimeSeriesResponse(this); + com.google.monitoring.v3.ListTimeSeriesResponse result = + new com.google.monitoring.v3.ListTimeSeriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListTimeSeriesResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListTimeSeriesResponse result) { if (timeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); @@ -594,38 +644,39 @@ private void buildPartial0(com.google.monitoring.v3.ListTimeSeriesResponse resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListTimeSeriesResponse) { - return mergeFrom((com.google.monitoring.v3.ListTimeSeriesResponse)other); + return mergeFrom((com.google.monitoring.v3.ListTimeSeriesResponse) other); } else { super.mergeFrom(other); return this; @@ -633,7 +684,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) { - if (other == com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance()) + return this; if (timeSeriesBuilder_ == null) { if (!other.timeSeries_.isEmpty()) { if (timeSeries_.isEmpty()) { @@ -652,9 +704,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) timeSeriesBuilder_ = null; timeSeries_ = other.timeSeries_; bitField0_ = (bitField0_ & ~0x00000001); - timeSeriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimeSeriesFieldBuilder() : null; + timeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeSeriesFieldBuilder() + : null; } else { timeSeriesBuilder_.addAllMessages(other.timeSeries_); } @@ -683,9 +736,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) executionErrorsBuilder_ = null; executionErrors_ = other.executionErrors_; bitField0_ = (bitField0_ & ~0x00000004); - executionErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionErrorsFieldBuilder() : null; + executionErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecutionErrorsFieldBuilder() + : null; } else { executionErrorsBuilder_.addAllMessages(other.executionErrors_); } @@ -722,48 +776,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.TimeSeries m = - input.readMessage( - com.google.monitoring.v3.TimeSeries.parser(), - extensionRegistry); - if (timeSeriesBuilder_ == null) { - ensureTimeSeriesIsMutable(); - timeSeries_.add(m); - } else { - timeSeriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.rpc.Status m = - input.readMessage( - com.google.rpc.Status.parser(), - extensionRegistry); - if (executionErrorsBuilder_ == null) { - ensureExecutionErrorsIsMutable(); - executionErrors_.add(m); - } else { - executionErrorsBuilder_.addMessage(m); - } - break; - } // case 26 - case 42: { - unit_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.TimeSeries m = + input.readMessage( + com.google.monitoring.v3.TimeSeries.parser(), extensionRegistry); + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(m); + } else { + timeSeriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.add(m); + } else { + executionErrorsBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -773,21 +829,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List timeSeries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeSeriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { timeSeries_ = new java.util.ArrayList(timeSeries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> timeSeriesBuilder_; + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> + timeSeriesBuilder_; /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -802,6 +865,8 @@ public java.util.List getTimeSeriesList() { } } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -816,6 +881,8 @@ public int getTimeSeriesCount() { } } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -830,14 +897,15 @@ public com.google.monitoring.v3.TimeSeries getTimeSeries(int index) { } } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder setTimeSeries( - int index, com.google.monitoring.v3.TimeSeries value) { + public Builder setTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -851,6 +919,8 @@ public Builder setTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -869,6 +939,8 @@ public Builder setTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -889,14 +961,15 @@ public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries value) { return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder addTimeSeries( - int index, com.google.monitoring.v3.TimeSeries value) { + public Builder addTimeSeries(int index, com.google.monitoring.v3.TimeSeries value) { if (timeSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -910,14 +983,15 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public Builder addTimeSeries( - com.google.monitoring.v3.TimeSeries.Builder builderForValue) { + public Builder addTimeSeries(com.google.monitoring.v3.TimeSeries.Builder builderForValue) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); timeSeries_.add(builderForValue.build()); @@ -928,6 +1002,8 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -946,6 +1022,8 @@ public Builder addTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -956,8 +1034,7 @@ public Builder addAllTimeSeries( java.lang.Iterable values) { if (timeSeriesBuilder_ == null) { ensureTimeSeriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timeSeries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeries_); onChanged(); } else { timeSeriesBuilder_.addAllMessages(values); @@ -965,6 +1042,8 @@ public Builder addAllTimeSeries( return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -982,6 +1061,8 @@ public Builder clearTimeSeries() { return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -999,39 +1080,44 @@ public Builder removeTimeSeries(int index) { return this; } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder( - int index) { + public com.google.monitoring.v3.TimeSeries.Builder getTimeSeriesBuilder(int index) { return getTimeSeriesFieldBuilder().getBuilder(index); } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index) { if (timeSeriesBuilder_ == null) { - return timeSeries_.get(index); } else { + return timeSeries_.get(index); + } else { return timeSeriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public java.util.List - getTimeSeriesOrBuilderList() { + public java.util.List + getTimeSeriesOrBuilderList() { if (timeSeriesBuilder_ != null) { return timeSeriesBuilder_.getMessageOrBuilderList(); } else { @@ -1039,6 +1125,8 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( } } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
@@ -1046,42 +1134,47 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder() { - return getTimeSeriesFieldBuilder().addBuilder( - com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + return getTimeSeriesFieldBuilder() + .addBuilder(com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder( - int index) { - return getTimeSeriesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(int index) { + return getTimeSeriesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.TimeSeries.getDefaultInstance()); } /** + * + * *
      * One or more time series that match the filter included in the request.
      * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - public java.util.List - getTimeSeriesBuilderList() { + public java.util.List getTimeSeriesBuilderList() { return getTimeSeriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder> + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder> getTimeSeriesFieldBuilder() { if (timeSeriesBuilder_ == null) { - timeSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeries, com.google.monitoring.v3.TimeSeries.Builder, com.google.monitoring.v3.TimeSeriesOrBuilder>( - timeSeries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + timeSeriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeries, + com.google.monitoring.v3.TimeSeries.Builder, + com.google.monitoring.v3.TimeSeriesOrBuilder>( + timeSeries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); timeSeries_ = null; } return timeSeriesBuilder_; @@ -1089,6 +1182,8 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1096,13 +1191,13 @@ public com.google.monitoring.v3.TimeSeries.Builder addTimeSeriesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1111,6 +1206,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1118,15 +1215,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1134,6 +1230,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1141,18 +1239,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1160,6 +1262,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1169,6 +1272,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results,
@@ -1176,12 +1281,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1190,18 +1297,22 @@ public Builder setNextPageTokenBytes( } private java.util.List executionErrors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExecutionErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { executionErrors_ = new java.util.ArrayList(executionErrors_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> executionErrorsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + executionErrorsBuilder_; /** + * + * *
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1217,6 +1328,8 @@ public java.util.List getExecutionErrorsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1232,6 +1345,8 @@ public int getExecutionErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1247,6 +1362,8 @@ public com.google.rpc.Status getExecutionErrors(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1254,8 +1371,7 @@ public com.google.rpc.Status getExecutionErrors(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder setExecutionErrors(
-        int index, com.google.rpc.Status value) {
+    public Builder setExecutionErrors(int index, com.google.rpc.Status value) {
       if (executionErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1269,6 +1385,8 @@ public Builder setExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1276,8 +1394,7 @@ public Builder setExecutionErrors(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder setExecutionErrors(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setExecutionErrors(int index, com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.set(index, builderForValue.build());
@@ -1288,6 +1405,8 @@ public Builder setExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1309,6 +1428,8 @@ public Builder addExecutionErrors(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1316,8 +1437,7 @@ public Builder addExecutionErrors(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(
-        int index, com.google.rpc.Status value) {
+    public Builder addExecutionErrors(int index, com.google.rpc.Status value) {
       if (executionErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1331,6 +1451,8 @@ public Builder addExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1338,8 +1460,7 @@ public Builder addExecutionErrors(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addExecutionErrors(com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.add(builderForValue.build());
@@ -1350,6 +1471,8 @@ public Builder addExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1357,8 +1480,7 @@ public Builder addExecutionErrors(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public Builder addExecutionErrors(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addExecutionErrors(int index, com.google.rpc.Status.Builder builderForValue) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
         executionErrors_.add(index, builderForValue.build());
@@ -1369,6 +1491,8 @@ public Builder addExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1380,8 +1504,7 @@ public Builder addAllExecutionErrors(
         java.lang.Iterable values) {
       if (executionErrorsBuilder_ == null) {
         ensureExecutionErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, executionErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executionErrors_);
         onChanged();
       } else {
         executionErrorsBuilder_.addAllMessages(values);
@@ -1389,6 +1512,8 @@ public Builder addAllExecutionErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1407,6 +1532,8 @@ public Builder clearExecutionErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1425,6 +1552,8 @@ public Builder removeExecutionErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1432,11 +1561,12 @@ public Builder removeExecutionErrors(int index) {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.Status.Builder getExecutionErrorsBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getExecutionErrorsBuilder(int index) {
       return getExecutionErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1444,14 +1574,16 @@ public com.google.rpc.Status.Builder getExecutionErrorsBuilder(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index) {
       if (executionErrorsBuilder_ == null) {
-        return executionErrors_.get(index);  } else {
+        return executionErrors_.get(index);
+      } else {
         return executionErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1459,8 +1591,8 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public java.util.List 
-         getExecutionErrorsOrBuilderList() {
+    public java.util.List
+        getExecutionErrorsOrBuilderList() {
       if (executionErrorsBuilder_ != null) {
         return executionErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1468,6 +1600,8 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1476,10 +1610,12 @@ public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
      * repeated .google.rpc.Status execution_errors = 3;
      */
     public com.google.rpc.Status.Builder addExecutionErrorsBuilder() {
-      return getExecutionErrorsFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getExecutionErrorsFieldBuilder()
+          .addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1487,12 +1623,13 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder() {
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public com.google.rpc.Status.Builder addExecutionErrorsBuilder(
-        int index) {
-      return getExecutionErrorsFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addExecutionErrorsBuilder(int index) {
+      return getExecutionErrorsFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete.
@@ -1500,16 +1637,19 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder(
      *
      * repeated .google.rpc.Status execution_errors = 3;
      */
-    public java.util.List 
-         getExecutionErrorsBuilderList() {
+    public java.util.List getExecutionErrorsBuilderList() {
       return getExecutionErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getExecutionErrorsFieldBuilder() {
       if (executionErrorsBuilder_ == null) {
-        executionErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+        executionErrorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
                 executionErrors_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1521,6 +1661,8 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder(
 
     private java.lang.Object unit_ = "";
     /**
+     *
+     *
      * 
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1531,13 +1673,13 @@ public com.google.rpc.Status.Builder addExecutionErrorsBuilder(
      * 
* * string unit = 5; + * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -1546,6 +1688,8 @@ public java.lang.String getUnit() { } } /** + * + * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1556,15 +1700,14 @@ public java.lang.String getUnit() {
      * 
* * string unit = 5; + * * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -1572,6 +1715,8 @@ public java.lang.String getUnit() { } } /** + * + * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1582,18 +1727,22 @@ public java.lang.String getUnit() {
      * 
* * string unit = 5; + * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1604,6 +1753,7 @@ public Builder setUnit(
      * 
* * string unit = 5; + * * @return This builder for chaining. */ public Builder clearUnit() { @@ -1613,6 +1763,8 @@ public Builder clearUnit() { return this; } /** + * + * *
      * The unit in which all `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -1623,21 +1775,23 @@ public Builder clearUnit() {
      * 
* * string unit = 5; + * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1647,12 +1801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListTimeSeriesResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) private static final com.google.monitoring.v3.ListTimeSeriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListTimeSeriesResponse(); } @@ -1661,27 +1815,27 @@ public static com.google.monitoring.v3.ListTimeSeriesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTimeSeriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTimeSeriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1696,6 +1850,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ListTimeSeriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java index 98579fd8a70d..a5844fdd69c9 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface ListTimeSeriesResponseOrBuilder extends +public interface ListTimeSeriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListTimeSeriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - java.util.List - getTimeSeriesList(); + java.util.List getTimeSeriesList(); /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -25,6 +44,8 @@ public interface ListTimeSeriesResponseOrBuilder extends */ com.google.monitoring.v3.TimeSeries getTimeSeries(int index); /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
@@ -33,25 +54,30 @@ public interface ListTimeSeriesResponseOrBuilder extends */ int getTimeSeriesCount(); /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - java.util.List + java.util.List getTimeSeriesOrBuilderList(); /** + * + * *
    * One or more time series that match the filter included in the request.
    * 
* * repeated .google.monitoring.v3.TimeSeries time_series = 1; */ - com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( - int index); + com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(int index); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -59,10 +85,13 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results,
@@ -70,12 +99,14 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -83,9 +114,10 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  java.util.List 
-      getExecutionErrorsList();
+  java.util.List getExecutionErrorsList();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -95,6 +127,8 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    */
   com.google.rpc.Status getExecutionErrors(int index);
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -104,6 +138,8 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    */
   int getExecutionErrorsCount();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -111,9 +147,10 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  java.util.List 
-      getExecutionErrorsOrBuilderList();
+  java.util.List getExecutionErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete.
@@ -121,10 +158,11 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder(
    *
    * repeated .google.rpc.Status execution_errors = 3;
    */
-  com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -135,10 +173,13 @@ com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
    * 
* * string unit = 5; + * * @return The unit. */ java.lang.String getUnit(); /** + * + * *
    * The unit in which all `time_series` point values are reported. `unit`
    * follows the UCUM format for units as seen in
@@ -149,8 +190,8 @@ com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder(
    * 
* * string unit = 5; + * * @return The bytes for unit. */ - com.google.protobuf.ByteString - getUnitBytes(); + com.google.protobuf.ByteString getUnitBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java index 570cb04ecb53..824937daf130 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListUptimeCheckConfigs` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsRequest} */ -public final class ListUptimeCheckConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUptimeCheckConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckConfigsRequest) ListUptimeCheckConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUptimeCheckConfigsRequest.newBuilder() to construct. private ListUptimeCheckConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUptimeCheckConfigsRequest() { parent_ = ""; filter_ = ""; @@ -27,28 +45,32 @@ private ListUptimeCheckConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUptimeCheckConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -57,7 +79,10 @@ protected java.lang.Object newInstance(
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,14 +91,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -82,17 +108,18 @@ public java.lang.String getParent() {
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,9 +128,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -113,6 +143,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -121,14 +152,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -138,16 +170,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -158,6 +189,8 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -166,6 +199,7 @@ public java.lang.String getFilter() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -174,9 +208,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -184,6 +221,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -192,14 +230,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -207,16 +246,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -225,6 +263,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +275,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -266,8 +304,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -280,21 +317,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckConfigsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckConfigsRequest other = (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.ListUptimeCheckConfigsRequest other = + (com.google.monitoring.v3.ListUptimeCheckConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,131 +354,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListUptimeCheckConfigs` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckConfigsRequest) com.google.monitoring.v3.ListUptimeCheckConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, + com.google.monitoring.v3.ListUptimeCheckConfigsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckConfigsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; } @java.lang.Override @@ -478,8 +517,11 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckConfigsRequest buildPartial() { - com.google.monitoring.v3.ListUptimeCheckConfigsRequest result = new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListUptimeCheckConfigsRequest result = + new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -504,38 +546,39 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckConfigsReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckConfigsRequest) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsRequest) other); } else { super.mergeFrom(other); return this; @@ -543,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsRequest other) { - if (other == com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -588,32 +632,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,10 +672,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -635,14 +687,16 @@ public Builder mergeFrom(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -651,6 +705,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -659,16 +715,17 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -676,6 +733,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -684,19 +743,25 @@ public java.lang.String getParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -705,7 +770,10 @@ public Builder setParent(
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -715,6 +783,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The
      * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -723,13 +793,17 @@ public Builder clearParent() {
      *     projects/[PROJECT_ID_OR_NUMBER]
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -739,6 +813,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -748,13 +824,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -763,6 +839,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -772,15 +850,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -788,6 +865,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -797,18 +876,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -818,6 +901,7 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -827,6 +911,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * If provided, this field specifies the criteria that must be met by
      * uptime checks to be included in the response.
@@ -836,12 +922,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -849,8 +937,10 @@ public Builder setFilterBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -859,6 +949,7 @@ public Builder setFilterBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -866,6 +957,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -874,6 +967,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -885,6 +979,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -893,6 +989,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -904,6 +1001,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -911,13 +1010,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -926,6 +1025,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -933,15 +1034,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -949,6 +1049,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -956,18 +1058,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -975,6 +1081,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -984,6 +1091,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -991,21 +1100,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1015,12 +1126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) private static final com.google.monitoring.v3.ListUptimeCheckConfigsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckConfigsRequest(); } @@ -1029,27 +1140,27 @@ public static com.google.monitoring.v3.ListUptimeCheckConfigsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,6 +1175,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.ListUptimeCheckConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java index 54738eb48659..939ddf7fb02d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckConfigsRequestOrBuilder extends +public interface ListUptimeCheckConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -16,11 +34,16 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The
    * [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
@@ -29,13 +52,17 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    *     projects/[PROJECT_ID_OR_NUMBER]
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -45,10 +72,13 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * If provided, this field specifies the criteria that must be met by
    * uptime checks to be included in the response.
@@ -58,12 +88,14 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -72,11 +104,14 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -84,10 +119,13 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -95,8 +133,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java index 38bfc50e9d08..39dc1c32c88e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListUptimeCheckConfigs` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsResponse} */ -public final class ListUptimeCheckConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUptimeCheckConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckConfigsResponse) ListUptimeCheckConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUptimeCheckConfigsResponse.newBuilder() to construct. - private ListUptimeCheckConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUptimeCheckConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUptimeCheckConfigsResponse() { uptimeCheckConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +45,32 @@ private ListUptimeCheckConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUptimeCheckConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); } public static final int UPTIME_CHECK_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List uptimeCheckConfigs_; /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -59,6 +82,8 @@ public java.util.List getUptimeCheck return uptimeCheckConfigs_; } /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -66,11 +91,13 @@ public java.util.List getUptimeCheck * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getUptimeCheckConfigsOrBuilderList() { return uptimeCheckConfigs_; } /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -82,6 +109,8 @@ public int getUptimeCheckConfigsCount() { return uptimeCheckConfigs_.size(); } /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -93,6 +122,8 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int inde return uptimeCheckConfigs_.get(index); } /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -106,9 +137,12 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -118,6 +152,7 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,14 +161,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -143,16 +179,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -163,12 +198,15 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** + * + * *
    * The total number of Uptime check configurations for the project,
    * irrespective of any pagination.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -177,6 +215,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uptimeCheckConfigs_.size(); i++) { output.writeMessage(1, uptimeCheckConfigs_.get(i)); } @@ -209,15 +247,14 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < uptimeCheckConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, uptimeCheckConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -227,19 +264,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckConfigsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckConfigsResponse other = (com.google.monitoring.v3.ListUptimeCheckConfigsResponse) obj; - - if (!getUptimeCheckConfigsList() - .equals(other.getUptimeCheckConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + com.google.monitoring.v3.ListUptimeCheckConfigsResponse other = + (com.google.monitoring.v3.ListUptimeCheckConfigsResponse) obj; + + if (!getUptimeCheckConfigsList().equals(other.getUptimeCheckConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,131 +300,136 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.ListUptimeCheckConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListUptimeCheckConfigs` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckConfigsResponse) com.google.monitoring.v3.ListUptimeCheckConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, + com.google.monitoring.v3.ListUptimeCheckConfigsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckConfigsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; } @java.lang.Override @@ -428,14 +468,18 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckConfigsResponse buildPartial() { - com.google.monitoring.v3.ListUptimeCheckConfigsResponse result = new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(this); + com.google.monitoring.v3.ListUptimeCheckConfigsResponse result = + new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListUptimeCheckConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListUptimeCheckConfigsResponse result) { if (uptimeCheckConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uptimeCheckConfigs_ = java.util.Collections.unmodifiableList(uptimeCheckConfigs_); @@ -461,38 +505,39 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckConfigsRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckConfigsResponse) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckConfigsResponse) other); } else { super.mergeFrom(other); return this; @@ -500,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsResponse other) { - if (other == com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance()) + return this; if (uptimeCheckConfigsBuilder_ == null) { if (!other.uptimeCheckConfigs_.isEmpty()) { if (uptimeCheckConfigs_.isEmpty()) { @@ -519,9 +565,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsResponse uptimeCheckConfigsBuilder_ = null; uptimeCheckConfigs_ = other.uptimeCheckConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - uptimeCheckConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUptimeCheckConfigsFieldBuilder() : null; + uptimeCheckConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUptimeCheckConfigsFieldBuilder() + : null; } else { uptimeCheckConfigsBuilder_.addAllMessages(other.uptimeCheckConfigs_); } @@ -561,35 +608,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.UptimeCheckConfig m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckConfig.parser(), - extensionRegistry); - if (uptimeCheckConfigsBuilder_ == null) { - ensureUptimeCheckConfigsIsMutable(); - uptimeCheckConfigs_.add(m); - } else { - uptimeCheckConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.UptimeCheckConfig m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckConfig.parser(), extensionRegistry); + if (uptimeCheckConfigsBuilder_ == null) { + ensureUptimeCheckConfigsIsMutable(); + uptimeCheckConfigs_.add(m); + } else { + uptimeCheckConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,21 +649,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List uptimeCheckConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUptimeCheckConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - uptimeCheckConfigs_ = new java.util.ArrayList(uptimeCheckConfigs_); + uptimeCheckConfigs_ = + new java.util.ArrayList( + uptimeCheckConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigsBuilder_; + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + uptimeCheckConfigsBuilder_; /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -628,6 +687,8 @@ public java.util.List getUptimeCheck } } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -642,6 +703,8 @@ public int getUptimeCheckConfigsCount() { } } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -656,6 +719,8 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int inde } } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -677,6 +742,8 @@ public Builder setUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -695,6 +762,8 @@ public Builder setUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -715,6 +784,8 @@ public Builder addUptimeCheckConfigs(com.google.monitoring.v3.UptimeCheckConfig return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -736,6 +807,8 @@ public Builder addUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -754,6 +827,8 @@ public Builder addUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -772,6 +847,8 @@ public Builder addUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -782,8 +859,7 @@ public Builder addAllUptimeCheckConfigs( java.lang.Iterable values) { if (uptimeCheckConfigsBuilder_ == null) { ensureUptimeCheckConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uptimeCheckConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uptimeCheckConfigs_); onChanged(); } else { uptimeCheckConfigsBuilder_.addAllMessages(values); @@ -791,6 +867,8 @@ public Builder addAllUptimeCheckConfigs( return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -808,6 +886,8 @@ public Builder clearUptimeCheckConfigs() { return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -825,6 +905,8 @@ public Builder removeUptimeCheckConfigs(int index) { return this; } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -836,6 +918,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigsB return getUptimeCheckConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -845,19 +929,22 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigsB public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder( int index) { if (uptimeCheckConfigsBuilder_ == null) { - return uptimeCheckConfigs_.get(index); } else { + return uptimeCheckConfigs_.get(index); + } else { return uptimeCheckConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The returned Uptime check configurations.
      * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - public java.util.List - getUptimeCheckConfigsOrBuilderList() { + public java.util.List + getUptimeCheckConfigsOrBuilderList() { if (uptimeCheckConfigsBuilder_ != null) { return uptimeCheckConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -865,6 +952,8 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs } } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -872,10 +961,12 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigs * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsBuilder() { - return getUptimeCheckConfigsFieldBuilder().addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); + return getUptimeCheckConfigsFieldBuilder() + .addBuilder(com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); } /** + * + * *
      * The returned Uptime check configurations.
      * 
@@ -884,26 +975,34 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB */ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsBuilder( int index) { - return getUptimeCheckConfigsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); + return getUptimeCheckConfigsFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()); } /** + * + * *
      * The returned Uptime check configurations.
      * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - public java.util.List - getUptimeCheckConfigsBuilderList() { + public java.util.List + getUptimeCheckConfigsBuilderList() { return getUptimeCheckConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigsFieldBuilder() { if (uptimeCheckConfigsBuilder_ == null) { - uptimeCheckConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + uptimeCheckConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( uptimeCheckConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -915,6 +1014,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -924,13 +1025,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder addUptimeCheckConfigsB
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -939,6 +1040,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -948,15 +1051,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -964,6 +1066,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -973,18 +1077,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -994,6 +1102,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1003,6 +1112,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1012,12 +1123,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1025,14 +1138,17 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1040,12 +1156,15 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -1057,12 +1176,15 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * The total number of Uptime check configurations for the project,
      * irrespective of any pagination.
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1071,9 +1193,9 @@ public Builder clearTotalSize() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,12 +1205,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) private static final com.google.monitoring.v3.ListUptimeCheckConfigsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckConfigsResponse(); } @@ -1097,27 +1219,27 @@ public static com.google.monitoring.v3.ListUptimeCheckConfigsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,6 +1254,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.ListUptimeCheckConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java index 38ec45ad0d1d..6279e274e36f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckConfigsResponseOrBuilder extends +public interface ListUptimeCheckConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - java.util.List - getUptimeCheckConfigsList(); + java.util.List getUptimeCheckConfigsList(); /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -25,6 +44,8 @@ public interface ListUptimeCheckConfigsResponseOrBuilder extends */ com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfigs(int index); /** + * + * *
    * The returned Uptime check configurations.
    * 
@@ -33,25 +54,30 @@ public interface ListUptimeCheckConfigsResponseOrBuilder extends */ int getUptimeCheckConfigsCount(); /** + * + * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - java.util.List + java.util.List getUptimeCheckConfigsOrBuilderList(); /** + * + * *
    * The returned Uptime check configurations.
    * 
* * repeated .google.monitoring.v3.UptimeCheckConfig uptime_check_configs = 1; */ - com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder( - int index); + com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuilder(int index); /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -61,10 +87,13 @@ com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -74,18 +103,21 @@ com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuild
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of Uptime check configurations for the project,
    * irrespective of any pagination.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java index f18230d42d32..bda1feee4dcf 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java @@ -1,51 +1,72 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListUptimeCheckIps` request.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsRequest} */ -public final class ListUptimeCheckIpsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUptimeCheckIpsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckIpsRequest) ListUptimeCheckIpsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUptimeCheckIpsRequest.newBuilder() to construct. private ListUptimeCheckIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUptimeCheckIpsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUptimeCheckIpsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, + com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -55,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -63,9 +85,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -74,6 +99,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -82,14 +108,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -98,16 +125,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -116,6 +142,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } @@ -145,8 +171,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -159,17 +184,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckIpsRequest)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckIpsRequest other = (com.google.monitoring.v3.ListUptimeCheckIpsRequest) obj; + com.google.monitoring.v3.ListUptimeCheckIpsRequest other = + (com.google.monitoring.v3.ListUptimeCheckIpsRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,131 +215,135 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListUptimeCheckIps` request.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckIpsRequest) com.google.monitoring.v3.ListUptimeCheckIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, + com.google.monitoring.v3.ListUptimeCheckIpsRequest.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckIpsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; } @java.lang.Override @@ -347,8 +375,11 @@ public com.google.monitoring.v3.ListUptimeCheckIpsRequest build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckIpsRequest buildPartial() { - com.google.monitoring.v3.ListUptimeCheckIpsRequest result = new com.google.monitoring.v3.ListUptimeCheckIpsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.ListUptimeCheckIpsRequest result = + new com.google.monitoring.v3.ListUptimeCheckIpsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -367,38 +398,39 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckIpsRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckIpsRequest) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsRequest)other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsRequest) other); } else { super.mergeFrom(other); return this; @@ -406,7 +438,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsRequest other) { - if (other == com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -441,22 +474,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,10 +502,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -479,6 +518,7 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -486,6 +526,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -495,6 +537,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -506,6 +549,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of results to return in a single response. The server
      * may further constrain the maximum number of results returned in a single
@@ -515,6 +560,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -526,6 +572,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -534,13 +582,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -549,6 +597,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -557,15 +607,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -573,6 +622,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -581,18 +632,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -601,6 +656,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -610,6 +666,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -618,21 +676,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -642,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) private static final com.google.monitoring.v3.ListUptimeCheckIpsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckIpsRequest(); } @@ -656,27 +716,27 @@ public static com.google.monitoring.v3.ListUptimeCheckIpsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,6 +751,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListUptimeCheckIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java index 216662c7310a..be044e77db83 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckIpsRequestOrBuilder extends +public interface ListUptimeCheckIpsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckIpsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The maximum number of results to return in a single response. The server
    * may further constrain the maximum number of results returned in a single
@@ -17,11 +35,14 @@ public interface ListUptimeCheckIpsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -30,10 +51,13 @@ public interface ListUptimeCheckIpsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -42,8 +66,8 @@ public interface ListUptimeCheckIpsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java index 827d4e038a03..99f3949e1ded 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `ListUptimeCheckIps` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsResponse} */ -public final class ListUptimeCheckIpsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUptimeCheckIpsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.ListUptimeCheckIpsResponse) ListUptimeCheckIpsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUptimeCheckIpsResponse.newBuilder() to construct. private ListUptimeCheckIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUptimeCheckIpsResponse() { uptimeCheckIps_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListUptimeCheckIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUptimeCheckIpsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, + com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); } public static final int UPTIME_CHECK_IPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List uptimeCheckIps_; /** + * + * *
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -60,6 +82,8 @@ public java.util.List getUptimeCheckIpsL
     return uptimeCheckIps_;
   }
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -68,11 +92,13 @@ public java.util.List getUptimeCheckIpsL
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getUptimeCheckIpsOrBuilderList() {
     return uptimeCheckIps_;
   }
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -85,6 +111,8 @@ public int getUptimeCheckIpsCount() {
     return uptimeCheckIps_.size();
   }
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -97,6 +125,8 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
     return uptimeCheckIps_.get(index);
   }
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -105,15 +135,17 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
-      int index) {
+  public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index) {
     return uptimeCheckIps_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -124,6 +156,7 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -132,14 +165,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -150,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -168,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uptimeCheckIps_.size(); i++) { output.writeMessage(1, uptimeCheckIps_.get(i)); } @@ -197,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < uptimeCheckIps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, uptimeCheckIps_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, uptimeCheckIps_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -211,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ListUptimeCheckIpsResponse)) { return super.equals(obj); } - com.google.monitoring.v3.ListUptimeCheckIpsResponse other = (com.google.monitoring.v3.ListUptimeCheckIpsResponse) obj; + com.google.monitoring.v3.ListUptimeCheckIpsResponse other = + (com.google.monitoring.v3.ListUptimeCheckIpsResponse) obj; - if (!getUptimeCheckIpsList() - .equals(other.getUptimeCheckIpsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getUptimeCheckIpsList().equals(other.getUptimeCheckIpsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,131 +276,135 @@ public int hashCode() { } public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ListUptimeCheckIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ListUptimeCheckIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `ListUptimeCheckIps` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListUptimeCheckIpsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ListUptimeCheckIpsResponse) com.google.monitoring.v3.ListUptimeCheckIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); + com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, + com.google.monitoring.v3.ListUptimeCheckIpsResponse.Builder.class); } // Construct using com.google.monitoring.v3.ListUptimeCheckIpsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; } @java.lang.Override @@ -407,14 +442,18 @@ public com.google.monitoring.v3.ListUptimeCheckIpsResponse build() { @java.lang.Override public com.google.monitoring.v3.ListUptimeCheckIpsResponse buildPartial() { - com.google.monitoring.v3.ListUptimeCheckIpsResponse result = new com.google.monitoring.v3.ListUptimeCheckIpsResponse(this); + com.google.monitoring.v3.ListUptimeCheckIpsResponse result = + new com.google.monitoring.v3.ListUptimeCheckIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.ListUptimeCheckIpsResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.ListUptimeCheckIpsResponse result) { if (uptimeCheckIpsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uptimeCheckIps_ = java.util.Collections.unmodifiableList(uptimeCheckIps_); @@ -437,38 +476,39 @@ private void buildPartial0(com.google.monitoring.v3.ListUptimeCheckIpsResponse r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.ListUptimeCheckIpsResponse) { - return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsResponse)other); + return mergeFrom((com.google.monitoring.v3.ListUptimeCheckIpsResponse) other); } else { super.mergeFrom(other); return this; @@ -476,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsResponse other) { - if (other == com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance()) + return this; if (uptimeCheckIpsBuilder_ == null) { if (!other.uptimeCheckIps_.isEmpty()) { if (uptimeCheckIps_.isEmpty()) { @@ -495,9 +536,10 @@ public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckIpsResponse oth uptimeCheckIpsBuilder_ = null; uptimeCheckIps_ = other.uptimeCheckIps_; bitField0_ = (bitField0_ & ~0x00000001); - uptimeCheckIpsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUptimeCheckIpsFieldBuilder() : null; + uptimeCheckIpsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUptimeCheckIpsFieldBuilder() + : null; } else { uptimeCheckIpsBuilder_.addAllMessages(other.uptimeCheckIps_); } @@ -534,30 +576,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.UptimeCheckIp m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckIp.parser(), - extensionRegistry); - if (uptimeCheckIpsBuilder_ == null) { - ensureUptimeCheckIpsIsMutable(); - uptimeCheckIps_.add(m); - } else { - uptimeCheckIpsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.UptimeCheckIp m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckIp.parser(), extensionRegistry); + if (uptimeCheckIpsBuilder_ == null) { + ensureUptimeCheckIpsIsMutable(); + uptimeCheckIps_.add(m); + } else { + uptimeCheckIpsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,21 +611,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List uptimeCheckIps_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUptimeCheckIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - uptimeCheckIps_ = new java.util.ArrayList(uptimeCheckIps_); + uptimeCheckIps_ = + new java.util.ArrayList(uptimeCheckIps_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder> uptimeCheckIpsBuilder_; + com.google.monitoring.v3.UptimeCheckIp, + com.google.monitoring.v3.UptimeCheckIp.Builder, + com.google.monitoring.v3.UptimeCheckIpOrBuilder> + uptimeCheckIpsBuilder_; /** + * + * *
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -597,6 +649,8 @@ public java.util.List getUptimeCheckIpsL
       }
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -612,6 +666,8 @@ public int getUptimeCheckIpsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -627,6 +683,8 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -634,8 +692,7 @@ public com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public Builder setUptimeCheckIps(
-        int index, com.google.monitoring.v3.UptimeCheckIp value) {
+    public Builder setUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheckIp value) {
       if (uptimeCheckIpsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -649,6 +706,8 @@ public Builder setUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -668,6 +727,8 @@ public Builder setUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -689,6 +750,8 @@ public Builder addUptimeCheckIps(com.google.monitoring.v3.UptimeCheckIp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -696,8 +759,7 @@ public Builder addUptimeCheckIps(com.google.monitoring.v3.UptimeCheckIp value) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public Builder addUptimeCheckIps(
-        int index, com.google.monitoring.v3.UptimeCheckIp value) {
+    public Builder addUptimeCheckIps(int index, com.google.monitoring.v3.UptimeCheckIp value) {
       if (uptimeCheckIpsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -711,6 +773,8 @@ public Builder addUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -730,6 +794,8 @@ public Builder addUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -749,6 +815,8 @@ public Builder addUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -760,8 +828,7 @@ public Builder addAllUptimeCheckIps(
         java.lang.Iterable values) {
       if (uptimeCheckIpsBuilder_ == null) {
         ensureUptimeCheckIpsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, uptimeCheckIps_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uptimeCheckIps_);
         onChanged();
       } else {
         uptimeCheckIpsBuilder_.addAllMessages(values);
@@ -769,6 +836,8 @@ public Builder addAllUptimeCheckIps(
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -787,6 +856,8 @@ public Builder clearUptimeCheckIps() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -805,6 +876,8 @@ public Builder removeUptimeCheckIps(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -812,11 +885,12 @@ public Builder removeUptimeCheckIps(int index) {
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(
-        int index) {
+    public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(int index) {
       return getUptimeCheckIpsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -824,14 +898,16 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder getUptimeCheckIpsBuilder(
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
-        int index) {
+    public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index) {
       if (uptimeCheckIpsBuilder_ == null) {
-        return uptimeCheckIps_.get(index);  } else {
+        return uptimeCheckIps_.get(index);
+      } else {
         return uptimeCheckIpsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -839,8 +915,8 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public java.util.List 
-         getUptimeCheckIpsOrBuilderList() {
+    public java.util.List
+        getUptimeCheckIpsOrBuilderList() {
       if (uptimeCheckIpsBuilder_ != null) {
         return uptimeCheckIpsBuilder_.getMessageOrBuilderList();
       } else {
@@ -848,6 +924,8 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -856,10 +934,12 @@ public com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilde
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
     public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder() {
-      return getUptimeCheckIpsFieldBuilder().addBuilder(
-          com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
+      return getUptimeCheckIpsFieldBuilder()
+          .addBuilder(com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -867,12 +947,13 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder()
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(
-        int index) {
-      return getUptimeCheckIpsFieldBuilder().addBuilder(
-          index, com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
+    public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(int index) {
+      return getUptimeCheckIpsFieldBuilder()
+          .addBuilder(index, com.google.monitoring.v3.UptimeCheckIp.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The returned list of IP addresses (including region and location) that the
      * checkers run from.
@@ -880,16 +961,22 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(
      *
      * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
      */
-    public java.util.List 
-         getUptimeCheckIpsBuilderList() {
+    public java.util.List
+        getUptimeCheckIpsBuilderList() {
       return getUptimeCheckIpsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder> 
+            com.google.monitoring.v3.UptimeCheckIp,
+            com.google.monitoring.v3.UptimeCheckIp.Builder,
+            com.google.monitoring.v3.UptimeCheckIpOrBuilder>
         getUptimeCheckIpsFieldBuilder() {
       if (uptimeCheckIpsBuilder_ == null) {
-        uptimeCheckIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.UptimeCheckIp, com.google.monitoring.v3.UptimeCheckIp.Builder, com.google.monitoring.v3.UptimeCheckIpOrBuilder>(
+        uptimeCheckIpsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.UptimeCheckIp,
+                com.google.monitoring.v3.UptimeCheckIp.Builder,
+                com.google.monitoring.v3.UptimeCheckIpOrBuilder>(
                 uptimeCheckIps_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -901,6 +988,8 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -911,13 +1000,13 @@ public com.google.monitoring.v3.UptimeCheckIp.Builder addUptimeCheckIpsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -926,6 +1015,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -936,15 +1027,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -952,6 +1042,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -962,18 +1054,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -984,6 +1080,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -993,6 +1090,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * This field represents the pagination token to retrieve the next page of
      * results. If the value is empty, it means no further results for the
@@ -1003,21 +1102,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1027,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) private static final com.google.monitoring.v3.ListUptimeCheckIpsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ListUptimeCheckIpsResponse(); } @@ -1041,27 +1142,27 @@ public static com.google.monitoring.v3.ListUptimeCheckIpsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUptimeCheckIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUptimeCheckIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,6 +1177,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.monitoring.v3.ListUptimeCheckIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java index e1b6b39e1fab..0a21aa8cb57f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface ListUptimeCheckIpsResponseOrBuilder extends +public interface ListUptimeCheckIpsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ListUptimeCheckIpsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -15,9 +33,10 @@ public interface ListUptimeCheckIpsResponseOrBuilder extends
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  java.util.List 
-      getUptimeCheckIpsList();
+  java.util.List getUptimeCheckIpsList();
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -27,6 +46,8 @@ public interface ListUptimeCheckIpsResponseOrBuilder extends
    */
   com.google.monitoring.v3.UptimeCheckIp getUptimeCheckIps(int index);
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -36,6 +57,8 @@ public interface ListUptimeCheckIpsResponseOrBuilder extends
    */
   int getUptimeCheckIpsCount();
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -43,9 +66,11 @@ public interface ListUptimeCheckIpsResponseOrBuilder extends
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  java.util.List 
+  java.util.List
       getUptimeCheckIpsOrBuilderList();
   /**
+   *
+   *
    * 
    * The returned list of IP addresses (including region and location) that the
    * checkers run from.
@@ -53,10 +78,11 @@ public interface ListUptimeCheckIpsResponseOrBuilder extends
    *
    * repeated .google.monitoring.v3.UptimeCheckIp uptime_check_ips = 1;
    */
-  com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
-      int index);
+  com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -67,10 +93,13 @@ com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * This field represents the pagination token to retrieve the next page of
    * results. If the value is empty, it means no further results for the
@@ -81,8 +110,8 @@ com.google.monitoring.v3.UptimeCheckIpOrBuilder getUptimeCheckIpsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java new file mode 100644 index 000000000000..75133278ae8f --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java @@ -0,0 +1,226 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric.proto + +package com.google.monitoring.v3; + +public final class MetricProto { + private MetricProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Point_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Point_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_LabelValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TextLocator_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n!google/monitoring/v3/metric.proto\022\024goo" + + "gle.monitoring.v3\032\026google/api/label.prot" + + "o\032\027google/api/metric.proto\032#google/api/m" + + "onitored_resource.proto\032!google/monitori" + + "ng/v3/common.proto\"n\n\005Point\0224\n\010interval\030" + + "\001 \001(\0132\".google.monitoring.v3.TimeInterva" + + "l\022/\n\005value\030\002 \001(\0132 .google.monitoring.v3." + + "TypedValue\"\317\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(" + + "\0132\022.google.api.Metric\022/\n\010resource\030\002 \001(\0132" + + "\035.google.api.MonitoredResource\0227\n\010metada" + + "ta\030\007 \001(\0132%.google.api.MonitoredResourceM" + + "etadata\022<\n\013metric_kind\030\003 \001(\0162\'.google.ap" + + "i.MetricDescriptor.MetricKind\022:\n\nvalue_t" + + "ype\030\004 \001(\0162&.google.api.MetricDescriptor." + + "ValueType\022+\n\006points\030\005 \003(\0132\033.google.monit" + + "oring.v3.Point\022\014\n\004unit\030\010 \001(\t\"\316\002\n\024TimeSer" + + "iesDescriptor\0226\n\021label_descriptors\030\001 \003(\013" + + "2\033.google.api.LabelDescriptor\022U\n\021point_d" + + "escriptors\030\005 \003(\0132:.google.monitoring.v3." + + "TimeSeriesDescriptor.ValueDescriptor\032\246\001\n" + + "\017ValueDescriptor\022\013\n\003key\030\001 \001(\t\022:\n\nvalue_t" + + "ype\030\002 \001(\0162&.google.api.MetricDescriptor." + + "ValueType\022<\n\013metric_kind\030\003 \001(\0162\'.google." + + "api.MetricDescriptor.MetricKind\022\014\n\004unit\030" + + "\004 \001(\t\"\206\002\n\016TimeSeriesData\0226\n\014label_values" + + "\030\001 \003(\0132 .google.monitoring.v3.LabelValue" + + "\022B\n\npoint_data\030\002 \003(\0132..google.monitoring" + + ".v3.TimeSeriesData.PointData\032x\n\tPointDat" + + "a\0220\n\006values\030\001 \003(\0132 .google.monitoring.v3" + + ".TypedValue\0229\n\rtime_interval\030\002 \001(\0132\".goo" + + "gle.monitoring.v3.TimeInterval\"Z\n\nLabelV" + + "alue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_valu" + + "e\030\002 \001(\003H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005val" + + "ue\"Q\n\nQueryError\0222\n\007locator\030\001 \001(\0132!.goog" + + "le.monitoring.v3.TextLocator\022\017\n\007message\030" + + "\002 \001(\t\"\240\002\n\013TextLocator\022\016\n\006source\030\001 \001(\t\022B\n" + + "\016start_position\030\002 \001(\0132*.google.monitorin" + + "g.v3.TextLocator.Position\022@\n\014end_positio" + + "n\030\003 \001(\0132*.google.monitoring.v3.TextLocat" + + "or.Position\0229\n\016nested_locator\030\004 \001(\0132!.go" + + "ogle.monitoring.v3.TextLocator\022\026\n\016nestin" + + "g_reason\030\005 \001(\t\032(\n\010Position\022\014\n\004line\030\001 \001(\005" + + "\022\016\n\006column\030\002 \001(\005B\306\001\n\030com.google.monitori" + + "ng.v3B\013MetricProtoP\001ZAcloud.google.com/g" + + "o/monitoring/apiv3/v2/monitoringpb;monit" + + "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + + "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + + "d::Monitoring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.LabelProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Point_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Point_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Point_descriptor, + new java.lang.String[] { + "Interval", "Value", + }); + internal_static_google_monitoring_v3_TimeSeries_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeries_descriptor, + new java.lang.String[] { + "Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points", "Unit", + }); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor, + new java.lang.String[] { + "LabelDescriptors", "PointDescriptors", + }); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor = + internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor, + new java.lang.String[] { + "Key", "ValueType", "MetricKind", "Unit", + }); + internal_static_google_monitoring_v3_TimeSeriesData_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesData_descriptor, + new java.lang.String[] { + "LabelValues", "PointData", + }); + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor = + internal_static_google_monitoring_v3_TimeSeriesData_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor, + new java.lang.String[] { + "Values", "TimeInterval", + }); + internal_static_google_monitoring_v3_LabelValue_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_LabelValue_descriptor, + new java.lang.String[] { + "BoolValue", "Int64Value", "StringValue", "Value", + }); + internal_static_google_monitoring_v3_QueryError_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_QueryError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryError_descriptor, + new java.lang.String[] { + "Locator", "Message", + }); + internal_static_google_monitoring_v3_TextLocator_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TextLocator_descriptor, + new java.lang.String[] { + "Source", "StartPosition", "EndPosition", "NestedLocator", "NestingReason", + }); + internal_static_google_monitoring_v3_TextLocator_Position_descriptor = + internal_static_google_monitoring_v3_TextLocator_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_TextLocator_Position_descriptor, + new java.lang.String[] { + "Line", "Column", + }); + com.google.api.LabelProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java new file mode 100644 index 000000000000..f432b44a70e2 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java @@ -0,0 +1,444 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/metric_service.proto + +package com.google.monitoring.v3; + +public final class MetricServiceProto { + private MetricServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_QueryErrorList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/metric_service.pr" + + "oto\022\024google.monitoring.v3\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\027googl" + + "e/api/metric.proto\032#google/api/monitored" + + "_resource.proto\032\031google/api/resource.pro" + + "to\032!google/monitoring/v3/common.proto\032!g" + + "oogle/monitoring/v3/metric.proto\032\033google" + + "/protobuf/empty.proto\032\027google/rpc/status" + + ".proto\"\256\001\n\'ListMonitoredResourceDescript" + + "orsRequest\022L\n\004name\030\005 \001(\tB>\342A\001\002\372A7\0225monit" + + "oring.googleapis.com/MonitoredResourceDe" + + "scriptor\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " + + "\001(\005\022\022\n\npage_token\030\004 \001(\t\"\212\001\n(ListMonitore" + + "dResourceDescriptorsResponse\022E\n\024resource" + + "_descriptors\030\001 \003(\0132\'.google.api.Monitore" + + "dResourceDescriptor\022\027\n\017next_page_token\030\002" + + " \001(\t\"u\n%GetMonitoredResourceDescriptorRe" + + "quest\022L\n\004name\030\003 \001(\tB>\342A\001\002\372A7\n5monitoring" + + ".googleapis.com/MonitoredResourceDescrip" + + "tor\"\230\001\n\034ListMetricDescriptorsRequest\022A\n\004" + + "name\030\005 \001(\tB3\342A\001\002\372A,\022*monitoring.googleap" + + "is.com/MetricDescriptor\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r" + + "\n\035ListMetricDescriptorsResponse\0228\n\022metri" + + "c_descriptors\030\001 \003(\0132\034.google.api.MetricD" + + "escriptor\022\027\n\017next_page_token\030\002 \001(\t\"_\n\032Ge" + + "tMetricDescriptorRequest\022A\n\004name\030\003 \001(\tB3" + + "\342A\001\002\372A,\n*monitoring.googleapis.com/Metri" + + "cDescriptor\"\241\001\n\035CreateMetricDescriptorRe" + + "quest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\022*monitoring" + + ".googleapis.com/MetricDescriptor\022=\n\021metr" + + "ic_descriptor\030\002 \001(\0132\034.google.api.MetricD" + + "escriptorB\004\342A\001\002\"b\n\035DeleteMetricDescripto" + + "rRequest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\n*monitor" + + "ing.googleapis.com/MetricDescriptor\"\322\003\n\025" + + "ListTimeSeriesRequest\022;\n\004name\030\n \001(\tB-\342A\001" + + "\002\372A&\022$monitoring.googleapis.com/TimeSeri" + + "es\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022:\n\010interval\030\004 \001" + + "(\0132\".google.monitoring.v3.TimeIntervalB\004" + + "\342A\001\002\0226\n\013aggregation\030\005 \001(\0132!.google.monit" + + "oring.v3.Aggregation\022@\n\025secondary_aggreg" + + "ation\030\013 \001(\0132!.google.monitoring.v3.Aggre" + + "gation\022\020\n\010order_by\030\006 \001(\t\022N\n\004view\030\007 \001(\0162:" + + ".google.monitoring.v3.ListTimeSeriesRequ" + + "est.TimeSeriesViewB\004\342A\001\002\022\021\n\tpage_size\030\010 " + + "\001(\005\022\022\n\npage_token\030\t \001(\t\"\'\n\016TimeSeriesVie" + + "w\022\010\n\004FULL\020\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTimeSer" + + "iesResponse\0225\n\013time_series\030\001 \003(\0132 .googl" + + "e.monitoring.v3.TimeSeries\022\027\n\017next_page_" + + "token\030\002 \001(\t\022,\n\020execution_errors\030\003 \003(\0132\022." + + "google.rpc.Status\022\014\n\004unit\030\005 \001(\t\"\232\001\n\027Crea" + + "teTimeSeriesRequest\022B\n\004name\030\003 \001(\tB4\342A\001\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022;\n\013time_series\030\002 \003(\0132 .google.mo" + + "nitoring.v3.TimeSeriesB\004\342A\001\002\"z\n\025CreateTi" + + "meSeriesError\0229\n\013time_series\030\001 \001(\0132 .goo" + + "gle.monitoring.v3.TimeSeriesB\002\030\001\022&\n\006stat" + + "us\030\002 \001(\0132\022.google.rpc.StatusB\002\030\001\"\330\001\n\027Cre" + + "ateTimeSeriesSummary\022\031\n\021total_point_coun" + + "t\030\001 \001(\005\022\033\n\023success_point_count\030\002 \001(\005\022C\n\006" + + "errors\030\003 \003(\01323.google.monitoring.v3.Crea" + + "teTimeSeriesSummary.Error\032@\n\005Error\022\"\n\006st" + + "atus\030\001 \001(\0132\022.google.rpc.Status\022\023\n\013point_" + + "count\030\002 \001(\005\"h\n\026QueryTimeSeriesRequest\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005query\030\007 \001(\tB\004\342A\001\002\022\021" + + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\"\352\001" + + "\n\027QueryTimeSeriesResponse\022J\n\026time_series" + + "_descriptor\030\010 \001(\0132*.google.monitoring.v3" + + ".TimeSeriesDescriptor\022>\n\020time_series_dat" + + "a\030\t \003(\0132$.google.monitoring.v3.TimeSerie" + + "sData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016partia" + + "l_errors\030\013 \003(\0132\022.google.rpc.Status\"Y\n\016Qu" + + "eryErrorList\0220\n\006errors\030\001 \003(\0132 .google.mo" + + "nitoring.v3.QueryError\022\025\n\rerror_summary\030" + + "\002 \001(\t2\274\017\n\rMetricService\022\344\001\n ListMonitore" + + "dResourceDescriptors\022=.google.monitoring" + + ".v3.ListMonitoredResourceDescriptorsRequ" + + "est\032>.google.monitoring.v3.ListMonitored" + + "ResourceDescriptorsResponse\"A\332A\004name\202\323\344\223" + + "\0024\0222/v3/{name=projects/*}/monitoredResou" + + "rceDescriptors\022\314\001\n\036GetMonitoredResourceD" + + "escriptor\022;.google.monitoring.v3.GetMoni" + + "toredResourceDescriptorRequest\032\'.google." + + "api.MonitoredResourceDescriptor\"D\332A\004name" + + "\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredRe" + + "sourceDescriptors/**}\022\270\001\n\025ListMetricDesc" + + "riptors\0222.google.monitoring.v3.ListMetri" + + "cDescriptorsRequest\0323.google.monitoring." + + "v3.ListMetricDescriptorsResponse\"6\332A\004nam" + + "e\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDes" + + "criptors\022\240\001\n\023GetMetricDescriptor\0220.googl" + + "e.monitoring.v3.GetMetricDescriptorReque" + + "st\032\034.google.api.MetricDescriptor\"9\332A\004nam" + + "e\202\323\344\223\002,\022*/v3/{name=projects/*/metricDesc" + + "riptors/**}\022\310\001\n\026CreateMetricDescriptor\0223" + + ".google.monitoring.v3.CreateMetricDescri" + + "ptorRequest\032\034.google.api.MetricDescripto" + + "r\"[\332A\026name,metric_descriptor\202\323\344\223\002<\"\'/v3/" + + "{name=projects/*}/metricDescriptors:\021met" + + "ric_descriptor\022\240\001\n\026DeleteMetricDescripto" + + "r\0223.google.monitoring.v3.DeleteMetricDes" + + "criptorRequest\032\026.google.protobuf.Empty\"9" + + "\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/metr" + + "icDescriptors/**}\022\376\001\n\016ListTimeSeries\022+.g" + + "oogle.monitoring.v3.ListTimeSeriesReques" + + "t\032,.google.monitoring.v3.ListTimeSeriesR" + + "esponse\"\220\001\332A\031name,filter,interval,view\202\323" + + "\344\223\002n\022 /v3/{name=projects/*}/timeSeriesZ\'" + + "\022%/v3/{name=organizations/*}/timeSeriesZ" + + "!\022\037/v3/{name=folders/*}/timeSeries\022\231\001\n\020C" + + "reateTimeSeries\022-.google.monitoring.v3.C" + + "reateTimeSeriesRequest\032\026.google.protobuf" + + ".Empty\">\332A\020name,time_series\202\323\344\223\002%\" /v3/{" + + "name=projects/*}/timeSeries:\001*\022\256\001\n\027Creat" + + "eServiceTimeSeries\022-.google.monitoring.v" + + "3.CreateTimeSeriesRequest\032\026.google.proto" + + "buf.Empty\"L\332A\020name,time_series\202\323\344\223\0023\"./v" + + "3/{name=projects/*}/timeSeries:createSer" + + "vice:\001*\032\332\001\312A\031monitoring.googleapis.com\322A" + + "\272\001https://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth" + + "/monitoring,https://www.googleapis.com/a" + + "uth/monitoring.read,https://www.googleap" + + "is.com/auth/monitoring.writeB\211\010\n\030com.goo" + + "gle.monitoring.v3B\022MetricServiceProtoP\001Z" + + "Acloud.google.com/go/monitoring/apiv3/v2" + + "/monitoringpb;monitoringpb\252\002\032Google.Clou" + + "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" + + "g\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001" + + "\n*monitoring.googleapis.com/MetricDescri" + + "ptor\022;projects/{project}/metricDescripto" + + "rs/{metric_descriptor=**}\022Eorganizations" + + "/{organization}/metricDescriptors/{metri" + + "c_descriptor=**}\0229folders/{folder}/metri" + + "cDescriptors/{metric_descriptor=**}\022\001* \001" + + "\352A\267\002\n5monitoring.googleapis.com/Monitore" + + "dResourceDescriptor\022Oprojects/{project}/" + + "monitoredResourceDescriptors/{monitored_" + + "resource_descriptor}\022Yorganizations/{org" + + "anization}/monitoredResourceDescriptors/" + + "{monitored_resource_descriptor}\022Mfolders" + + "/{folder}/monitoredResourceDescriptors/{" + + "monitored_resource_descriptor}\022\001* \001\352AQ\n#" + + "monitoring.googleapis.com/Workspace\022\022pro" + + "jects/{project}\022\026workspaces/{workspace}\352" + + "A\265\001\n$monitoring.googleapis.com/TimeSerie" + + "s\022+projects/{project}/timeSeries/{time_s" + + "eries}\0225organizations/{organization}/tim" + + "eSeries/{time_series}\022)folders/{folder}/" + + "timeSeries/{time_series}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + com.google.monitoring.v3.MetricProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "PageSize", "PageToken", + }); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor, + new java.lang.String[] { + "ResourceDescriptors", "NextPageToken", + }); + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "PageSize", "PageToken", + }); + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor, + new java.lang.String[] { + "MetricDescriptors", "NextPageToken", + }); + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor, + new java.lang.String[] { + "Name", "MetricDescriptor", + }); + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Name", + "Filter", + "Interval", + "Aggregation", + "SecondaryAggregation", + "OrderBy", + "View", + "PageSize", + "PageToken", + }); + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor, + new java.lang.String[] { + "TimeSeries", "NextPageToken", "ExecutionErrors", "Unit", + }); + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Name", "TimeSeries", + }); + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor, + new java.lang.String[] { + "TimeSeries", "Status", + }); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor, + new java.lang.String[] { + "TotalPointCount", "SuccessPointCount", "Errors", + }); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor = + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor, + new java.lang.String[] { + "Status", "PointCount", + }); + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Name", "Query", "PageSize", "PageToken", + }); + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor, + new java.lang.String[] { + "TimeSeriesDescriptor", "TimeSeriesData", "NextPageToken", "PartialErrors", + }); + internal_static_google_monitoring_v3_QueryErrorList_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_QueryErrorList_descriptor, + new java.lang.String[] { + "Errors", "ErrorSummary", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + com.google.monitoring.v3.MetricProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java index 8bf38fa5e095..1c69e42faa34 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/mutation_record.proto package com.google.monitoring.v3; /** + * + * *
  * Describes a change made to a configuration.
  * 
* * Protobuf type {@code google.monitoring.v3.MutationRecord} */ -public final class MutationRecord extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MutationRecord extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.MutationRecord) MutationRecordOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MutationRecord.newBuilder() to construct. private MutationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MutationRecord() { mutatedBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MutationRecord(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MutationRecordProto + .internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable + return com.google.monitoring.v3.MutationRecordProto + .internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.MutationRecord.class, com.google.monitoring.v3.MutationRecord.Builder.class); + com.google.monitoring.v3.MutationRecord.class, + com.google.monitoring.v3.MutationRecord.Builder.class); } public static final int MUTATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp mutateTime_; /** + * + * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return Whether the mutateTime field is set. */ @java.lang.Override @@ -58,11 +80,14 @@ public boolean hasMutateTime() { return mutateTime_ != null; } /** + * + * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return The mutateTime. */ @java.lang.Override @@ -70,6 +95,8 @@ public com.google.protobuf.Timestamp getMutateTime() { return mutateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; } /** + * + * *
    * When the change occurred.
    * 
@@ -82,14 +109,18 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { } public static final int MUTATED_BY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mutatedBy_ = ""; /** + * + * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; + * * @return The mutatedBy. */ @java.lang.Override @@ -98,29 +129,29 @@ public java.lang.String getMutatedBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mutatedBy_ = s; return s; } } /** + * + * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; + * * @return The bytes for mutatedBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getMutatedByBytes() { + public com.google.protobuf.ByteString getMutatedByBytes() { java.lang.Object ref = mutatedBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mutatedBy_ = b; return b; } else { @@ -129,6 +160,7 @@ public java.lang.String getMutatedBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +172,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mutateTime_ != null) { output.writeMessage(1, getMutateTime()); } @@ -158,8 +189,7 @@ public int getSerializedSize() { size = 0; if (mutateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMutateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMutateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mutatedBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mutatedBy_); @@ -172,7 +202,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.MutationRecord)) { return super.equals(obj); @@ -181,11 +211,9 @@ public boolean equals(final java.lang.Object obj) { if (hasMutateTime() != other.hasMutateTime()) return false; if (hasMutateTime()) { - if (!getMutateTime() - .equals(other.getMutateTime())) return false; + if (!getMutateTime().equals(other.getMutateTime())) return false; } - if (!getMutatedBy() - .equals(other.getMutatedBy())) return false; + if (!getMutatedBy().equals(other.getMutatedBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,132 +236,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.MutationRecord parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.MutationRecord parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.MutationRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.MutationRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.MutationRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.MutationRecord parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.MutationRecord parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.MutationRecord parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.MutationRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.MutationRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.MutationRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a change made to a configuration.
    * 
* * Protobuf type {@code google.monitoring.v3.MutationRecord} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.MutationRecord) com.google.monitoring.v3.MutationRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MutationRecordProto + .internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable + return com.google.monitoring.v3.MutationRecordProto + .internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.MutationRecord.class, com.google.monitoring.v3.MutationRecord.Builder.class); + com.google.monitoring.v3.MutationRecord.class, + com.google.monitoring.v3.MutationRecord.Builder.class); } // Construct using com.google.monitoring.v3.MutationRecord.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MutationRecordProto.internal_static_google_monitoring_v3_MutationRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MutationRecordProto + .internal_static_google_monitoring_v3_MutationRecord_descriptor; } @java.lang.Override @@ -369,8 +401,11 @@ public com.google.monitoring.v3.MutationRecord build() { @java.lang.Override public com.google.monitoring.v3.MutationRecord buildPartial() { - com.google.monitoring.v3.MutationRecord result = new com.google.monitoring.v3.MutationRecord(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.MutationRecord result = + new com.google.monitoring.v3.MutationRecord(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -378,9 +413,7 @@ public com.google.monitoring.v3.MutationRecord buildPartial() { private void buildPartial0(com.google.monitoring.v3.MutationRecord result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.mutateTime_ = mutateTimeBuilder_ == null - ? mutateTime_ - : mutateTimeBuilder_.build(); + result.mutateTime_ = mutateTimeBuilder_ == null ? mutateTime_ : mutateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.mutatedBy_ = mutatedBy_; @@ -391,38 +424,39 @@ private void buildPartial0(com.google.monitoring.v3.MutationRecord result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.MutationRecord) { - return mergeFrom((com.google.monitoring.v3.MutationRecord)other); + return mergeFrom((com.google.monitoring.v3.MutationRecord) other); } else { super.mergeFrom(other); return this; @@ -465,24 +499,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMutateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - mutatedBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getMutateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mutatedBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,38 +527,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp mutateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> mutateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + mutateTimeBuilder_; /** + * + * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return Whether the mutateTime field is set. */ public boolean hasMutateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return The mutateTime. */ public com.google.protobuf.Timestamp getMutateTime() { if (mutateTimeBuilder_ == null) { - return mutateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; + return mutateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : mutateTime_; } else { return mutateTimeBuilder_.getMessage(); } } /** + * + * *
      * When the change occurred.
      * 
@@ -544,14 +593,15 @@ public Builder setMutateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * When the change occurred.
      * 
* * .google.protobuf.Timestamp mutate_time = 1; */ - public Builder setMutateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMutateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (mutateTimeBuilder_ == null) { mutateTime_ = builderForValue.build(); } else { @@ -562,6 +612,8 @@ public Builder setMutateTime( return this; } /** + * + * *
      * When the change occurred.
      * 
@@ -570,9 +622,9 @@ public Builder setMutateTime( */ public Builder mergeMutateTime(com.google.protobuf.Timestamp value) { if (mutateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - mutateTime_ != null && - mutateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && mutateTime_ != null + && mutateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMutateTimeBuilder().mergeFrom(value); } else { mutateTime_ = value; @@ -585,6 +637,8 @@ public Builder mergeMutateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * When the change occurred.
      * 
@@ -602,6 +656,8 @@ public Builder clearMutateTime() { return this; } /** + * + * *
      * When the change occurred.
      * 
@@ -614,6 +670,8 @@ public com.google.protobuf.Timestamp.Builder getMutateTimeBuilder() { return getMutateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When the change occurred.
      * 
@@ -624,11 +682,14 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { if (mutateTimeBuilder_ != null) { return mutateTimeBuilder_.getMessageOrBuilder(); } else { - return mutateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : mutateTime_; + return mutateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : mutateTime_; } } /** + * + * *
      * When the change occurred.
      * 
@@ -636,14 +697,17 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { * .google.protobuf.Timestamp mutate_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getMutateTimeFieldBuilder() { if (mutateTimeBuilder_ == null) { - mutateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getMutateTime(), - getParentForChildren(), - isClean()); + mutateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMutateTime(), getParentForChildren(), isClean()); mutateTime_ = null; } return mutateTimeBuilder_; @@ -651,18 +715,20 @@ public com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder() { private java.lang.Object mutatedBy_ = ""; /** + * + * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; + * * @return The mutatedBy. */ public java.lang.String getMutatedBy() { java.lang.Object ref = mutatedBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mutatedBy_ = s; return s; @@ -671,20 +737,21 @@ public java.lang.String getMutatedBy() { } } /** + * + * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; + * * @return The bytes for mutatedBy. */ - public com.google.protobuf.ByteString - getMutatedByBytes() { + public com.google.protobuf.ByteString getMutatedByBytes() { java.lang.Object ref = mutatedBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mutatedBy_ = b; return b; } else { @@ -692,28 +759,35 @@ public java.lang.String getMutatedBy() { } } /** + * + * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; + * * @param value The mutatedBy to set. * @return This builder for chaining. */ - public Builder setMutatedBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMutatedBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mutatedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; + * * @return This builder for chaining. */ public Builder clearMutatedBy() { @@ -723,26 +797,30 @@ public Builder clearMutatedBy() { return this; } /** + * + * *
      * The email address of the user making the change.
      * 
* * string mutated_by = 2; + * * @param value The bytes for mutatedBy to set. * @return This builder for chaining. */ - public Builder setMutatedByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMutatedByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mutatedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +830,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.MutationRecord) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) private static final com.google.monitoring.v3.MutationRecord DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.MutationRecord(); } @@ -766,27 +844,27 @@ public static com.google.monitoring.v3.MutationRecord getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MutationRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutationRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +879,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.MutationRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java similarity index 62% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java index 74557bc8181a..63802659b53f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/mutation_record.proto package com.google.monitoring.v3; -public interface MutationRecordOrBuilder extends +public interface MutationRecordOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.MutationRecord) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return Whether the mutateTime field is set. */ boolean hasMutateTime(); /** + * + * *
    * When the change occurred.
    * 
* * .google.protobuf.Timestamp mutate_time = 1; + * * @return The mutateTime. */ com.google.protobuf.Timestamp getMutateTime(); /** + * + * *
    * When the change occurred.
    * 
@@ -35,22 +59,27 @@ public interface MutationRecordOrBuilder extends com.google.protobuf.TimestampOrBuilder getMutateTimeOrBuilder(); /** + * + * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; + * * @return The mutatedBy. */ java.lang.String getMutatedBy(); /** + * + * *
    * The email address of the user making the change.
    * 
* * string mutated_by = 2; + * * @return The bytes for mutatedBy. */ - com.google.protobuf.ByteString - getMutatedByBytes(); + com.google.protobuf.ByteString getMutatedByBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java new file mode 100644 index 000000000000..b3b7981e2c5e --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/mutation_record.proto + +package com.google.monitoring.v3; + +public final class MutationRecordProto { + private MutationRecordProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_MutationRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/monitoring/v3/mutation_record.p" + + "roto\022\024google.monitoring.v3\032\037google/proto" + + "buf/timestamp.proto\"U\n\016MutationRecord\022/\n" + + "\013mutate_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\022\n\nmutated_by\030\002 \001(\tB\316\001\n\030com.googl" + + "e.monitoring.v3B\023MutationRecordProtoP\001ZA" + + "cloud.google.com/go/monitoring/apiv3/v2/" + + "monitoringpb;monitoringpb\252\002\032Google.Cloud" + + ".Monitoring.V3\312\002\032Google\\Cloud\\Monitoring" + + "\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_MutationRecord_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_MutationRecord_descriptor, + new java.lang.String[] { + "MutateTime", "MutatedBy", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java index 1c4d58d2fb6b..78d138bcf6e1 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; /** + * + * *
  * A `NotificationChannel` is a medium through which an alert is
  * delivered when a policy violation is detected. Examples of channels
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.NotificationChannel}
  */
-public final class NotificationChannel extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationChannel extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.NotificationChannel)
     NotificationChannelOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationChannel.newBuilder() to construct.
   private NotificationChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationChannel() {
     type_ = "";
     name_ = "";
@@ -34,39 +52,41 @@ private NotificationChannel() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationChannel();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.NotificationProto
+        .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       case 8:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
+    return com.google.monitoring.v3.NotificationProto
+        .internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.NotificationChannel.class, com.google.monitoring.v3.NotificationChannel.Builder.class);
+            com.google.monitoring.v3.NotificationChannel.class,
+            com.google.monitoring.v3.NotificationChannel.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates whether the channel has been verified or not. It is illegal
    * to specify this field in a
@@ -78,9 +98,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.monitoring.v3.NotificationChannel.VerificationStatus}
    */
-  public enum VerificationStatus
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum VerificationStatus implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Sentinel value used to indicate that the state is unknown, omitted, or
      * is not applicable (as in the case of channels that neither support
@@ -91,6 +112,8 @@ public enum VerificationStatus
      */
     VERIFICATION_STATUS_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The channel has yet to be verified and requires verification to function.
      * Note that this state also applies to the case where the verification
@@ -102,6 +125,8 @@ public enum VerificationStatus
      */
     UNVERIFIED(1),
     /**
+     *
+     *
      * 
      * It has been proven that notifications can be received on this
      * notification channel and that someone on the project has access
@@ -115,6 +140,8 @@ public enum VerificationStatus
     ;
 
     /**
+     *
+     *
      * 
      * Sentinel value used to indicate that the state is unknown, omitted, or
      * is not applicable (as in the case of channels that neither support
@@ -125,6 +152,8 @@ public enum VerificationStatus
      */
     public static final int VERIFICATION_STATUS_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The channel has yet to be verified and requires verification to function.
      * Note that this state also applies to the case where the verification
@@ -136,6 +165,8 @@ public enum VerificationStatus
      */
     public static final int UNVERIFIED_VALUE = 1;
     /**
+     *
+     *
      * 
      * It has been proven that notifications can be received on this
      * notification channel and that someone on the project has access
@@ -146,7 +177,6 @@ public enum VerificationStatus
      */
     public static final int VERIFIED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -171,10 +201,14 @@ public static VerificationStatus valueOf(int value) {
      */
     public static VerificationStatus forNumber(int value) {
       switch (value) {
-        case 0: return VERIFICATION_STATUS_UNSPECIFIED;
-        case 1: return UNVERIFIED;
-        case 2: return VERIFIED;
-        default: return null;
+        case 0:
+          return VERIFICATION_STATUS_UNSPECIFIED;
+        case 1:
+          return UNVERIFIED;
+        case 2:
+          return VERIFIED;
+        default:
+          return null;
       }
     }
 
@@ -182,28 +216,28 @@ public static VerificationStatus forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        VerificationStatus> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public VerificationStatus findValueByNumber(int number) {
-              return VerificationStatus.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public VerificationStatus findValueByNumber(int number) {
+                return VerificationStatus.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.NotificationChannel.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -212,8 +246,7 @@ public VerificationStatus findValueByNumber(int number) {
     public static VerificationStatus valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -231,9 +264,12 @@ private VerificationStatus(int value) {
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
+   *
+   *
    * 
    * The type of the notification channel. This field matches the
    * value of the
@@ -242,6 +278,7 @@ private VerificationStatus(int value) {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -250,14 +287,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of the notification channel. This field matches the
    * value of the
@@ -266,16 +304,15 @@ public java.lang.String getType() {
    * 
* * string type = 1; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -284,9 +321,12 @@ public java.lang.String getType() { } public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The full REST resource name for this channel. The format is:
    *
@@ -296,6 +336,7 @@ public java.lang.String getType() {
    * 
* * string name = 6; + * * @return The name. */ @java.lang.Override @@ -304,14 +345,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The full REST resource name for this channel. The format is:
    *
@@ -321,16 +363,15 @@ public java.lang.String getName() {
    * 
* * string name = 6; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -339,9 +380,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -350,6 +394,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -358,14 +403,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -374,16 +420,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -392,9 +437,12 @@ public java.lang.String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -402,6 +450,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 4; + * * @return The description. */ @java.lang.Override @@ -410,14 +459,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -425,16 +475,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 4; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -443,32 +492,34 @@ public java.lang.String getDescription() { } public static final int LABELS_FIELD_NUMBER = 5; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.NotificationProto + .internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -479,20 +530,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -507,6 +559,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -517,17 +571,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -538,11 +594,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -550,32 +606,34 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int USER_LABELS_FIELD_NUMBER = 8;
+
   private static final class UserLabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.monitoring.v3.NotificationProto
+                .internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> userLabels_;
-  private com.google.protobuf.MapField
-  internalGetUserLabels() {
+  private com.google.protobuf.MapField userLabels_;
+
+  private com.google.protobuf.MapField internalGetUserLabels() {
     if (userLabels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          UserLabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry);
     }
     return userLabels_;
   }
+
   public int getUserLabelsCount() {
     return internalGetUserLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -591,20 +649,21 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -624,6 +683,8 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -639,17 +700,19 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  public /* nullable */ java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -665,11 +728,11 @@ java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -679,6 +742,8 @@ public java.lang.String getUserLabelsOrThrow(
   public static final int VERIFICATION_STATUS_FIELD_NUMBER = 9;
   private int verificationStatus_ = 0;
   /**
+   *
+   *
    * 
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -701,13 +766,18 @@ public java.lang.String getUserLabelsOrThrow(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The enum numeric value on the wire for verificationStatus. */ - @java.lang.Override public int getVerificationStatusValue() { + @java.lang.Override + public int getVerificationStatusValue() { return verificationStatus_; } /** + * + * *
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -730,17 +800,26 @@ public java.lang.String getUserLabelsOrThrow(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The verificationStatus. */ - @java.lang.Override public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { - com.google.monitoring.v3.NotificationChannel.VerificationStatus result = com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber(verificationStatus_); - return result == null ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { + com.google.monitoring.v3.NotificationChannel.VerificationStatus result = + com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber( + verificationStatus_); + return result == null + ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED + : result; } public static final int ENABLED_FIELD_NUMBER = 11; private com.google.protobuf.BoolValue enabled_; /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -751,6 +830,7 @@ public java.lang.String getUserLabelsOrThrow(
    * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return Whether the enabled field is set. */ @java.lang.Override @@ -758,6 +838,8 @@ public boolean hasEnabled() { return enabled_ != null; } /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -768,6 +850,7 @@ public boolean hasEnabled() {
    * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return The enabled. */ @java.lang.Override @@ -775,6 +858,8 @@ public com.google.protobuf.BoolValue getEnabled() { return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_; } /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -794,11 +879,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
   public static final int CREATION_RECORD_FIELD_NUMBER = 12;
   private com.google.monitoring.v3.MutationRecord creationRecord_;
   /**
+   *
+   *
    * 
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return Whether the creationRecord field is set. */ @java.lang.Override @@ -806,18 +894,25 @@ public boolean hasCreationRecord() { return creationRecord_ != null; } /** + * + * *
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return The creationRecord. */ @java.lang.Override public com.google.monitoring.v3.MutationRecord getCreationRecord() { - return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } /** + * + * *
    * Record of the creation of this channel.
    * 
@@ -826,13 +921,18 @@ public com.google.monitoring.v3.MutationRecord getCreationRecord() { */ @java.lang.Override public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder() { - return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } public static final int MUTATION_RECORDS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List mutationRecords_; /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -844,6 +944,8 @@ public java.util.List getMutationRecord return mutationRecords_; } /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -851,11 +953,13 @@ public java.util.List getMutationRecord * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ @java.lang.Override - public java.util.List + public java.util.List getMutationRecordsOrBuilderList() { return mutationRecords_; } /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -867,6 +971,8 @@ public int getMutationRecordsCount() { return mutationRecords_.size(); } /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -878,6 +984,8 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { return mutationRecords_.get(index); } /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -885,12 +993,12 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ @java.lang.Override - public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( - int index) { + public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index) { return mutationRecords_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -902,8 +1010,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -913,22 +1020,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUserLabels(), - UserLabelsDefaultEntryHolder.defaultEntry, - 8); - if (verificationStatus_ != com.google.monitoring.v3.NotificationChannel.VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 8); + if (verificationStatus_ + != com.google.monitoring.v3.NotificationChannel.VerificationStatus + .VERIFICATION_STATUS_UNSPECIFIED + .getNumber()) { output.writeEnum(9, verificationStatus_); } if (enabled_ != null) { @@ -958,44 +1060,43 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } - for (java.util.Map.Entry entry - : internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, userLabels__); - } - if (verificationStatus_ != com.google.monitoring.v3.NotificationChannel.VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, verificationStatus_); + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, userLabels__); + } + if (verificationStatus_ + != com.google.monitoring.v3.NotificationChannel.VerificationStatus + .VERIFICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, verificationStatus_); } if (enabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getEnabled()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEnabled()); } if (creationRecord_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getCreationRecord()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreationRecord()); } for (int i = 0; i < mutationRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, mutationRecords_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, mutationRecords_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1005,38 +1106,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.NotificationChannel)) { return super.equals(obj); } - com.google.monitoring.v3.NotificationChannel other = (com.google.monitoring.v3.NotificationChannel) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetUserLabels().equals( - other.internalGetUserLabels())) return false; + com.google.monitoring.v3.NotificationChannel other = + (com.google.monitoring.v3.NotificationChannel) obj; + + if (!getType().equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; if (verificationStatus_ != other.verificationStatus_) return false; if (hasEnabled() != other.hasEnabled()) return false; if (hasEnabled()) { - if (!getEnabled() - .equals(other.getEnabled())) return false; + if (!getEnabled().equals(other.getEnabled())) return false; } if (hasCreationRecord() != other.hasCreationRecord()) return false; if (hasCreationRecord()) { - if (!getCreationRecord() - .equals(other.getCreationRecord())) return false; + if (!getCreationRecord().equals(other.getCreationRecord())) return false; } - if (!getMutationRecordsList() - .equals(other.getMutationRecordsList())) return false; + if (!getMutationRecordsList().equals(other.getMutationRecordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1083,99 +1176,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.NotificationChannel parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.NotificationChannel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.NotificationChannel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.NotificationChannel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.NotificationChannel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `NotificationChannel` is a medium through which an alert is
    * delivered when a policy violation is detected. Examples of channels
@@ -1186,59 +1284,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.NotificationChannel}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.NotificationChannel)
       com.google.monitoring.v3.NotificationChannelOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         case 8:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         case 8:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.NotificationChannel.class, com.google.monitoring.v3.NotificationChannel.Builder.class);
+              com.google.monitoring.v3.NotificationChannel.class,
+              com.google.monitoring.v3.NotificationChannel.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.NotificationChannel.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1271,9 +1366,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannel_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannel_descriptor;
     }
 
     @java.lang.Override
@@ -1292,9 +1387,12 @@ public com.google.monitoring.v3.NotificationChannel build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.NotificationChannel buildPartial() {
-      com.google.monitoring.v3.NotificationChannel result = new com.google.monitoring.v3.NotificationChannel(this);
+      com.google.monitoring.v3.NotificationChannel result =
+          new com.google.monitoring.v3.NotificationChannel(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1337,14 +1435,11 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannel result)
         result.verificationStatus_ = verificationStatus_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.enabled_ = enabledBuilder_ == null
-            ? enabled_
-            : enabledBuilder_.build();
+        result.enabled_ = enabledBuilder_ == null ? enabled_ : enabledBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.creationRecord_ = creationRecordBuilder_ == null
-            ? creationRecord_
-            : creationRecordBuilder_.build();
+        result.creationRecord_ =
+            creationRecordBuilder_ == null ? creationRecord_ : creationRecordBuilder_.build();
       }
     }
 
@@ -1352,38 +1447,39 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannel result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.NotificationChannel) {
-        return mergeFrom((com.google.monitoring.v3.NotificationChannel)other);
+        return mergeFrom((com.google.monitoring.v3.NotificationChannel) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1412,11 +1508,9 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) {
         bitField0_ |= 0x00000008;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000010;
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
       bitField0_ |= 0x00000020;
       if (other.verificationStatus_ != 0) {
         setVerificationStatusValue(other.getVerificationStatusValue());
@@ -1445,9 +1539,10 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) {
             mutationRecordsBuilder_ = null;
             mutationRecords_ = other.mutationRecords_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            mutationRecordsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMutationRecordsFieldBuilder() : null;
+            mutationRecordsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMutationRecordsFieldBuilder()
+                    : null;
           } else {
             mutationRecordsBuilder_.addAllMessages(other.mutationRecords_);
           }
@@ -1479,82 +1574,92 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 50
-            case 66: {
-              com.google.protobuf.MapEntry
-              userLabels__ = input.readMessage(
-                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserLabels().getMutableMap().put(
-                  userLabels__.getKey(), userLabels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 66
-            case 72: {
-              verificationStatus_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 72
-            case 90: {
-              input.readMessage(
-                  getEnabledFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getCreationRecordFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 98
-            case 106: {
-              com.google.monitoring.v3.MutationRecord m =
-                  input.readMessage(
-                      com.google.monitoring.v3.MutationRecord.parser(),
-                      extensionRegistry);
-              if (mutationRecordsBuilder_ == null) {
-                ensureMutationRecordsIsMutable();
-                mutationRecords_.add(m);
-              } else {
-                mutationRecordsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+            case 66:
+              {
+                com.google.protobuf.MapEntry userLabels__ =
+                    input.readMessage(
+                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableUserLabels()
+                    .getMutableMap()
+                    .put(userLabels__.getKey(), userLabels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 66
+            case 72:
+              {
+                verificationStatus_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 72
+            case 90:
+              {
+                input.readMessage(getEnabledFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getCreationRecordFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.monitoring.v3.MutationRecord m =
+                    input.readMessage(
+                        com.google.monitoring.v3.MutationRecord.parser(), extensionRegistry);
+                if (mutationRecordsBuilder_ == null) {
+                  ensureMutationRecordsIsMutable();
+                  mutationRecords_.add(m);
+                } else {
+                  mutationRecordsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1564,10 +1669,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
+     *
+     *
      * 
      * The type of the notification channel. This field matches the
      * value of the
@@ -1576,13 +1684,13 @@ public Builder mergeFrom(
      * 
* * string type = 1; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1591,6 +1699,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the notification channel. This field matches the
      * value of the
@@ -1599,15 +1709,14 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1615,6 +1724,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the notification channel. This field matches the
      * value of the
@@ -1623,18 +1734,22 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The type of the notification channel. This field matches the
      * value of the
@@ -1643,6 +1758,7 @@ public Builder setType(
      * 
* * string type = 1; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1652,6 +1768,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of the notification channel. This field matches the
      * value of the
@@ -1660,12 +1778,14 @@ public Builder clearType() {
      * 
* * string type = 1; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -1675,6 +1795,8 @@ public Builder setTypeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1684,13 +1806,13 @@ public Builder setTypeBytes(
      * 
* * string name = 6; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1699,6 +1821,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1708,15 +1832,14 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1724,6 +1847,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1733,18 +1858,22 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1754,6 +1883,7 @@ public Builder setName(
      * 
* * string name = 6; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1763,6 +1893,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The full REST resource name for this channel. The format is:
      *
@@ -1772,12 +1904,14 @@ public Builder clearName() {
      * 
* * string name = 6; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; @@ -1787,6 +1921,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1795,13 +1931,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1810,6 +1946,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1818,15 +1956,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1834,6 +1971,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1842,18 +1981,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1862,6 +2005,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1871,6 +2015,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * An optional human-readable name for this notification channel. It is
      * recommended that you specify a non-empty and unique name in order to
@@ -1879,12 +2025,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1894,6 +2042,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -1901,13 +2051,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 4; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1916,6 +2066,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -1923,15 +2075,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 4; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1939,6 +2090,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -1946,18 +2099,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 4; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -1965,6 +2122,7 @@ public Builder setDescription(
      * 
* * string description = 4; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1974,6 +2132,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional human-readable description of this notification channel. This
      * description may provide additional details, beyond the display
@@ -1981,12 +2141,14 @@ public Builder clearDescription() {
      * 
* * string description = 4; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -1994,21 +2156,19 @@ public Builder setDescriptionBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2017,10 +2177,13 @@ public Builder setDescriptionBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2031,20 +2194,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2059,6 +2223,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2069,17 +2235,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2090,23 +2258,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2116,23 +2286,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2142,17 +2311,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration fields that define the channel and its behavior. The
      * permissible and required labels are specified in the
@@ -2162,16 +2334,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 5;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> userLabels_;
+    private com.google.protobuf.MapField userLabels_;
+
     private com.google.protobuf.MapField
         internalGetUserLabels() {
       if (userLabels_ == null) {
@@ -2180,11 +2350,12 @@ public Builder putAllLabels(
       }
       return userLabels_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableUserLabels() {
       if (userLabels_ == null) {
-        userLabels_ = com.google.protobuf.MapField.newMapField(
-            UserLabelsDefaultEntryHolder.defaultEntry);
+        userLabels_ =
+            com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
       }
       if (!userLabels_.isMutable()) {
         userLabels_ = userLabels_.copy();
@@ -2193,10 +2364,13 @@ public Builder putAllLabels(
       onChanged();
       return userLabels_;
     }
+
     public int getUserLabelsCount() {
       return internalGetUserLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2212,20 +2386,21 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2245,6 +2420,8 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2260,17 +2437,19 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+    public /* nullable */ java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2286,23 +2465,25 @@ java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2317,23 +2498,22 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2348,17 +2528,20 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data that does not need to conform to
      * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -2373,16 +2556,16 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private int verificationStatus_ = 0;
     /**
+     *
+     *
      * 
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2405,13 +2588,18 @@ public Builder putAllUserLabels(
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The enum numeric value on the wire for verificationStatus. */ - @java.lang.Override public int getVerificationStatusValue() { + @java.lang.Override + public int getVerificationStatusValue() { return verificationStatus_; } /** + * + * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2434,7 +2622,9 @@ public Builder putAllUserLabels(
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @param value The enum numeric value on the wire for verificationStatus to set. * @return This builder for chaining. */ @@ -2445,6 +2635,8 @@ public Builder setVerificationStatusValue(int value) { return this; } /** + * + * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2467,15 +2659,23 @@ public Builder setVerificationStatusValue(int value) {
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The verificationStatus. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus() { - com.google.monitoring.v3.NotificationChannel.VerificationStatus result = com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber(verificationStatus_); - return result == null ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED : result; + com.google.monitoring.v3.NotificationChannel.VerificationStatus result = + com.google.monitoring.v3.NotificationChannel.VerificationStatus.forNumber( + verificationStatus_); + return result == null + ? com.google.monitoring.v3.NotificationChannel.VerificationStatus.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2498,11 +2698,14 @@ public com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerifi
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @param value The verificationStatus to set. * @return This builder for chaining. */ - public Builder setVerificationStatus(com.google.monitoring.v3.NotificationChannel.VerificationStatus value) { + public Builder setVerificationStatus( + com.google.monitoring.v3.NotificationChannel.VerificationStatus value) { if (value == null) { throw new NullPointerException(); } @@ -2512,6 +2715,8 @@ public Builder setVerificationStatus(com.google.monitoring.v3.NotificationChanne return this; } /** + * + * *
      * Indicates whether this channel has been verified or not. On a
      * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -2534,7 +2739,9 @@ public Builder setVerificationStatus(com.google.monitoring.v3.NotificationChanne
      * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
      * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return This builder for chaining. */ public Builder clearVerificationStatus() { @@ -2546,8 +2753,13 @@ public Builder clearVerificationStatus() { private com.google.protobuf.BoolValue enabled_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enabledBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enabledBuilder_; /** + * + * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2558,12 +2770,15 @@ public Builder clearVerificationStatus() {
      * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return Whether the enabled field is set. */ public boolean hasEnabled() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2574,6 +2789,7 @@ public boolean hasEnabled() {
      * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return The enabled. */ public com.google.protobuf.BoolValue getEnabled() { @@ -2584,6 +2800,8 @@ public com.google.protobuf.BoolValue getEnabled() { } } /** + * + * *
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2609,6 +2827,8 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2620,8 +2840,7 @@ public Builder setEnabled(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enabled = 11;
      */
-    public Builder setEnabled(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enabledBuilder_ == null) {
         enabled_ = builderForValue.build();
       } else {
@@ -2632,6 +2851,8 @@ public Builder setEnabled(
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2645,9 +2866,9 @@ public Builder setEnabled(
      */
     public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       if (enabledBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          enabled_ != null &&
-          enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && enabled_ != null
+            && enabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnabledBuilder().mergeFrom(value);
         } else {
           enabled_ = value;
@@ -2660,6 +2881,8 @@ public Builder mergeEnabled(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2682,6 +2905,8 @@ public Builder clearEnabled() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2699,6 +2924,8 @@ public com.google.protobuf.BoolValue.Builder getEnabledBuilder() {
       return getEnabledFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2714,11 +2941,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
       if (enabledBuilder_ != null) {
         return enabledBuilder_.getMessageOrBuilder();
       } else {
-        return enabled_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
+        return enabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enabled_;
       }
     }
     /**
+     *
+     *
      * 
      * Whether notifications are forwarded to the described channel. This makes
      * it possible to disable delivery of notifications to a particular channel
@@ -2731,14 +2959,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
      * .google.protobuf.BoolValue enabled = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnabledFieldBuilder() {
       if (enabledBuilder_ == null) {
-        enabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnabled(),
-                getParentForChildren(),
-                isClean());
+        enabledBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnabled(), getParentForChildren(), isClean());
         enabled_ = null;
       }
       return enabledBuilder_;
@@ -2746,34 +2977,47 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() {
 
     private com.google.monitoring.v3.MutationRecord creationRecord_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> creationRecordBuilder_;
+            com.google.monitoring.v3.MutationRecord,
+            com.google.monitoring.v3.MutationRecord.Builder,
+            com.google.monitoring.v3.MutationRecordOrBuilder>
+        creationRecordBuilder_;
     /**
+     *
+     *
      * 
      * Record of the creation of this channel.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return Whether the creationRecord field is set. */ public boolean hasCreationRecord() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Record of the creation of this channel.
      * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return The creationRecord. */ public com.google.monitoring.v3.MutationRecord getCreationRecord() { if (creationRecordBuilder_ == null) { - return creationRecord_ == null ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } else { return creationRecordBuilder_.getMessage(); } } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2794,6 +3038,8 @@ public Builder setCreationRecord(com.google.monitoring.v3.MutationRecord value) return this; } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2812,6 +3058,8 @@ public Builder setCreationRecord( return this; } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2820,9 +3068,9 @@ public Builder setCreationRecord( */ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value) { if (creationRecordBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - creationRecord_ != null && - creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && creationRecord_ != null + && creationRecord_ != com.google.monitoring.v3.MutationRecord.getDefaultInstance()) { getCreationRecordBuilder().mergeFrom(value); } else { creationRecord_ = value; @@ -2835,6 +3083,8 @@ public Builder mergeCreationRecord(com.google.monitoring.v3.MutationRecord value return this; } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2852,6 +3102,8 @@ public Builder clearCreationRecord() { return this; } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2864,6 +3116,8 @@ public com.google.monitoring.v3.MutationRecord.Builder getCreationRecordBuilder( return getCreationRecordFieldBuilder().getBuilder(); } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2874,11 +3128,14 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild if (creationRecordBuilder_ != null) { return creationRecordBuilder_.getMessageOrBuilder(); } else { - return creationRecord_ == null ? - com.google.monitoring.v3.MutationRecord.getDefaultInstance() : creationRecord_; + return creationRecord_ == null + ? com.google.monitoring.v3.MutationRecord.getDefaultInstance() + : creationRecord_; } } /** + * + * *
      * Record of the creation of this channel.
      * 
@@ -2886,32 +3143,42 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuild * .google.monitoring.v3.MutationRecord creation_record = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder> getCreationRecordFieldBuilder() { if (creationRecordBuilder_ == null) { - creationRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>( - getCreationRecord(), - getParentForChildren(), - isClean()); + creationRecordBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder>( + getCreationRecord(), getParentForChildren(), isClean()); creationRecord_ = null; } return creationRecordBuilder_; } private java.util.List mutationRecords_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMutationRecordsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - mutationRecords_ = new java.util.ArrayList(mutationRecords_); + mutationRecords_ = + new java.util.ArrayList(mutationRecords_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> mutationRecordsBuilder_; + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder> + mutationRecordsBuilder_; /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -2926,6 +3193,8 @@ public java.util.List getMutationRecord } } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -2940,6 +3209,8 @@ public int getMutationRecordsCount() { } } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -2954,14 +3225,15 @@ public com.google.monitoring.v3.MutationRecord getMutationRecords(int index) { } } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public Builder setMutationRecords( - int index, com.google.monitoring.v3.MutationRecord value) { + public Builder setMutationRecords(int index, com.google.monitoring.v3.MutationRecord value) { if (mutationRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2975,6 +3247,8 @@ public Builder setMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -2993,6 +3267,8 @@ public Builder setMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3013,14 +3289,15 @@ public Builder addMutationRecords(com.google.monitoring.v3.MutationRecord value) return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public Builder addMutationRecords( - int index, com.google.monitoring.v3.MutationRecord value) { + public Builder addMutationRecords(int index, com.google.monitoring.v3.MutationRecord value) { if (mutationRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3034,6 +3311,8 @@ public Builder addMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3052,6 +3331,8 @@ public Builder addMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3070,6 +3351,8 @@ public Builder addMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3080,8 +3363,7 @@ public Builder addAllMutationRecords( java.lang.Iterable values) { if (mutationRecordsBuilder_ == null) { ensureMutationRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mutationRecords_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mutationRecords_); onChanged(); } else { mutationRecordsBuilder_.addAllMessages(values); @@ -3089,6 +3371,8 @@ public Builder addAllMutationRecords( return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3106,6 +3390,8 @@ public Builder clearMutationRecords() { return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3123,39 +3409,44 @@ public Builder removeMutationRecords(int index) { return this; } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordsBuilder( - int index) { + public com.google.monitoring.v3.MutationRecord.Builder getMutationRecordsBuilder(int index) { return getMutationRecordsFieldBuilder().getBuilder(index); } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( - int index) { + public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index) { if (mutationRecordsBuilder_ == null) { - return mutationRecords_.get(index); } else { + return mutationRecords_.get(index); + } else { return mutationRecordsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public java.util.List - getMutationRecordsOrBuilderList() { + public java.util.List + getMutationRecordsOrBuilderList() { if (mutationRecordsBuilder_ != null) { return mutationRecordsBuilder_.getMessageOrBuilderList(); } else { @@ -3163,6 +3454,8 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuil } } /** + * + * *
      * Records of the modification of this channel.
      * 
@@ -3170,38 +3463,47 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuil * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder() { - return getMutationRecordsFieldBuilder().addBuilder( - com.google.monitoring.v3.MutationRecord.getDefaultInstance()); + return getMutationRecordsFieldBuilder() + .addBuilder(com.google.monitoring.v3.MutationRecord.getDefaultInstance()); } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder( - int index) { - return getMutationRecordsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.MutationRecord.getDefaultInstance()); + public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder(int index) { + return getMutationRecordsFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.MutationRecord.getDefaultInstance()); } /** + * + * *
      * Records of the modification of this channel.
      * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - public java.util.List - getMutationRecordsBuilderList() { + public java.util.List + getMutationRecordsBuilderList() { return getMutationRecordsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder> + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder> getMutationRecordsFieldBuilder() { if (mutationRecordsBuilder_ == null) { - mutationRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.MutationRecord, com.google.monitoring.v3.MutationRecord.Builder, com.google.monitoring.v3.MutationRecordOrBuilder>( + mutationRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.MutationRecord, + com.google.monitoring.v3.MutationRecord.Builder, + com.google.monitoring.v3.MutationRecordOrBuilder>( mutationRecords_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), @@ -3210,9 +3512,9 @@ public com.google.monitoring.v3.MutationRecord.Builder addMutationRecordsBuilder } return mutationRecordsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3222,12 +3524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.NotificationChannel) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) private static final com.google.monitoring.v3.NotificationChannel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.NotificationChannel(); } @@ -3236,27 +3538,27 @@ public static com.google.monitoring.v3.NotificationChannel getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3271,6 +3573,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.NotificationChannel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java index 3b0e9a373ba7..405515cd65e2 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; /** + * + * *
  * A description of a notification channel. The descriptor includes
  * the properties of the channel and the set of labels or fields that
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.NotificationChannelDescriptor}
  */
-public final class NotificationChannelDescriptor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationChannelDescriptor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.NotificationChannelDescriptor)
     NotificationChannelDescriptorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationChannelDescriptor.newBuilder() to construct.
   private NotificationChannelDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationChannelDescriptor() {
     name_ = "";
     type_ = "";
@@ -33,28 +51,32 @@ private NotificationChannelDescriptor() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationChannelDescriptor();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.NotificationProto
+        .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
+    return com.google.monitoring.v3.NotificationProto
+        .internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.NotificationChannelDescriptor.class, com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
+            com.google.monitoring.v3.NotificationChannelDescriptor.class,
+            com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The full REST resource name for this descriptor. The format is:
    *
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 6; + * * @return The name. */ @java.lang.Override @@ -72,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -89,16 +113,15 @@ public java.lang.String getName() {
    * 
* * string name = 6; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -107,9 +130,12 @@ public java.lang.String getName() { } public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -119,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -127,14 +154,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -144,16 +172,15 @@ public java.lang.String getType() {
    * 
* * string type = 1; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -162,15 +189,19 @@ public java.lang.String getType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -179,30 +210,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -211,9 +242,12 @@ public java.lang.String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -221,6 +255,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -229,14 +264,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -244,16 +280,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -262,9 +297,12 @@ public java.lang.String getDescription() { } public static final int LABELS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List labels_; /** + * + * *
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -278,6 +316,8 @@ public java.util.List getLabelsList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -287,11 +327,13 @@ public java.util.List getLabelsList() {
    * repeated .google.api.LabelDescriptor labels = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLabelsOrBuilderList() {
     return labels_;
   }
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -305,6 +347,8 @@ public int getLabelsCount() {
     return labels_.size();
   }
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -318,6 +362,8 @@ public com.google.api.LabelDescriptor getLabels(int index) {
     return labels_.get(index);
   }
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -327,131 +373,169 @@ public com.google.api.LabelDescriptor getLabels(int index) {
    * repeated .google.api.LabelDescriptor labels = 4;
    */
   @java.lang.Override
-  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index) {
+  public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
     return labels_.get(index);
   }
 
   public static final int SUPPORTED_TIERS_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private java.util.List supportedTiers_;
+
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-      java.lang.Integer, com.google.monitoring.v3.ServiceTier> supportedTiers_converter_ =
+          java.lang.Integer, com.google.monitoring.v3.ServiceTier>
+      supportedTiers_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
               java.lang.Integer, com.google.monitoring.v3.ServiceTier>() {
             public com.google.monitoring.v3.ServiceTier convert(java.lang.Integer from) {
-              com.google.monitoring.v3.ServiceTier result = com.google.monitoring.v3.ServiceTier.forNumber(from);
+              com.google.monitoring.v3.ServiceTier result =
+                  com.google.monitoring.v3.ServiceTier.forNumber(from);
               return result == null ? com.google.monitoring.v3.ServiceTier.UNRECOGNIZED : result;
             }
           };
   /**
+   *
+   *
    * 
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ @java.lang.Override - @java.lang.Deprecated public java.util.List getSupportedTiersList() { + @java.lang.Deprecated + public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); + java.lang.Integer, com.google.monitoring.v3.ServiceTier>( + supportedTiers_, supportedTiers_converter_); } /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ @java.lang.Override - @java.lang.Deprecated public int getSupportedTiersCount() { + @java.lang.Deprecated + public int getSupportedTiersCount() { return supportedTiers_.size(); } /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Override - @java.lang.Deprecated public java.util.List - getSupportedTiersValueList() { + @java.lang.Deprecated + public java.util.List getSupportedTiersValueList() { return supportedTiers_; } /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @java.lang.Override - @java.lang.Deprecated public int getSupportedTiersValue(int index) { + @java.lang.Deprecated + public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } + private int supportedTiersMemoizedSerializedSize; public static final int LAUNCH_STAGE_FIELD_NUMBER = 7; private int launchStage_ = 0; /** + * + * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The launchStage. */ - @java.lang.Override public com.google.api.LaunchStage getLaunchStage() { + @java.lang.Override + public com.google.api.LaunchStage getLaunchStage() { com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_); return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -463,8 +547,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); @@ -510,27 +593,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < labels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels_.get(i)); } { int dataSize = 0; for (int i = 0; i < supportedTiers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(supportedTiers_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedTiers_.get(i)); } size += dataSize; - if (!getSupportedTiersList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }supportedTiersMemoizedSerializedSize = dataSize; + if (!getSupportedTiersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + supportedTiersMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, launchStage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -540,23 +622,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.NotificationChannelDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.NotificationChannelDescriptor other = (com.google.monitoring.v3.NotificationChannelDescriptor) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getLabelsList() - .equals(other.getLabelsList())) return false; + com.google.monitoring.v3.NotificationChannelDescriptor other = + (com.google.monitoring.v3.NotificationChannelDescriptor) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLabelsList().equals(other.getLabelsList())) return false; if (!supportedTiers_.equals(other.supportedTiers_)) return false; if (launchStage_ != other.launchStage_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -594,98 +672,104 @@ public int hashCode() { } public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.NotificationChannelDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.NotificationChannelDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.NotificationChannelDescriptor prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.NotificationChannelDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A description of a notification channel. The descriptor includes
    * the properties of the channel and the set of labels or fields that
@@ -694,33 +778,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.NotificationChannelDescriptor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.NotificationChannelDescriptor)
       com.google.monitoring.v3.NotificationChannelDescriptorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.NotificationChannelDescriptor.class, com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
+              com.google.monitoring.v3.NotificationChannelDescriptor.class,
+              com.google.monitoring.v3.NotificationChannelDescriptor.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.NotificationChannelDescriptor.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -743,9 +826,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.NotificationProto.internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.NotificationProto
+          .internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor;
     }
 
     @java.lang.Override
@@ -764,14 +847,18 @@ public com.google.monitoring.v3.NotificationChannelDescriptor build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.NotificationChannelDescriptor buildPartial() {
-      com.google.monitoring.v3.NotificationChannelDescriptor result = new com.google.monitoring.v3.NotificationChannelDescriptor(this);
+      com.google.monitoring.v3.NotificationChannelDescriptor result =
+          new com.google.monitoring.v3.NotificationChannelDescriptor(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.monitoring.v3.NotificationChannelDescriptor result) {
+    private void buildPartialRepeatedFields(
+        com.google.monitoring.v3.NotificationChannelDescriptor result) {
       if (labelsBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           labels_ = java.util.Collections.unmodifiableList(labels_);
@@ -811,38 +898,39 @@ private void buildPartial0(com.google.monitoring.v3.NotificationChannelDescripto
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.NotificationChannelDescriptor) {
-        return mergeFrom((com.google.monitoring.v3.NotificationChannelDescriptor)other);
+        return mergeFrom((com.google.monitoring.v3.NotificationChannelDescriptor) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -850,7 +938,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.monitoring.v3.NotificationChannelDescriptor other) {
-      if (other == com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance()) return this;
+      if (other == com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -889,9 +978,10 @@ public Builder mergeFrom(com.google.monitoring.v3.NotificationChannelDescriptor
             labelsBuilder_ = null;
             labels_ = other.labels_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            labelsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLabelsFieldBuilder() : null;
+            labelsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLabelsFieldBuilder()
+                    : null;
           } else {
             labelsBuilder_.addAllMessages(other.labels_);
           }
@@ -936,67 +1026,74 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 34: {
-              com.google.api.LabelDescriptor m =
-                  input.readMessage(
-                      com.google.api.LabelDescriptor.parser(),
-                      extensionRegistry);
-              if (labelsBuilder_ == null) {
-                ensureLabelsIsMutable();
-                labels_.add(m);
-              } else {
-                labelsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 34
-            case 40: {
-              int tmpRaw = input.readEnum();
-              ensureSupportedTiersIsMutable();
-              supportedTiers_.add(tmpRaw);
-              break;
-            } // case 40
-            case 42: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 10:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.api.LabelDescriptor m =
+                    input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry);
+                if (labelsBuilder_ == null) {
+                  ensureLabelsIsMutable();
+                  labels_.add(m);
+                } else {
+                  labelsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+            case 40:
+              {
                 int tmpRaw = input.readEnum();
                 ensureSupportedTiersIsMutable();
                 supportedTiers_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 42
-            case 50: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 50
-            case 56: {
-              launchStage_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 40
+            case 42:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureSupportedTiersIsMutable();
+                  supportedTiers_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 42
+            case 50:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 50
+            case 56:
+              {
+                launchStage_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1006,10 +1103,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1019,13 +1119,13 @@ public Builder mergeFrom(
      * 
* * string name = 6; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1034,6 +1134,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1043,15 +1145,14 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1059,6 +1160,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1068,18 +1171,22 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1089,6 +1196,7 @@ public Builder setName(
      * 
* * string name = 6; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1098,6 +1206,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The full REST resource name for this descriptor. The format is:
      *
@@ -1107,12 +1217,14 @@ public Builder clearName() {
      * 
* * string name = 6; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1122,6 +1234,8 @@ public Builder setNameBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1131,13 +1245,13 @@ public Builder setNameBytes(
      * 
* * string type = 1; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1146,6 +1260,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1155,15 +1271,14 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1171,6 +1286,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1180,18 +1297,22 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1201,6 +1322,7 @@ public Builder setType(
      * 
* * string type = 1; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1210,6 +1332,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of notification channel, such as "email" and "sms". To view the
      * full list of channels, see
@@ -1219,12 +1343,14 @@ public Builder clearType() {
      * 
* * string type = 1; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000002; @@ -1234,19 +1360,21 @@ public Builder setTypeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1255,21 +1383,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1277,30 +1406,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1310,18 +1446,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A human-readable name for the notification channel type.  This
      * form of the name is suitable for a user interface.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1331,6 +1471,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1338,13 +1480,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1353,6 +1495,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1360,15 +1504,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1376,6 +1519,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1383,18 +1528,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1402,6 +1551,7 @@ public Builder setDescription(
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1411,6 +1561,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A human-readable description of the notification channel
      * type. The description may include a description of the properties
@@ -1418,12 +1570,14 @@ public Builder clearDescription() {
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -1432,18 +1586,24 @@ public Builder setDescriptionBytes( } private java.util.List labels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelsBuilder_; + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> + labelsBuilder_; /** + * + * *
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1460,6 +1620,8 @@ public java.util.List getLabelsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1476,6 +1638,8 @@ public int getLabelsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1492,6 +1656,8 @@ public com.google.api.LabelDescriptor getLabels(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1500,8 +1666,7 @@ public com.google.api.LabelDescriptor getLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(
-        int index, com.google.api.LabelDescriptor value) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1515,6 +1680,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1523,8 +1690,7 @@ public Builder setLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder setLabels(
-        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder setLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.set(index, builderForValue.build());
@@ -1535,6 +1701,8 @@ public Builder setLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1557,6 +1725,8 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1565,8 +1735,7 @@ public Builder addLabels(com.google.api.LabelDescriptor value) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        int index, com.google.api.LabelDescriptor value) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor value) {
       if (labelsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1580,6 +1749,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1588,8 +1759,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(builderForValue.build());
@@ -1600,6 +1770,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1608,8 +1780,7 @@ public Builder addLabels(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public Builder addLabels(
-        int index, com.google.api.LabelDescriptor.Builder builderForValue) {
+    public Builder addLabels(int index, com.google.api.LabelDescriptor.Builder builderForValue) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
         labels_.add(index, builderForValue.build());
@@ -1620,6 +1791,8 @@ public Builder addLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1632,8 +1805,7 @@ public Builder addAllLabels(
         java.lang.Iterable values) {
       if (labelsBuilder_ == null) {
         ensureLabelsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, labels_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_);
         onChanged();
       } else {
         labelsBuilder_.addAllMessages(values);
@@ -1641,6 +1813,8 @@ public Builder addAllLabels(
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1660,6 +1834,8 @@ public Builder clearLabels() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1679,6 +1855,8 @@ public Builder removeLabels(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1687,11 +1865,12 @@ public Builder removeLabels(int index) {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(
-        int index) {
+    public com.google.api.LabelDescriptor.Builder getLabelsBuilder(int index) {
       return getLabelsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1700,14 +1879,16 @@ public com.google.api.LabelDescriptor.Builder getLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-        int index) {
+    public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
       if (labelsBuilder_ == null) {
-        return labels_.get(index);  } else {
+        return labels_.get(index);
+      } else {
         return labelsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1716,8 +1897,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List 
-         getLabelsOrBuilderList() {
+    public java.util.List
+        getLabelsOrBuilderList() {
       if (labelsBuilder_ != null) {
         return labelsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1725,6 +1906,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1734,10 +1917,12 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
      * repeated .google.api.LabelDescriptor labels = 4;
      */
     public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
-      return getLabelsFieldBuilder().addBuilder(
-          com.google.api.LabelDescriptor.getDefaultInstance());
+      return getLabelsFieldBuilder()
+          .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1746,12 +1931,13 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(
-        int index) {
-      return getLabelsFieldBuilder().addBuilder(
-          index, com.google.api.LabelDescriptor.getDefaultInstance());
+    public com.google.api.LabelDescriptor.Builder addLabelsBuilder(int index) {
+      return getLabelsFieldBuilder()
+          .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The set of labels that must be defined to identify a particular
      * channel of the corresponding type. Each label includes a
@@ -1760,27 +1946,29 @@ public com.google.api.LabelDescriptor.Builder addLabelsBuilder(
      *
      * repeated .google.api.LabelDescriptor labels = 4;
      */
-    public java.util.List 
-         getLabelsBuilderList() {
+    public java.util.List getLabelsBuilderList() {
       return getLabelsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> 
+            com.google.api.LabelDescriptor,
+            com.google.api.LabelDescriptor.Builder,
+            com.google.api.LabelDescriptorOrBuilder>
         getLabelsFieldBuilder() {
       if (labelsBuilder_ == null) {
-        labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>(
-                labels_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        labelsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.api.LabelDescriptor,
+                com.google.api.LabelDescriptor.Builder,
+                com.google.api.LabelDescriptorOrBuilder>(
+                labels_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
         labels_ = null;
       }
       return labelsBuilder_;
     }
 
-    private java.util.List supportedTiers_ =
-      java.util.Collections.emptyList();
+    private java.util.List supportedTiers_ = java.util.Collections.emptyList();
+
     private void ensureSupportedTiersIsMutable() {
       if (!((bitField0_ & 0x00000020) != 0)) {
         supportedTiers_ = new java.util.ArrayList(supportedTiers_);
@@ -1788,64 +1976,84 @@ private void ensureSupportedTiersIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ - @java.lang.Deprecated public java.util.List getSupportedTiersList() { + @java.lang.Deprecated + public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); + java.lang.Integer, com.google.monitoring.v3.ServiceTier>( + supportedTiers_, supportedTiers_converter_); } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ - @java.lang.Deprecated public int getSupportedTiersCount() { + @java.lang.Deprecated + public int getSupportedTiersCount() { return supportedTiers_.size(); } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ - @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index to set the value at. * @param value The supportedTiers to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSupportedTiers( - int index, com.google.monitoring.v3.ServiceTier value) { + @java.lang.Deprecated + public Builder setSupportedTiers(int index, com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); } @@ -1855,18 +2063,23 @@ private void ensureSupportedTiersIsMutable() { return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param value The supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { + @java.lang.Deprecated + public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); } @@ -1876,18 +2089,23 @@ private void ensureSupportedTiersIsMutable() { return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param values The supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAllSupportedTiers( + @java.lang.Deprecated + public Builder addAllSupportedTiers( java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (com.google.monitoring.v3.ServiceTier value : values) { @@ -1897,104 +2115,131 @@ private void ensureSupportedTiersIsMutable() { return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSupportedTiers() { + @java.lang.Deprecated + public Builder clearSupportedTiers() { supportedTiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ - @java.lang.Deprecated public java.util.List - getSupportedTiersValueList() { + @java.lang.Deprecated + public java.util.List getSupportedTiersValueList() { return java.util.Collections.unmodifiableList(supportedTiers_); } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ - @java.lang.Deprecated public int getSupportedTiersValue(int index) { + @java.lang.Deprecated + public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index to set the value at. * @param value The enum numeric value on the wire for supportedTiers to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSupportedTiersValue( - int index, int value) { + @java.lang.Deprecated + public Builder setSupportedTiersValue(int index, int value) { ensureSupportedTiersIsMutable(); supportedTiers_.set(index, value); onChanged(); return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param value The enum numeric value on the wire for supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addSupportedTiersValue(int value) { + @java.lang.Deprecated + public Builder addSupportedTiersValue(int value) { ensureSupportedTiersIsMutable(); supportedTiers_.add(value); onChanged(); return this; } /** + * + * *
      * The tiers that support this notification channel; the project service tier
      * must be one of the supported_tiers.
      * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param values The enum numeric values on the wire for supportedTiers to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAllSupportedTiersValue( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllSupportedTiersValue(java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (int value : values) { supportedTiers_.add(value); @@ -2005,22 +2250,29 @@ private void ensureSupportedTiersIsMutable() { private int launchStage_ = 0; /** + * + * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The enum numeric value on the wire for launchStage. */ - @java.lang.Override public int getLaunchStageValue() { + @java.lang.Override + public int getLaunchStageValue() { return launchStage_; } /** + * + * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. */ @@ -2031,11 +2283,14 @@ public Builder setLaunchStageValue(int value) { return this; } /** + * + * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The launchStage. */ @java.lang.Override @@ -2044,11 +2299,14 @@ public com.google.api.LaunchStage getLaunchStage() { return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; } /** + * + * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -2062,11 +2320,14 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { return this; } /** + * + * *
      * The product launch stage for channels of this type.
      * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return This builder for chaining. */ public Builder clearLaunchStage() { @@ -2075,9 +2336,9 @@ public Builder clearLaunchStage() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2087,12 +2348,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.NotificationChannelDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) private static final com.google.monitoring.v3.NotificationChannelDescriptor DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.NotificationChannelDescriptor(); } @@ -2101,27 +2362,27 @@ public static com.google.monitoring.v3.NotificationChannelDescriptor getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationChannelDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationChannelDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2136,6 +2397,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.monitoring.v3.NotificationChannelDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java similarity index 79% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java index 64a01be8b542..c980de9f99c8 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; -public interface NotificationChannelDescriptorOrBuilder extends +public interface NotificationChannelDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.NotificationChannelDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -17,10 +35,13 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string name = 6; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The full REST resource name for this descriptor. The format is:
    *
@@ -30,12 +51,14 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string name = 6; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -45,10 +68,13 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of notification channel, such as "email" and "sms". To view the
    * full list of channels, see
@@ -58,34 +84,41 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A human-readable name for the notification channel type.  This
    * form of the name is suitable for a user interface.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -93,10 +126,13 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human-readable description of the notification channel
    * type. The description may include a description of the properties
@@ -104,12 +140,14 @@ public interface NotificationChannelDescriptorOrBuilder extends
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -118,9 +156,10 @@ public interface NotificationChannelDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List 
-      getLabelsList();
+  java.util.List getLabelsList();
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -131,6 +170,8 @@ public interface NotificationChannelDescriptorOrBuilder extends
    */
   com.google.api.LabelDescriptor getLabels(int index);
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -141,6 +182,8 @@ public interface NotificationChannelDescriptorOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -149,9 +192,10 @@ public interface NotificationChannelDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  java.util.List 
-      getLabelsOrBuilderList();
+  java.util.List getLabelsOrBuilderList();
   /**
+   *
+   *
    * 
    * The set of labels that must be defined to identify a particular
    * channel of the corresponding type. Each label includes a
@@ -160,88 +204,117 @@ public interface NotificationChannelDescriptorOrBuilder extends
    *
    * repeated .google.api.LabelDescriptor labels = 4;
    */
-  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
-      int index);
+  com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ - @java.lang.Deprecated java.util.List getSupportedTiersList(); + @java.lang.Deprecated + java.util.List getSupportedTiersList(); /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ - @java.lang.Deprecated int getSupportedTiersCount(); + @java.lang.Deprecated + int getSupportedTiersCount(); /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ - @java.lang.Deprecated com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); + @java.lang.Deprecated + com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ - @java.lang.Deprecated java.util.List - getSupportedTiersValueList(); + @java.lang.Deprecated + java.util.List getSupportedTiersValueList(); /** + * + * *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; + * + * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ - @java.lang.Deprecated int getSupportedTiersValue(int index); + @java.lang.Deprecated + int getSupportedTiersValue(int index); /** + * + * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * The product launch stage for channels of this type.
    * 
* * .google.api.LaunchStage launch_stage = 7; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java similarity index 87% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java index a5a56ac2910f..8cf3c972e4c1 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification.proto package com.google.monitoring.v3; -public interface NotificationChannelOrBuilder extends +public interface NotificationChannelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.NotificationChannel) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of the notification channel. This field matches the
    * value of the
@@ -16,10 +34,13 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of the notification channel. This field matches the
    * value of the
@@ -28,12 +49,14 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * The full REST resource name for this channel. The format is:
    *
@@ -43,10 +66,13 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string name = 6; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The full REST resource name for this channel. The format is:
    *
@@ -56,12 +82,14 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string name = 6; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -70,10 +98,13 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * An optional human-readable name for this notification channel. It is
    * recommended that you specify a non-empty and unique name in order to
@@ -82,12 +113,14 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -95,10 +128,13 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string description = 4; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional human-readable description of this notification channel. This
    * description may provide additional details, beyond the display
@@ -106,12 +142,14 @@ public interface NotificationChannelOrBuilder extends
    * 
* * string description = 4; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -123,6 +161,8 @@ public interface NotificationChannelOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -132,15 +172,13 @@ public interface NotificationChannelOrBuilder extends
    *
    * map<string, string> labels = 5;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -150,9 +188,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -163,11 +202,13 @@ boolean containsLabels(
    * map<string, string> labels = 5;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Configuration fields that define the channel and its behavior. The
    * permissible and required labels are specified in the
@@ -177,10 +218,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -197,6 +239,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -211,15 +255,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> user_labels = 8;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -234,9 +276,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 8;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -252,11 +295,13 @@ boolean containsUserLabels(
    * map<string, string> user_labels = 8;
    */
   /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * User-supplied key/value data that does not need to conform to
    * the corresponding `NotificationChannelDescriptor`'s schema, unlike
@@ -271,10 +316,11 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -297,11 +343,15 @@ java.lang.String getUserLabelsOrThrow(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The enum numeric value on the wire for verificationStatus. */ int getVerificationStatusValue(); /** + * + * *
    * Indicates whether this channel has been verified or not. On a
    * [`ListNotificationChannels`][google.monitoring.v3.NotificationChannelService.ListNotificationChannels]
@@ -324,12 +374,16 @@ java.lang.String getUserLabelsOrThrow(
    * [`VerifyNotificationChannel`][google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel].
    * 
* - * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * .google.monitoring.v3.NotificationChannel.VerificationStatus verification_status = 9; + * + * * @return The verificationStatus. */ com.google.monitoring.v3.NotificationChannel.VerificationStatus getVerificationStatus(); /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -340,10 +394,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return Whether the enabled field is set. */ boolean hasEnabled(); /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -354,10 +411,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.protobuf.BoolValue enabled = 11; + * * @return The enabled. */ com.google.protobuf.BoolValue getEnabled(); /** + * + * *
    * Whether notifications are forwarded to the described channel. This makes
    * it possible to disable delivery of notifications to a particular channel
@@ -372,24 +432,32 @@ java.lang.String getUserLabelsOrThrow(
   com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder();
 
   /**
+   *
+   *
    * 
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return Whether the creationRecord field is set. */ boolean hasCreationRecord(); /** + * + * *
    * Record of the creation of this channel.
    * 
* * .google.monitoring.v3.MutationRecord creation_record = 12; + * * @return The creationRecord. */ com.google.monitoring.v3.MutationRecord getCreationRecord(); /** + * + * *
    * Record of the creation of this channel.
    * 
@@ -399,15 +467,18 @@ java.lang.String getUserLabelsOrThrow( com.google.monitoring.v3.MutationRecordOrBuilder getCreationRecordOrBuilder(); /** + * + * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - java.util.List - getMutationRecordsList(); + java.util.List getMutationRecordsList(); /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -416,6 +487,8 @@ java.lang.String getUserLabelsOrThrow( */ com.google.monitoring.v3.MutationRecord getMutationRecords(int index); /** + * + * *
    * Records of the modification of this channel.
    * 
@@ -424,21 +497,24 @@ java.lang.String getUserLabelsOrThrow( */ int getMutationRecordsCount(); /** + * + * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - java.util.List + java.util.List getMutationRecordsOrBuilderList(); /** + * + * *
    * Records of the modification of this channel.
    * 
* * repeated .google.monitoring.v3.MutationRecord mutation_records = 13; */ - com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder( - int index); + com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordsOrBuilder(int index); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java new file mode 100644 index 000000000000..046cf6017e31 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification.proto + +package com.google.monitoring.v3; + +public final class NotificationProto { + private NotificationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/monitoring/v3/notification.prot" + + "o\022\024google.monitoring.v3\032\026google/api/labe" + + "l.proto\032\035google/api/launch_stage.proto\032\031" + + "google/api/resource.proto\032!google/monito" + + "ring/v3/common.proto\032*google/monitoring/" + + "v3/mutation_record.proto\032\036google/protobu" + + "f/wrappers.proto\"\245\004\n\035NotificationChannel" + + "Descriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022+\n\006labels\030\004 \003(\0132\033.google.api.LabelDesc" + + "riptor\022>\n\017supported_tiers\030\005 \003(\0162!.google" + + ".monitoring.v3.ServiceTierB\002\030\001\022-\n\014launch" + + "_stage\030\007 \001(\0162\027.google.api.LaunchStage:\240\002" + + "\352A\234\002\n7monitoring.googleapis.com/Notifica" + + "tionChannelDescriptor\022Fprojects/{project" + + "}/notificationChannelDescriptors/{channe" + + "l_descriptor}\022Porganizations/{organizati" + + "on}/notificationChannelDescriptors/{chan" + + "nel_descriptor}\022Dfolders/{folder}/notifi" + + "cationChannelDescriptors/{channel_descri" + + "ptor}\022\001*\"\266\007\n\023NotificationChannel\022\014\n\004type" + + "\030\001 \001(\t\022\014\n\004name\030\006 \001(\t\022\024\n\014display_name\030\003 \001" + + "(\t\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\0132" + + "5.google.monitoring.v3.NotificationChann" + + "el.LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.go" + + "ogle.monitoring.v3.NotificationChannel.U" + + "serLabelsEntry\022Y\n\023verification_status\030\t " + + "\001(\0162<.google.monitoring.v3.NotificationC" + + "hannel.VerificationStatus\022+\n\007enabled\030\013 \001" + + "(\0132\032.google.protobuf.BoolValue\022=\n\017creati" + + "on_record\030\014 \001(\0132$.google.monitoring.v3.M" + + "utationRecord\022>\n\020mutation_records\030\r \003(\0132" + + "$.google.monitoring.v3.MutationRecord\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n" + + "\037VERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUN" + + "VERIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitor" + + "ing.googleapis.com/NotificationChannel\022>" + + "projects/{project}/notificationChannels/" + + "{notification_channel}\022Horganizations/{o" + + "rganization}/notificationChannels/{notif" + + "ication_channel}\022 * A single data point in a time series. *
* * Protobuf type {@code google.monitoring.v3.Point} */ -public final class Point extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Point extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Point) PointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Point.newBuilder() to construct. private Point(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Point() { - } + + private Point() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Point(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Point.class, com.google.monitoring.v3.Point.Builder.class); } @@ -45,6 +62,8 @@ protected java.lang.Object newInstance( public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.monitoring.v3.TimeInterval interval_; /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -58,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ @java.lang.Override @@ -65,6 +85,8 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -78,13 +100,18 @@ public boolean hasInterval() {
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -101,17 +128,22 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
+    return interval_ == null
+        ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+        : interval_;
   }
 
   public static final int VALUE_FIELD_NUMBER = 2;
   private com.google.monitoring.v3.TypedValue value_;
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -119,11 +151,14 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return The value. */ @java.lang.Override @@ -131,6 +166,8 @@ public com.google.monitoring.v3.TypedValue getValue() { return value_ == null ? com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; } /** + * + * *
    * The value of the data point.
    * 
@@ -143,6 +180,7 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (interval_ != null) { output.writeMessage(1, getInterval()); } @@ -172,12 +209,10 @@ public int getSerializedSize() { size = 0; if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInterval()); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -187,7 +222,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Point)) { return super.equals(obj); @@ -196,13 +231,11 @@ public boolean equals(final java.lang.Object obj) { if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -228,132 +261,134 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Point parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Point parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Point parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Point parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.Point parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Point parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Point parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Point parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Point parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Point parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Point parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Point parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Point parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.monitoring.v3.Point parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Point parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Point prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single data point in a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.Point} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Point) com.google.monitoring.v3.PointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Point.class, com.google.monitoring.v3.Point.Builder.class); } // Construct using com.google.monitoring.v3.Point.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_Point_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_Point_descriptor; } @java.lang.Override @@ -394,7 +429,9 @@ public com.google.monitoring.v3.Point build() { @java.lang.Override public com.google.monitoring.v3.Point buildPartial() { com.google.monitoring.v3.Point result = new com.google.monitoring.v3.Point(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -402,14 +439,10 @@ public com.google.monitoring.v3.Point buildPartial() { private void buildPartial0(com.google.monitoring.v3.Point result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.interval_ = intervalBuilder_ == null - ? interval_ - : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @@ -417,38 +450,39 @@ private void buildPartial0(com.google.monitoring.v3.Point result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Point) { - return mergeFrom((com.google.monitoring.v3.Point)other); + return mergeFrom((com.google.monitoring.v3.Point) other); } else { super.mergeFrom(other); return this; @@ -489,26 +523,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -518,12 +551,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -537,12 +576,15 @@ public Builder mergeFrom(
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -556,16 +598,21 @@ public boolean hasInterval() {
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -594,6 +641,8 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -608,8 +657,7 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      *
      * .google.monitoring.v3.TimeInterval interval = 1;
      */
-    public Builder setInterval(
-        com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
+    public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) {
       if (intervalBuilder_ == null) {
         interval_ = builderForValue.build();
       } else {
@@ -620,6 +668,8 @@ public Builder setInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -636,9 +686,9 @@ public Builder setInterval(
      */
     public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          interval_ != null &&
-          interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && interval_ != null
+            && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -651,6 +701,8 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -676,6 +728,8 @@ public Builder clearInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -696,6 +750,8 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -714,11 +770,14 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null ?
-            com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_;
+        return interval_ == null
+            ? com.google.monitoring.v3.TimeInterval.getDefaultInstance()
+            : interval_;
       }
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time is optional, but if it is supplied, it must equal the
@@ -734,14 +793,17 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * .google.monitoring.v3.TimeInterval interval = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> 
+            com.google.monitoring.v3.TimeInterval,
+            com.google.monitoring.v3.TimeInterval.Builder,
+            com.google.monitoring.v3.TimeIntervalOrBuilder>
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>(
-                getInterval(),
-                getParentForChildren(),
-                isClean());
+        intervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.TimeInterval,
+                com.google.monitoring.v3.TimeInterval.Builder,
+                com.google.monitoring.v3.TimeIntervalOrBuilder>(
+                getInterval(), getParentForChildren(), isClean());
         interval_ = null;
       }
       return intervalBuilder_;
@@ -749,24 +811,33 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
 
     private com.google.monitoring.v3.TypedValue value_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> valueBuilder_;
+            com.google.monitoring.v3.TypedValue,
+            com.google.monitoring.v3.TypedValue.Builder,
+            com.google.monitoring.v3.TypedValueOrBuilder>
+        valueBuilder_;
     /**
+     *
+     *
      * 
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return The value. */ public com.google.monitoring.v3.TypedValue getValue() { @@ -777,6 +848,8 @@ public com.google.monitoring.v3.TypedValue getValue() { } } /** + * + * *
      * The value of the data point.
      * 
@@ -797,14 +870,15 @@ public Builder setValue(com.google.monitoring.v3.TypedValue value) { return this; } /** + * + * *
      * The value of the data point.
      * 
* * .google.monitoring.v3.TypedValue value = 2; */ - public Builder setValue( - com.google.monitoring.v3.TypedValue.Builder builderForValue) { + public Builder setValue(com.google.monitoring.v3.TypedValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { @@ -815,6 +889,8 @@ public Builder setValue( return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -823,9 +899,9 @@ public Builder setValue( */ public Builder mergeValue(com.google.monitoring.v3.TypedValue value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.monitoring.v3.TypedValue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.monitoring.v3.TypedValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -838,6 +914,8 @@ public Builder mergeValue(com.google.monitoring.v3.TypedValue value) { return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -855,6 +933,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -867,6 +947,8 @@ public com.google.monitoring.v3.TypedValue.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the data point.
      * 
@@ -877,11 +959,12 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; + return value_ == null ? com.google.monitoring.v3.TypedValue.getDefaultInstance() : value_; } } /** + * + * *
      * The value of the data point.
      * 
@@ -889,21 +972,24 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValueOrBuilder() { * .google.monitoring.v3.TypedValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> + com.google.monitoring.v3.TypedValue, + com.google.monitoring.v3.TypedValue.Builder, + com.google.monitoring.v3.TypedValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TypedValue, + com.google.monitoring.v3.TypedValue.Builder, + com.google.monitoring.v3.TypedValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +999,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Point) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) private static final com.google.monitoring.v3.Point DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Point(); } @@ -927,27 +1013,27 @@ public static com.google.monitoring.v3.Point getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Point parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Point parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,6 +1048,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Point getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java similarity index 82% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java index 99bac0daf30d..1e81c7abb91d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface PointOrBuilder extends +public interface PointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Point) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -21,10 +39,13 @@ public interface PointOrBuilder extends
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -38,10 +59,13 @@ public interface PointOrBuilder extends
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; + * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time is optional, but if it is supplied, it must equal the
@@ -59,24 +83,32 @@ public interface PointOrBuilder extends
   com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * The value of the data point.
    * 
* * .google.monitoring.v3.TypedValue value = 2; + * * @return The value. */ com.google.monitoring.v3.TypedValue getValue(); /** + * + * *
    * The value of the data point.
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java index 372a05498622..d5d12294b9a7 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java @@ -1,57 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** + * + * *
  * An error associated with a query in the time series query language format.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryError} */ -public final class QueryError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryError) QueryErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryError.newBuilder() to construct. private QueryError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryError() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryError(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_QueryError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryError.class, com.google.monitoring.v3.QueryError.Builder.class); + com.google.monitoring.v3.QueryError.class, + com.google.monitoring.v3.QueryError.Builder.class); } public static final int LOCATOR_FIELD_NUMBER = 1; private com.google.monitoring.v3.TextLocator locator_; /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return Whether the locator field is set. */ @java.lang.Override @@ -59,12 +81,15 @@ public boolean hasLocator() { return locator_ != null; } /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return The locator. */ @java.lang.Override @@ -72,6 +97,8 @@ public com.google.monitoring.v3.TextLocator getLocator() { return locator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_; } /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
@@ -85,14 +112,18 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object message_ = "";
   /**
+   *
+   *
    * 
    * The error message.
    * 
* * string message = 2; + * * @return The message. */ @java.lang.Override @@ -101,29 +132,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * The error message.
    * 
* * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -132,6 +163,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (locator_ != null) { output.writeMessage(1, getLocator()); } @@ -161,8 +192,7 @@ public int getSerializedSize() { size = 0; if (locator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLocator()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocator()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -175,7 +205,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryError)) { return super.equals(obj); @@ -184,11 +214,9 @@ public boolean equals(final java.lang.Object obj) { if (hasLocator() != other.hasLocator()) return false; if (hasLocator()) { - if (!getLocator() - .equals(other.getLocator())) return false; + if (!getLocator().equals(other.getLocator())) return false; } - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,132 +239,135 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryError parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryError parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.QueryError parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.QueryError parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.QueryError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.QueryError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.QueryError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An error associated with a query in the time series query language format.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryError) com.google.monitoring.v3.QueryErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_QueryError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryError.class, com.google.monitoring.v3.QueryError.Builder.class); + com.google.monitoring.v3.QueryError.class, + com.google.monitoring.v3.QueryError.Builder.class); } // Construct using com.google.monitoring.v3.QueryError.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_QueryError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_QueryError_descriptor; } @java.lang.Override @@ -373,7 +404,9 @@ public com.google.monitoring.v3.QueryError build() { @java.lang.Override public com.google.monitoring.v3.QueryError buildPartial() { com.google.monitoring.v3.QueryError result = new com.google.monitoring.v3.QueryError(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +414,7 @@ public com.google.monitoring.v3.QueryError buildPartial() { private void buildPartial0(com.google.monitoring.v3.QueryError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.locator_ = locatorBuilder_ == null - ? locator_ - : locatorBuilder_.build(); + result.locator_ = locatorBuilder_ == null ? locator_ : locatorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; @@ -394,38 +425,39 @@ private void buildPartial0(com.google.monitoring.v3.QueryError result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryError) { - return mergeFrom((com.google.monitoring.v3.QueryError)other); + return mergeFrom((com.google.monitoring.v3.QueryError) other); } else { super.mergeFrom(other); return this; @@ -468,24 +500,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getLocatorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getLocatorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,40 +528,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.TextLocator locator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> locatorBuilder_; + com.google.monitoring.v3.TextLocator, + com.google.monitoring.v3.TextLocator.Builder, + com.google.monitoring.v3.TextLocatorOrBuilder> + locatorBuilder_; /** + * + * *
      * The location of the time series query language text that this error applies
      * to.
      * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return Whether the locator field is set. */ public boolean hasLocator() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The location of the time series query language text that this error applies
      * to.
      * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return The locator. */ public com.google.monitoring.v3.TextLocator getLocator() { if (locatorBuilder_ == null) { - return locator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_; + return locator_ == null + ? com.google.monitoring.v3.TextLocator.getDefaultInstance() + : locator_; } else { return locatorBuilder_.getMessage(); } } /** + * + * *
      * The location of the time series query language text that this error applies
      * to.
@@ -550,6 +597,8 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -557,8 +606,7 @@ public Builder setLocator(com.google.monitoring.v3.TextLocator value) {
      *
      * .google.monitoring.v3.TextLocator locator = 1;
      */
-    public Builder setLocator(
-        com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+    public Builder setLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
       if (locatorBuilder_ == null) {
         locator_ = builderForValue.build();
       } else {
@@ -569,6 +617,8 @@ public Builder setLocator(
       return this;
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -578,9 +628,9 @@ public Builder setLocator(
      */
     public Builder mergeLocator(com.google.monitoring.v3.TextLocator value) {
       if (locatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          locator_ != null &&
-          locator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && locator_ != null
+            && locator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
           getLocatorBuilder().mergeFrom(value);
         } else {
           locator_ = value;
@@ -593,6 +643,8 @@ public Builder mergeLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -611,6 +663,8 @@ public Builder clearLocator() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -624,6 +678,8 @@ public com.google.monitoring.v3.TextLocator.Builder getLocatorBuilder() {
       return getLocatorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -635,11 +691,14 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
       if (locatorBuilder_ != null) {
         return locatorBuilder_.getMessageOrBuilder();
       } else {
-        return locator_ == null ?
-            com.google.monitoring.v3.TextLocator.getDefaultInstance() : locator_;
+        return locator_ == null
+            ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+            : locator_;
       }
     }
     /**
+     *
+     *
      * 
      * The location of the time series query language text that this error applies
      * to.
@@ -648,14 +707,17 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
      * .google.monitoring.v3.TextLocator locator = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> 
+            com.google.monitoring.v3.TextLocator,
+            com.google.monitoring.v3.TextLocator.Builder,
+            com.google.monitoring.v3.TextLocatorOrBuilder>
         getLocatorFieldBuilder() {
       if (locatorBuilder_ == null) {
-        locatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder>(
-                getLocator(),
-                getParentForChildren(),
-                isClean());
+        locatorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.TextLocator,
+                com.google.monitoring.v3.TextLocator.Builder,
+                com.google.monitoring.v3.TextLocatorOrBuilder>(
+                getLocator(), getParentForChildren(), isClean());
         locator_ = null;
       }
       return locatorBuilder_;
@@ -663,18 +725,20 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder() {
 
     private java.lang.Object message_ = "";
     /**
+     *
+     *
      * 
      * The error message.
      * 
* * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -683,20 +747,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The error message.
      * 
* * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -704,28 +769,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The error message.
      * 
* * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The error message.
      * 
* * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -735,26 +807,30 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The error message.
      * 
* * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -764,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryError) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryError) private static final com.google.monitoring.v3.QueryError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryError(); } @@ -778,27 +854,27 @@ public static com.google.monitoring.v3.QueryError getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +889,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java index 2b6f29d9c2f2..ee6a58cf5c5d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * This is an error detail intended to be used with INVALID_ARGUMENT errors.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryErrorList} */ -public final class QueryErrorList extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryErrorList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryErrorList) QueryErrorListOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryErrorList.newBuilder() to construct. private QueryErrorList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryErrorList() { errors_ = java.util.Collections.emptyList(); errorSummary_ = ""; @@ -26,28 +44,32 @@ private QueryErrorList() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryErrorList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryErrorList.class, com.google.monitoring.v3.QueryErrorList.Builder.class); + com.google.monitoring.v3.QueryErrorList.class, + com.google.monitoring.v3.QueryErrorList.Builder.class); } public static final int ERRORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -60,6 +82,8 @@ public java.util.List getErrorsList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -68,11 +92,13 @@ public java.util.List getErrorsList() {
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -85,6 +111,8 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -97,6 +125,8 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
     return errors_.get(index);
   }
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -105,20 +135,23 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
-      int index) {
+  public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
     return errors_.get(index);
   }
 
   public static final int ERROR_SUMMARY_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object errorSummary_ = "";
   /**
+   *
+   *
    * 
    * A summary of all the errors.
    * 
* * string error_summary = 2; + * * @return The errorSummary. */ @java.lang.Override @@ -127,29 +160,29 @@ public java.lang.String getErrorSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorSummary_ = s; return s; } } /** + * + * *
    * A summary of all the errors.
    * 
* * string error_summary = 2; + * * @return The bytes for errorSummary. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorSummaryBytes() { + public com.google.protobuf.ByteString getErrorSummaryBytes() { java.lang.Object ref = errorSummary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorSummary_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getErrorSummary() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorSummary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorSummary_); @@ -201,17 +233,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryErrorList)) { return super.equals(obj); } com.google.monitoring.v3.QueryErrorList other = (com.google.monitoring.v3.QueryErrorList) obj; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; - if (!getErrorSummary() - .equals(other.getErrorSummary())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorSummary().equals(other.getErrorSummary())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +264,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryErrorList parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryErrorList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryErrorList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryErrorList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryErrorList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryErrorList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.QueryErrorList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * This is an error detail intended to be used with INVALID_ARGUMENT errors.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryErrorList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryErrorList) com.google.monitoring.v3.QueryErrorListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryErrorList.class, com.google.monitoring.v3.QueryErrorList.Builder.class); + com.google.monitoring.v3.QueryErrorList.class, + com.google.monitoring.v3.QueryErrorList.Builder.class); } // Construct using com.google.monitoring.v3.QueryErrorList.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryErrorList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryErrorList_descriptor; } @java.lang.Override @@ -397,9 +431,12 @@ public com.google.monitoring.v3.QueryErrorList build() { @java.lang.Override public com.google.monitoring.v3.QueryErrorList buildPartial() { - com.google.monitoring.v3.QueryErrorList result = new com.google.monitoring.v3.QueryErrorList(this); + com.google.monitoring.v3.QueryErrorList result = + new com.google.monitoring.v3.QueryErrorList(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +464,39 @@ private void buildPartial0(com.google.monitoring.v3.QueryErrorList result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryErrorList) { - return mergeFrom((com.google.monitoring.v3.QueryErrorList)other); + return mergeFrom((com.google.monitoring.v3.QueryErrorList) other); } else { super.mergeFrom(other); return this; @@ -485,9 +523,10 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryErrorList other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -524,30 +563,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.monitoring.v3.QueryError m = - input.readMessage( - com.google.monitoring.v3.QueryError.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - errorSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.monitoring.v3.QueryError m = + input.readMessage( + com.google.monitoring.v3.QueryError.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + errorSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +598,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder> errorsBuilder_; + com.google.monitoring.v3.QueryError, + com.google.monitoring.v3.QueryError.Builder, + com.google.monitoring.v3.QueryErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -587,6 +635,8 @@ public java.util.List getErrorsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -602,6 +652,8 @@ public int getErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -617,6 +669,8 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -624,8 +678,7 @@ public com.google.monitoring.v3.QueryError getErrors(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder setErrors(
-        int index, com.google.monitoring.v3.QueryError value) {
+    public Builder setErrors(int index, com.google.monitoring.v3.QueryError value) {
       if (errorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -639,6 +692,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -658,6 +713,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -679,6 +736,8 @@ public Builder addErrors(com.google.monitoring.v3.QueryError value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -686,8 +745,7 @@ public Builder addErrors(com.google.monitoring.v3.QueryError value) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder addErrors(
-        int index, com.google.monitoring.v3.QueryError value) {
+    public Builder addErrors(int index, com.google.monitoring.v3.QueryError value) {
       if (errorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -701,6 +759,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -708,8 +768,7 @@ public Builder addErrors(
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public Builder addErrors(
-        com.google.monitoring.v3.QueryError.Builder builderForValue) {
+    public Builder addErrors(com.google.monitoring.v3.QueryError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(builderForValue.build());
@@ -720,6 +779,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -739,6 +800,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -750,8 +813,7 @@ public Builder addAllErrors(
         java.lang.Iterable values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -759,6 +821,8 @@ public Builder addAllErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -777,6 +841,8 @@ public Builder clearErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -795,6 +861,8 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -802,11 +870,12 @@ public Builder removeErrors(int index) {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(
-        int index) {
+    public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(int index) {
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -814,14 +883,16 @@ public com.google.monitoring.v3.QueryError.Builder getErrorsBuilder(
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
-        int index) {
+    public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);  } else {
+        return errors_.get(index);
+      } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -829,8 +900,8 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public java.util.List 
-         getErrorsOrBuilderList() {
+    public java.util.List
+        getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -838,6 +909,8 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -846,10 +919,12 @@ public com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
     public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder().addBuilder(
-          com.google.monitoring.v3.QueryError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(com.google.monitoring.v3.QueryError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -857,12 +932,13 @@ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder() {
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(
-        int index) {
-      return getErrorsFieldBuilder().addBuilder(
-          index, com.google.monitoring.v3.QueryError.getDefaultInstance());
+    public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(int index) {
+      return getErrorsFieldBuilder()
+          .addBuilder(index, com.google.monitoring.v3.QueryError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Errors in parsing the time series query language text. The number of errors
      * in the response may be limited.
@@ -870,20 +946,22 @@ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(
      *
      * repeated .google.monitoring.v3.QueryError errors = 1;
      */
-    public java.util.List 
-         getErrorsBuilderList() {
+    public java.util.List getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder> 
+            com.google.monitoring.v3.QueryError,
+            com.google.monitoring.v3.QueryError.Builder,
+            com.google.monitoring.v3.QueryErrorOrBuilder>
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.QueryError, com.google.monitoring.v3.QueryError.Builder, com.google.monitoring.v3.QueryErrorOrBuilder>(
-                errors_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        errorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.QueryError,
+                com.google.monitoring.v3.QueryError.Builder,
+                com.google.monitoring.v3.QueryErrorOrBuilder>(
+                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         errors_ = null;
       }
       return errorsBuilder_;
@@ -891,18 +969,20 @@ public com.google.monitoring.v3.QueryError.Builder addErrorsBuilder(
 
     private java.lang.Object errorSummary_ = "";
     /**
+     *
+     *
      * 
      * A summary of all the errors.
      * 
* * string error_summary = 2; + * * @return The errorSummary. */ public java.lang.String getErrorSummary() { java.lang.Object ref = errorSummary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorSummary_ = s; return s; @@ -911,20 +991,21 @@ public java.lang.String getErrorSummary() { } } /** + * + * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; + * * @return The bytes for errorSummary. */ - public com.google.protobuf.ByteString - getErrorSummaryBytes() { + public com.google.protobuf.ByteString getErrorSummaryBytes() { java.lang.Object ref = errorSummary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorSummary_ = b; return b; } else { @@ -932,28 +1013,35 @@ public java.lang.String getErrorSummary() { } } /** + * + * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; + * * @param value The errorSummary to set. * @return This builder for chaining. */ - public Builder setErrorSummary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorSummary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; + * * @return This builder for chaining. */ public Builder clearErrorSummary() { @@ -963,26 +1051,30 @@ public Builder clearErrorSummary() { return this; } /** + * + * *
      * A summary of all the errors.
      * 
* * string error_summary = 2; + * * @param value The bytes for errorSummary to set. * @return This builder for chaining. */ - public Builder setErrorSummaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorSummary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,12 +1084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryErrorList) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryErrorList) private static final com.google.monitoring.v3.QueryErrorList DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryErrorList(); } @@ -1006,27 +1098,27 @@ public static com.google.monitoring.v3.QueryErrorList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryErrorList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryErrorList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryErrorList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java index 12dea9a88e10..3e92ae5fb431 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorListOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface QueryErrorListOrBuilder extends +public interface QueryErrorListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryErrorList) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -15,9 +33,10 @@ public interface QueryErrorListOrBuilder extends
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  java.util.List 
-      getErrorsList();
+  java.util.List getErrorsList();
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -27,6 +46,8 @@ public interface QueryErrorListOrBuilder extends
    */
   com.google.monitoring.v3.QueryError getErrors(int index);
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -36,6 +57,8 @@ public interface QueryErrorListOrBuilder extends
    */
   int getErrorsCount();
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -43,9 +66,10 @@ public interface QueryErrorListOrBuilder extends
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  java.util.List 
-      getErrorsOrBuilderList();
+  java.util.List getErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * Errors in parsing the time series query language text. The number of errors
    * in the response may be limited.
@@ -53,26 +77,30 @@ public interface QueryErrorListOrBuilder extends
    *
    * repeated .google.monitoring.v3.QueryError errors = 1;
    */
-  com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(
-      int index);
+  com.google.monitoring.v3.QueryErrorOrBuilder getErrorsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A summary of all the errors.
    * 
* * string error_summary = 2; + * * @return The errorSummary. */ java.lang.String getErrorSummary(); /** + * + * *
    * A summary of all the errors.
    * 
* * string error_summary = 2; + * * @return The bytes for errorSummary. */ - com.google.protobuf.ByteString - getErrorSummaryBytes(); + com.google.protobuf.ByteString getErrorSummaryBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java index 027d9b4e1621..ff6923fbeaf4 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface QueryErrorOrBuilder extends +public interface QueryErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return Whether the locator field is set. */ boolean hasLocator(); /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
    * 
* * .google.monitoring.v3.TextLocator locator = 1; + * * @return The locator. */ com.google.monitoring.v3.TextLocator getLocator(); /** + * + * *
    * The location of the time series query language text that this error applies
    * to.
@@ -38,22 +62,27 @@ public interface QueryErrorOrBuilder extends
   com.google.monitoring.v3.TextLocatorOrBuilder getLocatorOrBuilder();
 
   /**
+   *
+   *
    * 
    * The error message.
    * 
* * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * The error message.
    * 
* * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java new file mode 100644 index 000000000000..f662fc23c985 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceProto.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/query_service.proto + +package com.google.monitoring.v3; + +public final class QueryServiceProto { + private QueryServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/monitoring/v3/query_service.pro" + + "to\022\024google.monitoring.v3\032\034google/api/ann" + + "otations.proto\032)google/monitoring/v3/met" + + "ric_service.proto\032\027google/api/client.pro" + + "to2\336\002\n\014QueryService\022\241\001\n\017QueryTimeSeries\022" + + ",.google.monitoring.v3.QueryTimeSeriesRe" + + "quest\032-.google.monitoring.v3.QueryTimeSe" + + "riesResponse\"1\202\323\344\223\002+\"&/v3/{name=projects" + + "/*}/timeSeries:query:\001*\032\251\001\312A\031monitoring." + + "googleapis.com\322A\211\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/monitoring,https://www." + + "googleapis.com/auth/monitoring.readB\314\001\n\030" + + "com.google.monitoring.v3B\021QueryServicePr" + + "otoP\001ZAcloud.google.com/go/monitoring/ap" + + "iv3/v2/monitoringpb;monitoringpb\252\002\032Googl" + + "e.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Mon" + + "itoring\\V3\352\002\035Google::Cloud::Monitoring::" + + "V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.monitoring.v3.MetricServiceProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.monitoring.v3.MetricServiceProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java similarity index 72% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java index eb23439da2db..c4b910dc12eb 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `QueryTimeSeries` request.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest} */ -public final class QueryTimeSeriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesRequest) QueryTimeSeriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryTimeSeriesRequest.newBuilder() to construct. private QueryTimeSeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryTimeSeriesRequest() { name_ = ""; query_ = ""; @@ -27,28 +45,32 @@ private QueryTimeSeriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryTimeSeriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesRequest.class, com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesRequest.class, + com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -81,16 +105,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,9 +122,12 @@ public java.lang.String getName() { } public static final int QUERY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** + * + * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -109,6 +135,7 @@ public java.lang.String getName() {
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -117,14 +144,15 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -132,16 +160,15 @@ public java.lang.String getQuery() {
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -152,11 +179,14 @@ public java.lang.String getQuery() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_ = 0; /** + * + * *
    * A positive number that is the maximum number of time_series_data to return.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -165,9 +195,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -175,6 +208,7 @@ public int getPageSize() {
    * 
* * string page_token = 10; + * * @return The pageToken. */ @java.lang.Override @@ -183,14 +217,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -198,16 +233,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 10; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -257,8 +291,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_); @@ -271,21 +304,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.QueryTimeSeriesRequest)) { return super.equals(obj); } - com.google.monitoring.v3.QueryTimeSeriesRequest other = (com.google.monitoring.v3.QueryTimeSeriesRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.monitoring.v3.QueryTimeSeriesRequest other = + (com.google.monitoring.v3.QueryTimeSeriesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,132 +340,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.QueryTimeSeriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.QueryTimeSeriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.QueryTimeSeriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `QueryTimeSeries` request.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryTimeSeriesRequest) com.google.monitoring.v3.QueryTimeSeriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesRequest.class, com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesRequest.class, + com.google.monitoring.v3.QueryTimeSeriesRequest.Builder.class); } // Construct using com.google.monitoring.v3.QueryTimeSeriesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; } @java.lang.Override @@ -469,8 +503,11 @@ public com.google.monitoring.v3.QueryTimeSeriesRequest build() { @java.lang.Override public com.google.monitoring.v3.QueryTimeSeriesRequest buildPartial() { - com.google.monitoring.v3.QueryTimeSeriesRequest result = new com.google.monitoring.v3.QueryTimeSeriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.QueryTimeSeriesRequest result = + new com.google.monitoring.v3.QueryTimeSeriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -495,38 +532,39 @@ private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryTimeSeriesRequest) { - return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesRequest)other); + return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesRequest other) { - if (other == com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.QueryTimeSeriesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -579,32 +618,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 58: { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 58 - case 72: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 72 - case 82: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 58: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 72: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 72 + case 82: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,10 +658,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -626,13 +673,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -641,6 +688,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -649,15 +698,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -665,6 +713,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -673,18 +723,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -693,6 +747,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -702,6 +757,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
      * which to execute the request. The format is:
@@ -710,12 +767,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -725,6 +784,8 @@ public Builder setNameBytes( private java.lang.Object query_ = ""; /** + * + * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -732,13 +793,13 @@ public Builder setNameBytes(
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -747,6 +808,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -754,15 +817,14 @@ public java.lang.String getQuery() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -770,6 +832,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -777,18 +841,22 @@ public java.lang.String getQuery() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -796,6 +864,7 @@ public Builder setQuery(
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -805,6 +874,8 @@ public Builder clearQuery() { return this; } /** + * + * *
      * Required. The query in the [Monitoring Query
      * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -812,12 +883,14 @@ public Builder clearQuery() {
      * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000002; @@ -825,13 +898,16 @@ public Builder setQueryBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -839,11 +915,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -855,11 +934,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A positive number that is the maximum number of time_series_data to return.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -871,6 +953,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -878,13 +962,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 10; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -893,6 +977,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -900,15 +986,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 10; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -916,6 +1001,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -923,18 +1010,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 10; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -942,6 +1033,7 @@ public Builder setPageToken(
      * 
* * string page_token = 10; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -951,6 +1043,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * If this field is not empty then it must contain the `nextPageToken` value
      * returned by a previous call to this method.  Using this field causes the
@@ -958,21 +1052,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 10; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryTimeSeriesRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesRequest) private static final com.google.monitoring.v3.QueryTimeSeriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryTimeSeriesRequest(); } @@ -996,27 +1092,27 @@ public static com.google.monitoring.v3.QueryTimeSeriesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTimeSeriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.QueryTimeSeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java index f9af512736fb..09a21fa1e61e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; -public interface QueryTimeSeriesRequestOrBuilder extends +public interface QueryTimeSeriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryTimeSeriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -16,10 +34,13 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
    * which to execute the request. The format is:
@@ -28,12 +49,14 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -41,10 +64,13 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * Required. The query in the [Monitoring Query
    * Language](https://cloud.google.com/monitoring/mql/reference) format.
@@ -52,22 +78,27 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string query = 7 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
    * A positive number that is the maximum number of time_series_data to return.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -75,10 +106,13 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string page_token = 10; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * If this field is not empty then it must contain the `nextPageToken` value
    * returned by a previous call to this method.  Using this field causes the
@@ -86,8 +120,8 @@ public interface QueryTimeSeriesRequestOrBuilder extends
    * 
* * string page_token = 10; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java index 231c970a41b5..84f4734d3d5a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `QueryTimeSeries` response.
  * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse} */ -public final class QueryTimeSeriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.QueryTimeSeriesResponse) QueryTimeSeriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryTimeSeriesResponse.newBuilder() to construct. private QueryTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryTimeSeriesResponse() { timeSeriesData_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,36 @@ private QueryTimeSeriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryTimeSeriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesResponse.class, com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesResponse.class, + com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); } public static final int TIME_SERIES_DESCRIPTOR_FIELD_NUMBER = 8; private com.google.monitoring.v3.TimeSeriesDescriptor timeSeriesDescriptor_; /** + * + * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return Whether the timeSeriesDescriptor field is set. */ @java.lang.Override @@ -60,18 +82,25 @@ public boolean hasTimeSeriesDescriptor() { return timeSeriesDescriptor_ != null; } /** + * + * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return The timeSeriesDescriptor. */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { - return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null + ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() + : timeSeriesDescriptor_; } /** + * + * *
    * The descriptor for the time series data.
    * 
@@ -80,13 +109,18 @@ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder() { - return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null + ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() + : timeSeriesDescriptor_; } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** + * + * *
    * The time series data.
    * 
@@ -98,6 +132,8 @@ public java.util.List getTimeSeriesData return timeSeriesData_; } /** + * + * *
    * The time series data.
    * 
@@ -105,11 +141,13 @@ public java.util.List getTimeSeriesData * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ @java.lang.Override - public java.util.List + public java.util.List getTimeSeriesDataOrBuilderList() { return timeSeriesData_; } /** + * + * *
    * The time series data.
    * 
@@ -121,6 +159,8 @@ public int getTimeSeriesDataCount() { return timeSeriesData_.size(); } /** + * + * *
    * The time series data.
    * 
@@ -132,6 +172,8 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { return timeSeriesData_.get(index); } /** + * + * *
    * The time series data.
    * 
@@ -139,15 +181,17 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) { return timeSeriesData_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -155,6 +199,7 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild
    * 
* * string next_page_token = 10; + * * @return The nextPageToken. */ @java.lang.Override @@ -163,14 +208,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -178,16 +224,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 10; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -196,9 +241,12 @@ public java.lang.String getNextPageToken() { } public static final int PARTIAL_ERRORS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private java.util.List partialErrors_; /** + * + * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -212,6 +260,8 @@ public java.util.List getPartialErrorsList() {
     return partialErrors_;
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -221,11 +271,12 @@ public java.util.List getPartialErrorsList() {
    * repeated .google.rpc.Status partial_errors = 11;
    */
   @java.lang.Override
-  public java.util.List 
-      getPartialErrorsOrBuilderList() {
+  public java.util.List getPartialErrorsOrBuilderList() {
     return partialErrors_;
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -239,6 +290,8 @@ public int getPartialErrorsCount() {
     return partialErrors_.size();
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -252,6 +305,8 @@ public com.google.rpc.Status getPartialErrors(int index) {
     return partialErrors_.get(index);
   }
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -261,12 +316,12 @@ public com.google.rpc.Status getPartialErrors(int index) {
    * repeated .google.rpc.Status partial_errors = 11;
    */
   @java.lang.Override
-  public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
-      int index) {
+  public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
     return partialErrors_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -278,8 +333,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (timeSeriesDescriptor_ != null) {
       output.writeMessage(8, getTimeSeriesDescriptor());
     }
@@ -302,19 +356,17 @@ public int getSerializedSize() {
 
     size = 0;
     if (timeSeriesDescriptor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getTimeSeriesDescriptor());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeSeriesDescriptor());
     }
     for (int i = 0; i < timeSeriesData_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, timeSeriesData_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, timeSeriesData_.get(i));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nextPageToken_);
     }
     for (int i = 0; i < partialErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, partialErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, partialErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -324,24 +376,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.QueryTimeSeriesResponse)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.QueryTimeSeriesResponse other = (com.google.monitoring.v3.QueryTimeSeriesResponse) obj;
+    com.google.monitoring.v3.QueryTimeSeriesResponse other =
+        (com.google.monitoring.v3.QueryTimeSeriesResponse) obj;
 
     if (hasTimeSeriesDescriptor() != other.hasTimeSeriesDescriptor()) return false;
     if (hasTimeSeriesDescriptor()) {
-      if (!getTimeSeriesDescriptor()
-          .equals(other.getTimeSeriesDescriptor())) return false;
-    }
-    if (!getTimeSeriesDataList()
-        .equals(other.getTimeSeriesDataList())) return false;
-    if (!getNextPageToken()
-        .equals(other.getNextPageToken())) return false;
-    if (!getPartialErrorsList()
-        .equals(other.getPartialErrorsList())) return false;
+      if (!getTimeSeriesDescriptor().equals(other.getTimeSeriesDescriptor())) return false;
+    }
+    if (!getTimeSeriesDataList().equals(other.getTimeSeriesDataList())) return false;
+    if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+    if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -372,132 +421,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.QueryTimeSeriesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.QueryTimeSeriesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The `QueryTimeSeries` response.
    * 
* * Protobuf type {@code google.monitoring.v3.QueryTimeSeriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.QueryTimeSeriesResponse) com.google.monitoring.v3.QueryTimeSeriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.QueryTimeSeriesResponse.class, com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); + com.google.monitoring.v3.QueryTimeSeriesResponse.class, + com.google.monitoring.v3.QueryTimeSeriesResponse.Builder.class); } // Construct using com.google.monitoring.v3.QueryTimeSeriesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +579,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricServiceProto.internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricServiceProto + .internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; } @java.lang.Override @@ -547,14 +600,18 @@ public com.google.monitoring.v3.QueryTimeSeriesResponse build() { @java.lang.Override public com.google.monitoring.v3.QueryTimeSeriesResponse buildPartial() { - com.google.monitoring.v3.QueryTimeSeriesResponse result = new com.google.monitoring.v3.QueryTimeSeriesResponse(this); + com.google.monitoring.v3.QueryTimeSeriesResponse result = + new com.google.monitoring.v3.QueryTimeSeriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.QueryTimeSeriesResponse result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.QueryTimeSeriesResponse result) { if (timeSeriesDataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); @@ -578,9 +635,10 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.QueryTimeSeries private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeSeriesDescriptor_ = timeSeriesDescriptorBuilder_ == null - ? timeSeriesDescriptor_ - : timeSeriesDescriptorBuilder_.build(); + result.timeSeriesDescriptor_ = + timeSeriesDescriptorBuilder_ == null + ? timeSeriesDescriptor_ + : timeSeriesDescriptorBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -591,38 +649,39 @@ private void buildPartial0(com.google.monitoring.v3.QueryTimeSeriesResponse resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.QueryTimeSeriesResponse) { - return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesResponse)other); + return mergeFrom((com.google.monitoring.v3.QueryTimeSeriesResponse) other); } else { super.mergeFrom(other); return this; @@ -630,7 +689,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) { - if (other == com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.QueryTimeSeriesResponse.getDefaultInstance()) + return this; if (other.hasTimeSeriesDescriptor()) { mergeTimeSeriesDescriptor(other.getTimeSeriesDescriptor()); } @@ -652,9 +712,10 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) timeSeriesDataBuilder_ = null; timeSeriesData_ = other.timeSeriesData_; bitField0_ = (bitField0_ & ~0x00000002); - timeSeriesDataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimeSeriesDataFieldBuilder() : null; + timeSeriesDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeSeriesDataFieldBuilder() + : null; } else { timeSeriesDataBuilder_.addAllMessages(other.timeSeriesData_); } @@ -683,9 +744,10 @@ public Builder mergeFrom(com.google.monitoring.v3.QueryTimeSeriesResponse other) partialErrorsBuilder_ = null; partialErrors_ = other.partialErrors_; bitField0_ = (bitField0_ & ~0x00000008); - partialErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartialErrorsFieldBuilder() : null; + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialErrorsFieldBuilder() + : null; } else { partialErrorsBuilder_.addAllMessages(other.partialErrors_); } @@ -717,50 +779,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 66: { - input.readMessage( - getTimeSeriesDescriptorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 66 - case 74: { - com.google.monitoring.v3.TimeSeriesData m = - input.readMessage( - com.google.monitoring.v3.TimeSeriesData.parser(), - extensionRegistry); - if (timeSeriesDataBuilder_ == null) { - ensureTimeSeriesDataIsMutable(); - timeSeriesData_.add(m); - } else { - timeSeriesDataBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - case 90: { - com.google.rpc.Status m = - input.readMessage( - com.google.rpc.Status.parser(), - extensionRegistry); - if (partialErrorsBuilder_ == null) { - ensurePartialErrorsIsMutable(); - partialErrors_.add(m); - } else { - partialErrorsBuilder_.addMessage(m); - } - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 66: + { + input.readMessage( + getTimeSeriesDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 66 + case 74: + { + com.google.monitoring.v3.TimeSeriesData m = + input.readMessage( + com.google.monitoring.v3.TimeSeriesData.parser(), extensionRegistry); + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(m); + } else { + timeSeriesDataBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 82 + case 90: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(m); + } else { + partialErrorsBuilder_.addMessage(m); + } + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,38 +833,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.TimeSeriesDescriptor timeSeriesDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> timeSeriesDescriptorBuilder_; + com.google.monitoring.v3.TimeSeriesDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> + timeSeriesDescriptorBuilder_; /** + * + * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return Whether the timeSeriesDescriptor field is set. */ public boolean hasTimeSeriesDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return The timeSeriesDescriptor. */ public com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor() { if (timeSeriesDescriptorBuilder_ == null) { - return timeSeriesDescriptor_ == null ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null + ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() + : timeSeriesDescriptor_; } else { return timeSeriesDescriptorBuilder_.getMessage(); } } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -822,6 +899,8 @@ public Builder setTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescri return this; } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -840,6 +919,8 @@ public Builder setTimeSeriesDescriptor( return this; } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -848,9 +929,10 @@ public Builder setTimeSeriesDescriptor( */ public Builder mergeTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDescriptor value) { if (timeSeriesDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeSeriesDescriptor_ != null && - timeSeriesDescriptor_ != com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesDescriptor_ != null + && timeSeriesDescriptor_ + != com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance()) { getTimeSeriesDescriptorBuilder().mergeFrom(value); } else { timeSeriesDescriptor_ = value; @@ -863,6 +945,8 @@ public Builder mergeTimeSeriesDescriptor(com.google.monitoring.v3.TimeSeriesDesc return this; } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -880,6 +964,8 @@ public Builder clearTimeSeriesDescriptor() { return this; } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -892,21 +978,27 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.Builder getTimeSeriesDescri return getTimeSeriesDescriptorFieldBuilder().getBuilder(); } /** + * + * *
      * The descriptor for the time series data.
      * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; */ - public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder() { + public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder + getTimeSeriesDescriptorOrBuilder() { if (timeSeriesDescriptorBuilder_ != null) { return timeSeriesDescriptorBuilder_.getMessageOrBuilder(); } else { - return timeSeriesDescriptor_ == null ? - com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() : timeSeriesDescriptor_; + return timeSeriesDescriptor_ == null + ? com.google.monitoring.v3.TimeSeriesDescriptor.getDefaultInstance() + : timeSeriesDescriptor_; } } /** + * + * *
      * The descriptor for the time series data.
      * 
@@ -914,32 +1006,42 @@ public com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescr * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> + com.google.monitoring.v3.TimeSeriesDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder> getTimeSeriesDescriptorFieldBuilder() { if (timeSeriesDescriptorBuilder_ == null) { - timeSeriesDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>( - getTimeSeriesDescriptor(), - getParentForChildren(), - isClean()); + timeSeriesDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder>( + getTimeSeriesDescriptor(), getParentForChildren(), isClean()); timeSeriesDescriptor_ = null; } return timeSeriesDescriptorBuilder_; } private java.util.List timeSeriesData_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeSeriesDataIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - timeSeriesData_ = new java.util.ArrayList(timeSeriesData_); + timeSeriesData_ = + new java.util.ArrayList(timeSeriesData_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder> timeSeriesDataBuilder_; + com.google.monitoring.v3.TimeSeriesData, + com.google.monitoring.v3.TimeSeriesData.Builder, + com.google.monitoring.v3.TimeSeriesDataOrBuilder> + timeSeriesDataBuilder_; /** + * + * *
      * The time series data.
      * 
@@ -954,6 +1056,8 @@ public java.util.List getTimeSeriesData } } /** + * + * *
      * The time series data.
      * 
@@ -968,6 +1072,8 @@ public int getTimeSeriesDataCount() { } } /** + * + * *
      * The time series data.
      * 
@@ -982,14 +1088,15 @@ public com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index) { } } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public Builder setTimeSeriesData( - int index, com.google.monitoring.v3.TimeSeriesData value) { + public Builder setTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1003,6 +1110,8 @@ public Builder setTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1021,6 +1130,8 @@ public Builder setTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1041,14 +1152,15 @@ public Builder addTimeSeriesData(com.google.monitoring.v3.TimeSeriesData value) return this; } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public Builder addTimeSeriesData( - int index, com.google.monitoring.v3.TimeSeriesData value) { + public Builder addTimeSeriesData(int index, com.google.monitoring.v3.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1062,6 +1174,8 @@ public Builder addTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1080,6 +1194,8 @@ public Builder addTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1098,6 +1214,8 @@ public Builder addTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1108,8 +1226,7 @@ public Builder addAllTimeSeriesData( java.lang.Iterable values) { if (timeSeriesDataBuilder_ == null) { ensureTimeSeriesDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timeSeriesData_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesData_); onChanged(); } else { timeSeriesDataBuilder_.addAllMessages(values); @@ -1117,6 +1234,8 @@ public Builder addAllTimeSeriesData( return this; } /** + * + * *
      * The time series data.
      * 
@@ -1134,6 +1253,8 @@ public Builder clearTimeSeriesData() { return this; } /** + * + * *
      * The time series data.
      * 
@@ -1151,39 +1272,44 @@ public Builder removeTimeSeriesData(int index) { return this; } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesData.Builder getTimeSeriesDataBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesData.Builder getTimeSeriesDataBuilder(int index) { return getTimeSeriesDataFieldBuilder().getBuilder(index); } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index) { if (timeSeriesDataBuilder_ == null) { - return timeSeriesData_.get(index); } else { + return timeSeriesData_.get(index); + } else { return timeSeriesDataBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public java.util.List - getTimeSeriesDataOrBuilderList() { + public java.util.List + getTimeSeriesDataOrBuilderList() { if (timeSeriesDataBuilder_ != null) { return timeSeriesDataBuilder_.getMessageOrBuilderList(); } else { @@ -1191,6 +1317,8 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild } } /** + * + * *
      * The time series data.
      * 
@@ -1198,38 +1326,47 @@ public com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuild * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder() { - return getTimeSeriesDataFieldBuilder().addBuilder( - com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); + return getTimeSeriesDataFieldBuilder() + .addBuilder(com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder( - int index) { - return getTimeSeriesDataFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder(int index) { + return getTimeSeriesDataFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.TimeSeriesData.getDefaultInstance()); } /** + * + * *
      * The time series data.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - public java.util.List - getTimeSeriesDataBuilderList() { + public java.util.List + getTimeSeriesDataBuilderList() { return getTimeSeriesDataFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder> + com.google.monitoring.v3.TimeSeriesData, + com.google.monitoring.v3.TimeSeriesData.Builder, + com.google.monitoring.v3.TimeSeriesDataOrBuilder> getTimeSeriesDataFieldBuilder() { if (timeSeriesDataBuilder_ == null) { - timeSeriesDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData, com.google.monitoring.v3.TimeSeriesData.Builder, com.google.monitoring.v3.TimeSeriesDataOrBuilder>( + timeSeriesDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesData, + com.google.monitoring.v3.TimeSeriesData.Builder, + com.google.monitoring.v3.TimeSeriesDataOrBuilder>( timeSeriesData_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1241,6 +1378,8 @@ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1248,13 +1387,13 @@ public com.google.monitoring.v3.TimeSeriesData.Builder addTimeSeriesDataBuilder(
      * 
* * string next_page_token = 10; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1263,6 +1402,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1270,15 +1411,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 10; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1286,6 +1426,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1293,18 +1435,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 10; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1312,6 +1458,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 10; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1321,6 +1468,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there are more results than have been returned, then this field is set
      * to a non-empty value.  To see the additional results, use that value as
@@ -1328,12 +1477,14 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 10; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; @@ -1342,18 +1493,22 @@ public Builder setNextPageTokenBytes( } private java.util.List partialErrors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePartialErrorsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { partialErrors_ = new java.util.ArrayList(partialErrors_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialErrorsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialErrorsBuilder_; /** + * + * *
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1370,6 +1525,8 @@ public java.util.List getPartialErrorsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1386,6 +1543,8 @@ public int getPartialErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1402,6 +1561,8 @@ public com.google.rpc.Status getPartialErrors(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1410,8 +1571,7 @@ public com.google.rpc.Status getPartialErrors(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder setPartialErrors(
-        int index, com.google.rpc.Status value) {
+    public Builder setPartialErrors(int index, com.google.rpc.Status value) {
       if (partialErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1425,6 +1585,8 @@ public Builder setPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1433,8 +1595,7 @@ public Builder setPartialErrors(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder setPartialErrors(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.set(index, builderForValue.build());
@@ -1445,6 +1606,8 @@ public Builder setPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1467,6 +1630,8 @@ public Builder addPartialErrors(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1475,8 +1640,7 @@ public Builder addPartialErrors(com.google.rpc.Status value) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(
-        int index, com.google.rpc.Status value) {
+    public Builder addPartialErrors(int index, com.google.rpc.Status value) {
       if (partialErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1490,6 +1654,8 @@ public Builder addPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1498,8 +1664,7 @@ public Builder addPartialErrors(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.add(builderForValue.build());
@@ -1510,6 +1675,8 @@ public Builder addPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1518,8 +1685,7 @@ public Builder addPartialErrors(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addPartialErrors(
-        int index, com.google.rpc.Status.Builder builderForValue) {
+    public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
         partialErrors_.add(index, builderForValue.build());
@@ -1530,6 +1696,8 @@ public Builder addPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1538,12 +1706,10 @@ public Builder addPartialErrors(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public Builder addAllPartialErrors(
-        java.lang.Iterable values) {
+    public Builder addAllPartialErrors(java.lang.Iterable values) {
       if (partialErrorsBuilder_ == null) {
         ensurePartialErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, partialErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_);
         onChanged();
       } else {
         partialErrorsBuilder_.addAllMessages(values);
@@ -1551,6 +1717,8 @@ public Builder addAllPartialErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1570,6 +1738,8 @@ public Builder clearPartialErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1589,6 +1759,8 @@ public Builder removePartialErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1597,11 +1769,12 @@ public Builder removePartialErrors(int index) {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.Status.Builder getPartialErrorsBuilder(
-        int index) {
+    public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) {
       return getPartialErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1610,14 +1783,16 @@ public com.google.rpc.Status.Builder getPartialErrorsBuilder(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
-        int index) {
+    public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) {
       if (partialErrorsBuilder_ == null) {
-        return partialErrors_.get(index);  } else {
+        return partialErrors_.get(index);
+      } else {
         return partialErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1626,8 +1801,8 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public java.util.List 
-         getPartialErrorsOrBuilderList() {
+    public java.util.List
+        getPartialErrorsOrBuilderList() {
       if (partialErrorsBuilder_ != null) {
         return partialErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1635,6 +1810,8 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1644,10 +1821,11 @@ public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
      * repeated .google.rpc.Status partial_errors = 11;
      */
     public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
-      return getPartialErrorsFieldBuilder().addBuilder(
-          com.google.rpc.Status.getDefaultInstance());
+      return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1656,12 +1834,13 @@ public com.google.rpc.Status.Builder addPartialErrorsBuilder() {
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public com.google.rpc.Status.Builder addPartialErrorsBuilder(
-        int index) {
-      return getPartialErrorsFieldBuilder().addBuilder(
-          index, com.google.rpc.Status.getDefaultInstance());
+    public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) {
+      return getPartialErrorsFieldBuilder()
+          .addBuilder(index, com.google.rpc.Status.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Query execution errors that may have caused the time series data returned
      * to be incomplete. The available data will be available in the
@@ -1670,16 +1849,19 @@ public com.google.rpc.Status.Builder addPartialErrorsBuilder(
      *
      * repeated .google.rpc.Status partial_errors = 11;
      */
-    public java.util.List 
-         getPartialErrorsBuilderList() {
+    public java.util.List getPartialErrorsBuilderList() {
       return getPartialErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getPartialErrorsFieldBuilder() {
       if (partialErrorsBuilder_ == null) {
-        partialErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+        partialErrorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
                 partialErrors_,
                 ((bitField0_ & 0x00000008) != 0),
                 getParentForChildren(),
@@ -1688,9 +1870,9 @@ public com.google.rpc.Status.Builder addPartialErrorsBuilder(
       }
       return partialErrorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1700,12 +1882,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.QueryTimeSeriesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.QueryTimeSeriesResponse)
   private static final com.google.monitoring.v3.QueryTimeSeriesResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.QueryTimeSeriesResponse();
   }
@@ -1714,27 +1896,27 @@ public static com.google.monitoring.v3.QueryTimeSeriesResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public QueryTimeSeriesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public QueryTimeSeriesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1749,6 +1931,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.QueryTimeSeriesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
similarity index 77%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
index 7a90c5db1d8c..887d577fe359 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponseOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric_service.proto
 
 package com.google.monitoring.v3;
 
-public interface QueryTimeSeriesResponseOrBuilder extends
+public interface QueryTimeSeriesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.QueryTimeSeriesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return Whether the timeSeriesDescriptor field is set. */ boolean hasTimeSeriesDescriptor(); /** + * + * *
    * The descriptor for the time series data.
    * 
* * .google.monitoring.v3.TimeSeriesDescriptor time_series_descriptor = 8; + * * @return The timeSeriesDescriptor. */ com.google.monitoring.v3.TimeSeriesDescriptor getTimeSeriesDescriptor(); /** + * + * *
    * The descriptor for the time series data.
    * 
@@ -35,15 +59,18 @@ public interface QueryTimeSeriesResponseOrBuilder extends com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder getTimeSeriesDescriptorOrBuilder(); /** + * + * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - java.util.List - getTimeSeriesDataList(); + java.util.List getTimeSeriesDataList(); /** + * + * *
    * The time series data.
    * 
@@ -52,6 +79,8 @@ public interface QueryTimeSeriesResponseOrBuilder extends */ com.google.monitoring.v3.TimeSeriesData getTimeSeriesData(int index); /** + * + * *
    * The time series data.
    * 
@@ -60,25 +89,30 @@ public interface QueryTimeSeriesResponseOrBuilder extends */ int getTimeSeriesDataCount(); /** + * + * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - java.util.List + java.util.List getTimeSeriesDataOrBuilderList(); /** + * + * *
    * The time series data.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData time_series_data = 9; */ - com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( - int index); + com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -86,10 +120,13 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    * 
* * string next_page_token = 10; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than have been returned, then this field is set
    * to a non-empty value.  To see the additional results, use that value as
@@ -97,12 +134,14 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    * 
* * string next_page_token = 10; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -111,9 +150,10 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  java.util.List 
-      getPartialErrorsList();
+  java.util.List getPartialErrorsList();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -124,6 +164,8 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    */
   com.google.rpc.Status getPartialErrors(int index);
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -134,6 +176,8 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    */
   int getPartialErrorsCount();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -142,9 +186,10 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  java.util.List 
-      getPartialErrorsOrBuilderList();
+  java.util.List getPartialErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * Query execution errors that may have caused the time series data returned
    * to be incomplete. The available data will be available in the
@@ -153,6 +198,5 @@ com.google.monitoring.v3.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(
    *
    * repeated .google.rpc.Status partial_errors = 11;
    */
-  com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
similarity index 65%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
index d589a9a6053c..6c3eb9bc2f7f 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java
@@ -1,43 +1,60 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * Range of numerical values within `min` and `max`.
  * 
* * Protobuf type {@code google.monitoring.v3.Range} */ -public final class Range extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Range extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Range) RangeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Range() { - } + + private Range() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Range(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Range.class, com.google.monitoring.v3.Range.Builder.class); } @@ -45,11 +62,14 @@ protected java.lang.Object newInstance( public static final int MIN_FIELD_NUMBER = 1; private double min_ = 0D; /** + * + * *
    * Range minimum.
    * 
* * double min = 1; + * * @return The min. */ @java.lang.Override @@ -60,11 +80,14 @@ public double getMin() { public static final int MAX_FIELD_NUMBER = 2; private double max_ = 0D; /** + * + * *
    * Range maximum.
    * 
* * double max = 2; + * * @return The max. */ @java.lang.Override @@ -73,6 +96,7 @@ public double getMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -84,8 +108,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(1, min_); } @@ -102,12 +125,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(min_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, min_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, max_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -117,7 +138,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Range)) { return super.equals(obj); @@ -125,11 +146,9 @@ public boolean equals(final java.lang.Object obj) { com.google.monitoring.v3.Range other = (com.google.monitoring.v3.Range) obj; if (java.lang.Double.doubleToLongBits(getMin()) - != java.lang.Double.doubleToLongBits( - other.getMin())) return false; + != java.lang.Double.doubleToLongBits(other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) - != java.lang.Double.doubleToLongBits( - other.getMax())) return false; + != java.lang.Double.doubleToLongBits(other.getMax())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -142,142 +161,146 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMin())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.Range parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Range parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Range parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Range parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.Range parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Range parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Range parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Range parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Range parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Range parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Range parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.monitoring.v3.Range parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Range parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Range prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Range of numerical values within `min` and `max`.
    * 
* * Protobuf type {@code google.monitoring.v3.Range} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Range) com.google.monitoring.v3.RangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.monitoring.v3.Range.class, com.google.monitoring.v3.Range.Builder.class); } // Construct using com.google.monitoring.v3.Range.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -288,9 +311,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Range_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Range_descriptor; } @java.lang.Override @@ -310,7 +333,9 @@ public com.google.monitoring.v3.Range build() { @java.lang.Override public com.google.monitoring.v3.Range buildPartial() { com.google.monitoring.v3.Range result = new com.google.monitoring.v3.Range(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +354,39 @@ private void buildPartial0(com.google.monitoring.v3.Range result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Range) { - return mergeFrom((com.google.monitoring.v3.Range)other); + return mergeFrom((com.google.monitoring.v3.Range) other); } else { super.mergeFrom(other); return this; @@ -401,22 +427,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - min_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - max_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: + { + min_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + max_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,15 +455,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private double min_ ; + private double min_; /** + * + * *
      * Range minimum.
      * 
* * double min = 1; + * * @return The min. */ @java.lang.Override @@ -442,11 +475,14 @@ public double getMin() { return min_; } /** + * + * *
      * Range minimum.
      * 
* * double min = 1; + * * @param value The min to set. * @return This builder for chaining. */ @@ -458,11 +494,14 @@ public Builder setMin(double value) { return this; } /** + * + * *
      * Range minimum.
      * 
* * double min = 1; + * * @return This builder for chaining. */ public Builder clearMin() { @@ -472,13 +511,16 @@ public Builder clearMin() { return this; } - private double max_ ; + private double max_; /** + * + * *
      * Range maximum.
      * 
* * double max = 2; + * * @return The max. */ @java.lang.Override @@ -486,11 +528,14 @@ public double getMax() { return max_; } /** + * + * *
      * Range maximum.
      * 
* * double max = 2; + * * @param value The max to set. * @return This builder for chaining. */ @@ -502,11 +547,14 @@ public Builder setMax(double value) { return this; } /** + * + * *
      * Range maximum.
      * 
* * double max = 2; + * * @return This builder for chaining. */ public Builder clearMax() { @@ -515,9 +563,9 @@ public Builder clearMax() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -527,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Range) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Range) private static final com.google.monitoring.v3.Range DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Range(); } @@ -541,27 +589,27 @@ public static com.google.monitoring.v3.Range getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Range parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Range parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java new file mode 100644 index 000000000000..b6d2f6d1ef35 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RangeOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/service.proto + +package com.google.monitoring.v3; + +public interface RangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Range) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Range minimum.
+   * 
+ * + * double min = 1; + * + * @return The min. + */ + double getMin(); + + /** + * + * + *
+   * Range maximum.
+   * 
+ * + * double max = 2; + * + * @return The max. + */ + double getMax(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java index c9ae44a35e4f..6d70560131aa 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * Service Level Indicators for which atomic units of service are counted
  * directly.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.monitoring.v3.RequestBasedSli}
  */
-public final class RequestBasedSli extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RequestBasedSli extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.RequestBasedSli)
     RequestBasedSliOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RequestBasedSli.newBuilder() to construct.
   private RequestBasedSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RequestBasedSli() {
-  }
+
+  private RequestBasedSli() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RequestBasedSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.RequestBasedSli.class, com.google.monitoring.v3.RequestBasedSli.Builder.class);
+            com.google.monitoring.v3.RequestBasedSli.class,
+            com.google.monitoring.v3.RequestBasedSli.Builder.class);
   }
 
   private int methodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object method_;
+
   public enum MethodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GOOD_TOTAL_RATIO(1),
     DISTRIBUTION_CUT(3),
     METHOD_NOT_SET(0);
     private final int value;
+
     private MethodCase(int value) {
       this.value = value;
     }
@@ -68,31 +90,37 @@ public static MethodCase valueOf(int value) {
 
     public static MethodCase forNumber(int value) {
       switch (value) {
-        case 1: return GOOD_TOTAL_RATIO;
-        case 3: return DISTRIBUTION_CUT;
-        case 0: return METHOD_NOT_SET;
-        default: return null;
+        case 1:
+          return GOOD_TOTAL_RATIO;
+        case 3:
+          return DISTRIBUTION_CUT;
+        case 0:
+          return METHOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public MethodCase
-  getMethodCase() {
-    return MethodCase.forNumber(
-        methodCase_);
+  public MethodCase getMethodCase() {
+    return MethodCase.forNumber(methodCase_);
   }
 
   public static final int GOOD_TOTAL_RATIO_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return Whether the goodTotalRatio field is set. */ @java.lang.Override @@ -100,22 +128,27 @@ public boolean hasGoodTotalRatio() { return methodCase_ == 1; } /** + * + * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return The goodTotalRatio. */ @java.lang.Override public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() { if (methodCase_ == 1) { - return (com.google.monitoring.v3.TimeSeriesRatio) method_; + return (com.google.monitoring.v3.TimeSeriesRatio) method_; } return com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance(); } /** + * + * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
@@ -126,13 +159,15 @@ public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() {
   @java.lang.Override
   public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuilder() {
     if (methodCase_ == 1) {
-       return (com.google.monitoring.v3.TimeSeriesRatio) method_;
+      return (com.google.monitoring.v3.TimeSeriesRatio) method_;
     }
     return com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance();
   }
 
   public static final int DISTRIBUTION_CUT_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -141,6 +176,7 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return Whether the distributionCut field is set. */ @java.lang.Override @@ -148,6 +184,8 @@ public boolean hasDistributionCut() { return methodCase_ == 3; } /** + * + * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -156,16 +194,19 @@ public boolean hasDistributionCut() {
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return The distributionCut. */ @java.lang.Override public com.google.monitoring.v3.DistributionCut getDistributionCut() { if (methodCase_ == 3) { - return (com.google.monitoring.v3.DistributionCut) method_; + return (com.google.monitoring.v3.DistributionCut) method_; } return com.google.monitoring.v3.DistributionCut.getDefaultInstance(); } /** + * + * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -178,12 +219,13 @@ public com.google.monitoring.v3.DistributionCut getDistributionCut() {
   @java.lang.Override
   public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBuilder() {
     if (methodCase_ == 3) {
-       return (com.google.monitoring.v3.DistributionCut) method_;
+      return (com.google.monitoring.v3.DistributionCut) method_;
     }
     return com.google.monitoring.v3.DistributionCut.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -195,8 +237,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (methodCase_ == 1) {
       output.writeMessage(1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
     }
@@ -213,12 +254,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (methodCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.monitoring.v3.TimeSeriesRatio) method_);
     }
     if (methodCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.monitoring.v3.DistributionCut) method_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.monitoring.v3.DistributionCut) method_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -228,7 +271,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.RequestBasedSli)) {
       return super.equals(obj);
@@ -238,12 +281,10 @@ public boolean equals(final java.lang.Object obj) {
     if (!getMethodCase().equals(other.getMethodCase())) return false;
     switch (methodCase_) {
       case 1:
-        if (!getGoodTotalRatio()
-            .equals(other.getGoodTotalRatio())) return false;
+        if (!getGoodTotalRatio().equals(other.getGoodTotalRatio())) return false;
         break;
       case 3:
-        if (!getDistributionCut()
-            .equals(other.getDistributionCut())) return false;
+        if (!getDistributionCut().equals(other.getDistributionCut())) return false;
         break;
       case 0:
       default:
@@ -276,99 +317,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.RequestBasedSli parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.RequestBasedSli parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.RequestBasedSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.RequestBasedSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Service Level Indicators for which atomic units of service are counted
    * directly.
@@ -376,33 +422,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.RequestBasedSli}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.RequestBasedSli)
       com.google.monitoring.v3.RequestBasedSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.RequestBasedSli.class, com.google.monitoring.v3.RequestBasedSli.Builder.class);
+              com.google.monitoring.v3.RequestBasedSli.class,
+              com.google.monitoring.v3.RequestBasedSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.RequestBasedSli.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +464,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
     }
 
     @java.lang.Override
@@ -440,8 +485,11 @@ public com.google.monitoring.v3.RequestBasedSli build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.RequestBasedSli buildPartial() {
-      com.google.monitoring.v3.RequestBasedSli result = new com.google.monitoring.v3.RequestBasedSli(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.RequestBasedSli result =
+          new com.google.monitoring.v3.RequestBasedSli(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -454,12 +502,10 @@ private void buildPartial0(com.google.monitoring.v3.RequestBasedSli result) {
     private void buildPartialOneofs(com.google.monitoring.v3.RequestBasedSli result) {
       result.methodCase_ = methodCase_;
       result.method_ = this.method_;
-      if (methodCase_ == 1 &&
-          goodTotalRatioBuilder_ != null) {
+      if (methodCase_ == 1 && goodTotalRatioBuilder_ != null) {
         result.method_ = goodTotalRatioBuilder_.build();
       }
-      if (methodCase_ == 3 &&
-          distributionCutBuilder_ != null) {
+      if (methodCase_ == 3 && distributionCutBuilder_ != null) {
         result.method_ = distributionCutBuilder_.build();
       }
     }
@@ -468,38 +514,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.RequestBasedSli result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.RequestBasedSli) {
-        return mergeFrom((com.google.monitoring.v3.RequestBasedSli)other);
+        return mergeFrom((com.google.monitoring.v3.RequestBasedSli) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,17 +556,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.monitoring.v3.RequestBasedSli other) {
       if (other == com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) return this;
       switch (other.getMethodCase()) {
-        case GOOD_TOTAL_RATIO: {
-          mergeGoodTotalRatio(other.getGoodTotalRatio());
-          break;
-        }
-        case DISTRIBUTION_CUT: {
-          mergeDistributionCut(other.getDistributionCut());
-          break;
-        }
-        case METHOD_NOT_SET: {
-          break;
-        }
+        case GOOD_TOTAL_RATIO:
+          {
+            mergeGoodTotalRatio(other.getGoodTotalRatio());
+            break;
+          }
+        case DISTRIBUTION_CUT:
+          {
+            mergeDistributionCut(other.getDistributionCut());
+            break;
+          }
+        case METHOD_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -547,26 +597,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getGoodTotalRatioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              methodCase_ = 1;
-              break;
-            } // case 10
-            case 26: {
-              input.readMessage(
-                  getDistributionCutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              methodCase_ = 3;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getGoodTotalRatioFieldBuilder().getBuilder(), extensionRegistry);
+                methodCase_ = 1;
+                break;
+              } // case 10
+            case 26:
+              {
+                input.readMessage(getDistributionCutFieldBuilder().getBuilder(), extensionRegistry);
+                methodCase_ = 3;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,12 +625,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int methodCase_ = 0;
     private java.lang.Object method_;
-    public MethodCase
-        getMethodCase() {
-      return MethodCase.forNumber(
-          methodCase_);
+
+    public MethodCase getMethodCase() {
+      return MethodCase.forNumber(methodCase_);
     }
 
     public Builder clearMethod() {
@@ -594,14 +643,20 @@ public Builder clearMethod() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder> goodTotalRatioBuilder_;
+            com.google.monitoring.v3.TimeSeriesRatio,
+            com.google.monitoring.v3.TimeSeriesRatio.Builder,
+            com.google.monitoring.v3.TimeSeriesRatioOrBuilder>
+        goodTotalRatioBuilder_;
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
      * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return Whether the goodTotalRatio field is set. */ @java.lang.Override @@ -609,12 +664,15 @@ public boolean hasGoodTotalRatio() { return methodCase_ == 1; } /** + * + * *
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
      * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return The goodTotalRatio. */ @java.lang.Override @@ -632,6 +690,8 @@ public com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio() { } } /** + * + * *
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -653,6 +713,8 @@ public Builder setGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio value)
       return this;
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -672,6 +734,8 @@ public Builder setGoodTotalRatio(
       return this;
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -681,10 +745,13 @@ public Builder setGoodTotalRatio(
      */
     public Builder mergeGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio value) {
       if (goodTotalRatioBuilder_ == null) {
-        if (methodCase_ == 1 &&
-            method_ != com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance()) {
-          method_ = com.google.monitoring.v3.TimeSeriesRatio.newBuilder((com.google.monitoring.v3.TimeSeriesRatio) method_)
-              .mergeFrom(value).buildPartial();
+        if (methodCase_ == 1
+            && method_ != com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance()) {
+          method_ =
+              com.google.monitoring.v3.TimeSeriesRatio.newBuilder(
+                      (com.google.monitoring.v3.TimeSeriesRatio) method_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           method_ = value;
         }
@@ -700,6 +767,8 @@ public Builder mergeGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio valu
       return this;
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -724,6 +793,8 @@ public Builder clearGoodTotalRatio() {
       return this;
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -735,6 +806,8 @@ public com.google.monitoring.v3.TimeSeriesRatio.Builder getGoodTotalRatioBuilder
       return getGoodTotalRatioFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -754,6 +827,8 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * `good_total_ratio` is used when the ratio of `good_service` to
      * `total_service` is computed from two `TimeSeries`.
@@ -762,14 +837,19 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
      * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder> 
+            com.google.monitoring.v3.TimeSeriesRatio,
+            com.google.monitoring.v3.TimeSeriesRatio.Builder,
+            com.google.monitoring.v3.TimeSeriesRatioOrBuilder>
         getGoodTotalRatioFieldBuilder() {
       if (goodTotalRatioBuilder_ == null) {
         if (!(methodCase_ == 1)) {
           method_ = com.google.monitoring.v3.TimeSeriesRatio.getDefaultInstance();
         }
-        goodTotalRatioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TimeSeriesRatio, com.google.monitoring.v3.TimeSeriesRatio.Builder, com.google.monitoring.v3.TimeSeriesRatioOrBuilder>(
+        goodTotalRatioBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.TimeSeriesRatio,
+                com.google.monitoring.v3.TimeSeriesRatio.Builder,
+                com.google.monitoring.v3.TimeSeriesRatioOrBuilder>(
                 (com.google.monitoring.v3.TimeSeriesRatio) method_,
                 getParentForChildren(),
                 isClean());
@@ -781,8 +861,13 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder> distributionCutBuilder_;
+            com.google.monitoring.v3.DistributionCut,
+            com.google.monitoring.v3.DistributionCut.Builder,
+            com.google.monitoring.v3.DistributionCutOrBuilder>
+        distributionCutBuilder_;
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -791,6 +876,7 @@ public com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuil
      * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return Whether the distributionCut field is set. */ @java.lang.Override @@ -798,6 +884,8 @@ public boolean hasDistributionCut() { return methodCase_ == 3; } /** + * + * *
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -806,6 +894,7 @@ public boolean hasDistributionCut() {
      * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return The distributionCut. */ @java.lang.Override @@ -823,6 +912,8 @@ public com.google.monitoring.v3.DistributionCut getDistributionCut() { } } /** + * + * *
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -846,6 +937,8 @@ public Builder setDistributionCut(com.google.monitoring.v3.DistributionCut value
       return this;
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -867,6 +960,8 @@ public Builder setDistributionCut(
       return this;
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -878,10 +973,13 @@ public Builder setDistributionCut(
      */
     public Builder mergeDistributionCut(com.google.monitoring.v3.DistributionCut value) {
       if (distributionCutBuilder_ == null) {
-        if (methodCase_ == 3 &&
-            method_ != com.google.monitoring.v3.DistributionCut.getDefaultInstance()) {
-          method_ = com.google.monitoring.v3.DistributionCut.newBuilder((com.google.monitoring.v3.DistributionCut) method_)
-              .mergeFrom(value).buildPartial();
+        if (methodCase_ == 3
+            && method_ != com.google.monitoring.v3.DistributionCut.getDefaultInstance()) {
+          method_ =
+              com.google.monitoring.v3.DistributionCut.newBuilder(
+                      (com.google.monitoring.v3.DistributionCut) method_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           method_ = value;
         }
@@ -897,6 +995,8 @@ public Builder mergeDistributionCut(com.google.monitoring.v3.DistributionCut val
       return this;
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -923,6 +1023,8 @@ public Builder clearDistributionCut() {
       return this;
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -936,6 +1038,8 @@ public com.google.monitoring.v3.DistributionCut.Builder getDistributionCutBuilde
       return getDistributionCutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -957,6 +1061,8 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
       }
     }
     /**
+     *
+     *
      * 
      * `distribution_cut` is used when `good_service` is a count of values
      * aggregated in a `Distribution` that fall into a good range. The
@@ -967,14 +1073,19 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
      * .google.monitoring.v3.DistributionCut distribution_cut = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder> 
+            com.google.monitoring.v3.DistributionCut,
+            com.google.monitoring.v3.DistributionCut.Builder,
+            com.google.monitoring.v3.DistributionCutOrBuilder>
         getDistributionCutFieldBuilder() {
       if (distributionCutBuilder_ == null) {
         if (!(methodCase_ == 3)) {
           method_ = com.google.monitoring.v3.DistributionCut.getDefaultInstance();
         }
-        distributionCutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.DistributionCut, com.google.monitoring.v3.DistributionCut.Builder, com.google.monitoring.v3.DistributionCutOrBuilder>(
+        distributionCutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.DistributionCut,
+                com.google.monitoring.v3.DistributionCut.Builder,
+                com.google.monitoring.v3.DistributionCutOrBuilder>(
                 (com.google.monitoring.v3.DistributionCut) method_,
                 getParentForChildren(),
                 isClean());
@@ -984,9 +1095,9 @@ public com.google.monitoring.v3.DistributionCutOrBuilder getDistributionCutOrBui
       onChanged();
       return distributionCutBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -996,12 +1107,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.RequestBasedSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.RequestBasedSli)
   private static final com.google.monitoring.v3.RequestBasedSli DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.RequestBasedSli();
   }
@@ -1010,27 +1121,27 @@ public static com.google.monitoring.v3.RequestBasedSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RequestBasedSli parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public RequestBasedSli parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1045,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.RequestBasedSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
index 0706e8990f80..9c0b54bc4e29 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSliOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface RequestBasedSliOrBuilder extends
+public interface RequestBasedSliOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.RequestBasedSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return Whether the goodTotalRatio field is set. */ boolean hasGoodTotalRatio(); /** + * + * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
    * 
* * .google.monitoring.v3.TimeSeriesRatio good_total_ratio = 1; + * * @return The goodTotalRatio. */ com.google.monitoring.v3.TimeSeriesRatio getGoodTotalRatio(); /** + * + * *
    * `good_total_ratio` is used when the ratio of `good_service` to
    * `total_service` is computed from two `TimeSeries`.
@@ -38,6 +62,8 @@ public interface RequestBasedSliOrBuilder extends
   com.google.monitoring.v3.TimeSeriesRatioOrBuilder getGoodTotalRatioOrBuilder();
 
   /**
+   *
+   *
    * 
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -46,10 +72,13 @@ public interface RequestBasedSliOrBuilder extends
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return Whether the distributionCut field is set. */ boolean hasDistributionCut(); /** + * + * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
@@ -58,10 +87,13 @@ public interface RequestBasedSliOrBuilder extends
    * 
* * .google.monitoring.v3.DistributionCut distribution_cut = 3; + * * @return The distributionCut. */ com.google.monitoring.v3.DistributionCut getDistributionCut(); /** + * + * *
    * `distribution_cut` is used when `good_service` is a count of values
    * aggregated in a `Distribution` that fall into a good range. The
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
similarity index 55%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
index 8bffbafd50e9..56c3c3daa5b2 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java
@@ -1,57 +1,84 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The `SendNotificationChannelVerificationCode` request.
  * 
* * Protobuf type {@code google.monitoring.v3.SendNotificationChannelVerificationCodeRequest} */ -public final class SendNotificationChannelVerificationCodeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SendNotificationChannelVerificationCodeRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) SendNotificationChannelVerificationCodeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SendNotificationChannelVerificationCodeRequest.newBuilder() to construct. - private SendNotificationChannelVerificationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SendNotificationChannelVerificationCodeRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SendNotificationChannelVerificationCodeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SendNotificationChannelVerificationCodeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The notification channel to which to send a verification code.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The notification channel to which to send a verification code.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other = (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) obj; + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other = + (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +184,139 @@ public int hashCode() { } public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `SendNotificationChannelVerificationCode` request.
    * 
* * Protobuf type {@code google.monitoring.v3.SendNotificationChannelVerificationCodeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder.class); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.Builder + .class); } - // Construct using com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,19 +326,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_SendNotificationChannelVerificationCodeRequest_descriptor; } @java.lang.Override - public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { - return com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance(); + public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + getDefaultInstanceForType() { + return com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest build() { - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = buildPartial(); + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -310,13 +350,17 @@ public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest b @java.lang.Override public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest buildPartial() { - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result = + new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result) { + private void buildPartial0( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,46 +371,52 @@ private void buildPartial0(com.google.monitoring.v3.SendNotificationChannelVerif public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) { - return mergeFrom((com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest)other); + if (other + instanceof com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) { + return mergeFrom( + (com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other) { - if (other == com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest other) { + if (other + == com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +448,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +470,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +499,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +523,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +565,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The notification channel to which to send a verification code.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,55 +600,61 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - private static final com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest(); } - public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstance() { + public static com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendNotificationChannelVerificationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendNotificationChannelVerificationCodeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser + parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser + getParserForType() { return PARSER; } @java.lang.Override - public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest getDefaultInstanceForType() { + public com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java new file mode 100644 index 000000000000..c68a965c6085 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/notification_service.proto + +package com.google.monitoring.v3; + +public interface SendNotificationChannelVerificationCodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The notification channel to which to send a verification code.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The notification channel to which to send a verification code.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java index 593f7e685bc9..86b52c450b8f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * A `Service` is a discrete, autonomous, and network-accessible unit, designed
  * to solve an individual concern
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.Service}
  */
-public final class Service extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Service extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service)
     ServiceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Service.newBuilder() to construct.
   private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Service() {
     name_ = "";
     displayName_ = "";
@@ -30,41 +48,42 @@ private Service() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Service();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_Service_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 14:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_Service_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Service.class, com.google.monitoring.v3.Service.Builder.class);
   }
 
-  public interface CustomOrBuilder extends
+  public interface CustomOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.Custom)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * Custom view of service telemetry. Currently a place-holder pending final
    * design.
@@ -72,39 +91,41 @@ public interface CustomOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.Service.Custom}
    */
-  public static final class Custom extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Custom extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Custom)
       CustomOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Custom.newBuilder() to construct.
     private Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private Custom() {
-    }
+
+    private Custom() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Custom();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_Custom_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.Custom.class, com.google.monitoring.v3.Service.Custom.Builder.class);
+              com.google.monitoring.v3.Service.Custom.class,
+              com.google.monitoring.v3.Service.Custom.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -116,8 +137,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -135,7 +155,7 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.Service.Custom)) {
         return super.equals(obj);
@@ -158,90 +178,94 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.monitoring.v3.Service.Custom parseFrom(
-        java.nio.ByteBuffer data)
+    public static com.google.monitoring.v3.Service.Custom parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(java.io.InputStream input)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.Service.Custom parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.Service.Custom parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
+
     public static Builder newBuilder(com.google.monitoring.v3.Service.Custom prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -251,6 +275,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Custom view of service telemetry. Currently a place-holder pending final
      * design.
@@ -258,33 +284,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.Custom}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.Custom)
         com.google.monitoring.v3.Service.CustomOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_Custom_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.Custom.class, com.google.monitoring.v3.Service.Custom.Builder.class);
+                com.google.monitoring.v3.Service.Custom.class,
+                com.google.monitoring.v3.Service.Custom.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.Custom.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -292,9 +318,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Custom_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_Custom_descriptor;
       }
 
       @java.lang.Override
@@ -313,7 +339,8 @@ public com.google.monitoring.v3.Service.Custom build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.Custom buildPartial() {
-        com.google.monitoring.v3.Service.Custom result = new com.google.monitoring.v3.Service.Custom(this);
+        com.google.monitoring.v3.Service.Custom result =
+            new com.google.monitoring.v3.Service.Custom(this);
         onBuilt();
         return result;
       }
@@ -322,38 +349,41 @@ public com.google.monitoring.v3.Service.Custom buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.Custom) {
-          return mergeFrom((com.google.monitoring.v3.Service.Custom)other);
+          return mergeFrom((com.google.monitoring.v3.Service.Custom) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -388,12 +418,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -403,6 +434,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -415,12 +447,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.Custom)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Custom)
     private static final com.google.monitoring.v3.Service.Custom DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.Custom();
     }
@@ -429,27 +461,28 @@ public static com.google.monitoring.v3.Service.Custom getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public Custom parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public Custom parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -464,14 +497,16 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.Service.Custom getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface AppEngineOrBuilder extends
+  public interface AppEngineOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.AppEngine)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -479,10 +514,13 @@ public interface AppEngineOrBuilder extends
      * 
* * string module_id = 1; + * * @return The moduleId. */ java.lang.String getModuleId(); /** + * + * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -490,55 +528,62 @@ public interface AppEngineOrBuilder extends
      * 
* * string module_id = 1; + * * @return The bytes for moduleId. */ - com.google.protobuf.ByteString - getModuleIdBytes(); + com.google.protobuf.ByteString getModuleIdBytes(); } /** + * + * *
    * App Engine service. Learn more at https://cloud.google.com/appengine.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.AppEngine} */ - public static final class AppEngine extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AppEngine extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.AppEngine) AppEngineOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppEngine.newBuilder() to construct. private AppEngine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AppEngine() { moduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppEngine(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.AppEngine.class, com.google.monitoring.v3.Service.AppEngine.Builder.class); + com.google.monitoring.v3.Service.AppEngine.class, + com.google.monitoring.v3.Service.AppEngine.Builder.class); } public static final int MODULE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object moduleId_ = ""; /** + * + * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -546,6 +591,7 @@ protected java.lang.Object newInstance(
      * 
* * string module_id = 1; + * * @return The moduleId. */ @java.lang.Override @@ -554,14 +600,15 @@ public java.lang.String getModuleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleId_ = s; return s; } } /** + * + * *
      * The ID of the App Engine module underlying this service. Corresponds to
      * the `module_id` resource label in the `gae_app` monitored resource:
@@ -569,16 +616,15 @@ public java.lang.String getModuleId() {
      * 
* * string module_id = 1; + * * @return The bytes for moduleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getModuleIdBytes() { + public com.google.protobuf.ByteString getModuleIdBytes() { java.lang.Object ref = moduleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); moduleId_ = b; return b; } else { @@ -587,6 +633,7 @@ public java.lang.String getModuleId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -598,8 +645,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moduleId_); } @@ -623,15 +669,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.AppEngine)) { return super.equals(obj); } - com.google.monitoring.v3.Service.AppEngine other = (com.google.monitoring.v3.Service.AppEngine) obj; + com.google.monitoring.v3.Service.AppEngine other = + (com.google.monitoring.v3.Service.AppEngine) obj; - if (!getModuleId() - .equals(other.getModuleId())) return false; + if (!getModuleId().equals(other.getModuleId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -650,90 +696,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.AppEngine parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.AppEngine parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.AppEngine parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.AppEngine parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Service.AppEngine prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -743,39 +793,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * App Engine service. Learn more at https://cloud.google.com/appengine.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.AppEngine} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.AppEngine) com.google.monitoring.v3.Service.AppEngineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.AppEngine.class, com.google.monitoring.v3.Service.AppEngine.Builder.class); + com.google.monitoring.v3.Service.AppEngine.class, + com.google.monitoring.v3.Service.AppEngine.Builder.class); } // Construct using com.google.monitoring.v3.Service.AppEngine.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -785,9 +837,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_AppEngine_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_AppEngine_descriptor; } @java.lang.Override @@ -806,8 +858,11 @@ public com.google.monitoring.v3.Service.AppEngine build() { @java.lang.Override public com.google.monitoring.v3.Service.AppEngine buildPartial() { - com.google.monitoring.v3.Service.AppEngine result = new com.google.monitoring.v3.Service.AppEngine(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.Service.AppEngine result = + new com.google.monitoring.v3.Service.AppEngine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -823,38 +878,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.AppEngine result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.AppEngine) { - return mergeFrom((com.google.monitoring.v3.Service.AppEngine)other); + return mergeFrom((com.google.monitoring.v3.Service.AppEngine) other); } else { super.mergeFrom(other); return this; @@ -894,17 +952,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - moduleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + moduleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -914,10 +974,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object moduleId_ = ""; /** + * + * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -925,13 +988,13 @@ public Builder mergeFrom(
        * 
* * string module_id = 1; + * * @return The moduleId. */ public java.lang.String getModuleId() { java.lang.Object ref = moduleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleId_ = s; return s; @@ -940,6 +1003,8 @@ public java.lang.String getModuleId() { } } /** + * + * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -947,15 +1012,14 @@ public java.lang.String getModuleId() {
        * 
* * string module_id = 1; + * * @return The bytes for moduleId. */ - public com.google.protobuf.ByteString - getModuleIdBytes() { + public com.google.protobuf.ByteString getModuleIdBytes() { java.lang.Object ref = moduleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); moduleId_ = b; return b; } else { @@ -963,6 +1027,8 @@ public java.lang.String getModuleId() { } } /** + * + * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -970,18 +1036,22 @@ public java.lang.String getModuleId() {
        * 
* * string module_id = 1; + * * @param value The moduleId to set. * @return This builder for chaining. */ - public Builder setModuleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } moduleId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -989,6 +1059,7 @@ public Builder setModuleId(
        * 
* * string module_id = 1; + * * @return This builder for chaining. */ public Builder clearModuleId() { @@ -998,6 +1069,8 @@ public Builder clearModuleId() { return this; } /** + * + * *
        * The ID of the App Engine module underlying this service. Corresponds to
        * the `module_id` resource label in the `gae_app` monitored resource:
@@ -1005,18 +1078,21 @@ public Builder clearModuleId() {
        * 
* * string module_id = 1; + * * @param value The bytes for moduleId to set. * @return This builder for chaining. */ - public Builder setModuleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); moduleId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1029,12 +1105,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.AppEngine) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.AppEngine) private static final com.google.monitoring.v3.Service.AppEngine DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.AppEngine(); } @@ -1043,27 +1119,28 @@ public static com.google.monitoring.v3.Service.AppEngine getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppEngine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1078,14 +1155,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.AppEngine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CloudEndpointsOrBuilder extends + public interface CloudEndpointsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.CloudEndpoints) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1093,10 +1172,13 @@ public interface CloudEndpointsOrBuilder extends
      * 
* * string service = 1; + * * @return The service. */ java.lang.String getService(); /** + * + * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1104,55 +1186,62 @@ public interface CloudEndpointsOrBuilder extends
      * 
* * string service = 1; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); } /** + * + * *
    * Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.CloudEndpoints} */ - public static final class CloudEndpoints extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CloudEndpoints extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.CloudEndpoints) CloudEndpointsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudEndpoints.newBuilder() to construct. private CloudEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudEndpoints() { service_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudEndpoints(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.CloudEndpoints.class, com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); + com.google.monitoring.v3.Service.CloudEndpoints.class, + com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object service_ = ""; /** + * + * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1160,6 +1249,7 @@ protected java.lang.Object newInstance(
      * 
* * string service = 1; + * * @return The service. */ @java.lang.Override @@ -1168,14 +1258,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
      * The name of the Cloud Endpoints service underlying this service.
      * Corresponds to the `service` resource label in the `api` monitored
@@ -1183,16 +1274,15 @@ public java.lang.String getService() {
      * 
* * string service = 1; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1201,6 +1291,7 @@ public java.lang.String getService() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,8 +1303,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -1237,15 +1327,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.CloudEndpoints)) { return super.equals(obj); } - com.google.monitoring.v3.Service.CloudEndpoints other = (com.google.monitoring.v3.Service.CloudEndpoints) obj; + com.google.monitoring.v3.Service.CloudEndpoints other = + (com.google.monitoring.v3.Service.CloudEndpoints) obj; - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1265,89 +1355,93 @@ public int hashCode() { } public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.CloudEndpoints parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.CloudEndpoints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Service.CloudEndpoints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1357,39 +1451,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.CloudEndpoints} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.CloudEndpoints) com.google.monitoring.v3.Service.CloudEndpointsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.CloudEndpoints.class, com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); + com.google.monitoring.v3.Service.CloudEndpoints.class, + com.google.monitoring.v3.Service.CloudEndpoints.Builder.class); } // Construct using com.google.monitoring.v3.Service.CloudEndpoints.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1399,9 +1495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; } @java.lang.Override @@ -1420,8 +1516,11 @@ public com.google.monitoring.v3.Service.CloudEndpoints build() { @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpoints buildPartial() { - com.google.monitoring.v3.Service.CloudEndpoints result = new com.google.monitoring.v3.Service.CloudEndpoints(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.Service.CloudEndpoints result = + new com.google.monitoring.v3.Service.CloudEndpoints(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1437,38 +1536,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.CloudEndpoints resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.CloudEndpoints) { - return mergeFrom((com.google.monitoring.v3.Service.CloudEndpoints)other); + return mergeFrom((com.google.monitoring.v3.Service.CloudEndpoints) other); } else { super.mergeFrom(other); return this; @@ -1476,7 +1578,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.Service.CloudEndpoints other) { - if (other == com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) + return this; if (!other.getService().isEmpty()) { service_ = other.service_; bitField0_ |= 0x00000001; @@ -1508,17 +1611,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - service_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1528,10 +1633,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object service_ = ""; /** + * + * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1539,13 +1647,13 @@ public Builder mergeFrom(
        * 
* * string service = 1; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1554,6 +1662,8 @@ public java.lang.String getService() { } } /** + * + * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1561,15 +1671,14 @@ public java.lang.String getService() {
        * 
* * string service = 1; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1577,6 +1686,8 @@ public java.lang.String getService() { } } /** + * + * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1584,18 +1695,22 @@ public java.lang.String getService() {
        * 
* * string service = 1; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1603,6 +1718,7 @@ public Builder setService(
        * 
* * string service = 1; + * * @return This builder for chaining. */ public Builder clearService() { @@ -1612,6 +1728,8 @@ public Builder clearService() { return this; } /** + * + * *
        * The name of the Cloud Endpoints service underlying this service.
        * Corresponds to the `service` resource label in the `api` monitored
@@ -1619,18 +1737,21 @@ public Builder clearService() {
        * 
* * string service = 1; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1643,12 +1764,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.CloudEndpoints) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.CloudEndpoints) private static final com.google.monitoring.v3.Service.CloudEndpoints DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.CloudEndpoints(); } @@ -1657,27 +1778,28 @@ public static com.google.monitoring.v3.Service.CloudEndpoints getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEndpoints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1692,14 +1814,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.CloudEndpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ClusterIstioOrBuilder extends + public interface ClusterIstioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.ClusterIstio) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1707,10 +1831,13 @@ public interface ClusterIstioOrBuilder extends
      * 
* * string location = 1; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1718,12 +1845,14 @@ public interface ClusterIstioOrBuilder extends
      * 
* * string location = 1; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1731,10 +1860,13 @@ public interface ClusterIstioOrBuilder extends
      * 
* * string cluster_name = 2; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1742,56 +1874,68 @@ public interface ClusterIstioOrBuilder extends
      * 
* * string cluster_name = 2; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ java.lang.String getServiceNamespace(); /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ - com.google.protobuf.ByteString - getServiceNamespaceBytes(); + com.google.protobuf.ByteString getServiceNamespaceBytes(); /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The serviceName. */ java.lang.String getServiceName(); /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString - getServiceNameBytes(); + com.google.protobuf.ByteString getServiceNameBytes(); } /** + * + * *
    * Istio service scoped to a single Kubernetes cluster. Learn more at
    * https://istio.io. Clusters running OSS Istio will have their services
@@ -1800,15 +1944,16 @@ public interface ClusterIstioOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
    */
-  public static final class ClusterIstio extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ClusterIstio extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.ClusterIstio)
       ClusterIstioOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ClusterIstio.newBuilder() to construct.
     private ClusterIstio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ClusterIstio() {
       location_ = "";
       clusterName_ = "";
@@ -1818,28 +1963,32 @@ private ClusterIstio() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ClusterIstio();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.ClusterIstio.class, com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
+              com.google.monitoring.v3.Service.ClusterIstio.class,
+              com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
     }
 
     public static final int LOCATION_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object location_ = "";
     /**
+     *
+     *
      * 
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1847,6 +1996,7 @@ protected java.lang.Object newInstance(
      * 
* * string location = 1; + * * @return The location. */ @java.lang.Override @@ -1855,14 +2005,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
      * The location of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -1870,16 +2021,15 @@ public java.lang.String getLocation() {
      * 
* * string location = 1; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1888,9 +2038,12 @@ public java.lang.String getLocation() { } public static final int CLUSTER_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clusterName_ = ""; /** + * + * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1898,6 +2051,7 @@ public java.lang.String getLocation() {
      * 
* * string cluster_name = 2; + * * @return The clusterName. */ @java.lang.Override @@ -1906,14 +2060,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
      * The name of the Kubernetes cluster in which this Istio service is
      * defined. Corresponds to the `cluster_name` resource label in
@@ -1921,16 +2076,15 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1939,15 +2093,19 @@ public java.lang.String getClusterName() { } public static final int SERVICE_NAMESPACE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceNamespace_ = ""; /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ @java.lang.Override @@ -1956,30 +2114,30 @@ public java.lang.String getServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; } } /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceNamespaceBytes() { + public com.google.protobuf.ByteString getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -1988,15 +2146,19 @@ public java.lang.String getServiceNamespace() { } public static final int SERVICE_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object serviceName_ = ""; /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The serviceName. */ @java.lang.Override @@ -2005,30 +2167,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -2037,6 +2199,7 @@ public java.lang.String getServiceName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2048,8 +2211,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -2091,21 +2253,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.ClusterIstio)) { return super.equals(obj); } - com.google.monitoring.v3.Service.ClusterIstio other = (com.google.monitoring.v3.Service.ClusterIstio) obj; + com.google.monitoring.v3.Service.ClusterIstio other = + (com.google.monitoring.v3.Service.ClusterIstio) obj; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getServiceNamespace() - .equals(other.getServiceNamespace())) return false; - if (!getServiceName() - .equals(other.getServiceName())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getServiceNamespace().equals(other.getServiceNamespace())) return false; + if (!getServiceName().equals(other.getServiceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2130,90 +2289,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.ClusterIstio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.ClusterIstio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Service.ClusterIstio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2223,6 +2386,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Istio service scoped to a single Kubernetes cluster. Learn more at
      * https://istio.io. Clusters running OSS Istio will have their services
@@ -2231,33 +2396,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.ClusterIstio}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.ClusterIstio)
         com.google.monitoring.v3.Service.ClusterIstioOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.ClusterIstio.class, com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
+                com.google.monitoring.v3.Service.ClusterIstio.class,
+                com.google.monitoring.v3.Service.ClusterIstio.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.ClusterIstio.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2270,9 +2435,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
       }
 
       @java.lang.Override
@@ -2291,8 +2456,11 @@ public com.google.monitoring.v3.Service.ClusterIstio build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.ClusterIstio buildPartial() {
-        com.google.monitoring.v3.Service.ClusterIstio result = new com.google.monitoring.v3.Service.ClusterIstio(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.Service.ClusterIstio result =
+            new com.google.monitoring.v3.Service.ClusterIstio(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -2317,38 +2485,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.ClusterIstio result)
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.ClusterIstio) {
-          return mergeFrom((com.google.monitoring.v3.Service.ClusterIstio)other);
+          return mergeFrom((com.google.monitoring.v3.Service.ClusterIstio) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2356,7 +2527,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.Service.ClusterIstio other) {
-        if (other == com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance())
+          return this;
         if (!other.getLocation().isEmpty()) {
           location_ = other.location_;
           bitField0_ |= 0x00000001;
@@ -2403,32 +2575,37 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                location_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                clusterName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                serviceNamespace_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                serviceName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  location_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  clusterName_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  serviceNamespace_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  serviceName_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2438,10 +2615,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object location_ = "";
       /**
+       *
+       *
        * 
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2449,13 +2629,13 @@ public Builder mergeFrom(
        * 
* * string location = 1; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2464,6 +2644,8 @@ public java.lang.String getLocation() { } } /** + * + * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2471,15 +2653,14 @@ public java.lang.String getLocation() {
        * 
* * string location = 1; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -2487,6 +2668,8 @@ public java.lang.String getLocation() { } } /** + * + * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2494,18 +2677,22 @@ public java.lang.String getLocation() {
        * 
* * string location = 1; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2513,6 +2700,7 @@ public Builder setLocation(
        * 
* * string location = 1; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2522,6 +2710,8 @@ public Builder clearLocation() { return this; } /** + * + * *
        * The location of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `location` resource label in `k8s_cluster`
@@ -2529,12 +2719,14 @@ public Builder clearLocation() {
        * 
* * string location = 1; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; @@ -2544,6 +2736,8 @@ public Builder setLocationBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2551,13 +2745,13 @@ public Builder setLocationBytes(
        * 
* * string cluster_name = 2; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -2566,6 +2760,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2573,15 +2769,14 @@ public java.lang.String getClusterName() {
        * 
* * string cluster_name = 2; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -2589,6 +2784,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2596,18 +2793,22 @@ public java.lang.String getClusterName() {
        * 
* * string cluster_name = 2; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clusterName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2615,6 +2816,7 @@ public Builder setClusterName(
        * 
* * string cluster_name = 2; + * * @return This builder for chaining. */ public Builder clearClusterName() { @@ -2624,6 +2826,8 @@ public Builder clearClusterName() { return this; } /** + * + * *
        * The name of the Kubernetes cluster in which this Istio service is
        * defined. Corresponds to the `cluster_name` resource label in
@@ -2631,12 +2835,14 @@ public Builder clearClusterName() {
        * 
* * string cluster_name = 2; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clusterName_ = value; bitField0_ |= 0x00000002; @@ -2646,19 +2852,21 @@ public Builder setClusterNameBytes( private java.lang.Object serviceNamespace_ = ""; /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ public java.lang.String getServiceNamespace() { java.lang.Object ref = serviceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; @@ -2667,21 +2875,22 @@ public java.lang.String getServiceNamespace() { } } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ - public com.google.protobuf.ByteString - getServiceNamespaceBytes() { + public com.google.protobuf.ByteString getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -2689,30 +2898,37 @@ public java.lang.String getServiceNamespace() { } } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @param value The serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceNamespace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return This builder for chaining. */ public Builder clearServiceNamespace() { @@ -2722,18 +2938,22 @@ public Builder clearServiceNamespace() { return this; } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @param value The bytes for serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceNamespace_ = value; bitField0_ |= 0x00000004; @@ -2743,19 +2963,21 @@ public Builder setServiceNamespaceBytes( private java.lang.Object serviceName_ = ""; /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -2764,21 +2986,22 @@ public java.lang.String getServiceName() { } } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -2786,30 +3009,37 @@ public java.lang.String getServiceName() { } } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return This builder for chaining. */ public Builder clearServiceName() { @@ -2819,24 +3049,29 @@ public Builder clearServiceName() { return this; } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2849,12 +3084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.ClusterIstio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.ClusterIstio) private static final com.google.monitoring.v3.Service.ClusterIstio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.ClusterIstio(); } @@ -2863,27 +3098,28 @@ public static com.google.monitoring.v3.Service.ClusterIstio getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterIstio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterIstio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2898,80 +3134,97 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.ClusterIstio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MeshIstioOrBuilder extends + public interface MeshIstioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.MeshIstio) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; + * * @return The meshUid. */ java.lang.String getMeshUid(); /** + * + * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ - com.google.protobuf.ByteString - getMeshUidBytes(); + com.google.protobuf.ByteString getMeshUidBytes(); /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ java.lang.String getServiceNamespace(); /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ - com.google.protobuf.ByteString - getServiceNamespaceBytes(); + com.google.protobuf.ByteString getServiceNamespaceBytes(); /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The serviceName. */ java.lang.String getServiceName(); /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString - getServiceNameBytes(); + com.google.protobuf.ByteString getServiceNameBytes(); } /** + * + * *
    * Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
    * will have their services ingested as this type.
@@ -2979,15 +3232,16 @@ public interface MeshIstioOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
    */
-  public static final class MeshIstio extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class MeshIstio extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.MeshIstio)
       MeshIstioOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use MeshIstio.newBuilder() to construct.
     private MeshIstio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private MeshIstio() {
       meshUid_ = "";
       serviceNamespace_ = "";
@@ -2996,34 +3250,39 @@ private MeshIstio() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new MeshIstio();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.MeshIstio.class, com.google.monitoring.v3.Service.MeshIstio.Builder.class);
+              com.google.monitoring.v3.Service.MeshIstio.class,
+              com.google.monitoring.v3.Service.MeshIstio.Builder.class);
     }
 
     public static final int MESH_UID_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object meshUid_ = "";
     /**
+     *
+     *
      * 
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; + * * @return The meshUid. */ @java.lang.Override @@ -3032,30 +3291,30 @@ public java.lang.String getMeshUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; } } /** + * + * *
      * Identifier for the mesh in which this Istio service is defined.
      * Corresponds to the `mesh_uid` metric label in Istio metrics.
      * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMeshUidBytes() { + public com.google.protobuf.ByteString getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); meshUid_ = b; return b; } else { @@ -3064,15 +3323,19 @@ public java.lang.String getMeshUid() { } public static final int SERVICE_NAMESPACE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceNamespace_ = ""; /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ @java.lang.Override @@ -3081,30 +3344,30 @@ public java.lang.String getServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; } } /** + * + * *
      * The namespace of the Istio service underlying this service. Corresponds
      * to the `destination_service_namespace` metric label in Istio metrics.
      * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceNamespaceBytes() { + public com.google.protobuf.ByteString getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -3113,15 +3376,19 @@ public java.lang.String getServiceNamespace() { } public static final int SERVICE_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object serviceName_ = ""; /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The serviceName. */ @java.lang.Override @@ -3130,30 +3397,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** + * + * *
      * The name of the Istio service underlying this service. Corresponds to the
      * `destination_service_name` metric label in Istio metrics.
      * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -3162,6 +3429,7 @@ public java.lang.String getServiceName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3173,8 +3441,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meshUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, meshUid_); } @@ -3210,19 +3477,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.MeshIstio)) { return super.equals(obj); } - com.google.monitoring.v3.Service.MeshIstio other = (com.google.monitoring.v3.Service.MeshIstio) obj; + com.google.monitoring.v3.Service.MeshIstio other = + (com.google.monitoring.v3.Service.MeshIstio) obj; - if (!getMeshUid() - .equals(other.getMeshUid())) return false; - if (!getServiceNamespace() - .equals(other.getServiceNamespace())) return false; - if (!getServiceName() - .equals(other.getServiceName())) return false; + if (!getMeshUid().equals(other.getMeshUid())) return false; + if (!getServiceNamespace().equals(other.getServiceNamespace())) return false; + if (!getServiceName().equals(other.getServiceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3245,90 +3510,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.MeshIstio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.MeshIstio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Service.MeshIstio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3338,6 +3607,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
      * will have their services ingested as this type.
@@ -3345,33 +3616,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.MeshIstio}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.MeshIstio)
         com.google.monitoring.v3.Service.MeshIstioOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.MeshIstio.class, com.google.monitoring.v3.Service.MeshIstio.Builder.class);
+                com.google.monitoring.v3.Service.MeshIstio.class,
+                com.google.monitoring.v3.Service.MeshIstio.Builder.class);
       }
 
-      // Construct using com.google.monitoring.v3.Service.MeshIstio.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using com.google.monitoring.v3.Service.MeshIstio.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3383,9 +3654,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
       }
 
       @java.lang.Override
@@ -3404,8 +3675,11 @@ public com.google.monitoring.v3.Service.MeshIstio build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.MeshIstio buildPartial() {
-        com.google.monitoring.v3.Service.MeshIstio result = new com.google.monitoring.v3.Service.MeshIstio(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.Service.MeshIstio result =
+            new com.google.monitoring.v3.Service.MeshIstio(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -3427,38 +3701,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.MeshIstio result) {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.MeshIstio) {
-          return mergeFrom((com.google.monitoring.v3.Service.MeshIstio)other);
+          return mergeFrom((com.google.monitoring.v3.Service.MeshIstio) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3508,27 +3785,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                meshUid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 26: {
-                serviceNamespace_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-              case 34: {
-                serviceName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  meshUid_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 26:
+                {
+                  serviceNamespace_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  serviceName_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3538,23 +3819,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object meshUid_ = "";
       /**
+       *
+       *
        * 
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; + * * @return The meshUid. */ public java.lang.String getMeshUid() { java.lang.Object ref = meshUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; @@ -3563,21 +3847,22 @@ public java.lang.String getMeshUid() { } } /** + * + * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ - public com.google.protobuf.ByteString - getMeshUidBytes() { + public com.google.protobuf.ByteString getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); meshUid_ = b; return b; } else { @@ -3585,30 +3870,37 @@ public java.lang.String getMeshUid() { } } /** + * + * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; + * * @param value The meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMeshUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } meshUid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; + * * @return This builder for chaining. */ public Builder clearMeshUid() { @@ -3618,18 +3910,22 @@ public Builder clearMeshUid() { return this; } /** + * + * *
        * Identifier for the mesh in which this Istio service is defined.
        * Corresponds to the `mesh_uid` metric label in Istio metrics.
        * 
* * string mesh_uid = 1; + * * @param value The bytes for meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); meshUid_ = value; bitField0_ |= 0x00000001; @@ -3639,19 +3935,21 @@ public Builder setMeshUidBytes( private java.lang.Object serviceNamespace_ = ""; /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return The serviceNamespace. */ public java.lang.String getServiceNamespace() { java.lang.Object ref = serviceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceNamespace_ = s; return s; @@ -3660,21 +3958,22 @@ public java.lang.String getServiceNamespace() { } } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return The bytes for serviceNamespace. */ - public com.google.protobuf.ByteString - getServiceNamespaceBytes() { + public com.google.protobuf.ByteString getServiceNamespaceBytes() { java.lang.Object ref = serviceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceNamespace_ = b; return b; } else { @@ -3682,30 +3981,37 @@ public java.lang.String getServiceNamespace() { } } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @param value The serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceNamespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @return This builder for chaining. */ public Builder clearServiceNamespace() { @@ -3715,18 +4021,22 @@ public Builder clearServiceNamespace() { return this; } /** + * + * *
        * The namespace of the Istio service underlying this service. Corresponds
        * to the `destination_service_namespace` metric label in Istio metrics.
        * 
* * string service_namespace = 3; + * * @param value The bytes for serviceNamespace to set. * @return This builder for chaining. */ - public Builder setServiceNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceNamespace_ = value; bitField0_ |= 0x00000002; @@ -3736,19 +4046,21 @@ public Builder setServiceNamespaceBytes( private java.lang.Object serviceName_ = ""; /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -3757,21 +4069,22 @@ public java.lang.String getServiceName() { } } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -3779,30 +4092,37 @@ public java.lang.String getServiceName() { } } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @return This builder for chaining. */ public Builder clearServiceName() { @@ -3812,24 +4132,29 @@ public Builder clearServiceName() { return this; } /** + * + * *
        * The name of the Istio service underlying this service. Corresponds to the
        * `destination_service_name` metric label in Istio metrics.
        * 
* * string service_name = 4; + * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3842,12 +4167,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.MeshIstio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.MeshIstio) private static final com.google.monitoring.v3.Service.MeshIstio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.MeshIstio(); } @@ -3856,27 +4181,28 @@ public static com.google.monitoring.v3.Service.MeshIstio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshIstio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshIstio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3891,14 +4217,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.MeshIstio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IstioCanonicalServiceOrBuilder extends + public interface IstioCanonicalServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.IstioCanonicalService) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -3906,10 +4234,13 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string mesh_uid = 1; + * * @return The meshUid. */ java.lang.String getMeshUid(); /** + * + * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -3917,12 +4248,14 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ - com.google.protobuf.ByteString - getMeshUidBytes(); + com.google.protobuf.ByteString getMeshUidBytes(); /** + * + * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -3931,10 +4264,13 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string canonical_service_namespace = 3; + * * @return The canonicalServiceNamespace. */ java.lang.String getCanonicalServiceNamespace(); /** + * + * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -3943,12 +4279,14 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string canonical_service_namespace = 3; + * * @return The bytes for canonicalServiceNamespace. */ - com.google.protobuf.ByteString - getCanonicalServiceNamespaceBytes(); + com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes(); /** + * + * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -3957,10 +4295,13 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string canonical_service = 4; + * * @return The canonicalService. */ java.lang.String getCanonicalService(); /** + * + * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -3969,12 +4310,14 @@ public interface IstioCanonicalServiceOrBuilder extends
      * 
* * string canonical_service = 4; + * * @return The bytes for canonicalService. */ - com.google.protobuf.ByteString - getCanonicalServiceBytes(); + com.google.protobuf.ByteString getCanonicalServiceBytes(); } /** + * + * *
    * Canonical service scoped to an Istio mesh. Anthos clusters running ASM >=
    * 1.6.8 will have their services ingested as this type.
@@ -3982,15 +4325,16 @@ public interface IstioCanonicalServiceOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.Service.IstioCanonicalService}
    */
-  public static final class IstioCanonicalService extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class IstioCanonicalService extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.IstioCanonicalService)
       IstioCanonicalServiceOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use IstioCanonicalService.newBuilder() to construct.
     private IstioCanonicalService(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private IstioCanonicalService() {
       meshUid_ = "";
       canonicalServiceNamespace_ = "";
@@ -3999,28 +4343,32 @@ private IstioCanonicalService() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new IstioCanonicalService();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.IstioCanonicalService.class, com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
+              com.google.monitoring.v3.Service.IstioCanonicalService.class,
+              com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
     }
 
     public static final int MESH_UID_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object meshUid_ = "";
     /**
+     *
+     *
      * 
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4028,6 +4376,7 @@ protected java.lang.Object newInstance(
      * 
* * string mesh_uid = 1; + * * @return The meshUid. */ @java.lang.Override @@ -4036,14 +4385,15 @@ public java.lang.String getMeshUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; } } /** + * + * *
      * Identifier for the Istio mesh in which this canonical service is defined.
      * Corresponds to the `mesh_uid` metric label in
@@ -4051,16 +4401,15 @@ public java.lang.String getMeshUid() {
      * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getMeshUidBytes() { + public com.google.protobuf.ByteString getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); meshUid_ = b; return b; } else { @@ -4069,9 +4418,12 @@ public java.lang.String getMeshUid() { } public static final int CANONICAL_SERVICE_NAMESPACE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object canonicalServiceNamespace_ = ""; /** + * + * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4080,6 +4432,7 @@ public java.lang.String getMeshUid() {
      * 
* * string canonical_service_namespace = 3; + * * @return The canonicalServiceNamespace. */ @java.lang.Override @@ -4088,14 +4441,15 @@ public java.lang.String getCanonicalServiceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalServiceNamespace_ = s; return s; } } /** + * + * *
      * The namespace of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4104,16 +4458,15 @@ public java.lang.String getCanonicalServiceNamespace() {
      * 
* * string canonical_service_namespace = 3; + * * @return The bytes for canonicalServiceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalServiceNamespaceBytes() { + public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { java.lang.Object ref = canonicalServiceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalServiceNamespace_ = b; return b; } else { @@ -4122,9 +4475,12 @@ public java.lang.String getCanonicalServiceNamespace() { } public static final int CANONICAL_SERVICE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object canonicalService_ = ""; /** + * + * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4133,6 +4489,7 @@ public java.lang.String getCanonicalServiceNamespace() {
      * 
* * string canonical_service = 4; + * * @return The canonicalService. */ @java.lang.Override @@ -4141,14 +4498,15 @@ public java.lang.String getCanonicalService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalService_ = s; return s; } } /** + * + * *
      * The name of the canonical service underlying this service.
      * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4157,16 +4515,15 @@ public java.lang.String getCanonicalService() {
      * 
* * string canonical_service = 4; + * * @return The bytes for canonicalService. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalServiceBytes() { + public com.google.protobuf.ByteString getCanonicalServiceBytes() { java.lang.Object ref = canonicalService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalService_ = b; return b; } else { @@ -4175,6 +4532,7 @@ public java.lang.String getCanonicalService() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4186,8 +4544,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(meshUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, meshUid_); } @@ -4210,7 +4567,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, meshUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalServiceNamespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalServiceNamespace_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalServiceNamespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, canonicalService_); @@ -4223,19 +4581,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.IstioCanonicalService)) { return super.equals(obj); } - com.google.monitoring.v3.Service.IstioCanonicalService other = (com.google.monitoring.v3.Service.IstioCanonicalService) obj; + com.google.monitoring.v3.Service.IstioCanonicalService other = + (com.google.monitoring.v3.Service.IstioCanonicalService) obj; - if (!getMeshUid() - .equals(other.getMeshUid())) return false; - if (!getCanonicalServiceNamespace() - .equals(other.getCanonicalServiceNamespace())) return false; - if (!getCanonicalService() - .equals(other.getCanonicalService())) return false; + if (!getMeshUid().equals(other.getMeshUid())) return false; + if (!getCanonicalServiceNamespace().equals(other.getCanonicalServiceNamespace())) + return false; + if (!getCanonicalService().equals(other.getCanonicalService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4259,89 +4616,94 @@ public int hashCode() { } public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.IstioCanonicalService parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.IstioCanonicalService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.Service.IstioCanonicalService prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.Service.IstioCanonicalService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4351,6 +4713,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Canonical service scoped to an Istio mesh. Anthos clusters running ASM >=
      * 1.6.8 will have their services ingested as this type.
@@ -4358,33 +4722,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Service.IstioCanonicalService}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.IstioCanonicalService)
         com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Service.IstioCanonicalService.class, com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
+                com.google.monitoring.v3.Service.IstioCanonicalService.class,
+                com.google.monitoring.v3.Service.IstioCanonicalService.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -4396,9 +4760,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
       }
 
       @java.lang.Override
@@ -4417,8 +4781,11 @@ public com.google.monitoring.v3.Service.IstioCanonicalService build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Service.IstioCanonicalService buildPartial() {
-        com.google.monitoring.v3.Service.IstioCanonicalService result = new com.google.monitoring.v3.Service.IstioCanonicalService(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.Service.IstioCanonicalService result =
+            new com.google.monitoring.v3.Service.IstioCanonicalService(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -4440,38 +4807,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.IstioCanonicalServic
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Service.IstioCanonicalService) {
-          return mergeFrom((com.google.monitoring.v3.Service.IstioCanonicalService)other);
+          return mergeFrom((com.google.monitoring.v3.Service.IstioCanonicalService) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -4479,7 +4849,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.Service.IstioCanonicalService other) {
-        if (other == com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance())
+          return this;
         if (!other.getMeshUid().isEmpty()) {
           meshUid_ = other.meshUid_;
           bitField0_ |= 0x00000001;
@@ -4521,27 +4892,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                meshUid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 26: {
-                canonicalServiceNamespace_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-              case 34: {
-                canonicalService_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  meshUid_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 26:
+                {
+                  canonicalServiceNamespace_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  canonicalService_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4551,10 +4926,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object meshUid_ = "";
       /**
+       *
+       *
        * 
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4562,13 +4940,13 @@ public Builder mergeFrom(
        * 
* * string mesh_uid = 1; + * * @return The meshUid. */ public java.lang.String getMeshUid() { java.lang.Object ref = meshUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); meshUid_ = s; return s; @@ -4577,6 +4955,8 @@ public java.lang.String getMeshUid() { } } /** + * + * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4584,15 +4964,14 @@ public java.lang.String getMeshUid() {
        * 
* * string mesh_uid = 1; + * * @return The bytes for meshUid. */ - public com.google.protobuf.ByteString - getMeshUidBytes() { + public com.google.protobuf.ByteString getMeshUidBytes() { java.lang.Object ref = meshUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); meshUid_ = b; return b; } else { @@ -4600,6 +4979,8 @@ public java.lang.String getMeshUid() { } } /** + * + * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4607,18 +4988,22 @@ public java.lang.String getMeshUid() {
        * 
* * string mesh_uid = 1; + * * @param value The meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMeshUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } meshUid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4626,6 +5011,7 @@ public Builder setMeshUid(
        * 
* * string mesh_uid = 1; + * * @return This builder for chaining. */ public Builder clearMeshUid() { @@ -4635,6 +5021,8 @@ public Builder clearMeshUid() { return this; } /** + * + * *
        * Identifier for the Istio mesh in which this canonical service is defined.
        * Corresponds to the `mesh_uid` metric label in
@@ -4642,12 +5030,14 @@ public Builder clearMeshUid() {
        * 
* * string mesh_uid = 1; + * * @param value The bytes for meshUid to set. * @return This builder for chaining. */ - public Builder setMeshUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMeshUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); meshUid_ = value; bitField0_ |= 0x00000001; @@ -4657,6 +5047,8 @@ public Builder setMeshUidBytes( private java.lang.Object canonicalServiceNamespace_ = ""; /** + * + * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4665,13 +5057,13 @@ public Builder setMeshUidBytes(
        * 
* * string canonical_service_namespace = 3; + * * @return The canonicalServiceNamespace. */ public java.lang.String getCanonicalServiceNamespace() { java.lang.Object ref = canonicalServiceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalServiceNamespace_ = s; return s; @@ -4680,6 +5072,8 @@ public java.lang.String getCanonicalServiceNamespace() { } } /** + * + * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4688,15 +5082,14 @@ public java.lang.String getCanonicalServiceNamespace() {
        * 
* * string canonical_service_namespace = 3; + * * @return The bytes for canonicalServiceNamespace. */ - public com.google.protobuf.ByteString - getCanonicalServiceNamespaceBytes() { + public com.google.protobuf.ByteString getCanonicalServiceNamespaceBytes() { java.lang.Object ref = canonicalServiceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalServiceNamespace_ = b; return b; } else { @@ -4704,6 +5097,8 @@ public java.lang.String getCanonicalServiceNamespace() { } } /** + * + * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4712,18 +5107,22 @@ public java.lang.String getCanonicalServiceNamespace() {
        * 
* * string canonical_service_namespace = 3; + * * @param value The canonicalServiceNamespace to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceNamespace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalServiceNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } canonicalServiceNamespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4732,6 +5131,7 @@ public Builder setCanonicalServiceNamespace(
        * 
* * string canonical_service_namespace = 3; + * * @return This builder for chaining. */ public Builder clearCanonicalServiceNamespace() { @@ -4741,6 +5141,8 @@ public Builder clearCanonicalServiceNamespace() { return this; } /** + * + * *
        * The namespace of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_namespace` metric
@@ -4749,12 +5151,14 @@ public Builder clearCanonicalServiceNamespace() {
        * 
* * string canonical_service_namespace = 3; + * * @param value The bytes for canonicalServiceNamespace to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalServiceNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); canonicalServiceNamespace_ = value; bitField0_ |= 0x00000002; @@ -4764,6 +5168,8 @@ public Builder setCanonicalServiceNamespaceBytes( private java.lang.Object canonicalService_ = ""; /** + * + * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4772,13 +5178,13 @@ public Builder setCanonicalServiceNamespaceBytes(
        * 
* * string canonical_service = 4; + * * @return The canonicalService. */ public java.lang.String getCanonicalService() { java.lang.Object ref = canonicalService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalService_ = s; return s; @@ -4787,6 +5193,8 @@ public java.lang.String getCanonicalService() { } } /** + * + * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4795,15 +5203,14 @@ public java.lang.String getCanonicalService() {
        * 
* * string canonical_service = 4; + * * @return The bytes for canonicalService. */ - public com.google.protobuf.ByteString - getCanonicalServiceBytes() { + public com.google.protobuf.ByteString getCanonicalServiceBytes() { java.lang.Object ref = canonicalService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalService_ = b; return b; } else { @@ -4811,6 +5218,8 @@ public java.lang.String getCanonicalService() { } } /** + * + * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4819,18 +5228,22 @@ public java.lang.String getCanonicalService() {
        * 
* * string canonical_service = 4; + * * @param value The canonicalService to set. * @return This builder for chaining. */ - public Builder setCanonicalService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } canonicalService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4839,6 +5252,7 @@ public Builder setCanonicalService(
        * 
* * string canonical_service = 4; + * * @return This builder for chaining. */ public Builder clearCanonicalService() { @@ -4848,6 +5262,8 @@ public Builder clearCanonicalService() { return this; } /** + * + * *
        * The name of the canonical service underlying this service.
        * Corresponds to the `destination_canonical_service_name` metric label in
@@ -4856,18 +5272,21 @@ public Builder clearCanonicalService() {
        * 
* * string canonical_service = 4; + * * @param value The bytes for canonicalService to set. * @return This builder for chaining. */ - public Builder setCanonicalServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCanonicalServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); canonicalService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4880,12 +5299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.IstioCanonicalService) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.IstioCanonicalService) private static final com.google.monitoring.v3.Service.IstioCanonicalService DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.IstioCanonicalService(); } @@ -4894,27 +5313,28 @@ public static com.google.monitoring.v3.Service.IstioCanonicalService getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IstioCanonicalService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IstioCanonicalService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4929,85 +5349,98 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.IstioCanonicalService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TelemetryOrBuilder extends + public interface TelemetryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service.Telemetry) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); } /** + * + * *
    * Configuration for how to query telemetry on a Service.
    * 
* * Protobuf type {@code google.monitoring.v3.Service.Telemetry} */ - public static final class Telemetry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Telemetry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.Service.Telemetry) TelemetryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Telemetry.newBuilder() to construct. private Telemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Telemetry() { resourceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Telemetry(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.Telemetry.class, com.google.monitoring.v3.Service.Telemetry.Builder.class); + com.google.monitoring.v3.Service.Telemetry.class, + com.google.monitoring.v3.Service.Telemetry.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** + * + * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; + * * @return The resourceName. */ @java.lang.Override @@ -5016,30 +5449,30 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
      * The full name of the resource that defines this service. Formatted as
      * described in https://cloud.google.com/apis/design/resource_names.
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -5048,6 +5481,7 @@ public java.lang.String getResourceName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5059,8 +5493,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } @@ -5084,15 +5517,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Service.Telemetry)) { return super.equals(obj); } - com.google.monitoring.v3.Service.Telemetry other = (com.google.monitoring.v3.Service.Telemetry) obj; + com.google.monitoring.v3.Service.Telemetry other = + (com.google.monitoring.v3.Service.Telemetry) obj; - if (!getResourceName() - .equals(other.getResourceName())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5111,90 +5544,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Service.Telemetry parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Service.Telemetry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Service.Telemetry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Service.Telemetry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5204,39 +5641,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
* * Protobuf type {@code google.monitoring.v3.Service.Telemetry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service.Telemetry) com.google.monitoring.v3.Service.TelemetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.Service.Telemetry.class, com.google.monitoring.v3.Service.Telemetry.Builder.class); + com.google.monitoring.v3.Service.Telemetry.class, + com.google.monitoring.v3.Service.Telemetry.Builder.class); } // Construct using com.google.monitoring.v3.Service.Telemetry.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5246,9 +5685,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_Telemetry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_Telemetry_descriptor; } @java.lang.Override @@ -5267,8 +5706,11 @@ public com.google.monitoring.v3.Service.Telemetry build() { @java.lang.Override public com.google.monitoring.v3.Service.Telemetry buildPartial() { - com.google.monitoring.v3.Service.Telemetry result = new com.google.monitoring.v3.Service.Telemetry(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.Service.Telemetry result = + new com.google.monitoring.v3.Service.Telemetry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -5284,38 +5726,41 @@ private void buildPartial0(com.google.monitoring.v3.Service.Telemetry result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.Service.Telemetry) { - return mergeFrom((com.google.monitoring.v3.Service.Telemetry)other); + return mergeFrom((com.google.monitoring.v3.Service.Telemetry) other); } else { super.mergeFrom(other); return this; @@ -5355,17 +5800,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5375,23 +5822,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resourceName_ = ""; /** + * + * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -5400,21 +5850,22 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -5422,30 +5873,37 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; + * * @return This builder for chaining. */ public Builder clearResourceName() { @@ -5455,24 +5913,29 @@ public Builder clearResourceName() { return this; } /** + * + * *
        * The full name of the resource that defines this service. Formatted as
        * described in https://cloud.google.com/apis/design/resource_names.
        * 
* * string resource_name = 1; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5485,12 +5948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service.Telemetry) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Telemetry) private static final com.google.monitoring.v3.Service.Telemetry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Service.Telemetry(); } @@ -5499,27 +5962,28 @@ public static com.google.monitoring.v3.Service.Telemetry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Telemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Telemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5534,14 +5998,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Service.Telemetry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int identifierCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object identifier_; + public enum IdentifierCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CUSTOM(6), APP_ENGINE(7), @@ -5551,6 +6017,7 @@ public enum IdentifierCase ISTIO_CANONICAL_SERVICE(11), IDENTIFIER_NOT_SET(0); private final int value; + private IdentifierCase(int value) { this.value = value; } @@ -5566,31 +6033,41 @@ public static IdentifierCase valueOf(int value) { public static IdentifierCase forNumber(int value) { switch (value) { - case 6: return CUSTOM; - case 7: return APP_ENGINE; - case 8: return CLOUD_ENDPOINTS; - case 9: return CLUSTER_ISTIO; - case 10: return MESH_ISTIO; - case 11: return ISTIO_CANONICAL_SERVICE; - case 0: return IDENTIFIER_NOT_SET; - default: return null; + case 6: + return CUSTOM; + case 7: + return APP_ENGINE; + case 8: + return CLOUD_ENDPOINTS; + case 9: + return CLUSTER_ISTIO; + case 10: + return MESH_ISTIO; + case 11: + return ISTIO_CANONICAL_SERVICE; + case 0: + return IDENTIFIER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public IdentifierCase - getIdentifierCase() { - return IdentifierCase.forNumber( - identifierCase_); + public IdentifierCase getIdentifierCase() { + return IdentifierCase.forNumber(identifierCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Resource name for this Service. The format is:
    *
@@ -5598,6 +6075,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -5606,14 +6084,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Resource name for this Service. The format is:
    *
@@ -5621,16 +6100,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5639,14 +6117,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -5655,29 +6137,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -5687,11 +6169,14 @@ public java.lang.String getDisplayName() { public static final int CUSTOM_FIELD_NUMBER = 6; /** + * + * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return Whether the custom field is set. */ @java.lang.Override @@ -5699,21 +6184,26 @@ public boolean hasCustom() { return identifierCase_ == 6; } /** + * + * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return The custom. */ @java.lang.Override public com.google.monitoring.v3.Service.Custom getCustom() { if (identifierCase_ == 6) { - return (com.google.monitoring.v3.Service.Custom) identifier_; + return (com.google.monitoring.v3.Service.Custom) identifier_; } return com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } /** + * + * *
    * Custom service type.
    * 
@@ -5723,18 +6213,21 @@ public com.google.monitoring.v3.Service.Custom getCustom() { @java.lang.Override public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { if (identifierCase_ == 6) { - return (com.google.monitoring.v3.Service.Custom) identifier_; + return (com.google.monitoring.v3.Service.Custom) identifier_; } return com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } public static final int APP_ENGINE_FIELD_NUMBER = 7; /** + * + * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return Whether the appEngine field is set. */ @java.lang.Override @@ -5742,21 +6235,26 @@ public boolean hasAppEngine() { return identifierCase_ == 7; } /** + * + * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return The appEngine. */ @java.lang.Override public com.google.monitoring.v3.Service.AppEngine getAppEngine() { if (identifierCase_ == 7) { - return (com.google.monitoring.v3.Service.AppEngine) identifier_; + return (com.google.monitoring.v3.Service.AppEngine) identifier_; } return com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } /** + * + * *
    * Type used for App Engine services.
    * 
@@ -5766,18 +6264,21 @@ public com.google.monitoring.v3.Service.AppEngine getAppEngine() { @java.lang.Override public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder() { if (identifierCase_ == 7) { - return (com.google.monitoring.v3.Service.AppEngine) identifier_; + return (com.google.monitoring.v3.Service.AppEngine) identifier_; } return com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } public static final int CLOUD_ENDPOINTS_FIELD_NUMBER = 8; /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return Whether the cloudEndpoints field is set. */ @java.lang.Override @@ -5785,21 +6286,26 @@ public boolean hasCloudEndpoints() { return identifierCase_ == 8; } /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return The cloudEndpoints. */ @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { if (identifierCase_ == 8) { - return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; + return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; } return com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
@@ -5809,18 +6315,21 @@ public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { @java.lang.Override public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder() { if (identifierCase_ == 8) { - return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; + return (com.google.monitoring.v3.Service.CloudEndpoints) identifier_; } return com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } public static final int CLUSTER_ISTIO_FIELD_NUMBER = 9; /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return Whether the clusterIstio field is set. */ @java.lang.Override @@ -5828,21 +6337,26 @@ public boolean hasClusterIstio() { return identifierCase_ == 9; } /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return The clusterIstio. */ @java.lang.Override public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { if (identifierCase_ == 9) { - return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; + return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; } return com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
@@ -5852,18 +6366,21 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { @java.lang.Override public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder() { if (identifierCase_ == 9) { - return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; + return (com.google.monitoring.v3.Service.ClusterIstio) identifier_; } return com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } public static final int MESH_ISTIO_FIELD_NUMBER = 10; /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return Whether the meshIstio field is set. */ @java.lang.Override @@ -5871,21 +6388,26 @@ public boolean hasMeshIstio() { return identifierCase_ == 10; } /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return The meshIstio. */ @java.lang.Override public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { if (identifierCase_ == 10) { - return (com.google.monitoring.v3.Service.MeshIstio) identifier_; + return (com.google.monitoring.v3.Service.MeshIstio) identifier_; } return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
@@ -5895,13 +6417,15 @@ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { @java.lang.Override public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder() { if (identifierCase_ == 10) { - return (com.google.monitoring.v3.Service.MeshIstio) identifier_; + return (com.google.monitoring.v3.Service.MeshIstio) identifier_; } return com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } public static final int ISTIO_CANONICAL_SERVICE_FIELD_NUMBER = 11; /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -5909,6 +6433,7 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * * @return Whether the istioCanonicalService field is set. */ @java.lang.Override @@ -5916,6 +6441,8 @@ public boolean hasIstioCanonicalService() { return identifierCase_ == 11; } /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -5923,16 +6450,19 @@ public boolean hasIstioCanonicalService() {
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * * @return The istioCanonicalService. */ @java.lang.Override public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalService() { if (identifierCase_ == 11) { - return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_; + return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_; } return com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance(); } /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -5942,9 +6472,10 @@ public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalS
    * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder() {
+  public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder
+      getIstioCanonicalServiceOrBuilder() {
     if (identifierCase_ == 11) {
-       return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_;
+      return (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_;
     }
     return com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance();
   }
@@ -5952,11 +6483,14 @@ public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioC
   public static final int TELEMETRY_FIELD_NUMBER = 13;
   private com.google.monitoring.v3.Service.Telemetry telemetry_;
   /**
+   *
+   *
    * 
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return Whether the telemetry field is set. */ @java.lang.Override @@ -5964,18 +6498,25 @@ public boolean hasTelemetry() { return telemetry_ != null; } /** + * + * *
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return The telemetry. */ @java.lang.Override public com.google.monitoring.v3.Service.Telemetry getTelemetry() { - return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; + return telemetry_ == null + ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() + : telemetry_; } /** + * + * *
    * Configuration for how to query telemetry on a Service.
    * 
@@ -5984,36 +6525,40 @@ public com.google.monitoring.v3.Service.Telemetry getTelemetry() { */ @java.lang.Override public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder() { - return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; + return telemetry_ == null + ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() + : telemetry_; } public static final int USER_LABELS_FIELD_NUMBER = 14; + private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; - private com.google.protobuf.MapField - internalGetUserLabels() { + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6026,20 +6571,21 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6056,6 +6602,8 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6068,17 +6616,19 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  public /* nullable */ java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -6091,11 +6641,11 @@ java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 14;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -6103,6 +6653,7 @@ public java.lang.String getUserLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -6114,8 +6665,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -6143,12 +6693,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (telemetry_ != null) {
       output.writeMessage(13, getTelemetry());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetUserLabels(),
-        UserLabelsDefaultEntryHolder.defaultEntry,
-        14);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 14);
     getUnknownFields().writeTo(output);
   }
 
@@ -6165,42 +6711,47 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (identifierCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.monitoring.v3.Service.Custom) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.monitoring.v3.Service.Custom) identifier_);
     }
     if (identifierCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.monitoring.v3.Service.AppEngine) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.monitoring.v3.Service.AppEngine) identifier_);
     }
     if (identifierCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, (com.google.monitoring.v3.Service.CloudEndpoints) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, (com.google.monitoring.v3.Service.CloudEndpoints) identifier_);
     }
     if (identifierCase_ == 9) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              9, (com.google.monitoring.v3.Service.ClusterIstio) identifier_);
     }
     if (identifierCase_ == 10) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              10, (com.google.monitoring.v3.Service.MeshIstio) identifier_);
     }
     if (identifierCase_ == 11) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              11, (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_);
     }
     if (telemetry_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(13, getTelemetry());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(14, userLabels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTelemetry());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry userLabels__ =
+          UserLabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -6210,49 +6761,39 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.Service)) {
       return super.equals(obj);
     }
     com.google.monitoring.v3.Service other = (com.google.monitoring.v3.Service) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasTelemetry() != other.hasTelemetry()) return false;
     if (hasTelemetry()) {
-      if (!getTelemetry()
-          .equals(other.getTelemetry())) return false;
+      if (!getTelemetry().equals(other.getTelemetry())) return false;
     }
-    if (!internalGetUserLabels().equals(
-        other.internalGetUserLabels())) return false;
+    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
     if (!getIdentifierCase().equals(other.getIdentifierCase())) return false;
     switch (identifierCase_) {
       case 6:
-        if (!getCustom()
-            .equals(other.getCustom())) return false;
+        if (!getCustom().equals(other.getCustom())) return false;
         break;
       case 7:
-        if (!getAppEngine()
-            .equals(other.getAppEngine())) return false;
+        if (!getAppEngine().equals(other.getAppEngine())) return false;
         break;
       case 8:
-        if (!getCloudEndpoints()
-            .equals(other.getCloudEndpoints())) return false;
+        if (!getCloudEndpoints().equals(other.getCloudEndpoints())) return false;
         break;
       case 9:
-        if (!getClusterIstio()
-            .equals(other.getClusterIstio())) return false;
+        if (!getClusterIstio().equals(other.getClusterIstio())) return false;
         break;
       case 10:
-        if (!getMeshIstio()
-            .equals(other.getMeshIstio())) return false;
+        if (!getMeshIstio().equals(other.getMeshIstio())) return false;
         break;
       case 11:
-        if (!getIstioCanonicalService()
-            .equals(other.getIstioCanonicalService())) return false;
+        if (!getIstioCanonicalService().equals(other.getIstioCanonicalService())) return false;
         break;
       case 0:
       default:
@@ -6313,99 +6854,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.Service parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.Service parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.Service parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.monitoring.v3.Service parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.Service parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.Service parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.Service parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.Service prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A `Service` is a discrete, autonomous, and network-accessible unit, designed
    * to solve an individual concern
@@ -6416,55 +6961,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.Service}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Service)
       com.google.monitoring.v3.ServiceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 14:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 14:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Service.class, com.google.monitoring.v3.Service.Builder.class);
+              com.google.monitoring.v3.Service.class,
+              com.google.monitoring.v3.Service.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Service.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -6501,9 +7043,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_Service_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_Service_descriptor;
     }
 
     @java.lang.Override
@@ -6523,7 +7065,9 @@ public com.google.monitoring.v3.Service build() {
     @java.lang.Override
     public com.google.monitoring.v3.Service buildPartial() {
       com.google.monitoring.v3.Service result = new com.google.monitoring.v3.Service(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -6538,9 +7082,7 @@ private void buildPartial0(com.google.monitoring.v3.Service result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.telemetry_ = telemetryBuilder_ == null
-            ? telemetry_
-            : telemetryBuilder_.build();
+        result.telemetry_ = telemetryBuilder_ == null ? telemetry_ : telemetryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.userLabels_ = internalGetUserLabels();
@@ -6551,28 +7093,22 @@ private void buildPartial0(com.google.monitoring.v3.Service result) {
     private void buildPartialOneofs(com.google.monitoring.v3.Service result) {
       result.identifierCase_ = identifierCase_;
       result.identifier_ = this.identifier_;
-      if (identifierCase_ == 6 &&
-          customBuilder_ != null) {
+      if (identifierCase_ == 6 && customBuilder_ != null) {
         result.identifier_ = customBuilder_.build();
       }
-      if (identifierCase_ == 7 &&
-          appEngineBuilder_ != null) {
+      if (identifierCase_ == 7 && appEngineBuilder_ != null) {
         result.identifier_ = appEngineBuilder_.build();
       }
-      if (identifierCase_ == 8 &&
-          cloudEndpointsBuilder_ != null) {
+      if (identifierCase_ == 8 && cloudEndpointsBuilder_ != null) {
         result.identifier_ = cloudEndpointsBuilder_.build();
       }
-      if (identifierCase_ == 9 &&
-          clusterIstioBuilder_ != null) {
+      if (identifierCase_ == 9 && clusterIstioBuilder_ != null) {
         result.identifier_ = clusterIstioBuilder_.build();
       }
-      if (identifierCase_ == 10 &&
-          meshIstioBuilder_ != null) {
+      if (identifierCase_ == 10 && meshIstioBuilder_ != null) {
         result.identifier_ = meshIstioBuilder_.build();
       }
-      if (identifierCase_ == 11 &&
-          istioCanonicalServiceBuilder_ != null) {
+      if (identifierCase_ == 11 && istioCanonicalServiceBuilder_ != null) {
         result.identifier_ = istioCanonicalServiceBuilder_.build();
       }
     }
@@ -6581,38 +7117,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.Service result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Service) {
-        return mergeFrom((com.google.monitoring.v3.Service)other);
+        return mergeFrom((com.google.monitoring.v3.Service) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6634,37 +7171,43 @@ public Builder mergeFrom(com.google.monitoring.v3.Service other) {
       if (other.hasTelemetry()) {
         mergeTelemetry(other.getTelemetry());
       }
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
-      bitField0_ |= 0x00000200;
-      switch (other.getIdentifierCase()) {
-        case CUSTOM: {
-          mergeCustom(other.getCustom());
-          break;
-        }
-        case APP_ENGINE: {
-          mergeAppEngine(other.getAppEngine());
-          break;
-        }
-        case CLOUD_ENDPOINTS: {
-          mergeCloudEndpoints(other.getCloudEndpoints());
-          break;
-        }
-        case CLUSTER_ISTIO: {
-          mergeClusterIstio(other.getClusterIstio());
-          break;
-        }
-        case MESH_ISTIO: {
-          mergeMeshIstio(other.getMeshIstio());
-          break;
-        }
-        case ISTIO_CANONICAL_SERVICE: {
-          mergeIstioCanonicalService(other.getIstioCanonicalService());
-          break;
-        }
-        case IDENTIFIER_NOT_SET: {
-          break;
-        }
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      bitField0_ |= 0x00000200;
+      switch (other.getIdentifierCase()) {
+        case CUSTOM:
+          {
+            mergeCustom(other.getCustom());
+            break;
+          }
+        case APP_ENGINE:
+          {
+            mergeAppEngine(other.getAppEngine());
+            break;
+          }
+        case CLOUD_ENDPOINTS:
+          {
+            mergeCloudEndpoints(other.getCloudEndpoints());
+            break;
+          }
+        case CLUSTER_ISTIO:
+          {
+            mergeClusterIstio(other.getClusterIstio());
+            break;
+          }
+        case MESH_ISTIO:
+          {
+            mergeMeshIstio(other.getMeshIstio());
+            break;
+          }
+        case ISTIO_CANONICAL_SERVICE:
+          {
+            mergeIstioCanonicalService(other.getIstioCanonicalService());
+            break;
+          }
+        case IDENTIFIER_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -6692,80 +7235,80 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 50: {
-              input.readMessage(
-                  getCustomFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getAppEngineFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getCloudEndpointsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 8;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getClusterIstioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 9;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getMeshIstioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 10;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getIstioCanonicalServiceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              identifierCase_ = 11;
-              break;
-            } // case 90
-            case 106: {
-              input.readMessage(
-                  getTelemetryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 106
-            case 114: {
-              com.google.protobuf.MapEntry
-              userLabels__ = input.readMessage(
-                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserLabels().getMutableMap().put(
-                  userLabels__.getKey(), userLabels__.getValue());
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 114
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 50:
+              {
+                input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getAppEngineFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getCloudEndpointsFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 8;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getClusterIstioFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 9;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getMeshIstioFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 10;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(
+                    getIstioCanonicalServiceFieldBuilder().getBuilder(), extensionRegistry);
+                identifierCase_ = 11;
+                break;
+              } // case 90
+            case 106:
+              {
+                input.readMessage(getTelemetryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.protobuf.MapEntry userLabels__ =
+                    input.readMessage(
+                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableUserLabels()
+                    .getMutableMap()
+                    .put(userLabels__.getKey(), userLabels__.getValue());
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 114
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6775,12 +7318,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int identifierCase_ = 0;
     private java.lang.Object identifier_;
-    public IdentifierCase
-        getIdentifierCase() {
-      return IdentifierCase.forNumber(
-          identifierCase_);
+
+    public IdentifierCase getIdentifierCase() {
+      return IdentifierCase.forNumber(identifierCase_);
     }
 
     public Builder clearIdentifier() {
@@ -6794,6 +7337,8 @@ public Builder clearIdentifier() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Resource name for this Service. The format is:
      *
@@ -6801,13 +7346,13 @@ public Builder clearIdentifier() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6816,6 +7361,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for this Service. The format is:
      *
@@ -6823,15 +7370,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6839,6 +7385,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for this Service. The format is:
      *
@@ -6846,18 +7394,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Resource name for this Service. The format is:
      *
@@ -6865,6 +7417,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -6874,6 +7427,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Resource name for this Service. The format is:
      *
@@ -6881,12 +7436,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -6896,18 +7453,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -6916,20 +7475,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -6937,28 +7497,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -6968,17 +7535,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Name used for UI elements listing this Service.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -6987,13 +7558,19 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder> customBuilder_; + com.google.monitoring.v3.Service.Custom, + com.google.monitoring.v3.Service.Custom.Builder, + com.google.monitoring.v3.Service.CustomOrBuilder> + customBuilder_; /** + * + * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return Whether the custom field is set. */ @java.lang.Override @@ -7001,11 +7578,14 @@ public boolean hasCustom() { return identifierCase_ == 6; } /** + * + * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return The custom. */ @java.lang.Override @@ -7023,6 +7603,8 @@ public com.google.monitoring.v3.Service.Custom getCustom() { } } /** + * + * *
      * Custom service type.
      * 
@@ -7043,14 +7625,15 @@ public Builder setCustom(com.google.monitoring.v3.Service.Custom value) { return this; } /** + * + * *
      * Custom service type.
      * 
* * .google.monitoring.v3.Service.Custom custom = 6; */ - public Builder setCustom( - com.google.monitoring.v3.Service.Custom.Builder builderForValue) { + public Builder setCustom(com.google.monitoring.v3.Service.Custom.Builder builderForValue) { if (customBuilder_ == null) { identifier_ = builderForValue.build(); onChanged(); @@ -7061,6 +7644,8 @@ public Builder setCustom( return this; } /** + * + * *
      * Custom service type.
      * 
@@ -7069,10 +7654,13 @@ public Builder setCustom( */ public Builder mergeCustom(com.google.monitoring.v3.Service.Custom value) { if (customBuilder_ == null) { - if (identifierCase_ == 6 && - identifier_ != com.google.monitoring.v3.Service.Custom.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.Custom.newBuilder((com.google.monitoring.v3.Service.Custom) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 6 + && identifier_ != com.google.monitoring.v3.Service.Custom.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.Custom.newBuilder( + (com.google.monitoring.v3.Service.Custom) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7088,6 +7676,8 @@ public Builder mergeCustom(com.google.monitoring.v3.Service.Custom value) { return this; } /** + * + * *
      * Custom service type.
      * 
@@ -7111,6 +7701,8 @@ public Builder clearCustom() { return this; } /** + * + * *
      * Custom service type.
      * 
@@ -7121,6 +7713,8 @@ public com.google.monitoring.v3.Service.Custom.Builder getCustomBuilder() { return getCustomFieldBuilder().getBuilder(); } /** + * + * *
      * Custom service type.
      * 
@@ -7139,6 +7733,8 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { } } /** + * + * *
      * Custom service type.
      * 
@@ -7146,14 +7742,19 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { * .google.monitoring.v3.Service.Custom custom = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder> + com.google.monitoring.v3.Service.Custom, + com.google.monitoring.v3.Service.Custom.Builder, + com.google.monitoring.v3.Service.CustomOrBuilder> getCustomFieldBuilder() { if (customBuilder_ == null) { if (!(identifierCase_ == 6)) { identifier_ = com.google.monitoring.v3.Service.Custom.getDefaultInstance(); } - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Custom, com.google.monitoring.v3.Service.Custom.Builder, com.google.monitoring.v3.Service.CustomOrBuilder>( + customBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.Custom, + com.google.monitoring.v3.Service.Custom.Builder, + com.google.monitoring.v3.Service.CustomOrBuilder>( (com.google.monitoring.v3.Service.Custom) identifier_, getParentForChildren(), isClean()); @@ -7165,13 +7766,19 @@ public com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder> appEngineBuilder_; + com.google.monitoring.v3.Service.AppEngine, + com.google.monitoring.v3.Service.AppEngine.Builder, + com.google.monitoring.v3.Service.AppEngineOrBuilder> + appEngineBuilder_; /** + * + * *
      * Type used for App Engine services.
      * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return Whether the appEngine field is set. */ @java.lang.Override @@ -7179,11 +7786,14 @@ public boolean hasAppEngine() { return identifierCase_ == 7; } /** + * + * *
      * Type used for App Engine services.
      * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return The appEngine. */ @java.lang.Override @@ -7201,6 +7811,8 @@ public com.google.monitoring.v3.Service.AppEngine getAppEngine() { } } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7221,6 +7833,8 @@ public Builder setAppEngine(com.google.monitoring.v3.Service.AppEngine value) { return this; } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7239,6 +7853,8 @@ public Builder setAppEngine( return this; } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7247,10 +7863,13 @@ public Builder setAppEngine( */ public Builder mergeAppEngine(com.google.monitoring.v3.Service.AppEngine value) { if (appEngineBuilder_ == null) { - if (identifierCase_ == 7 && - identifier_ != com.google.monitoring.v3.Service.AppEngine.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.AppEngine.newBuilder((com.google.monitoring.v3.Service.AppEngine) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 7 + && identifier_ != com.google.monitoring.v3.Service.AppEngine.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.AppEngine.newBuilder( + (com.google.monitoring.v3.Service.AppEngine) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7266,6 +7885,8 @@ public Builder mergeAppEngine(com.google.monitoring.v3.Service.AppEngine value) return this; } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7289,6 +7910,8 @@ public Builder clearAppEngine() { return this; } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7299,6 +7922,8 @@ public com.google.monitoring.v3.Service.AppEngine.Builder getAppEngineBuilder() return getAppEngineFieldBuilder().getBuilder(); } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7317,6 +7942,8 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder } } /** + * + * *
      * Type used for App Engine services.
      * 
@@ -7324,14 +7951,19 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder * .google.monitoring.v3.Service.AppEngine app_engine = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder> + com.google.monitoring.v3.Service.AppEngine, + com.google.monitoring.v3.Service.AppEngine.Builder, + com.google.monitoring.v3.Service.AppEngineOrBuilder> getAppEngineFieldBuilder() { if (appEngineBuilder_ == null) { if (!(identifierCase_ == 7)) { identifier_ = com.google.monitoring.v3.Service.AppEngine.getDefaultInstance(); } - appEngineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.AppEngine, com.google.monitoring.v3.Service.AppEngine.Builder, com.google.monitoring.v3.Service.AppEngineOrBuilder>( + appEngineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.AppEngine, + com.google.monitoring.v3.Service.AppEngine.Builder, + com.google.monitoring.v3.Service.AppEngineOrBuilder>( (com.google.monitoring.v3.Service.AppEngine) identifier_, getParentForChildren(), isClean()); @@ -7343,13 +7975,19 @@ public com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> cloudEndpointsBuilder_; + com.google.monitoring.v3.Service.CloudEndpoints, + com.google.monitoring.v3.Service.CloudEndpoints.Builder, + com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> + cloudEndpointsBuilder_; /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return Whether the cloudEndpoints field is set. */ @java.lang.Override @@ -7357,11 +7995,14 @@ public boolean hasCloudEndpoints() { return identifierCase_ == 8; } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return The cloudEndpoints. */ @java.lang.Override @@ -7379,6 +8020,8 @@ public com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints() { } } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7399,6 +8042,8 @@ public Builder setCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoints return this; } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7417,6 +8062,8 @@ public Builder setCloudEndpoints( return this; } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7425,10 +8072,14 @@ public Builder setCloudEndpoints( */ public Builder mergeCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoints value) { if (cloudEndpointsBuilder_ == null) { - if (identifierCase_ == 8 && - identifier_ != com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.CloudEndpoints.newBuilder((com.google.monitoring.v3.Service.CloudEndpoints) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 8 + && identifier_ + != com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.CloudEndpoints.newBuilder( + (com.google.monitoring.v3.Service.CloudEndpoints) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7444,6 +8095,8 @@ public Builder mergeCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoin return this; } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7467,6 +8120,8 @@ public Builder clearCloudEndpoints() { return this; } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7477,6 +8132,8 @@ public com.google.monitoring.v3.Service.CloudEndpoints.Builder getCloudEndpoints return getCloudEndpointsFieldBuilder().getBuilder(); } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7495,6 +8152,8 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint } } /** + * + * *
      * Type used for Cloud Endpoints services.
      * 
@@ -7502,14 +8161,19 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> + com.google.monitoring.v3.Service.CloudEndpoints, + com.google.monitoring.v3.Service.CloudEndpoints.Builder, + com.google.monitoring.v3.Service.CloudEndpointsOrBuilder> getCloudEndpointsFieldBuilder() { if (cloudEndpointsBuilder_ == null) { if (!(identifierCase_ == 8)) { identifier_ = com.google.monitoring.v3.Service.CloudEndpoints.getDefaultInstance(); } - cloudEndpointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.CloudEndpoints, com.google.monitoring.v3.Service.CloudEndpoints.Builder, com.google.monitoring.v3.Service.CloudEndpointsOrBuilder>( + cloudEndpointsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.CloudEndpoints, + com.google.monitoring.v3.Service.CloudEndpoints.Builder, + com.google.monitoring.v3.Service.CloudEndpointsOrBuilder>( (com.google.monitoring.v3.Service.CloudEndpoints) identifier_, getParentForChildren(), isClean()); @@ -7521,13 +8185,19 @@ public com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpoint } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder> clusterIstioBuilder_; + com.google.monitoring.v3.Service.ClusterIstio, + com.google.monitoring.v3.Service.ClusterIstio.Builder, + com.google.monitoring.v3.Service.ClusterIstioOrBuilder> + clusterIstioBuilder_; /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return Whether the clusterIstio field is set. */ @java.lang.Override @@ -7535,11 +8205,14 @@ public boolean hasClusterIstio() { return identifierCase_ == 9; } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return The clusterIstio. */ @java.lang.Override @@ -7557,6 +8230,8 @@ public com.google.monitoring.v3.Service.ClusterIstio getClusterIstio() { } } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7577,6 +8252,8 @@ public Builder setClusterIstio(com.google.monitoring.v3.Service.ClusterIstio val return this; } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7595,6 +8272,8 @@ public Builder setClusterIstio( return this; } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7603,10 +8282,13 @@ public Builder setClusterIstio( */ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio value) { if (clusterIstioBuilder_ == null) { - if (identifierCase_ == 9 && - identifier_ != com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.ClusterIstio.newBuilder((com.google.monitoring.v3.Service.ClusterIstio) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 9 + && identifier_ != com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.ClusterIstio.newBuilder( + (com.google.monitoring.v3.Service.ClusterIstio) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7622,6 +8304,8 @@ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio v return this; } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7645,6 +8329,8 @@ public Builder clearClusterIstio() { return this; } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7655,6 +8341,8 @@ public com.google.monitoring.v3.Service.ClusterIstio.Builder getClusterIstioBuil return getClusterIstioFieldBuilder().getBuilder(); } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7673,6 +8361,8 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB } } /** + * + * *
      * Type used for Istio services that live in a Kubernetes cluster.
      * 
@@ -7680,14 +8370,19 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder> + com.google.monitoring.v3.Service.ClusterIstio, + com.google.monitoring.v3.Service.ClusterIstio.Builder, + com.google.monitoring.v3.Service.ClusterIstioOrBuilder> getClusterIstioFieldBuilder() { if (clusterIstioBuilder_ == null) { if (!(identifierCase_ == 9)) { identifier_ = com.google.monitoring.v3.Service.ClusterIstio.getDefaultInstance(); } - clusterIstioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.ClusterIstio, com.google.monitoring.v3.Service.ClusterIstio.Builder, com.google.monitoring.v3.Service.ClusterIstioOrBuilder>( + clusterIstioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.ClusterIstio, + com.google.monitoring.v3.Service.ClusterIstio.Builder, + com.google.monitoring.v3.Service.ClusterIstioOrBuilder>( (com.google.monitoring.v3.Service.ClusterIstio) identifier_, getParentForChildren(), isClean()); @@ -7699,13 +8394,19 @@ public com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder> meshIstioBuilder_; + com.google.monitoring.v3.Service.MeshIstio, + com.google.monitoring.v3.Service.MeshIstio.Builder, + com.google.monitoring.v3.Service.MeshIstioOrBuilder> + meshIstioBuilder_; /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return Whether the meshIstio field is set. */ @java.lang.Override @@ -7713,11 +8414,14 @@ public boolean hasMeshIstio() { return identifierCase_ == 10; } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return The meshIstio. */ @java.lang.Override @@ -7735,6 +8439,8 @@ public com.google.monitoring.v3.Service.MeshIstio getMeshIstio() { } } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7755,6 +8461,8 @@ public Builder setMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) { return this; } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7773,6 +8481,8 @@ public Builder setMeshIstio( return this; } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7781,10 +8491,13 @@ public Builder setMeshIstio( */ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) { if (meshIstioBuilder_ == null) { - if (identifierCase_ == 10 && - identifier_ != com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.MeshIstio.newBuilder((com.google.monitoring.v3.Service.MeshIstio) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 10 + && identifier_ != com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.MeshIstio.newBuilder( + (com.google.monitoring.v3.Service.MeshIstio) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7800,6 +8513,8 @@ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) return this; } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7823,6 +8538,8 @@ public Builder clearMeshIstio() { return this; } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7833,6 +8550,8 @@ public com.google.monitoring.v3.Service.MeshIstio.Builder getMeshIstioBuilder() return getMeshIstioFieldBuilder().getBuilder(); } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7851,6 +8570,8 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder } } /** + * + * *
      * Type used for Istio services scoped to an Istio mesh.
      * 
@@ -7858,14 +8579,19 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder> + com.google.monitoring.v3.Service.MeshIstio, + com.google.monitoring.v3.Service.MeshIstio.Builder, + com.google.monitoring.v3.Service.MeshIstioOrBuilder> getMeshIstioFieldBuilder() { if (meshIstioBuilder_ == null) { if (!(identifierCase_ == 10)) { identifier_ = com.google.monitoring.v3.Service.MeshIstio.getDefaultInstance(); } - meshIstioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.MeshIstio, com.google.monitoring.v3.Service.MeshIstio.Builder, com.google.monitoring.v3.Service.MeshIstioOrBuilder>( + meshIstioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.MeshIstio, + com.google.monitoring.v3.Service.MeshIstio.Builder, + com.google.monitoring.v3.Service.MeshIstioOrBuilder>( (com.google.monitoring.v3.Service.MeshIstio) identifier_, getParentForChildren(), isClean()); @@ -7877,15 +8603,22 @@ public com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> istioCanonicalServiceBuilder_; + com.google.monitoring.v3.Service.IstioCanonicalService, + com.google.monitoring.v3.Service.IstioCanonicalService.Builder, + com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> + istioCanonicalServiceBuilder_; /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * + * * @return Whether the istioCanonicalService field is set. */ @java.lang.Override @@ -7893,13 +8626,17 @@ public boolean hasIstioCanonicalService() { return identifierCase_ == 11; } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * + * * @return The istioCanonicalService. */ @java.lang.Override @@ -7917,15 +8654,19 @@ public com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalS } } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ - public Builder setIstioCanonicalService(com.google.monitoring.v3.Service.IstioCanonicalService value) { + public Builder setIstioCanonicalService( + com.google.monitoring.v3.Service.IstioCanonicalService value) { if (istioCanonicalServiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7939,13 +8680,16 @@ public Builder setIstioCanonicalService(com.google.monitoring.v3.Service.IstioCa return this; } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ public Builder setIstioCanonicalService( com.google.monitoring.v3.Service.IstioCanonicalService.Builder builderForValue) { @@ -7959,20 +8703,28 @@ public Builder setIstioCanonicalService( return this; } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ - public Builder mergeIstioCanonicalService(com.google.monitoring.v3.Service.IstioCanonicalService value) { + public Builder mergeIstioCanonicalService( + com.google.monitoring.v3.Service.IstioCanonicalService value) { if (istioCanonicalServiceBuilder_ == null) { - if (identifierCase_ == 11 && - identifier_ != com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) { - identifier_ = com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder((com.google.monitoring.v3.Service.IstioCanonicalService) identifier_) - .mergeFrom(value).buildPartial(); + if (identifierCase_ == 11 + && identifier_ + != com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance()) { + identifier_ = + com.google.monitoring.v3.Service.IstioCanonicalService.newBuilder( + (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_) + .mergeFrom(value) + .buildPartial(); } else { identifier_ = value; } @@ -7988,13 +8740,16 @@ public Builder mergeIstioCanonicalService(com.google.monitoring.v3.Service.Istio return this; } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ public Builder clearIstioCanonicalService() { if (istioCanonicalServiceBuilder_ == null) { @@ -8013,28 +8768,36 @@ public Builder clearIstioCanonicalService() { return this; } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ - public com.google.monitoring.v3.Service.IstioCanonicalService.Builder getIstioCanonicalServiceBuilder() { + public com.google.monitoring.v3.Service.IstioCanonicalService.Builder + getIstioCanonicalServiceBuilder() { return getIstioCanonicalServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ @java.lang.Override - public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder() { + public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder + getIstioCanonicalServiceOrBuilder() { if ((identifierCase_ == 11) && (istioCanonicalServiceBuilder_ != null)) { return istioCanonicalServiceBuilder_.getMessageOrBuilder(); } else { @@ -8045,23 +8808,31 @@ public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioC } } /** + * + * *
      * Type used for canonical services scoped to an Istio mesh.
      * Metrics for Istio are
      * [documented here](https://istio.io/latest/docs/reference/config/metrics/)
      * 
* - * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> + com.google.monitoring.v3.Service.IstioCanonicalService, + com.google.monitoring.v3.Service.IstioCanonicalService.Builder, + com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder> getIstioCanonicalServiceFieldBuilder() { if (istioCanonicalServiceBuilder_ == null) { if (!(identifierCase_ == 11)) { identifier_ = com.google.monitoring.v3.Service.IstioCanonicalService.getDefaultInstance(); } - istioCanonicalServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.IstioCanonicalService, com.google.monitoring.v3.Service.IstioCanonicalService.Builder, com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder>( + istioCanonicalServiceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.IstioCanonicalService, + com.google.monitoring.v3.Service.IstioCanonicalService.Builder, + com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder>( (com.google.monitoring.v3.Service.IstioCanonicalService) identifier_, getParentForChildren(), isClean()); @@ -8074,34 +8845,47 @@ public com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioC private com.google.monitoring.v3.Service.Telemetry telemetry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder> telemetryBuilder_; + com.google.monitoring.v3.Service.Telemetry, + com.google.monitoring.v3.Service.Telemetry.Builder, + com.google.monitoring.v3.Service.TelemetryOrBuilder> + telemetryBuilder_; /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return Whether the telemetry field is set. */ public boolean hasTelemetry() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return The telemetry. */ public com.google.monitoring.v3.Service.Telemetry getTelemetry() { if (telemetryBuilder_ == null) { - return telemetry_ == null ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; + return telemetry_ == null + ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() + : telemetry_; } else { return telemetryBuilder_.getMessage(); } } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8122,6 +8906,8 @@ public Builder setTelemetry(com.google.monitoring.v3.Service.Telemetry value) { return this; } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8140,6 +8926,8 @@ public Builder setTelemetry( return this; } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8148,9 +8936,9 @@ public Builder setTelemetry( */ public Builder mergeTelemetry(com.google.monitoring.v3.Service.Telemetry value) { if (telemetryBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - telemetry_ != null && - telemetry_ != com.google.monitoring.v3.Service.Telemetry.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && telemetry_ != null + && telemetry_ != com.google.monitoring.v3.Service.Telemetry.getDefaultInstance()) { getTelemetryBuilder().mergeFrom(value); } else { telemetry_ = value; @@ -8163,6 +8951,8 @@ public Builder mergeTelemetry(com.google.monitoring.v3.Service.Telemetry value) return this; } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8180,6 +8970,8 @@ public Builder clearTelemetry() { return this; } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8192,6 +8984,8 @@ public com.google.monitoring.v3.Service.Telemetry.Builder getTelemetryBuilder() return getTelemetryFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8202,11 +8996,14 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder if (telemetryBuilder_ != null) { return telemetryBuilder_.getMessageOrBuilder(); } else { - return telemetry_ == null ? - com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() : telemetry_; + return telemetry_ == null + ? com.google.monitoring.v3.Service.Telemetry.getDefaultInstance() + : telemetry_; } } /** + * + * *
      * Configuration for how to query telemetry on a Service.
      * 
@@ -8214,21 +9011,24 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder * .google.monitoring.v3.Service.Telemetry telemetry = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder> + com.google.monitoring.v3.Service.Telemetry, + com.google.monitoring.v3.Service.Telemetry.Builder, + com.google.monitoring.v3.Service.TelemetryOrBuilder> getTelemetryFieldBuilder() { if (telemetryBuilder_ == null) { - telemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service.Telemetry, com.google.monitoring.v3.Service.Telemetry.Builder, com.google.monitoring.v3.Service.TelemetryOrBuilder>( - getTelemetry(), - getParentForChildren(), - isClean()); + telemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service.Telemetry, + com.google.monitoring.v3.Service.Telemetry.Builder, + com.google.monitoring.v3.Service.TelemetryOrBuilder>( + getTelemetry(), getParentForChildren(), isClean()); telemetry_ = null; } return telemetryBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField userLabels_; + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -8237,11 +9037,12 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder } return userLabels_; } + private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -8250,10 +9051,13 @@ public com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder onChanged(); return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8266,20 +9070,21 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8296,6 +9101,8 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8308,17 +9115,19 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+    public /* nullable */ java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8331,23 +9140,25 @@ java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 14;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8359,23 +9170,22 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       bitField0_ |= 0x00000200;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8387,17 +9197,20 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service. Label keys must start
      * with a letter. Label keys and values may contain lowercase letters,
@@ -8409,16 +9222,14 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 14;
      */
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -8428,12 +9239,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Service)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.Service)
   private static final com.google.monitoring.v3.Service DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.Service();
   }
@@ -8442,27 +9253,27 @@ public static com.google.monitoring.v3.Service getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Service parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Service parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -8477,6 +9288,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.Service getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
similarity index 72%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
index b8d0ddcd2e75..6467f3383449 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * A Service-Level Indicator (SLI) describes the "performance" of a service. For
  * some services, the SLI is well-defined. In such cases, the SLI can be
@@ -22,49 +39,54 @@
  *
  * Protobuf type {@code google.monitoring.v3.ServiceLevelIndicator}
  */
-public final class ServiceLevelIndicator extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ServiceLevelIndicator extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ServiceLevelIndicator)
     ServiceLevelIndicatorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ServiceLevelIndicator.newBuilder() to construct.
   private ServiceLevelIndicator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ServiceLevelIndicator() {
-  }
+
+  private ServiceLevelIndicator() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ServiceLevelIndicator();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ServiceLevelIndicator.class, com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
+            com.google.monitoring.v3.ServiceLevelIndicator.class,
+            com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
   }
 
   private int typeCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object type_;
+
   public enum TypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BASIC_SLI(4),
     REQUEST_BASED(1),
     WINDOWS_BASED(2),
     TYPE_NOT_SET(0);
     private final int value;
+
     private TypeCase(int value) {
       this.value = value;
     }
@@ -80,31 +102,38 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 4: return BASIC_SLI;
-        case 1: return REQUEST_BASED;
-        case 2: return WINDOWS_BASED;
-        case 0: return TYPE_NOT_SET;
-        default: return null;
+        case 4:
+          return BASIC_SLI;
+        case 1:
+          return REQUEST_BASED;
+        case 2:
+          return WINDOWS_BASED;
+        case 0:
+          return TYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase
-  getTypeCase() {
-    return TypeCase.forNumber(
-        typeCase_);
+  public TypeCase getTypeCase() {
+    return TypeCase.forNumber(typeCase_);
   }
 
   public static final int BASIC_SLI_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return Whether the basicSli field is set. */ @java.lang.Override @@ -112,21 +141,26 @@ public boolean hasBasicSli() { return typeCase_ == 4; } /** + * + * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return The basicSli. */ @java.lang.Override public com.google.monitoring.v3.BasicSli getBasicSli() { if (typeCase_ == 4) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } /** + * + * *
    * Basic SLI on a well-known service type.
    * 
@@ -136,18 +170,21 @@ public com.google.monitoring.v3.BasicSli getBasicSli() { @java.lang.Override public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { if (typeCase_ == 4) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } public static final int REQUEST_BASED_FIELD_NUMBER = 1; /** + * + * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return Whether the requestBased field is set. */ @java.lang.Override @@ -155,21 +192,26 @@ public boolean hasRequestBased() { return typeCase_ == 1; } /** + * + * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return The requestBased. */ @java.lang.Override public com.google.monitoring.v3.RequestBasedSli getRequestBased() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } /** + * + * *
    * Request-based SLIs
    * 
@@ -179,18 +221,21 @@ public com.google.monitoring.v3.RequestBasedSli getRequestBased() { @java.lang.Override public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilder() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } public static final int WINDOWS_BASED_FIELD_NUMBER = 2; /** + * + * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return Whether the windowsBased field is set. */ @java.lang.Override @@ -198,21 +243,26 @@ public boolean hasWindowsBased() { return typeCase_ == 2; } /** + * + * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return The windowsBased. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { if (typeCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli) type_; + return (com.google.monitoring.v3.WindowsBasedSli) type_; } return com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } /** + * + * *
    * Windows-based SLIs
    * 
@@ -222,12 +272,13 @@ public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { @java.lang.Override public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilder() { if (typeCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli) type_; + return (com.google.monitoring.v3.WindowsBasedSli) type_; } return com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +290,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.monitoring.v3.RequestBasedSli) type_); } @@ -260,16 +310,19 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.monitoring.v3.RequestBasedSli) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.monitoring.v3.RequestBasedSli) type_); } if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.monitoring.v3.WindowsBasedSli) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.monitoring.v3.WindowsBasedSli) type_); } if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.monitoring.v3.BasicSli) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.monitoring.v3.BasicSli) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,26 +332,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.ServiceLevelIndicator)) { return super.equals(obj); } - com.google.monitoring.v3.ServiceLevelIndicator other = (com.google.monitoring.v3.ServiceLevelIndicator) obj; + com.google.monitoring.v3.ServiceLevelIndicator other = + (com.google.monitoring.v3.ServiceLevelIndicator) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getBasicSli() - .equals(other.getBasicSli())) return false; + if (!getBasicSli().equals(other.getBasicSli())) return false; break; case 1: - if (!getRequestBased() - .equals(other.getRequestBased())) return false; + if (!getRequestBased().equals(other.getRequestBased())) return false; break; case 2: - if (!getWindowsBased() - .equals(other.getWindowsBased())) return false; + if (!getWindowsBased().equals(other.getWindowsBased())) return false; break; case 0: default: @@ -335,99 +386,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.ServiceLevelIndicator parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.ServiceLevelIndicator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.ServiceLevelIndicator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Service-Level Indicator (SLI) describes the "performance" of a service. For
    * some services, the SLI is well-defined. In such cases, the SLI can be
@@ -446,33 +502,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.ServiceLevelIndicator}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ServiceLevelIndicator)
       com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ServiceLevelIndicator.class, com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
+              com.google.monitoring.v3.ServiceLevelIndicator.class,
+              com.google.monitoring.v3.ServiceLevelIndicator.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ServiceLevelIndicator.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -492,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
     }
 
     @java.lang.Override
@@ -513,8 +568,11 @@ public com.google.monitoring.v3.ServiceLevelIndicator build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ServiceLevelIndicator buildPartial() {
-      com.google.monitoring.v3.ServiceLevelIndicator result = new com.google.monitoring.v3.ServiceLevelIndicator(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.ServiceLevelIndicator result =
+          new com.google.monitoring.v3.ServiceLevelIndicator(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -527,16 +585,13 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelIndicator result
     private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelIndicator result) {
       result.typeCase_ = typeCase_;
       result.type_ = this.type_;
-      if (typeCase_ == 4 &&
-          basicSliBuilder_ != null) {
+      if (typeCase_ == 4 && basicSliBuilder_ != null) {
         result.type_ = basicSliBuilder_.build();
       }
-      if (typeCase_ == 1 &&
-          requestBasedBuilder_ != null) {
+      if (typeCase_ == 1 && requestBasedBuilder_ != null) {
         result.type_ = requestBasedBuilder_.build();
       }
-      if (typeCase_ == 2 &&
-          windowsBasedBuilder_ != null) {
+      if (typeCase_ == 2 && windowsBasedBuilder_ != null) {
         result.type_ = windowsBasedBuilder_.build();
       }
     }
@@ -545,38 +600,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelIndicator r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ServiceLevelIndicator) {
-        return mergeFrom((com.google.monitoring.v3.ServiceLevelIndicator)other);
+        return mergeFrom((com.google.monitoring.v3.ServiceLevelIndicator) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -586,21 +642,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.monitoring.v3.ServiceLevelIndicator other) {
       if (other == com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) return this;
       switch (other.getTypeCase()) {
-        case BASIC_SLI: {
-          mergeBasicSli(other.getBasicSli());
-          break;
-        }
-        case REQUEST_BASED: {
-          mergeRequestBased(other.getRequestBased());
-          break;
-        }
-        case WINDOWS_BASED: {
-          mergeWindowsBased(other.getWindowsBased());
-          break;
-        }
-        case TYPE_NOT_SET: {
-          break;
-        }
+        case BASIC_SLI:
+          {
+            mergeBasicSli(other.getBasicSli());
+            break;
+          }
+        case REQUEST_BASED:
+          {
+            mergeRequestBased(other.getRequestBased());
+            break;
+          }
+        case WINDOWS_BASED:
+          {
+            mergeWindowsBased(other.getWindowsBased());
+            break;
+          }
+        case TYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -628,33 +688,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRequestBasedFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              typeCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getWindowsBasedFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              typeCase_ = 2;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getBasicSliFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              typeCase_ = 4;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRequestBasedFieldBuilder().getBuilder(), extensionRegistry);
+                typeCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getWindowsBasedFieldBuilder().getBuilder(), extensionRegistry);
+                typeCase_ = 2;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getBasicSliFieldBuilder().getBuilder(), extensionRegistry);
+                typeCase_ = 4;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -664,12 +722,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int typeCase_ = 0;
     private java.lang.Object type_;
-    public TypeCase
-        getTypeCase() {
-      return TypeCase.forNumber(
-          typeCase_);
+
+    public TypeCase getTypeCase() {
+      return TypeCase.forNumber(typeCase_);
     }
 
     public Builder clearType() {
@@ -682,13 +740,19 @@ public Builder clearType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> basicSliBuilder_;
+            com.google.monitoring.v3.BasicSli,
+            com.google.monitoring.v3.BasicSli.Builder,
+            com.google.monitoring.v3.BasicSliOrBuilder>
+        basicSliBuilder_;
     /**
+     *
+     *
      * 
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return Whether the basicSli field is set. */ @java.lang.Override @@ -696,11 +760,14 @@ public boolean hasBasicSli() { return typeCase_ == 4; } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return The basicSli. */ @java.lang.Override @@ -718,6 +785,8 @@ public com.google.monitoring.v3.BasicSli getBasicSli() { } } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -738,14 +807,15 @@ public Builder setBasicSli(com.google.monitoring.v3.BasicSli value) { return this; } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; */ - public Builder setBasicSli( - com.google.monitoring.v3.BasicSli.Builder builderForValue) { + public Builder setBasicSli(com.google.monitoring.v3.BasicSli.Builder builderForValue) { if (basicSliBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -756,6 +826,8 @@ public Builder setBasicSli( return this; } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -764,10 +836,12 @@ public Builder setBasicSli( */ public Builder mergeBasicSli(com.google.monitoring.v3.BasicSli value) { if (basicSliBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { - type_ = com.google.monitoring.v3.BasicSli.newBuilder((com.google.monitoring.v3.BasicSli) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 && type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { + type_ = + com.google.monitoring.v3.BasicSli.newBuilder( + (com.google.monitoring.v3.BasicSli) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -783,6 +857,8 @@ public Builder mergeBasicSli(com.google.monitoring.v3.BasicSli value) { return this; } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -806,6 +882,8 @@ public Builder clearBasicSli() { return this; } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -816,6 +894,8 @@ public com.google.monitoring.v3.BasicSli.Builder getBasicSliBuilder() { return getBasicSliFieldBuilder().getBuilder(); } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -834,6 +914,8 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { } } /** + * + * *
      * Basic SLI on a well-known service type.
      * 
@@ -841,17 +923,20 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { * .google.monitoring.v3.BasicSli basic_sli = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> + com.google.monitoring.v3.BasicSli, + com.google.monitoring.v3.BasicSli.Builder, + com.google.monitoring.v3.BasicSliOrBuilder> getBasicSliFieldBuilder() { if (basicSliBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.monitoring.v3.BasicSli.getDefaultInstance(); } - basicSliBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder>( - (com.google.monitoring.v3.BasicSli) type_, - getParentForChildren(), - isClean()); + basicSliBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.BasicSli, + com.google.monitoring.v3.BasicSli.Builder, + com.google.monitoring.v3.BasicSliOrBuilder>( + (com.google.monitoring.v3.BasicSli) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; @@ -860,13 +945,19 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> requestBasedBuilder_; + com.google.monitoring.v3.RequestBasedSli, + com.google.monitoring.v3.RequestBasedSli.Builder, + com.google.monitoring.v3.RequestBasedSliOrBuilder> + requestBasedBuilder_; /** + * + * *
      * Request-based SLIs
      * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return Whether the requestBased field is set. */ @java.lang.Override @@ -874,11 +965,14 @@ public boolean hasRequestBased() { return typeCase_ == 1; } /** + * + * *
      * Request-based SLIs
      * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return The requestBased. */ @java.lang.Override @@ -896,6 +990,8 @@ public com.google.monitoring.v3.RequestBasedSli getRequestBased() { } } /** + * + * *
      * Request-based SLIs
      * 
@@ -916,6 +1012,8 @@ public Builder setRequestBased(com.google.monitoring.v3.RequestBasedSli value) { return this; } /** + * + * *
      * Request-based SLIs
      * 
@@ -934,6 +1032,8 @@ public Builder setRequestBased( return this; } /** + * + * *
      * Request-based SLIs
      * 
@@ -942,10 +1042,13 @@ public Builder setRequestBased( */ public Builder mergeRequestBased(com.google.monitoring.v3.RequestBasedSli value) { if (requestBasedBuilder_ == null) { - if (typeCase_ == 1 && - type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { - type_ = com.google.monitoring.v3.RequestBasedSli.newBuilder((com.google.monitoring.v3.RequestBasedSli) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 1 + && type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { + type_ = + com.google.monitoring.v3.RequestBasedSli.newBuilder( + (com.google.monitoring.v3.RequestBasedSli) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -961,6 +1064,8 @@ public Builder mergeRequestBased(com.google.monitoring.v3.RequestBasedSli value) return this; } /** + * + * *
      * Request-based SLIs
      * 
@@ -984,6 +1089,8 @@ public Builder clearRequestBased() { return this; } /** + * + * *
      * Request-based SLIs
      * 
@@ -994,6 +1101,8 @@ public com.google.monitoring.v3.RequestBasedSli.Builder getRequestBasedBuilder() return getRequestBasedFieldBuilder().getBuilder(); } /** + * + * *
      * Request-based SLIs
      * 
@@ -1012,6 +1121,8 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde } } /** + * + * *
      * Request-based SLIs
      * 
@@ -1019,14 +1130,19 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde * .google.monitoring.v3.RequestBasedSli request_based = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> + com.google.monitoring.v3.RequestBasedSli, + com.google.monitoring.v3.RequestBasedSli.Builder, + com.google.monitoring.v3.RequestBasedSliOrBuilder> getRequestBasedFieldBuilder() { if (requestBasedBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } - requestBasedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder>( + requestBasedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.RequestBasedSli, + com.google.monitoring.v3.RequestBasedSli.Builder, + com.google.monitoring.v3.RequestBasedSliOrBuilder>( (com.google.monitoring.v3.RequestBasedSli) type_, getParentForChildren(), isClean()); @@ -1038,13 +1154,19 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilde } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder> windowsBasedBuilder_; + com.google.monitoring.v3.WindowsBasedSli, + com.google.monitoring.v3.WindowsBasedSli.Builder, + com.google.monitoring.v3.WindowsBasedSliOrBuilder> + windowsBasedBuilder_; /** + * + * *
      * Windows-based SLIs
      * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return Whether the windowsBased field is set. */ @java.lang.Override @@ -1052,11 +1174,14 @@ public boolean hasWindowsBased() { return typeCase_ == 2; } /** + * + * *
      * Windows-based SLIs
      * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return The windowsBased. */ @java.lang.Override @@ -1074,6 +1199,8 @@ public com.google.monitoring.v3.WindowsBasedSli getWindowsBased() { } } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1094,6 +1221,8 @@ public Builder setWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) { return this; } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1112,6 +1241,8 @@ public Builder setWindowsBased( return this; } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1120,10 +1251,13 @@ public Builder setWindowsBased( */ public Builder mergeWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) { if (windowsBasedBuilder_ == null) { - if (typeCase_ == 2 && - type_ != com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance()) { - type_ = com.google.monitoring.v3.WindowsBasedSli.newBuilder((com.google.monitoring.v3.WindowsBasedSli) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 2 + && type_ != com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance()) { + type_ = + com.google.monitoring.v3.WindowsBasedSli.newBuilder( + (com.google.monitoring.v3.WindowsBasedSli) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1139,6 +1273,8 @@ public Builder mergeWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) return this; } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1162,6 +1298,8 @@ public Builder clearWindowsBased() { return this; } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1172,6 +1310,8 @@ public com.google.monitoring.v3.WindowsBasedSli.Builder getWindowsBasedBuilder() return getWindowsBasedFieldBuilder().getBuilder(); } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1190,6 +1330,8 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde } } /** + * + * *
      * Windows-based SLIs
      * 
@@ -1197,14 +1339,19 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde * .google.monitoring.v3.WindowsBasedSli windows_based = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder> + com.google.monitoring.v3.WindowsBasedSli, + com.google.monitoring.v3.WindowsBasedSli.Builder, + com.google.monitoring.v3.WindowsBasedSliOrBuilder> getWindowsBasedFieldBuilder() { if (windowsBasedBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = com.google.monitoring.v3.WindowsBasedSli.getDefaultInstance(); } - windowsBasedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli, com.google.monitoring.v3.WindowsBasedSli.Builder, com.google.monitoring.v3.WindowsBasedSliOrBuilder>( + windowsBasedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.WindowsBasedSli, + com.google.monitoring.v3.WindowsBasedSli.Builder, + com.google.monitoring.v3.WindowsBasedSliOrBuilder>( (com.google.monitoring.v3.WindowsBasedSli) type_, getParentForChildren(), isClean()); @@ -1214,9 +1361,9 @@ public com.google.monitoring.v3.WindowsBasedSliOrBuilder getWindowsBasedOrBuilde onChanged(); return windowsBasedBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1226,12 +1373,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ServiceLevelIndicator) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelIndicator) private static final com.google.monitoring.v3.ServiceLevelIndicator DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.ServiceLevelIndicator(); } @@ -1240,27 +1387,27 @@ public static com.google.monitoring.v3.ServiceLevelIndicator getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceLevelIndicator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLevelIndicator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1275,6 +1422,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.ServiceLevelIndicator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java index 9acaaea22aef..34599680e369 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicatorOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; -public interface ServiceLevelIndicatorOrBuilder extends +public interface ServiceLevelIndicatorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ServiceLevelIndicator) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return Whether the basicSli field is set. */ boolean hasBasicSli(); /** + * + * *
    * Basic SLI on a well-known service type.
    * 
* * .google.monitoring.v3.BasicSli basic_sli = 4; + * * @return The basicSli. */ com.google.monitoring.v3.BasicSli getBasicSli(); /** + * + * *
    * Basic SLI on a well-known service type.
    * 
@@ -35,24 +59,32 @@ public interface ServiceLevelIndicatorOrBuilder extends com.google.monitoring.v3.BasicSliOrBuilder getBasicSliOrBuilder(); /** + * + * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return Whether the requestBased field is set. */ boolean hasRequestBased(); /** + * + * *
    * Request-based SLIs
    * 
* * .google.monitoring.v3.RequestBasedSli request_based = 1; + * * @return The requestBased. */ com.google.monitoring.v3.RequestBasedSli getRequestBased(); /** + * + * *
    * Request-based SLIs
    * 
@@ -62,24 +94,32 @@ public interface ServiceLevelIndicatorOrBuilder extends com.google.monitoring.v3.RequestBasedSliOrBuilder getRequestBasedOrBuilder(); /** + * + * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return Whether the windowsBased field is set. */ boolean hasWindowsBased(); /** + * + * *
    * Windows-based SLIs
    * 
* * .google.monitoring.v3.WindowsBasedSli windows_based = 2; + * * @return The windowsBased. */ com.google.monitoring.v3.WindowsBasedSli getWindowsBased(); /** + * + * *
    * Windows-based SLIs
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java similarity index 73% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java index 1b35064f8721..6cc0454f410b 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * A Service-Level Objective (SLO) describes a level of desired good service. It
  * consists of a service-level indicator (SLI), a performance goal, and a period
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.ServiceLevelObjective}
  */
-public final class ServiceLevelObjective extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ServiceLevelObjective extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.ServiceLevelObjective)
     ServiceLevelObjectiveOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ServiceLevelObjective.newBuilder() to construct.
   private ServiceLevelObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ServiceLevelObjective() {
     name_ = "";
     displayName_ = "";
@@ -31,37 +49,39 @@ private ServiceLevelObjective() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ServiceLevelObjective();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 12:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.ServiceLevelObjective.class, com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
+            com.google.monitoring.v3.ServiceLevelObjective.class,
+            com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * `ServiceLevelObjective.View` determines what form of
    * `ServiceLevelObjective` is returned from `GetServiceLevelObjective`,
@@ -70,9 +90,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.monitoring.v3.ServiceLevelObjective.View}
    */
-  public enum View
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum View implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Same as FULL.
      * 
@@ -81,6 +102,8 @@ public enum View */ VIEW_UNSPECIFIED(0), /** + * + * *
      * Return the embedded `ServiceLevelIndicator` in the form in which it was
      * defined. If it was defined using a `BasicSli`, return that `BasicSli`.
@@ -90,6 +113,8 @@ public enum View
      */
     FULL(2),
     /**
+     *
+     *
      * 
      * For `ServiceLevelIndicator`s using `BasicSli` articulation, instead
      * return the `ServiceLevelIndicator` with its mode of computation fully
@@ -105,6 +130,8 @@ public enum View
     ;
 
     /**
+     *
+     *
      * 
      * Same as FULL.
      * 
@@ -113,6 +140,8 @@ public enum View */ public static final int VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Return the embedded `ServiceLevelIndicator` in the form in which it was
      * defined. If it was defined using a `BasicSli`, return that `BasicSli`.
@@ -122,6 +151,8 @@ public enum View
      */
     public static final int FULL_VALUE = 2;
     /**
+     *
+     *
      * 
      * For `ServiceLevelIndicator`s using `BasicSli` articulation, instead
      * return the `ServiceLevelIndicator` with its mode of computation fully
@@ -134,7 +165,6 @@ public enum View
      */
     public static final int EXPLICIT_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -159,49 +189,49 @@ public static View valueOf(int value) {
      */
     public static View forNumber(int value) {
       switch (value) {
-        case 0: return VIEW_UNSPECIFIED;
-        case 2: return FULL;
-        case 1: return EXPLICIT;
-        default: return null;
+        case 0:
+          return VIEW_UNSPECIFIED;
+        case 2:
+          return FULL;
+        case 1:
+          return EXPLICIT;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        View> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public View findValueByNumber(int number) {
-              return View.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public View findValueByNumber(int number) {
+            return View.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.ServiceLevelObjective.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final View[] VALUES = values();
 
-    public static View valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -219,15 +249,19 @@ private View(int value) {
   }
 
   private int periodCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object period_;
+
   public enum PeriodCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ROLLING_PERIOD(5),
     CALENDAR_PERIOD(6),
     PERIOD_NOT_SET(0);
     private final int value;
+
     private PeriodCase(int value) {
       this.value = value;
     }
@@ -243,27 +277,33 @@ public static PeriodCase valueOf(int value) {
 
     public static PeriodCase forNumber(int value) {
       switch (value) {
-        case 5: return ROLLING_PERIOD;
-        case 6: return CALENDAR_PERIOD;
-        case 0: return PERIOD_NOT_SET;
-        default: return null;
+        case 5:
+          return ROLLING_PERIOD;
+        case 6:
+          return CALENDAR_PERIOD;
+        case 0:
+          return PERIOD_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PeriodCase
-  getPeriodCase() {
-    return PeriodCase.forNumber(
-        periodCase_);
+  public PeriodCase getPeriodCase() {
+    return PeriodCase.forNumber(periodCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -271,6 +311,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -279,14 +320,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -294,16 +336,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -312,14 +353,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; + * * @return The displayName. */ @java.lang.Override @@ -328,29 +373,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -361,6 +406,8 @@ public java.lang.String getDisplayName() { public static final int SERVICE_LEVEL_INDICATOR_FIELD_NUMBER = 3; private com.google.monitoring.v3.ServiceLevelIndicator serviceLevelIndicator_; /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -368,6 +415,7 @@ public java.lang.String getDisplayName() {
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return Whether the serviceLevelIndicator field is set. */ @java.lang.Override @@ -375,6 +423,8 @@ public boolean hasServiceLevelIndicator() { return serviceLevelIndicator_ != null; } /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -382,13 +432,18 @@ public boolean hasServiceLevelIndicator() {
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return The serviceLevelIndicator. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator() { - return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_; + return serviceLevelIndicator_ == null + ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() + : serviceLevelIndicator_; } /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -398,19 +453,25 @@ public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator()
    * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder() {
-    return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_;
+  public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder
+      getServiceLevelIndicatorOrBuilder() {
+    return serviceLevelIndicator_ == null
+        ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()
+        : serviceLevelIndicator_;
   }
 
   public static final int GOAL_FIELD_NUMBER = 4;
   private double goal_ = 0D;
   /**
+   *
+   *
    * 
    * The fraction of service that must be good in order for this objective to be
    * met. `0 < goal <= 0.999`.
    * 
* * double goal = 4; + * * @return The goal. */ @java.lang.Override @@ -420,12 +481,15 @@ public double getGoal() { public static final int ROLLING_PERIOD_FIELD_NUMBER = 5; /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return Whether the rollingPeriod field is set. */ @java.lang.Override @@ -433,22 +497,27 @@ public boolean hasRollingPeriod() { return periodCase_ == 5; } /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return The rollingPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRollingPeriod() { if (periodCase_ == 5) { - return (com.google.protobuf.Duration) period_; + return (com.google.protobuf.Duration) period_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
@@ -459,13 +528,15 @@ public com.google.protobuf.Duration getRollingPeriod() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
     if (periodCase_ == 5) {
-       return (com.google.protobuf.Duration) period_;
+      return (com.google.protobuf.Duration) period_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int CALENDAR_PERIOD_FIELD_NUMBER = 6;
   /**
+   *
+   *
    * 
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -473,12 +544,15 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return Whether the calendarPeriod field is set. */ public boolean hasCalendarPeriod() { return periodCase_ == 6; } /** + * + * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -486,6 +560,7 @@ public boolean hasCalendarPeriod() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The enum numeric value on the wire for calendarPeriod. */ public int getCalendarPeriodValue() { @@ -495,6 +570,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -502,44 +579,47 @@ public int getCalendarPeriodValue() {
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The calendarPeriod. */ public com.google.type.CalendarPeriod getCalendarPeriod() { if (periodCase_ == 6) { - com.google.type.CalendarPeriod result = com.google.type.CalendarPeriod.forNumber( - (java.lang.Integer) period_); + com.google.type.CalendarPeriod result = + com.google.type.CalendarPeriod.forNumber((java.lang.Integer) period_); return result == null ? com.google.type.CalendarPeriod.UNRECOGNIZED : result; } return com.google.type.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } public static final int USER_LABELS_FIELD_NUMBER = 12; + private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.ServiceMonitoringProto + .internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; - private com.google.protobuf.MapField - internalGetUserLabels() { + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -552,20 +632,21 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -582,6 +663,8 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -594,17 +677,19 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  public /* nullable */ java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -617,11 +702,11 @@ java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 12;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -629,6 +714,7 @@ public java.lang.String getUserLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -640,8 +726,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -660,12 +745,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetUserLabels(),
-        UserLabelsDefaultEntryHolder.defaultEntry,
-        12);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 12);
     getUnknownFields().writeTo(output);
   }
 
@@ -679,33 +760,33 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (serviceLevelIndicator_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getServiceLevelIndicator());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServiceLevelIndicator());
     }
     if (java.lang.Double.doubleToRawLongBits(goal_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(4, goal_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, goal_);
     }
     if (periodCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.protobuf.Duration) period_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.protobuf.Duration) period_);
     }
     if (periodCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(6, ((java.lang.Integer) period_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) period_));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(12, userLabels__);
+    for (java.util.Map.Entry entry :
+        internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry userLabels__ =
+          UserLabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -715,36 +796,30 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.ServiceLevelObjective)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.ServiceLevelObjective other = (com.google.monitoring.v3.ServiceLevelObjective) obj;
+    com.google.monitoring.v3.ServiceLevelObjective other =
+        (com.google.monitoring.v3.ServiceLevelObjective) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasServiceLevelIndicator() != other.hasServiceLevelIndicator()) return false;
     if (hasServiceLevelIndicator()) {
-      if (!getServiceLevelIndicator()
-          .equals(other.getServiceLevelIndicator())) return false;
+      if (!getServiceLevelIndicator().equals(other.getServiceLevelIndicator())) return false;
     }
     if (java.lang.Double.doubleToLongBits(getGoal())
-        != java.lang.Double.doubleToLongBits(
-            other.getGoal())) return false;
-    if (!internalGetUserLabels().equals(
-        other.internalGetUserLabels())) return false;
+        != java.lang.Double.doubleToLongBits(other.getGoal())) return false;
+    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
     if (!getPeriodCase().equals(other.getPeriodCase())) return false;
     switch (periodCase_) {
       case 5:
-        if (!getRollingPeriod()
-            .equals(other.getRollingPeriod())) return false;
+        if (!getRollingPeriod().equals(other.getRollingPeriod())) return false;
         break;
       case 6:
-        if (getCalendarPeriodValue()
-            != other.getCalendarPeriodValue()) return false;
+        if (getCalendarPeriodValue() != other.getCalendarPeriodValue()) return false;
         break;
       case 0:
       default:
@@ -769,8 +844,9 @@ public int hashCode() {
       hash = (53 * hash) + getServiceLevelIndicator().hashCode();
     }
     hash = (37 * hash) + GOAL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getGoal()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getGoal()));
     if (!internalGetUserLabels().getMap().isEmpty()) {
       hash = (37 * hash) + USER_LABELS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetUserLabels().hashCode();
@@ -792,99 +868,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.ServiceLevelObjective parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.ServiceLevelObjective parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.ServiceLevelObjective prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A Service-Level Objective (SLO) describes a level of desired good service. It
    * consists of a service-level indicator (SLI), a performance goal, and a period
@@ -896,55 +977,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.ServiceLevelObjective}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.ServiceLevelObjective)
       com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 12:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 12:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.ServiceLevelObjective.class, com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
+              com.google.monitoring.v3.ServiceLevelObjective.class,
+              com.google.monitoring.v3.ServiceLevelObjective.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.ServiceLevelObjective.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -967,9 +1045,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
     }
 
     @java.lang.Override
@@ -988,8 +1066,11 @@ public com.google.monitoring.v3.ServiceLevelObjective build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.ServiceLevelObjective buildPartial() {
-      com.google.monitoring.v3.ServiceLevelObjective result = new com.google.monitoring.v3.ServiceLevelObjective(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.ServiceLevelObjective result =
+          new com.google.monitoring.v3.ServiceLevelObjective(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1004,9 +1085,10 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelObjective result
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.serviceLevelIndicator_ = serviceLevelIndicatorBuilder_ == null
-            ? serviceLevelIndicator_
-            : serviceLevelIndicatorBuilder_.build();
+        result.serviceLevelIndicator_ =
+            serviceLevelIndicatorBuilder_ == null
+                ? serviceLevelIndicator_
+                : serviceLevelIndicatorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.goal_ = goal_;
@@ -1020,8 +1102,7 @@ private void buildPartial0(com.google.monitoring.v3.ServiceLevelObjective result
     private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelObjective result) {
       result.periodCase_ = periodCase_;
       result.period_ = this.period_;
-      if (periodCase_ == 5 &&
-          rollingPeriodBuilder_ != null) {
+      if (periodCase_ == 5 && rollingPeriodBuilder_ != null) {
         result.period_ = rollingPeriodBuilder_.build();
       }
     }
@@ -1030,38 +1111,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.ServiceLevelObjective r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.ServiceLevelObjective) {
-        return mergeFrom((com.google.monitoring.v3.ServiceLevelObjective)other);
+        return mergeFrom((com.google.monitoring.v3.ServiceLevelObjective) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1086,21 +1168,23 @@ public Builder mergeFrom(com.google.monitoring.v3.ServiceLevelObjective other) {
       if (other.getGoal() != 0D) {
         setGoal(other.getGoal());
       }
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
       bitField0_ |= 0x00000040;
       switch (other.getPeriodCase()) {
-        case ROLLING_PERIOD: {
-          mergeRollingPeriod(other.getRollingPeriod());
-          break;
-        }
-        case CALENDAR_PERIOD: {
-          setCalendarPeriodValue(other.getCalendarPeriodValue());
-          break;
-        }
-        case PERIOD_NOT_SET: {
-          break;
-        }
+        case ROLLING_PERIOD:
+          {
+            mergeRollingPeriod(other.getRollingPeriod());
+            break;
+          }
+        case CALENDAR_PERIOD:
+          {
+            setCalendarPeriodValue(other.getCalendarPeriodValue());
+            break;
+          }
+        case PERIOD_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1128,56 +1212,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              input.readMessage(
-                  getServiceLevelIndicatorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 33: {
-              goal_ = input.readDouble();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 33
-            case 42: {
-              input.readMessage(
-                  getRollingPeriodFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              periodCase_ = 5;
-              break;
-            } // case 42
-            case 48: {
-              int rawValue = input.readEnum();
-              periodCase_ = 6;
-              period_ = rawValue;
-              break;
-            } // case 48
-            case 90: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 90
-            case 98: {
-              com.google.protobuf.MapEntry
-              userLabels__ = input.readMessage(
-                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserLabels().getMutableMap().put(
-                  userLabels__.getKey(), userLabels__.getValue());
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 98
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                input.readMessage(
+                    getServiceLevelIndicatorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 33:
+              {
+                goal_ = input.readDouble();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 33
+            case 42:
+              {
+                input.readMessage(getRollingPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                periodCase_ = 5;
+                break;
+              } // case 42
+            case 48:
+              {
+                int rawValue = input.readEnum();
+                periodCase_ = 6;
+                period_ = rawValue;
+                break;
+              } // case 48
+            case 90:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.protobuf.MapEntry userLabels__ =
+                    input.readMessage(
+                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableUserLabels()
+                    .getMutableMap()
+                    .put(userLabels__.getKey(), userLabels__.getValue());
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 98
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1187,12 +1278,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int periodCase_ = 0;
     private java.lang.Object period_;
-    public PeriodCase
-        getPeriodCase() {
-      return PeriodCase.forNumber(
-          periodCase_);
+
+    public PeriodCase getPeriodCase() {
+      return PeriodCase.forNumber(periodCase_);
     }
 
     public Builder clearPeriod() {
@@ -1206,6 +1297,8 @@ public Builder clearPeriod() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1213,13 +1306,13 @@ public Builder clearPeriod() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1228,6 +1321,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1235,15 +1330,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1251,6 +1345,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1258,18 +1354,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1277,6 +1377,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1286,6 +1387,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Resource name for this `ServiceLevelObjective`. The format is:
      *
@@ -1293,12 +1396,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1308,18 +1413,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1328,20 +1435,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1349,28 +1457,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1380,17 +1495,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Name used for UI elements listing this SLO.
      * 
* * string display_name = 11; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1400,8 +1519,13 @@ public Builder setDisplayNameBytes( private com.google.monitoring.v3.ServiceLevelIndicator serviceLevelIndicator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> serviceLevelIndicatorBuilder_; + com.google.monitoring.v3.ServiceLevelIndicator, + com.google.monitoring.v3.ServiceLevelIndicator.Builder, + com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> + serviceLevelIndicatorBuilder_; /** + * + * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1409,12 +1533,15 @@ public Builder setDisplayNameBytes(
      * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return Whether the serviceLevelIndicator field is set. */ public boolean hasServiceLevelIndicator() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1422,16 +1549,21 @@ public boolean hasServiceLevelIndicator() {
      * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return The serviceLevelIndicator. */ public com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator() { if (serviceLevelIndicatorBuilder_ == null) { - return serviceLevelIndicator_ == null ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_; + return serviceLevelIndicator_ == null + ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() + : serviceLevelIndicator_; } else { return serviceLevelIndicatorBuilder_.getMessage(); } } /** + * + * *
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1454,6 +1586,8 @@ public Builder setServiceLevelIndicator(com.google.monitoring.v3.ServiceLevelInd
       return this;
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1474,6 +1608,8 @@ public Builder setServiceLevelIndicator(
       return this;
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1482,11 +1618,13 @@ public Builder setServiceLevelIndicator(
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public Builder mergeServiceLevelIndicator(com.google.monitoring.v3.ServiceLevelIndicator value) {
+    public Builder mergeServiceLevelIndicator(
+        com.google.monitoring.v3.ServiceLevelIndicator value) {
       if (serviceLevelIndicatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          serviceLevelIndicator_ != null &&
-          serviceLevelIndicator_ != com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && serviceLevelIndicator_ != null
+            && serviceLevelIndicator_
+                != com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()) {
           getServiceLevelIndicatorBuilder().mergeFrom(value);
         } else {
           serviceLevelIndicator_ = value;
@@ -1499,6 +1637,8 @@ public Builder mergeServiceLevelIndicator(com.google.monitoring.v3.ServiceLevelI
       return this;
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1518,6 +1658,8 @@ public Builder clearServiceLevelIndicator() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1526,12 +1668,15 @@ public Builder clearServiceLevelIndicator() {
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public com.google.monitoring.v3.ServiceLevelIndicator.Builder getServiceLevelIndicatorBuilder() {
+    public com.google.monitoring.v3.ServiceLevelIndicator.Builder
+        getServiceLevelIndicatorBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getServiceLevelIndicatorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1540,15 +1685,19 @@ public com.google.monitoring.v3.ServiceLevelIndicator.Builder getServiceLevelInd
      *
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
-    public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder() {
+    public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder
+        getServiceLevelIndicatorOrBuilder() {
       if (serviceLevelIndicatorBuilder_ != null) {
         return serviceLevelIndicatorBuilder_.getMessageOrBuilder();
       } else {
-        return serviceLevelIndicator_ == null ?
-            com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance() : serviceLevelIndicator_;
+        return serviceLevelIndicator_ == null
+            ? com.google.monitoring.v3.ServiceLevelIndicator.getDefaultInstance()
+            : serviceLevelIndicator_;
       }
     }
     /**
+     *
+     *
      * 
      * The definition of good service, used to measure and calculate the quality
      * of the `Service`'s performance with respect to a single aspect of service
@@ -1558,27 +1707,33 @@ public com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIn
      * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder> 
+            com.google.monitoring.v3.ServiceLevelIndicator,
+            com.google.monitoring.v3.ServiceLevelIndicator.Builder,
+            com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>
         getServiceLevelIndicatorFieldBuilder() {
       if (serviceLevelIndicatorBuilder_ == null) {
-        serviceLevelIndicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.ServiceLevelIndicator, com.google.monitoring.v3.ServiceLevelIndicator.Builder, com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>(
-                getServiceLevelIndicator(),
-                getParentForChildren(),
-                isClean());
+        serviceLevelIndicatorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.ServiceLevelIndicator,
+                com.google.monitoring.v3.ServiceLevelIndicator.Builder,
+                com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder>(
+                getServiceLevelIndicator(), getParentForChildren(), isClean());
         serviceLevelIndicator_ = null;
       }
       return serviceLevelIndicatorBuilder_;
     }
 
-    private double goal_ ;
+    private double goal_;
     /**
+     *
+     *
      * 
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; + * * @return The goal. */ @java.lang.Override @@ -1586,12 +1741,15 @@ public double getGoal() { return goal_; } /** + * + * *
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; + * * @param value The goal to set. * @return This builder for chaining. */ @@ -1603,12 +1761,15 @@ public Builder setGoal(double value) { return this; } /** + * + * *
      * The fraction of service that must be good in order for this objective to be
      * met. `0 < goal <= 0.999`.
      * 
* * double goal = 4; + * * @return This builder for chaining. */ public Builder clearGoal() { @@ -1619,14 +1780,20 @@ public Builder clearGoal() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rollingPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + rollingPeriodBuilder_; /** + * + * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
      * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return Whether the rollingPeriod field is set. */ @java.lang.Override @@ -1634,12 +1801,15 @@ public boolean hasRollingPeriod() { return periodCase_ == 5; } /** + * + * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
      * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return The rollingPeriod. */ @java.lang.Override @@ -1657,6 +1827,8 @@ public com.google.protobuf.Duration getRollingPeriod() { } } /** + * + * *
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1678,6 +1850,8 @@ public Builder setRollingPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1685,8 +1859,7 @@ public Builder setRollingPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration rolling_period = 5;
      */
-    public Builder setRollingPeriod(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRollingPeriod(com.google.protobuf.Duration.Builder builderForValue) {
       if (rollingPeriodBuilder_ == null) {
         period_ = builderForValue.build();
         onChanged();
@@ -1697,6 +1870,8 @@ public Builder setRollingPeriod(
       return this;
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1706,10 +1881,11 @@ public Builder setRollingPeriod(
      */
     public Builder mergeRollingPeriod(com.google.protobuf.Duration value) {
       if (rollingPeriodBuilder_ == null) {
-        if (periodCase_ == 5 &&
-            period_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          period_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) period_)
-              .mergeFrom(value).buildPartial();
+        if (periodCase_ == 5 && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          period_ =
+              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) period_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           period_ = value;
         }
@@ -1725,6 +1901,8 @@ public Builder mergeRollingPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1749,6 +1927,8 @@ public Builder clearRollingPeriod() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1760,6 +1940,8 @@ public com.google.protobuf.Duration.Builder getRollingPeriodBuilder() {
       return getRollingPeriodFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1779,6 +1961,8 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A rolling time period, semantically "in the past `<rolling_period>`".
      * Must be an integer multiple of 1 day no larger than 30 days.
@@ -1787,17 +1971,20 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
      * .google.protobuf.Duration rolling_period = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getRollingPeriodFieldBuilder() {
       if (rollingPeriodBuilder_ == null) {
         if (!(periodCase_ == 5)) {
           period_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        rollingPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) period_,
-                getParentForChildren(),
-                isClean());
+        rollingPeriodBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) period_, getParentForChildren(), isClean());
         period_ = null;
       }
       periodCase_ = 5;
@@ -1806,6 +1993,8 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
     }
 
     /**
+     *
+     *
      * 
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1813,6 +2002,7 @@ public com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return Whether the calendarPeriod field is set. */ @java.lang.Override @@ -1820,6 +2010,8 @@ public boolean hasCalendarPeriod() { return periodCase_ == 6; } /** + * + * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1827,6 +2019,7 @@ public boolean hasCalendarPeriod() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The enum numeric value on the wire for calendarPeriod. */ @java.lang.Override @@ -1837,6 +2030,8 @@ public int getCalendarPeriodValue() { return 0; } /** + * + * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1844,6 +2039,7 @@ public int getCalendarPeriodValue() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @param value The enum numeric value on the wire for calendarPeriod to set. * @return This builder for chaining. */ @@ -1854,6 +2050,8 @@ public Builder setCalendarPeriodValue(int value) { return this; } /** + * + * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1861,18 +2059,21 @@ public Builder setCalendarPeriodValue(int value) {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The calendarPeriod. */ @java.lang.Override public com.google.type.CalendarPeriod getCalendarPeriod() { if (periodCase_ == 6) { - com.google.type.CalendarPeriod result = com.google.type.CalendarPeriod.forNumber( - (java.lang.Integer) period_); + com.google.type.CalendarPeriod result = + com.google.type.CalendarPeriod.forNumber((java.lang.Integer) period_); return result == null ? com.google.type.CalendarPeriod.UNRECOGNIZED : result; } return com.google.type.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED; } /** + * + * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1880,6 +2081,7 @@ public com.google.type.CalendarPeriod getCalendarPeriod() {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @param value The calendarPeriod to set. * @return This builder for chaining. */ @@ -1893,6 +2095,8 @@ public Builder setCalendarPeriod(com.google.type.CalendarPeriod value) { return this; } /** + * + * *
      * A calendar period, semantically "since the start of the current
      * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -1900,6 +2104,7 @@ public Builder setCalendarPeriod(com.google.type.CalendarPeriod value) {
      * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return This builder for chaining. */ public Builder clearCalendarPeriod() { @@ -1911,8 +2116,8 @@ public Builder clearCalendarPeriod() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField userLabels_; + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -1921,11 +2126,12 @@ public Builder clearCalendarPeriod() { } return userLabels_; } + private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -1934,10 +2140,13 @@ public Builder clearCalendarPeriod() { onChanged(); return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -1950,20 +2159,21 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -1980,6 +2190,8 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -1992,17 +2204,19 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+    public /* nullable */ java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2015,23 +2229,25 @@ java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 12;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2043,23 +2259,22 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       bitField0_ |= 0x00000040;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2071,17 +2286,20 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels which have been used to annotate the service-level objective. Label
      * keys must start with a letter. Label keys and values may contain lowercase
@@ -2093,16 +2311,14 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 12;
      */
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2112,12 +2328,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.ServiceLevelObjective)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.ServiceLevelObjective)
   private static final com.google.monitoring.v3.ServiceLevelObjective DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.ServiceLevelObjective();
   }
@@ -2126,27 +2342,27 @@ public static com.google.monitoring.v3.ServiceLevelObjective getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ServiceLevelObjective parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ServiceLevelObjective parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2161,6 +2377,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.ServiceLevelObjective getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
similarity index 84%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
index 76339a6ef52c..52a61d1686bb 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface ServiceLevelObjectiveOrBuilder extends
+public interface ServiceLevelObjectiveOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.ServiceLevelObjective)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -15,10 +33,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Resource name for this `ServiceLevelObjective`. The format is:
    *
@@ -26,32 +47,39 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Name used for UI elements listing this SLO.
    * 
* * string display_name = 11; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -59,10 +87,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return Whether the serviceLevelIndicator field is set. */ boolean hasServiceLevelIndicator(); /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -70,10 +101,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * .google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3; + * * @return The serviceLevelIndicator. */ com.google.monitoring.v3.ServiceLevelIndicator getServiceLevelIndicator(); /** + * + * *
    * The definition of good service, used to measure and calculate the quality
    * of the `Service`'s performance with respect to a single aspect of service
@@ -85,37 +119,48 @@ public interface ServiceLevelObjectiveOrBuilder extends
   com.google.monitoring.v3.ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder();
 
   /**
+   *
+   *
    * 
    * The fraction of service that must be good in order for this objective to be
    * met. `0 < goal <= 0.999`.
    * 
* * double goal = 4; + * * @return The goal. */ double getGoal(); /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return Whether the rollingPeriod field is set. */ boolean hasRollingPeriod(); /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
    * 
* * .google.protobuf.Duration rolling_period = 5; + * * @return The rollingPeriod. */ com.google.protobuf.Duration getRollingPeriod(); /** + * + * *
    * A rolling time period, semantically "in the past `<rolling_period>`".
    * Must be an integer multiple of 1 day no larger than 30 days.
@@ -126,6 +171,8 @@ public interface ServiceLevelObjectiveOrBuilder extends
   com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder();
 
   /**
+   *
+   *
    * 
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -133,10 +180,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return Whether the calendarPeriod field is set. */ boolean hasCalendarPeriod(); /** + * + * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -144,10 +194,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The enum numeric value on the wire for calendarPeriod. */ int getCalendarPeriodValue(); /** + * + * *
    * A calendar period, semantically "since the start of the current
    * `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
@@ -155,11 +208,14 @@ public interface ServiceLevelObjectiveOrBuilder extends
    * 
* * .google.type.CalendarPeriod calendar_period = 6; + * * @return The calendarPeriod. */ com.google.type.CalendarPeriod getCalendarPeriod(); /** + * + * *
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -173,6 +229,8 @@ public interface ServiceLevelObjectiveOrBuilder extends
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -184,15 +242,13 @@ public interface ServiceLevelObjectiveOrBuilder extends
    *
    * map<string, string> user_labels = 12;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -204,9 +260,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 12;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -219,11 +276,13 @@ boolean containsUserLabels(
    * map<string, string> user_labels = 12;
    */
   /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service-level objective. Label
    * keys must start with a letter. Label keys and values may contain lowercase
@@ -235,8 +294,7 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 12;
    */
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   com.google.monitoring.v3.ServiceLevelObjective.PeriodCase getPeriodCase();
 }
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
new file mode 100644
index 000000000000..3f05723a5950
--- /dev/null
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java
@@ -0,0 +1,443 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/service.proto
+
+package com.google.monitoring.v3;
+
+public final class ServiceMonitoringProto {
+  private ServiceMonitoringProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_Custom_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_AppEngine_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_MeshIstio_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_Telemetry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_BasicSli_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_Range_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_Range_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_RequestBasedSli_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_DistributionCut_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\"google/monitoring/v3/service.proto\022\024go"
+          + "ogle.monitoring.v3\032\031google/api/resource."
+          + "proto\032\036google/protobuf/duration.proto\032!g"
+          + "oogle/type/calendar_period.proto\"\311\t\n\007Ser"
+          + "vice\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t"
+          + "\0226\n\006custom\030\006 \001(\0132$.google.monitoring.v3."
+          + "Service.CustomH\000\022=\n\napp_engine\030\007 \001(\0132\'.g"
+          + "oogle.monitoring.v3.Service.AppEngineH\000\022"
+          + "G\n\017cloud_endpoints\030\010 \001(\0132,.google.monito"
+          + "ring.v3.Service.CloudEndpointsH\000\022C\n\rclus"
+          + "ter_istio\030\t \001(\0132*.google.monitoring.v3.S"
+          + "ervice.ClusterIstioH\000\022=\n\nmesh_istio\030\n \001("
+          + "\0132\'.google.monitoring.v3.Service.MeshIst"
+          + "ioH\000\022V\n\027istio_canonical_service\030\013 \001(\01323."
+          + "google.monitoring.v3.Service.IstioCanoni"
+          + "calServiceH\000\022:\n\ttelemetry\030\r \001(\0132\'.google"
+          + ".monitoring.v3.Service.Telemetry\022B\n\013user"
+          + "_labels\030\016 \003(\0132-.google.monitoring.v3.Ser"
+          + "vice.UserLabelsEntry\032\010\n\006Custom\032\036\n\tAppEng"
+          + "ine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndpoints"
+          + "\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterIstio\022\020\n\010loc"
+          + "ation\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031\n\021ser"
+          + "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001"
+          + "(\t\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021ser"
+          + "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001"
+          + "(\t\032i\n\025IstioCanonicalService\022\020\n\010mesh_uid\030"
+          + "\001 \001(\t\022#\n\033canonical_service_namespace\030\003 \001"
+          + "(\t\022\031\n\021canonical_service\030\004 \001(\t\032\"\n\tTelemet"
+          + "ry\022\025\n\rresource_name\030\001 \001(\t\0321\n\017UserLabelsE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\247\001\352"
+          + "A\243\001\n!monitoring.googleapis.com/Service\022%"
+          + "projects/{project}/services/{service}\022/o"
+          + "rganizations/{organization}/services/{se"
+          + "rvice}\022#folders/{folder}/services/{servi"
+          + "ce}\022\001*B\014\n\nidentifier\"\226\006\n\025ServiceLevelObj"
+          + "ective\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001"
+          + "(\t\022L\n\027service_level_indicator\030\003 \001(\0132+.go"
+          + "ogle.monitoring.v3.ServiceLevelIndicator"
+          + "\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_period\030\005 \001(\0132\031"
+          + ".google.protobuf.DurationH\000\0226\n\017calendar_"
+          + "period\030\006 \001(\0162\033.google.type.CalendarPerio"
+          + "dH\000\022P\n\013user_labels\030\014 \003(\0132;.google.monito"
+          + "ring.v3.ServiceLevelObjective.UserLabels"
+          + "Entry\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+          + "\005value\030\002 \001(\t:\0028\001\"4\n\004View\022\024\n\020VIEW_UNSPECI"
+          + "FIED\020\000\022\010\n\004FULL\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/m"
+          + "onitoring.googleapis.com/ServiceLevelObj"
+          + "ective\022Vprojects/{project}/services/{ser"
+          + "vice}/serviceLevelObjectives/{service_le"
+          + "vel_objective}\022`organizations/{organizat"
+          + "ion}/services/{service}/serviceLevelObje"
+          + "ctives/{service_level_objective}\022Tfolder"
+          + "s/{folder}/services/{service}/serviceLev"
+          + "elObjectives/{service_level_objective}\022\001"
+          + "* \001B\010\n\006period\"\324\001\n\025ServiceLevelIndicator\022"
+          + "3\n\tbasic_sli\030\004 \001(\0132\036.google.monitoring.v"
+          + "3.BasicSliH\000\022>\n\rrequest_based\030\001 \001(\0132%.go"
+          + "ogle.monitoring.v3.RequestBasedSliH\000\022>\n\r"
+          + "windows_based\030\002 \001(\0132%.google.monitoring."
+          + "v3.WindowsBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSl"
+          + "i\022\016\n\006method\030\007 \003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007v"
+          + "ersion\030\t \003(\t\022K\n\014availability\030\002 \001(\01323.goo"
+          + "gle.monitoring.v3.BasicSli.AvailabilityC"
+          + "riteriaH\000\022A\n\007latency\030\003 \001(\0132..google.moni"
+          + "toring.v3.BasicSli.LatencyCriteriaH\000\032\026\n\024"
+          + "AvailabilityCriteria\032?\n\017LatencyCriteria\022"
+          + ",\n\tthreshold\030\003 \001(\0132\031.google.protobuf.Dur"
+          + "ationB\016\n\014sli_criteria\"!\n\005Range\022\013\n\003min\030\001 "
+          + "\001(\001\022\013\n\003max\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020"
+          + "good_total_ratio\030\001 \001(\0132%.google.monitori"
+          + "ng.v3.TimeSeriesRatioH\000\022A\n\020distribution_"
+          + "cut\030\003 \001(\0132%.google.monitoring.v3.Distrib"
+          + "utionCutH\000B\010\n\006method\"h\n\017TimeSeriesRatio\022"
+          + "\033\n\023good_service_filter\030\004 \001(\t\022\032\n\022bad_serv"
+          + "ice_filter\030\005 \001(\t\022\034\n\024total_service_filter"
+          + "\030\006 \001(\t\"Z\n\017DistributionCut\022\033\n\023distributio"
+          + "n_filter\030\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.m"
+          + "onitoring.v3.Range\"\203\005\n\017WindowsBasedSli\022 "
+          + "\n\026good_bad_metric_filter\030\005 \001(\tH\000\022`\n\032good"
+          + "_total_ratio_threshold\030\002 \001(\0132:.google.mo"
+          + "nitoring.v3.WindowsBasedSli.PerformanceT"
+          + "hresholdH\000\022Q\n\024metric_mean_in_range\030\006 \001(\013"
+          + "21.google.monitoring.v3.WindowsBasedSli."
+          + "MetricRangeH\000\022P\n\023metric_sum_in_range\030\007 \001"
+          + "(\01321.google.monitoring.v3.WindowsBasedSl"
+          + "i.MetricRangeH\000\0220\n\rwindow_period\030\004 \001(\0132\031"
+          + ".google.protobuf.Duration\032\260\001\n\024Performanc"
+          + "eThreshold\022<\n\013performance\030\001 \001(\0132%.google"
+          + ".monitoring.v3.RequestBasedSliH\000\022?\n\025basi"
+          + "c_sli_performance\030\003 \001(\0132\036.google.monitor"
+          + "ing.v3.BasicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004"
+          + "type\032N\n\013MetricRange\022\023\n\013time_series\030\001 \001(\t"
+          + "\022*\n\005range\030\004 \001(\0132\033.google.monitoring.v3.R"
+          + "angeB\022\n\020window_criterionB\321\001\n\030com.google."
+          + "monitoring.v3B\026ServiceMonitoringProtoP\001Z"
+          + "Acloud.google.com/go/monitoring/apiv3/v2"
+          + "/monitoringpb;monitoringpb\252\002\032Google.Clou"
+          + "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin"
+          + "g\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pr"
+          + "oto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.type.CalendarPeriodProto.getDescriptor(),
+            });
+    internal_static_google_monitoring_v3_Service_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_Service_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "Custom",
+              "AppEngine",
+              "CloudEndpoints",
+              "ClusterIstio",
+              "MeshIstio",
+              "IstioCanonicalService",
+              "Telemetry",
+              "UserLabels",
+              "Identifier",
+            });
+    internal_static_google_monitoring_v3_Service_Custom_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_Custom_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_monitoring_v3_Service_AppEngine_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_AppEngine_descriptor,
+            new java.lang.String[] {
+              "ModuleId",
+            });
+    internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(2);
+    internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor,
+            new java.lang.String[] {
+              "Service",
+            });
+    internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(3);
+    internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor,
+            new java.lang.String[] {
+              "Location", "ClusterName", "ServiceNamespace", "ServiceName",
+            });
+    internal_static_google_monitoring_v3_Service_MeshIstio_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(4);
+    internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_MeshIstio_descriptor,
+            new java.lang.String[] {
+              "MeshUid", "ServiceNamespace", "ServiceName",
+            });
+    internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(5);
+    internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor,
+            new java.lang.String[] {
+              "MeshUid", "CanonicalServiceNamespace", "CanonicalService",
+            });
+    internal_static_google_monitoring_v3_Service_Telemetry_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(6);
+    internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_Telemetry_descriptor,
+            new java.lang.String[] {
+              "ResourceName",
+            });
+    internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor =
+        internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(7);
+    internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "ServiceLevelIndicator",
+              "Goal",
+              "RollingPeriod",
+              "CalendarPeriod",
+              "UserLabels",
+              "Period",
+            });
+    internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor =
+        internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor,
+            new java.lang.String[] {
+              "BasicSli", "RequestBased", "WindowsBased", "Type",
+            });
+    internal_static_google_monitoring_v3_BasicSli_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_BasicSli_descriptor,
+            new java.lang.String[] {
+              "Method", "Location", "Version", "Availability", "Latency", "SliCriteria",
+            });
+    internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor =
+        internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor =
+        internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor,
+            new java.lang.String[] {
+              "Threshold",
+            });
+    internal_static_google_monitoring_v3_Range_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_Range_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_Range_descriptor,
+            new java.lang.String[] {
+              "Min", "Max",
+            });
+    internal_static_google_monitoring_v3_RequestBasedSli_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_RequestBasedSli_descriptor,
+            new java.lang.String[] {
+              "GoodTotalRatio", "DistributionCut", "Method",
+            });
+    internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor,
+            new java.lang.String[] {
+              "GoodServiceFilter", "BadServiceFilter", "TotalServiceFilter",
+            });
+    internal_static_google_monitoring_v3_DistributionCut_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_DistributionCut_descriptor,
+            new java.lang.String[] {
+              "DistributionFilter", "Range",
+            });
+    internal_static_google_monitoring_v3_WindowsBasedSli_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_WindowsBasedSli_descriptor,
+            new java.lang.String[] {
+              "GoodBadMetricFilter",
+              "GoodTotalRatioThreshold",
+              "MetricMeanInRange",
+              "MetricSumInRange",
+              "WindowPeriod",
+              "WindowCriterion",
+            });
+    internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor =
+        internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor,
+            new java.lang.String[] {
+              "Performance", "BasicSliPerformance", "Threshold", "Type",
+            });
+    internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor =
+        internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor,
+            new java.lang.String[] {
+              "TimeSeries", "Range",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.type.CalendarPeriodProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
new file mode 100644
index 000000000000..4e36e6b1e833
--- /dev/null
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java
@@ -0,0 +1,323 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/service_service.proto
+
+package com.google.monitoring.v3;
+
+public final class ServiceMonitoringServiceProto {
+  private ServiceMonitoringServiceProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_CreateServiceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_GetServiceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListServicesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListServicesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n*google/monitoring/v3/service_service.p"
+          + "roto\022\024google.monitoring.v3\032\034google/api/a"
+          + "nnotations.proto\032\027google/api/client.prot"
+          + "o\032\037google/api/field_behavior.proto\032\031goog"
+          + "le/api/resource.proto\032\"google/monitoring"
+          + "/v3/service.proto\032\033google/protobuf/empty"
+          + ".proto\032 google/protobuf/field_mask.proto"
+          + "\"\234\001\n\024CreateServiceRequest\022:\n\006parent\030\001 \001("
+          + "\tB*\342A\001\002\372A#\022!monitoring.googleapis.com/Se"
+          + "rvice\022\022\n\nservice_id\030\003 \001(\t\0224\n\007service\030\002 \001"
+          + "(\0132\035.google.monitoring.v3.ServiceB\004\342A\001\002\""
+          + "M\n\021GetServiceRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002"
+          + "\372A#\n!monitoring.googleapis.com/Service\"\210"
+          + "\001\n\023ListServicesRequest\022:\n\006parent\030\001 \001(\tB*"
+          + "\342A\001\002\372A#\022!monitoring.googleapis.com/Servi"
+          + "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n"
+          + "\npage_token\030\004 \001(\t\"`\n\024ListServicesRespons"
+          + "e\022/\n\010services\030\001 \003(\0132\035.google.monitoring."
+          + "v3.Service\022\027\n\017next_page_token\030\002 \001(\t\"}\n\024U"
+          + "pdateServiceRequest\0224\n\007service\030\001 \001(\0132\035.g"
+          + "oogle.monitoring.v3.ServiceB\004\342A\001\002\022/\n\013upd"
+          + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa"
+          + "sk\"P\n\024DeleteServiceRequest\0228\n\004name\030\001 \001(\t"
+          + "B*\342A\001\002\372A#\n!monitoring.googleapis.com/Ser"
+          + "vice\"\330\001\n\"CreateServiceLevelObjectiveRequ"
+          + "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring"
+          + ".googleapis.com/Service\022\"\n\032service_level"
+          + "_objective_id\030\003 \001(\t\022R\n\027service_level_obj"
+          + "ective\030\002 \001(\0132+.google.monitoring.v3.Serv"
+          + "iceLevelObjectiveB\004\342A\001\002\"\251\001\n\037GetServiceLe"
+          + "velObjectiveRequest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372"
+          + "A1\n/monitoring.googleapis.com/ServiceLev"
+          + "elObjective\022>\n\004view\030\002 \001(\01620.google.monit"
+          + "oring.v3.ServiceLevelObjective.View\"\326\001\n!"
+          + "ListServiceLevelObjectivesRequest\022:\n\006par"
+          + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring.googleapi"
+          + "s.com/Service\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si"
+          + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022>\n\004view\030\005 \001"
+          + "(\01620.google.monitoring.v3.ServiceLevelOb"
+          + "jective.View\"\214\001\n\"ListServiceLevelObjecti"
+          + "vesResponse\022M\n\030service_level_objectives\030"
+          + "\001 \003(\0132+.google.monitoring.v3.ServiceLeve"
+          + "lObjective\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\""
+          + "UpdateServiceLevelObjectiveRequest\022R\n\027se"
+          + "rvice_level_objective\030\001 \001(\0132+.google.mon"
+          + "itoring.v3.ServiceLevelObjectiveB\004\342A\001\002\022/"
+          + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi"
+          + "eldMask\"l\n\"DeleteServiceLevelObjectiveRe"
+          + "quest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/monitoring"
+          + ".googleapis.com/ServiceLevelObjective2\352\017"
+          + "\n\030ServiceMonitoringService\022\227\001\n\rCreateSer"
+          + "vice\022*.google.monitoring.v3.CreateServic"
+          + "eRequest\032\035.google.monitoring.v3.Service\""
+          + ";\332A\016parent,service\202\323\344\223\002$\"\031/v3/{parent=*/"
+          + "*}/services:\007service\022~\n\nGetService\022\'.goo"
+          + "gle.monitoring.v3.GetServiceRequest\032\035.go"
+          + "ogle.monitoring.v3.Service\"(\332A\004name\202\323\344\223\002"
+          + "\033\022\031/v3/{name=*/*/services/*}\022\221\001\n\014ListSer"
+          + "vices\022).google.monitoring.v3.ListService"
+          + "sRequest\032*.google.monitoring.v3.ListServ"
+          + "icesResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v3/{pare"
+          + "nt=*/*}/services\022\230\001\n\rUpdateService\022*.goo"
+          + "gle.monitoring.v3.UpdateServiceRequest\032\035"
+          + ".google.monitoring.v3.Service\"<\332A\007servic"
+          + "e\202\323\344\223\002,2!/v3/{service.name=*/*/services/"
+          + "*}:\007service\022}\n\rDeleteService\022*.google.mo"
+          + "nitoring.v3.DeleteServiceRequest\032\026.googl"
+          + "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v3/{na"
+          + "me=*/*/services/*}\022\372\001\n\033CreateServiceLeve"
+          + "lObjective\0228.google.monitoring.v3.Create"
+          + "ServiceLevelObjectiveRequest\032+.google.mo"
+          + "nitoring.v3.ServiceLevelObjective\"t\332A\036pa"
+          + "rent,service_level_objective\202\323\344\223\002M\"2/v3/"
+          + "{parent=*/*/services/*}/serviceLevelObje"
+          + "ctives:\027service_level_objective\022\301\001\n\030GetS"
+          + "erviceLevelObjective\0225.google.monitoring"
+          + ".v3.GetServiceLevelObjectiveRequest\032+.go"
+          + "ogle.monitoring.v3.ServiceLevelObjective"
+          + "\"A\332A\004name\202\323\344\223\0024\0222/v3/{name=*/*/services/"
+          + "*/serviceLevelObjectives/*}\022\324\001\n\032ListServ"
+          + "iceLevelObjectives\0227.google.monitoring.v"
+          + "3.ListServiceLevelObjectivesRequest\0328.go"
+          + "ogle.monitoring.v3.ListServiceLevelObjec"
+          + "tivesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v3/{par"
+          + "ent=*/*/services/*}/serviceLevelObjectiv"
+          + "es\022\214\002\n\033UpdateServiceLevelObjective\0228.goo"
+          + "gle.monitoring.v3.UpdateServiceLevelObje"
+          + "ctiveRequest\032+.google.monitoring.v3.Serv"
+          + "iceLevelObjective\"\205\001\332A\027service_level_obj"
+          + "ective\202\323\344\223\002e2J/v3/{service_level_objecti"
+          + "ve.name=*/*/services/*/serviceLevelObjec"
+          + "tives/*}:\027service_level_objective\022\262\001\n\033De"
+          + "leteServiceLevelObjective\0228.google.monit"
+          + "oring.v3.DeleteServiceLevelObjectiveRequ"
+          + "est\032\026.google.protobuf.Empty\"A\332A\004name\202\323\344\223"
+          + "\0024*2/v3/{name=*/*/services/*/serviceLeve"
+          + "lObjectives/*}\032\251\001\312A\031monitoring.googleapi"
+          + "s.com\322A\211\001https://www.googleapis.com/auth"
+          + "/cloud-platform,https://www.googleapis.c"
+          + "om/auth/monitoring,https://www.googleapi"
+          + "s.com/auth/monitoring.readB\330\001\n\030com.googl"
+          + "e.monitoring.v3B\035ServiceMonitoringServic"
+          + "eProtoP\001ZAcloud.google.com/go/monitoring"
+          + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go"
+          + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\"
+          + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin"
+          + "g::V3b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+            });
+    internal_static_google_monitoring_v3_CreateServiceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_CreateServiceRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "ServiceId", "Service",
+            });
+    internal_static_google_monitoring_v3_GetServiceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_GetServiceRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_monitoring_v3_ListServicesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListServicesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_monitoring_v3_ListServicesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListServicesResponse_descriptor,
+            new java.lang.String[] {
+              "Services", "NextPageToken",
+            });
+    internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor,
+            new java.lang.String[] {
+              "Service", "UpdateMask",
+            });
+    internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "ServiceLevelObjectiveId", "ServiceLevelObjective",
+            });
+    internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "View",
+            });
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken", "View",
+            });
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor,
+            new java.lang.String[] {
+              "ServiceLevelObjectives", "NextPageToken",
+            });
+    internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor,
+            new java.lang.String[] {
+              "ServiceLevelObjective", "UpdateMask",
+            });
+    internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
similarity index 86%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
index e0f1329d1dad..c2bb338bd1f3 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface ServiceOrBuilder extends
+public interface ServiceOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Service)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Resource name for this Service. The format is:
    *
@@ -15,10 +33,13 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Resource name for this Service. The format is:
    *
@@ -26,50 +47,63 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Name used for UI elements listing this Service.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return Whether the custom field is set. */ boolean hasCustom(); /** + * + * *
    * Custom service type.
    * 
* * .google.monitoring.v3.Service.Custom custom = 6; + * * @return The custom. */ com.google.monitoring.v3.Service.Custom getCustom(); /** + * + * *
    * Custom service type.
    * 
@@ -79,24 +113,32 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.CustomOrBuilder getCustomOrBuilder(); /** + * + * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return Whether the appEngine field is set. */ boolean hasAppEngine(); /** + * + * *
    * Type used for App Engine services.
    * 
* * .google.monitoring.v3.Service.AppEngine app_engine = 7; + * * @return The appEngine. */ com.google.monitoring.v3.Service.AppEngine getAppEngine(); /** + * + * *
    * Type used for App Engine services.
    * 
@@ -106,24 +148,32 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.AppEngineOrBuilder getAppEngineOrBuilder(); /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return Whether the cloudEndpoints field is set. */ boolean hasCloudEndpoints(); /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
* * .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8; + * * @return The cloudEndpoints. */ com.google.monitoring.v3.Service.CloudEndpoints getCloudEndpoints(); /** + * + * *
    * Type used for Cloud Endpoints services.
    * 
@@ -133,24 +183,32 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder(); /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return Whether the clusterIstio field is set. */ boolean hasClusterIstio(); /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
* * .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9; + * * @return The clusterIstio. */ com.google.monitoring.v3.Service.ClusterIstio getClusterIstio(); /** + * + * *
    * Type used for Istio services that live in a Kubernetes cluster.
    * 
@@ -160,24 +218,32 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.ClusterIstioOrBuilder getClusterIstioOrBuilder(); /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return Whether the meshIstio field is set. */ boolean hasMeshIstio(); /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
* * .google.monitoring.v3.Service.MeshIstio mesh_istio = 10; + * * @return The meshIstio. */ com.google.monitoring.v3.Service.MeshIstio getMeshIstio(); /** + * + * *
    * Type used for Istio services scoped to an Istio mesh.
    * 
@@ -187,6 +253,8 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.MeshIstioOrBuilder getMeshIstioOrBuilder(); /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -194,10 +262,13 @@ public interface ServiceOrBuilder extends
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * * @return Whether the istioCanonicalService field is set. */ boolean hasIstioCanonicalService(); /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -205,10 +276,13 @@ public interface ServiceOrBuilder extends
    * 
* * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11; + * * @return The istioCanonicalService. */ com.google.monitoring.v3.Service.IstioCanonicalService getIstioCanonicalService(); /** + * + * *
    * Type used for canonical services scoped to an Istio mesh.
    * Metrics for Istio are
@@ -217,27 +291,36 @@ public interface ServiceOrBuilder extends
    *
    * .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    */
-  com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder();
+  com.google.monitoring.v3.Service.IstioCanonicalServiceOrBuilder
+      getIstioCanonicalServiceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return Whether the telemetry field is set. */ boolean hasTelemetry(); /** + * + * *
    * Configuration for how to query telemetry on a Service.
    * 
* * .google.monitoring.v3.Service.Telemetry telemetry = 13; + * * @return The telemetry. */ com.google.monitoring.v3.Service.Telemetry getTelemetry(); /** + * + * *
    * Configuration for how to query telemetry on a Service.
    * 
@@ -247,6 +330,8 @@ public interface ServiceOrBuilder extends com.google.monitoring.v3.Service.TelemetryOrBuilder getTelemetryOrBuilder(); /** + * + * *
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -260,6 +345,8 @@ public interface ServiceOrBuilder extends
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -271,15 +358,13 @@ public interface ServiceOrBuilder extends
    *
    * map<string, string> user_labels = 14;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -291,9 +376,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 14;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -306,11 +392,13 @@ boolean containsUserLabels(
    * map<string, string> user_labels = 14;
    */
   /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels which have been used to annotate the service. Label keys must start
    * with a letter. Label keys and values may contain lowercase letters,
@@ -322,8 +410,7 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 14;
    */
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   com.google.monitoring.v3.Service.IdentifierCase getIdentifierCase();
 }
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
similarity index 74%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
index c7ed778649f4..ac9fd023b6c8 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceTier.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The tier of service for a Workspace. Please see the
  * [service tiers
@@ -13,9 +30,11 @@
  *
  * Protobuf enum {@code google.monitoring.v3.ServiceTier}
  */
-@java.lang.Deprecated public enum ServiceTier
-    implements com.google.protobuf.ProtocolMessageEnum {
+@java.lang.Deprecated
+public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * An invalid sentinel value, used to indicate that a tier has not
    * been provided explicitly.
@@ -25,6 +44,8 @@
    */
   SERVICE_TIER_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * The Stackdriver Basic tier, a free tier of service that provides basic
    * features, a moderate allotment of logs, and access to built-in metrics.
@@ -37,6 +58,8 @@
    */
   SERVICE_TIER_BASIC(1),
   /**
+   *
+   *
    * 
    * The Stackdriver Premium tier, a higher, more expensive tier of service
    * that provides access to all Stackdriver features, lets you use Stackdriver
@@ -52,6 +75,8 @@
   ;
 
   /**
+   *
+   *
    * 
    * An invalid sentinel value, used to indicate that a tier has not
    * been provided explicitly.
@@ -61,6 +86,8 @@
    */
   public static final int SERVICE_TIER_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * The Stackdriver Basic tier, a free tier of service that provides basic
    * features, a moderate allotment of logs, and access to built-in metrics.
@@ -73,6 +100,8 @@
    */
   public static final int SERVICE_TIER_BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * The Stackdriver Premium tier, a higher, more expensive tier of service
    * that provides access to all Stackdriver features, lets you use Stackdriver
@@ -85,7 +114,6 @@
    */
   public static final int SERVICE_TIER_PREMIUM_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -110,49 +138,49 @@ public static ServiceTier valueOf(int value) {
    */
   public static ServiceTier forNumber(int value) {
     switch (value) {
-      case 0: return SERVICE_TIER_UNSPECIFIED;
-      case 1: return SERVICE_TIER_BASIC;
-      case 2: return SERVICE_TIER_PREMIUM;
-      default: return null;
+      case 0:
+        return SERVICE_TIER_UNSPECIFIED;
+      case 1:
+        return SERVICE_TIER_BASIC;
+      case 2:
+        return SERVICE_TIER_PREMIUM;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      ServiceTier> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ServiceTier findValueByNumber(int number) {
-            return ServiceTier.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public ServiceTier findValueByNumber(int number) {
+          return ServiceTier.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.monitoring.v3.CommonProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final ServiceTier[] VALUES = values();
 
-  public static ServiceTier valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ServiceTier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -168,4 +196,3 @@ private ServiceTier(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.monitoring.v3.ServiceTier)
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
similarity index 71%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
index 001c8929739b..dccf5d1c32ae 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Snooze.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/snooze.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * A `Snooze` will prevent any alerts from being opened, and close any that
  * are already open. The `Snooze` will work on alerts that match the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.Snooze}
  */
-public final class Snooze extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Snooze extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.Snooze)
     SnoozeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Snooze.newBuilder() to construct.
   private Snooze(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Snooze() {
     name_ = "";
     displayName_ = "";
@@ -29,29 +47,32 @@ private Snooze() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Snooze();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeProto
+        .internal_static_google_monitoring_v3_Snooze_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeProto
+        .internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.monitoring.v3.Snooze.class, com.google.monitoring.v3.Snooze.Builder.class);
   }
 
-  public interface CriteriaOrBuilder extends
+  public interface CriteriaOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Snooze.Criteria)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -63,11 +84,13 @@ public interface CriteriaOrBuilder extends
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the policies. */ - java.util.List - getPoliciesList(); + java.util.List getPoliciesList(); /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -79,10 +102,13 @@ public interface CriteriaOrBuilder extends
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of policies. */ int getPoliciesCount(); /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -94,11 +120,14 @@ public interface CriteriaOrBuilder extends
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The policies at the given index. */ java.lang.String getPolicies(int index); /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -110,13 +139,15 @@ public interface CriteriaOrBuilder extends
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - com.google.protobuf.ByteString - getPoliciesBytes(int index); + com.google.protobuf.ByteString getPoliciesBytes(int index); } /** + * + * *
    * Criteria specific to the `AlertPolicy`s that this `Snooze` applies to. The
    * `Snooze` will suppress alerts that come from one of the `AlertPolicy`s
@@ -125,45 +156,49 @@ public interface CriteriaOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.Snooze.Criteria}
    */
-  public static final class Criteria extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Criteria extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.Snooze.Criteria)
       CriteriaOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Criteria.newBuilder() to construct.
     private Criteria(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Criteria() {
-      policies_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      policies_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Criteria();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeProto
+          .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeProto
+          .internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.Snooze.Criteria.class, com.google.monitoring.v3.Snooze.Criteria.Builder.class);
+              com.google.monitoring.v3.Snooze.Criteria.class,
+              com.google.monitoring.v3.Snooze.Criteria.Builder.class);
     }
 
     public static final int POLICIES_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList policies_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
+     *
+     *
      * 
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -175,13 +210,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the policies. */ - public com.google.protobuf.ProtocolStringList - getPoliciesList() { + public com.google.protobuf.ProtocolStringList getPoliciesList() { return policies_; } /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -193,12 +230,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of policies. */ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -210,6 +250,7 @@ public int getPoliciesCount() {
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The policies at the given index. */ @@ -217,6 +258,8 @@ public java.lang.String getPolicies(int index) { return policies_.get(index); } /** + * + * *
      * The specific `AlertPolicy` names for the alert that should be snoozed.
      * The format is:
@@ -228,15 +271,16 @@ public java.lang.String getPolicies(int index) {
      * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - public com.google.protobuf.ByteString - getPoliciesBytes(int index) { + public com.google.protobuf.ByteString getPoliciesBytes(int index) { return policies_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,8 +292,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < policies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policies_.getRaw(i)); } @@ -278,15 +321,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Snooze.Criteria)) { return super.equals(obj); } - com.google.monitoring.v3.Snooze.Criteria other = (com.google.monitoring.v3.Snooze.Criteria) obj; + com.google.monitoring.v3.Snooze.Criteria other = + (com.google.monitoring.v3.Snooze.Criteria) obj; - if (!getPoliciesList() - .equals(other.getPoliciesList())) return false; + if (!getPoliciesList().equals(other.getPoliciesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,90 +350,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Snooze.Criteria parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Snooze.Criteria parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Snooze.Criteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Snooze.Criteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -400,6 +447,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Criteria specific to the `AlertPolicy`s that this `Snooze` applies to. The
      * `Snooze` will suppress alerts that come from one of the `AlertPolicy`s
@@ -408,46 +457,45 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.Snooze.Criteria}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Snooze.Criteria)
         com.google.monitoring.v3.Snooze.CriteriaOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.SnoozeProto
+            .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
+        return com.google.monitoring.v3.SnoozeProto
+            .internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.Snooze.Criteria.class, com.google.monitoring.v3.Snooze.Criteria.Builder.class);
+                com.google.monitoring.v3.Snooze.Criteria.class,
+                com.google.monitoring.v3.Snooze.Criteria.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.Snooze.Criteria.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
-        policies_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        policies_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.SnoozeProto
+            .internal_static_google_monitoring_v3_Snooze_Criteria_descriptor;
       }
 
       @java.lang.Override
@@ -466,8 +514,11 @@ public com.google.monitoring.v3.Snooze.Criteria build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.Snooze.Criteria buildPartial() {
-        com.google.monitoring.v3.Snooze.Criteria result = new com.google.monitoring.v3.Snooze.Criteria(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.Snooze.Criteria result =
+            new com.google.monitoring.v3.Snooze.Criteria(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -484,38 +535,41 @@ private void buildPartial0(com.google.monitoring.v3.Snooze.Criteria result) {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.Snooze.Criteria) {
-          return mergeFrom((com.google.monitoring.v3.Snooze.Criteria)other);
+          return mergeFrom((com.google.monitoring.v3.Snooze.Criteria) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -560,18 +614,20 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePoliciesIsMutable();
-                policies_.add(s);
-                break;
-              } // case 10
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensurePoliciesIsMutable();
+                  policies_.add(s);
+                  break;
+                } // case 10
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,10 +637,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList policies_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
+
       private void ensurePoliciesIsMutable() {
         if (!policies_.isModifiable()) {
           policies_ = new com.google.protobuf.LazyStringArrayList(policies_);
@@ -592,6 +650,8 @@ private void ensurePoliciesIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
+       *
+       *
        * 
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -603,14 +663,16 @@ private void ensurePoliciesIsMutable() {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the policies. */ - public com.google.protobuf.ProtocolStringList - getPoliciesList() { + public com.google.protobuf.ProtocolStringList getPoliciesList() { policies_.makeImmutable(); return policies_; } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -622,12 +684,15 @@ private void ensurePoliciesIsMutable() {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of policies. */ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -639,6 +704,7 @@ public int getPoliciesCount() {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The policies at the given index. */ @@ -646,6 +712,8 @@ public java.lang.String getPolicies(int index) { return policies_.get(index); } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -657,14 +725,16 @@ public java.lang.String getPolicies(int index) {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the policies at the given index. */ - public com.google.protobuf.ByteString - getPoliciesBytes(int index) { + public com.google.protobuf.ByteString getPoliciesBytes(int index) { return policies_.getByteString(index); } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -676,13 +746,15 @@ public java.lang.String getPolicies(int index) {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The policies to set. * @return This builder for chaining. */ - public Builder setPolicies( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicies(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePoliciesIsMutable(); policies_.set(index, value); bitField0_ |= 0x00000001; @@ -690,6 +762,8 @@ public Builder setPolicies( return this; } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -701,12 +775,14 @@ public Builder setPolicies(
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param value The policies to add. * @return This builder for chaining. */ - public Builder addPolicies( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPolicies(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePoliciesIsMutable(); policies_.add(value); bitField0_ |= 0x00000001; @@ -714,6 +790,8 @@ public Builder addPolicies( return this; } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -725,19 +803,20 @@ public Builder addPolicies(
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param values The policies to add. * @return This builder for chaining. */ - public Builder addAllPolicies( - java.lang.Iterable values) { + public Builder addAllPolicies(java.lang.Iterable values) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -749,16 +828,19 @@ public Builder addAllPolicies(
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearPolicies() { - policies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + policies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The specific `AlertPolicy` names for the alert that should be snoozed.
        * The format is:
@@ -770,12 +852,14 @@ public Builder clearPolicies() {
        * 
* * repeated string policies = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the policies to add. * @return This builder for chaining. */ - public Builder addPoliciesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPoliciesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePoliciesIsMutable(); policies_.add(value); @@ -783,6 +867,7 @@ public Builder addPoliciesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -795,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Snooze.Criteria) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Snooze.Criteria) private static final com.google.monitoring.v3.Snooze.Criteria DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Snooze.Criteria(); } @@ -809,27 +894,28 @@ public static com.google.monitoring.v3.Snooze.Criteria getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Criteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Criteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,13 +930,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Snooze.Criteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -860,6 +948,7 @@ public com.google.monitoring.v3.Snooze.Criteria getDefaultInstanceForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -868,14 +957,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -885,16 +975,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -905,12 +994,17 @@ public java.lang.String getName() { public static final int CRITERIA_FIELD_NUMBER = 3; private com.google.monitoring.v3.Snooze.Criteria criteria_; /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the criteria field is set. */ @java.lang.Override @@ -918,34 +1012,49 @@ public boolean hasCriteria() { return criteria_ != null; } /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The criteria. */ @java.lang.Override public com.google.monitoring.v3.Snooze.Criteria getCriteria() { - return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; + return criteria_ == null + ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() + : criteria_; } /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() { - return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; + return criteria_ == null + ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() + : criteria_; } public static final int INTERVAL_FIELD_NUMBER = 4; private com.google.monitoring.v3.TimeInterval interval_; /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -954,7 +1063,10 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ @java.lang.Override @@ -962,6 +1074,8 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -970,14 +1084,21 @@ public boolean hasInterval() {
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getInterval() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -986,23 +1107,31 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -1011,30 +1140,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1043,6 +1172,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1054,8 +1184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1081,12 +1210,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (criteria_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCriteria()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCriteria()); } if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -1099,27 +1226,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.Snooze)) { return super.equals(obj); } com.google.monitoring.v3.Snooze other = (com.google.monitoring.v3.Snooze) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCriteria() != other.hasCriteria()) return false; if (hasCriteria()) { - if (!getCriteria() - .equals(other.getCriteria())) return false; + if (!getCriteria().equals(other.getCriteria())) return false; } if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1148,99 +1271,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.Snooze parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.Snooze parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.Snooze parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.Snooze parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Snooze parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.Snooze parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.Snooze parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Snooze parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.Snooze parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.Snooze parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.Snooze parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.Snooze parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.Snooze prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `Snooze` will prevent any alerts from being opened, and close any that
    * are already open. The `Snooze` will work on alerts that match the
@@ -1250,33 +1377,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.Snooze}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.Snooze)
       com.google.monitoring.v3.SnoozeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeProto
+          .internal_static_google_monitoring_v3_Snooze_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeProto
+          .internal_static_google_monitoring_v3_Snooze_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.monitoring.v3.Snooze.class, com.google.monitoring.v3.Snooze.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.Snooze.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1297,9 +1422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeProto.internal_static_google_monitoring_v3_Snooze_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeProto
+          .internal_static_google_monitoring_v3_Snooze_descriptor;
     }
 
     @java.lang.Override
@@ -1319,7 +1444,9 @@ public com.google.monitoring.v3.Snooze build() {
     @java.lang.Override
     public com.google.monitoring.v3.Snooze buildPartial() {
       com.google.monitoring.v3.Snooze result = new com.google.monitoring.v3.Snooze(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1330,14 +1457,10 @@ private void buildPartial0(com.google.monitoring.v3.Snooze result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.criteria_ = criteriaBuilder_ == null
-            ? criteria_
-            : criteriaBuilder_.build();
+        result.criteria_ = criteriaBuilder_ == null ? criteria_ : criteriaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.interval_ = intervalBuilder_ == null
-            ? interval_
-            : intervalBuilder_.build();
+        result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.displayName_ = displayName_;
@@ -1348,38 +1471,39 @@ private void buildPartial0(com.google.monitoring.v3.Snooze result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.Snooze) {
-        return mergeFrom((com.google.monitoring.v3.Snooze)other);
+        return mergeFrom((com.google.monitoring.v3.Snooze) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1430,36 +1554,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              input.readMessage(
-                  getCriteriaFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getIntervalFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                input.readMessage(getCriteriaFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1469,10 +1594,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1482,13 +1610,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1497,6 +1625,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1506,15 +1636,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1522,6 +1651,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1531,18 +1662,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1552,6 +1687,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1561,6 +1697,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the `Snooze`. The format is:
      *
@@ -1570,12 +1708,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1585,42 +1725,61 @@ public Builder setNameBytes( private com.google.monitoring.v3.Snooze.Criteria criteria_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder> criteriaBuilder_; + com.google.monitoring.v3.Snooze.Criteria, + com.google.monitoring.v3.Snooze.Criteria.Builder, + com.google.monitoring.v3.Snooze.CriteriaOrBuilder> + criteriaBuilder_; /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The criteria. */ public com.google.monitoring.v3.Snooze.Criteria getCriteria() { if (criteriaBuilder_ == null) { - return criteria_ == null ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; + return criteria_ == null + ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() + : criteria_; } else { return criteriaBuilder_.getMessage(); } } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria value) { if (criteriaBuilder_ == null) { @@ -1636,15 +1795,18 @@ public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria value) { return this; } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCriteria( - com.google.monitoring.v3.Snooze.Criteria.Builder builderForValue) { + public Builder setCriteria(com.google.monitoring.v3.Snooze.Criteria.Builder builderForValue) { if (criteriaBuilder_ == null) { criteria_ = builderForValue.build(); } else { @@ -1655,18 +1817,22 @@ public Builder setCriteria( return this; } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCriteria(com.google.monitoring.v3.Snooze.Criteria value) { if (criteriaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - criteria_ != null && - criteria_ != com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && criteria_ != null + && criteria_ != com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance()) { getCriteriaBuilder().mergeFrom(value); } else { criteria_ = value; @@ -1679,12 +1845,16 @@ public Builder mergeCriteria(com.google.monitoring.v3.Snooze.Criteria value) { return this; } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCriteria() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1697,12 +1867,16 @@ public Builder clearCriteria() { return this; } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Snooze.Criteria.Builder getCriteriaBuilder() { bitField0_ |= 0x00000002; @@ -1710,38 +1884,50 @@ public com.google.monitoring.v3.Snooze.Criteria.Builder getCriteriaBuilder() { return getCriteriaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() { if (criteriaBuilder_ != null) { return criteriaBuilder_.getMessageOrBuilder(); } else { - return criteria_ == null ? - com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() : criteria_; + return criteria_ == null + ? com.google.monitoring.v3.Snooze.Criteria.getDefaultInstance() + : criteria_; } } /** + * + * *
      * Required. This defines the criteria for applying the `Snooze`. See
      * `Criteria` for more information.
      * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder> + com.google.monitoring.v3.Snooze.Criteria, + com.google.monitoring.v3.Snooze.Criteria.Builder, + com.google.monitoring.v3.Snooze.CriteriaOrBuilder> getCriteriaFieldBuilder() { if (criteriaBuilder_ == null) { - criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze.Criteria, com.google.monitoring.v3.Snooze.Criteria.Builder, com.google.monitoring.v3.Snooze.CriteriaOrBuilder>( - getCriteria(), - getParentForChildren(), - isClean()); + criteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze.Criteria, + com.google.monitoring.v3.Snooze.Criteria.Builder, + com.google.monitoring.v3.Snooze.CriteriaOrBuilder>( + getCriteria(), getParentForChildren(), isClean()); criteria_ = null; } return criteriaBuilder_; @@ -1749,8 +1935,13 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder() private com.google.monitoring.v3.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1759,13 +1950,18 @@ public com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1774,17 +1970,24 @@ public boolean hasInterval() {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ public com.google.monitoring.v3.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1793,7 +1996,9 @@ public com.google.monitoring.v3.TimeInterval getInterval() {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { @@ -1809,6 +2014,8 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1817,10 +2024,11 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInterval( - com.google.monitoring.v3.TimeInterval.Builder builderForValue) { + public Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); } else { @@ -1831,6 +2039,8 @@ public Builder setInterval( return this; } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1839,13 +2049,15 @@ public Builder setInterval(
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { if (intervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - interval_ != null && - interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && interval_ != null + && interval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getIntervalBuilder().mergeFrom(value); } else { interval_ = value; @@ -1858,6 +2070,8 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1866,7 +2080,9 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInterval() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1879,6 +2095,8 @@ public Builder clearInterval() { return this; } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1887,7 +2105,9 @@ public Builder clearInterval() {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { bitField0_ |= 0x00000004; @@ -1895,6 +2115,8 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { return getIntervalFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1903,17 +2125,22 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { - return interval_ == null ? - com.google.monitoring.v3.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : interval_; } } /** + * + * *
      * Required. The `Snooze` will be active from `interval.start_time` through
      * `interval.end_time`.
@@ -1922,17 +2149,22 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() {
      * the UI.
      * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { - intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( - getInterval(), - getParentForChildren(), - isClean()); + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; @@ -1940,19 +2172,21 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1961,21 +2195,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1983,30 +2218,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2016,27 +2258,31 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. A display name for the `Snooze`. This can be, at most, 512
      * unicode characters.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2046,12 +2292,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.Snooze) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.Snooze) private static final com.google.monitoring.v3.Snooze DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.Snooze(); } @@ -2060,27 +2306,27 @@ public static com.google.monitoring.v3.Snooze getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snooze parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snooze parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2095,6 +2341,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.Snooze getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java similarity index 67% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java index 0206ed5e4adc..e05acd637acd 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze.proto package com.google.monitoring.v3; -public interface SnoozeOrBuilder extends +public interface SnoozeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.Snooze) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -17,10 +35,13 @@ public interface SnoozeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the `Snooze`. The format is:
    *
@@ -30,42 +51,58 @@ public interface SnoozeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the criteria field is set. */ boolean hasCriteria(); /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The criteria. */ com.google.monitoring.v3.Snooze.Criteria getCriteria(); /** + * + * *
    * Required. This defines the criteria for applying the `Snooze`. See
    * `Criteria` for more information.
    * 
* - * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.Snooze.CriteriaOrBuilder getCriteriaOrBuilder(); /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -74,11 +111,16 @@ public interface SnoozeOrBuilder extends
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -87,11 +129,16 @@ public interface SnoozeOrBuilder extends
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The interval. */ com.google.monitoring.v3.TimeInterval getInterval(); /** + * + * *
    * Required. The `Snooze` will be active from `interval.start_time` through
    * `interval.end_time`.
@@ -100,29 +147,36 @@ public interface SnoozeOrBuilder extends
    * the UI.
    * 
* - * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder(); /** + * + * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. A display name for the `Snooze`. This can be, at most, 512
    * unicode characters.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java new file mode 100644 index 000000000000..ce024ab23d7a --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze.proto + +package com.google.monitoring.v3; + +public final class SnoozeProto { + private SnoozeProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Snooze_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Snooze_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n!google/monitoring/v3/snooze.proto\022\024goo" + + "gle.monitoring.v3\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032!g" + + "oogle/monitoring/v3/common.proto\"\311\002\n\006Sno" + + "oze\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022=\n\010criteria\030\003 \001(" + + "\0132%.google.monitoring.v3.Snooze.Criteria" + + "B\004\342A\001\002\022:\n\010interval\030\004 \001(\0132\".google.monito" + + "ring.v3.TimeIntervalB\004\342A\001\002\022\032\n\014display_na" + + "me\030\005 \001(\tB\004\342A\001\002\032H\n\010Criteria\022<\n\010policies\030\001" + + " \003(\tB*\372A\'\n%monitoring.googleapis.com/Ale" + + "rtPolicy:J\352AG\n monitoring.googleapis.com" + + "/Snooze\022#projects/{project}/snoozes/{sno" + + "oze}B\306\001\n\030com.google.monitoring.v3B\013Snooz" + + "eProtoP\001ZAcloud.google.com/go/monitoring" + + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + + "g::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.CommonProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_Snooze_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_Snooze_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Snooze_descriptor, + new java.lang.String[] { + "Name", "Criteria", "Interval", "DisplayName", + }); + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor = + internal_static_google_monitoring_v3_Snooze_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_Snooze_Criteria_descriptor, + new java.lang.String[] { + "Policies", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java new file mode 100644 index 000000000000..bc29703bbd4f --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java @@ -0,0 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/snooze_service.proto + +package com.google.monitoring.v3; + +public final class SnoozeServiceProto { + private SnoozeServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/snooze_service.pr" + + "oto\022\024google.monitoring.v3\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032!google/monitoring/" + + "v3/snooze.proto\032 google/protobuf/field_m" + + "ask.proto\"\204\001\n\023CreateSnoozeRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\342A\001\002\372A\"\022 monitoring.googleapi" + + "s.com/Snooze\0222\n\006snooze\030\002 \001(\0132\034.google.mo" + + "nitoring.v3.SnoozeB\004\342A\001\002\"\230\001\n\022ListSnoozes" + + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 monito" + + "ring.googleapis.com/Snooze\022\024\n\006filter\030\002 \001" + + "(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npag" + + "e_token\030\005 \001(\tB\004\342A\001\001\"]\n\023ListSnoozesRespon" + + "se\022-\n\007snoozes\030\001 \003(\0132\034.google.monitoring." + + "v3.Snooze\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020Ge" + + "tSnoozeRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n m" + + "onitoring.googleapis.com/Snooze\"\200\001\n\023Upda" + + "teSnoozeRequest\0222\n\006snooze\030\001 \001(\0132\034.google" + + ".monitoring.v3.SnoozeB\004\342A\001\002\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\0022\230\006\n\rSnoozeService\022\230\001\n\014CreateSnooze\022)." + + "google.monitoring.v3.CreateSnoozeRequest" + + "\032\034.google.monitoring.v3.Snooze\"?\332A\rparen" + + "t,snooze\202\323\344\223\002)\"\037/v3/{parent=projects/*}/" + + "snoozes:\006snooze\022\224\001\n\013ListSnoozes\022(.google" + + ".monitoring.v3.ListSnoozesRequest\032).goog" + + "le.monitoring.v3.ListSnoozesResponse\"0\332A" + + "\006parent\202\323\344\223\002!\022\037/v3/{parent=projects/*}/s" + + "noozes\022\201\001\n\tGetSnooze\022&.google.monitoring" + + ".v3.GetSnoozeRequest\032\034.google.monitoring" + + ".v3.Snooze\".\332A\004name\202\323\344\223\002!\022\037/v3/{name=pro" + + "jects/*/snoozes/*}\022\244\001\n\014UpdateSnooze\022).go" + + "ogle.monitoring.v3.UpdateSnoozeRequest\032\034" + + ".google.monitoring.v3.Snooze\"K\332A\022snooze," + + "update_mask\202\323\344\223\00202&/v3/{snooze.name=proj" + + "ects/*/snoozes/*}:\006snooze\032\251\001\312A\031monitorin" + + "g.googleapis.com\322A\211\001https://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/monitoring,https://ww" + + "w.googleapis.com/auth/monitoring.readB\315\001" + + "\n\030com.google.monitoring.v3B\022SnoozeServic" + + "eProtoP\001ZAcloud.google.com/go/monitoring" + + "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + + "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + + "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + + "g::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.monitoring.v3.SnoozeProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor, + new java.lang.String[] { + "Parent", "Snooze", + }); + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor, + new java.lang.String[] { + "Snoozes", "NextPageToken", + }); + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor, + new java.lang.String[] { + "Snooze", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.monitoring.v3.SnoozeProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java similarity index 69% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java index 9bbd078ae26f..15212ded0256 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/span_context.proto package com.google.monitoring.v3; /** + * + * *
  * The context of a span. This is attached to an
  * [Exemplar][google.api.Distribution.Exemplar]
@@ -16,43 +33,48 @@
  *
  * Protobuf type {@code google.monitoring.v3.SpanContext}
  */
-public final class SpanContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpanContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.SpanContext)
     SpanContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpanContext.newBuilder() to construct.
   private SpanContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpanContext() {
     spanName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpanContext();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SpanContextProto
+        .internal_static_google_monitoring_v3_SpanContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
+    return com.google.monitoring.v3.SpanContextProto
+        .internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class);
+            com.google.monitoring.v3.SpanContext.class,
+            com.google.monitoring.v3.SpanContext.Builder.class);
   }
 
   public static final int SPAN_NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object spanName_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the span. The format is:
    *
@@ -66,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string span_name = 1; + * * @return The spanName. */ @java.lang.Override @@ -74,14 +97,15 @@ public java.lang.String getSpanName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanName_ = s; return s; } } /** + * + * *
    * The resource name of the span. The format is:
    *
@@ -95,16 +119,15 @@ public java.lang.String getSpanName() {
    * 
* * string span_name = 1; + * * @return The bytes for spanName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpanNameBytes() { + public com.google.protobuf.ByteString getSpanNameBytes() { java.lang.Object ref = spanName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spanName_ = b; return b; } else { @@ -113,6 +136,7 @@ public java.lang.String getSpanName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, spanName_); } @@ -149,15 +172,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.SpanContext)) { return super.equals(obj); } com.google.monitoring.v3.SpanContext other = (com.google.monitoring.v3.SpanContext) obj; - if (!getSpanName() - .equals(other.getSpanName())) return false; + if (!getSpanName().equals(other.getSpanName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,99 +198,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.SpanContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.SpanContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SpanContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.SpanContext parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.SpanContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SpanContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.SpanContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.SpanContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.SpanContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.SpanContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.SpanContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.SpanContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.SpanContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.SpanContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.SpanContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The context of a span. This is attached to an
    * [Exemplar][google.api.Distribution.Exemplar]
@@ -281,33 +307,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.SpanContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.SpanContext)
       com.google.monitoring.v3.SpanContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SpanContextProto
+          .internal_static_google_monitoring_v3_SpanContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
+      return com.google.monitoring.v3.SpanContextProto
+          .internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class);
+              com.google.monitoring.v3.SpanContext.class,
+              com.google.monitoring.v3.SpanContext.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.SpanContext.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -317,9 +342,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SpanContextProto
+          .internal_static_google_monitoring_v3_SpanContext_descriptor;
     }
 
     @java.lang.Override
@@ -339,7 +364,9 @@ public com.google.monitoring.v3.SpanContext build() {
     @java.lang.Override
     public com.google.monitoring.v3.SpanContext buildPartial() {
       com.google.monitoring.v3.SpanContext result = new com.google.monitoring.v3.SpanContext(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -355,38 +382,39 @@ private void buildPartial0(com.google.monitoring.v3.SpanContext result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.SpanContext) {
-        return mergeFrom((com.google.monitoring.v3.SpanContext)other);
+        return mergeFrom((com.google.monitoring.v3.SpanContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -426,17 +454,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              spanName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                spanName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -446,10 +476,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object spanName_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the span. The format is:
      *
@@ -463,13 +496,13 @@ public Builder mergeFrom(
      * 
* * string span_name = 1; + * * @return The spanName. */ public java.lang.String getSpanName() { java.lang.Object ref = spanName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanName_ = s; return s; @@ -478,6 +511,8 @@ public java.lang.String getSpanName() { } } /** + * + * *
      * The resource name of the span. The format is:
      *
@@ -491,15 +526,14 @@ public java.lang.String getSpanName() {
      * 
* * string span_name = 1; + * * @return The bytes for spanName. */ - public com.google.protobuf.ByteString - getSpanNameBytes() { + public com.google.protobuf.ByteString getSpanNameBytes() { java.lang.Object ref = spanName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spanName_ = b; return b; } else { @@ -507,6 +541,8 @@ public java.lang.String getSpanName() { } } /** + * + * *
      * The resource name of the span. The format is:
      *
@@ -520,18 +556,22 @@ public java.lang.String getSpanName() {
      * 
* * string span_name = 1; + * * @param value The spanName to set. * @return This builder for chaining. */ - public Builder setSpanName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpanName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spanName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the span. The format is:
      *
@@ -545,6 +585,7 @@ public Builder setSpanName(
      * 
* * string span_name = 1; + * * @return This builder for chaining. */ public Builder clearSpanName() { @@ -554,6 +595,8 @@ public Builder clearSpanName() { return this; } /** + * + * *
      * The resource name of the span. The format is:
      *
@@ -567,21 +610,23 @@ public Builder clearSpanName() {
      * 
* * string span_name = 1; + * * @param value The bytes for spanName to set. * @return This builder for chaining. */ - public Builder setSpanNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpanNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spanName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.SpanContext) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) private static final com.google.monitoring.v3.SpanContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.SpanContext(); } @@ -605,27 +650,27 @@ public static com.google.monitoring.v3.SpanContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpanContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpanContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +685,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.SpanContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java index b4cbdf1d7a43..cf6f658cdd2d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/span_context.proto package com.google.monitoring.v3; -public interface SpanContextOrBuilder extends +public interface SpanContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SpanContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the span. The format is:
    *
@@ -21,10 +39,13 @@ public interface SpanContextOrBuilder extends
    * 
* * string span_name = 1; + * * @return The spanName. */ java.lang.String getSpanName(); /** + * + * *
    * The resource name of the span. The format is:
    *
@@ -38,8 +59,8 @@ public interface SpanContextOrBuilder extends
    * 
* * string span_name = 1; + * * @return The bytes for spanName. */ - com.google.protobuf.ByteString - getSpanNameBytes(); + com.google.protobuf.ByteString getSpanNameBytes(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java new file mode 100644 index 000000000000..f640e90f4b08 --- /dev/null +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java @@ -0,0 +1,66 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/span_context.proto + +package com.google.monitoring.v3; + +public final class SpanContextProto { + private SpanContextProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_SpanContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/monitoring/v3/span_context.prot" + + "o\022\024google.monitoring.v3\" \n\013SpanContext\022\021" + + "\n\tspan_name\030\001 \001(\tB\313\001\n\030com.google.monitor" + + "ing.v3B\020SpanContextProtoP\001ZAcloud.google" + + ".com/go/monitoring/apiv3/v2/monitoringpb" + + ";monitoringpb\252\002\032Google.Cloud.Monitoring." + + "V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google" + + "::Cloud::Monitoring::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_monitoring_v3_SpanContext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_SpanContext_descriptor, + new java.lang.String[] { + "SpanName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java index fda1a068f73a..03e7a8c24319 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** + * + * *
  * A locator for text. Indicates a particular part of the text of a request or
  * of an object referenced in the request.
@@ -29,15 +46,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.TextLocator}
  */
-public final class TextLocator extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TextLocator extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator)
     TextLocatorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TextLocator.newBuilder() to construct.
   private TextLocator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TextLocator() {
     source_ = "";
     nestingReason_ = "";
@@ -45,96 +63,110 @@ private TextLocator() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TextLocator();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TextLocator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TextLocator.class, com.google.monitoring.v3.TextLocator.Builder.class);
+            com.google.monitoring.v3.TextLocator.class,
+            com.google.monitoring.v3.TextLocator.Builder.class);
   }
 
-  public interface PositionOrBuilder extends
+  public interface PositionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TextLocator.Position)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The line, starting with 1, where the byte is positioned.
      * 
* * int32 line = 1; + * * @return The line. */ int getLine(); /** + * + * *
      * The column within the line, starting with 1, where the byte is
      * positioned. This is a byte index even though the text is UTF-8.
      * 
* * int32 column = 2; + * * @return The column. */ int getColumn(); } /** + * + * *
    * The position of a byte within the text.
    * 
* * Protobuf type {@code google.monitoring.v3.TextLocator.Position} */ - public static final class Position extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Position extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TextLocator.Position) PositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Position() { - } + + private Position() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Position(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TextLocator.Position.class, com.google.monitoring.v3.TextLocator.Position.Builder.class); + com.google.monitoring.v3.TextLocator.Position.class, + com.google.monitoring.v3.TextLocator.Position.Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private int line_ = 0; /** + * + * *
      * The line, starting with 1, where the byte is positioned.
      * 
* * int32 line = 1; + * * @return The line. */ @java.lang.Override @@ -145,12 +177,15 @@ public int getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private int column_ = 0; /** + * + * *
      * The column within the line, starting with 1, where the byte is
      * positioned. This is a byte index even though the text is UTF-8.
      * 
* * int32 column = 2; + * * @return The column. */ @java.lang.Override @@ -159,6 +194,7 @@ public int getColumn() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (line_ != 0) { output.writeInt32(1, line_); } @@ -188,12 +223,10 @@ public int getSerializedSize() { size = 0; if (line_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, line_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); } if (column_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, column_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TextLocator.Position)) { return super.equals(obj); } - com.google.monitoring.v3.TextLocator.Position other = (com.google.monitoring.v3.TextLocator.Position) obj; + com.google.monitoring.v3.TextLocator.Position other = + (com.google.monitoring.v3.TextLocator.Position) obj; - if (getLine() - != other.getLine()) return false; - if (getColumn() - != other.getColumn()) return false; + if (getLine() != other.getLine()) return false; + if (getColumn() != other.getColumn()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,90 +266,94 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TextLocator.Position parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TextLocator.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TextLocator.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TextLocator.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -327,39 +363,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The position of a byte within the text.
      * 
* * Protobuf type {@code google.monitoring.v3.TextLocator.Position} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TextLocator.Position) com.google.monitoring.v3.TextLocator.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TextLocator.Position.class, com.google.monitoring.v3.TextLocator.Position.Builder.class); + com.google.monitoring.v3.TextLocator.Position.class, + com.google.monitoring.v3.TextLocator.Position.Builder.class); } // Construct using com.google.monitoring.v3.TextLocator.Position.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_Position_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TextLocator_Position_descriptor; } @java.lang.Override @@ -391,8 +429,11 @@ public com.google.monitoring.v3.TextLocator.Position build() { @java.lang.Override public com.google.monitoring.v3.TextLocator.Position buildPartial() { - com.google.monitoring.v3.TextLocator.Position result = new com.google.monitoring.v3.TextLocator.Position(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.TextLocator.Position result = + new com.google.monitoring.v3.TextLocator.Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -411,38 +452,41 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator.Position result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TextLocator.Position) { - return mergeFrom((com.google.monitoring.v3.TextLocator.Position)other); + return mergeFrom((com.google.monitoring.v3.TextLocator.Position) other); } else { super.mergeFrom(other); return this; @@ -450,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.TextLocator.Position other) { - if (other == com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) + return this; if (other.getLine() != 0) { setLine(other.getLine()); } @@ -483,22 +528,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - line_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - column_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + column_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -508,15 +556,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int line_ ; + private int line_; /** + * + * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; + * * @return The line. */ @java.lang.Override @@ -524,11 +576,14 @@ public int getLine() { return line_; } /** + * + * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; + * * @param value The line to set. * @return This builder for chaining. */ @@ -540,11 +595,14 @@ public Builder setLine(int value) { return this; } /** + * + * *
        * The line, starting with 1, where the byte is positioned.
        * 
* * int32 line = 1; + * * @return This builder for chaining. */ public Builder clearLine() { @@ -554,14 +612,17 @@ public Builder clearLine() { return this; } - private int column_ ; + private int column_; /** + * + * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; + * * @return The column. */ @java.lang.Override @@ -569,12 +630,15 @@ public int getColumn() { return column_; } /** + * + * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; + * * @param value The column to set. * @return This builder for chaining. */ @@ -586,12 +650,15 @@ public Builder setColumn(int value) { return this; } /** + * + * *
        * The column within the line, starting with 1, where the byte is
        * positioned. This is a byte index even though the text is UTF-8.
        * 
* * int32 column = 2; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -600,6 +667,7 @@ public Builder clearColumn() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -612,12 +680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator.Position) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator.Position) private static final com.google.monitoring.v3.TextLocator.Position DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator.Position(); } @@ -626,27 +694,28 @@ public static com.google.monitoring.v3.TextLocator.Position getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,13 +730,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TextLocator.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int SOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** + * + * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -679,6 +750,7 @@ public com.google.monitoring.v3.TextLocator.Position getDefaultInstanceForType()
    * 
* * string source = 1; + * * @return The source. */ @java.lang.Override @@ -687,14 +759,15 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** + * + * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -706,16 +779,15 @@ public java.lang.String getSource() {
    * 
* * string source = 1; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -726,11 +798,14 @@ public java.lang.String getSource() { public static final int START_POSITION_FIELD_NUMBER = 2; private com.google.monitoring.v3.TextLocator.Position startPosition_; /** + * + * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return Whether the startPosition field is set. */ @java.lang.Override @@ -738,18 +813,25 @@ public boolean hasStartPosition() { return startPosition_ != null; } /** + * + * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return The startPosition. */ @java.lang.Override public com.google.monitoring.v3.TextLocator.Position getStartPosition() { - return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; + return startPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : startPosition_; } /** + * + * *
    * The position of the first byte within the text.
    * 
@@ -758,17 +840,22 @@ public com.google.monitoring.v3.TextLocator.Position getStartPosition() { */ @java.lang.Override public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder() { - return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; + return startPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : startPosition_; } public static final int END_POSITION_FIELD_NUMBER = 3; private com.google.monitoring.v3.TextLocator.Position endPosition_; /** + * + * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return Whether the endPosition field is set. */ @java.lang.Override @@ -776,18 +863,25 @@ public boolean hasEndPosition() { return endPosition_ != null; } /** + * + * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return The endPosition. */ @java.lang.Override public com.google.monitoring.v3.TextLocator.Position getEndPosition() { - return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; + return endPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : endPosition_; } /** + * + * *
    * The position of the last byte within the text.
    * 
@@ -796,12 +890,16 @@ public com.google.monitoring.v3.TextLocator.Position getEndPosition() { */ @java.lang.Override public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder() { - return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; + return endPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : endPosition_; } public static final int NESTED_LOCATOR_FIELD_NUMBER = 4; private com.google.monitoring.v3.TextLocator nestedLocator_; /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -810,6 +908,7 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return Whether the nestedLocator field is set. */ @java.lang.Override @@ -817,6 +916,8 @@ public boolean hasNestedLocator() { return nestedLocator_ != null; } /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -825,13 +926,18 @@ public boolean hasNestedLocator() {
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return The nestedLocator. */ @java.lang.Override public com.google.monitoring.v3.TextLocator getNestedLocator() { - return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_; + return nestedLocator_ == null + ? com.google.monitoring.v3.TextLocator.getDefaultInstance() + : nestedLocator_; } /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -843,13 +949,18 @@ public com.google.monitoring.v3.TextLocator getNestedLocator() {
    */
   @java.lang.Override
   public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder() {
-    return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_;
+    return nestedLocator_ == null
+        ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+        : nestedLocator_;
   }
 
   public static final int NESTING_REASON_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nestingReason_ = "";
   /**
+   *
+   *
    * 
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -860,6 +971,7 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
    * 
* * string nesting_reason = 5; + * * @return The nestingReason. */ @java.lang.Override @@ -868,14 +980,15 @@ public java.lang.String getNestingReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nestingReason_ = s; return s; } } /** + * + * *
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -886,16 +999,15 @@ public java.lang.String getNestingReason() {
    * 
* * string nesting_reason = 5; + * * @return The bytes for nestingReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getNestingReasonBytes() { + public com.google.protobuf.ByteString getNestingReasonBytes() { java.lang.Object ref = nestingReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nestingReason_ = b; return b; } else { @@ -904,6 +1016,7 @@ public java.lang.String getNestingReason() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -915,8 +1028,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } @@ -945,16 +1057,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); } if (startPosition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartPosition()); } if (endPosition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndPosition()); } if (nestedLocator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNestedLocator()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNestedLocator()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nestingReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nestingReason_); @@ -967,32 +1076,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TextLocator)) { return super.equals(obj); } com.google.monitoring.v3.TextLocator other = (com.google.monitoring.v3.TextLocator) obj; - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; if (hasStartPosition() != other.hasStartPosition()) return false; if (hasStartPosition()) { - if (!getStartPosition() - .equals(other.getStartPosition())) return false; + if (!getStartPosition().equals(other.getStartPosition())) return false; } if (hasEndPosition() != other.hasEndPosition()) return false; if (hasEndPosition()) { - if (!getEndPosition() - .equals(other.getEndPosition())) return false; + if (!getEndPosition().equals(other.getEndPosition())) return false; } if (hasNestedLocator() != other.hasNestedLocator()) return false; if (hasNestedLocator()) { - if (!getNestedLocator() - .equals(other.getNestedLocator())) return false; + if (!getNestedLocator().equals(other.getNestedLocator())) return false; } - if (!getNestingReason() - .equals(other.getNestingReason())) return false; + if (!getNestingReason().equals(other.getNestingReason())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1025,99 +1129,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TextLocator parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TextLocator parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TextLocator parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.TextLocator parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TextLocator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TextLocator parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TextLocator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TextLocator parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TextLocator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TextLocator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TextLocator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A locator for text. Indicates a particular part of the text of a request or
    * of an object referenced in the request.
@@ -1143,33 +1251,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.TextLocator}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TextLocator)
       com.google.monitoring.v3.TextLocatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TextLocator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TextLocator.class, com.google.monitoring.v3.TextLocator.Builder.class);
+              com.google.monitoring.v3.TextLocator.class,
+              com.google.monitoring.v3.TextLocator.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TextLocator.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1195,9 +1302,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TextLocator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TextLocator_descriptor;
     }
 
     @java.lang.Override
@@ -1217,7 +1324,9 @@ public com.google.monitoring.v3.TextLocator build() {
     @java.lang.Override
     public com.google.monitoring.v3.TextLocator buildPartial() {
       com.google.monitoring.v3.TextLocator result = new com.google.monitoring.v3.TextLocator(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1228,19 +1337,16 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator result) {
         result.source_ = source_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startPosition_ = startPositionBuilder_ == null
-            ? startPosition_
-            : startPositionBuilder_.build();
+        result.startPosition_ =
+            startPositionBuilder_ == null ? startPosition_ : startPositionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endPosition_ = endPositionBuilder_ == null
-            ? endPosition_
-            : endPositionBuilder_.build();
+        result.endPosition_ =
+            endPositionBuilder_ == null ? endPosition_ : endPositionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.nestedLocator_ = nestedLocatorBuilder_ == null
-            ? nestedLocator_
-            : nestedLocatorBuilder_.build();
+        result.nestedLocator_ =
+            nestedLocatorBuilder_ == null ? nestedLocator_ : nestedLocatorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.nestingReason_ = nestingReason_;
@@ -1251,38 +1357,39 @@ private void buildPartial0(com.google.monitoring.v3.TextLocator result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TextLocator) {
-        return mergeFrom((com.google.monitoring.v3.TextLocator)other);
+        return mergeFrom((com.google.monitoring.v3.TextLocator) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1336,43 +1443,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              source_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getStartPositionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndPositionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getNestedLocatorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              nestingReason_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                source_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getStartPositionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndPositionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getNestedLocatorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                nestingReason_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1382,10 +1489,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object source_ = "";
     /**
+     *
+     *
      * 
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1397,13 +1507,13 @@ public Builder mergeFrom(
      * 
* * string source = 1; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -1412,6 +1522,8 @@ public java.lang.String getSource() { } } /** + * + * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1423,15 +1535,14 @@ public java.lang.String getSource() {
      * 
* * string source = 1; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -1439,6 +1550,8 @@ public java.lang.String getSource() { } } /** + * + * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1450,18 +1563,22 @@ public java.lang.String getSource() {
      * 
* * string source = 1; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } source_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1473,6 +1590,7 @@ public Builder setSource(
      * 
* * string source = 1; + * * @return This builder for chaining. */ public Builder clearSource() { @@ -1482,6 +1600,8 @@ public Builder clearSource() { return this; } /** + * + * *
      * The source of the text. The source may be a field in the request, in which
      * case its format is the format of the
@@ -1493,12 +1613,14 @@ public Builder clearSource() {
      * 
* * string source = 1; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000001; @@ -1508,34 +1630,47 @@ public Builder setSourceBytes( private com.google.monitoring.v3.TextLocator.Position startPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> startPositionBuilder_; + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder> + startPositionBuilder_; /** + * + * *
      * The position of the first byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return Whether the startPosition field is set. */ public boolean hasStartPosition() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The position of the first byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return The startPosition. */ public com.google.monitoring.v3.TextLocator.Position getStartPosition() { if (startPositionBuilder_ == null) { - return startPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; + return startPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : startPosition_; } else { return startPositionBuilder_.getMessage(); } } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1556,6 +1691,8 @@ public Builder setStartPosition(com.google.monitoring.v3.TextLocator.Position va return this; } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1574,6 +1711,8 @@ public Builder setStartPosition( return this; } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1582,9 +1721,10 @@ public Builder setStartPosition( */ public Builder mergeStartPosition(com.google.monitoring.v3.TextLocator.Position value) { if (startPositionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startPosition_ != null && - startPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startPosition_ != null + && startPosition_ + != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { getStartPositionBuilder().mergeFrom(value); } else { startPosition_ = value; @@ -1597,6 +1737,8 @@ public Builder mergeStartPosition(com.google.monitoring.v3.TextLocator.Position return this; } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1614,6 +1756,8 @@ public Builder clearStartPosition() { return this; } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1626,6 +1770,8 @@ public com.google.monitoring.v3.TextLocator.Position.Builder getStartPositionBui return getStartPositionFieldBuilder().getBuilder(); } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1636,11 +1782,14 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr if (startPositionBuilder_ != null) { return startPositionBuilder_.getMessageOrBuilder(); } else { - return startPosition_ == null ? - com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : startPosition_; + return startPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : startPosition_; } } /** + * + * *
      * The position of the first byte within the text.
      * 
@@ -1648,14 +1797,17 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr * .google.monitoring.v3.TextLocator.Position start_position = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder> getStartPositionFieldBuilder() { if (startPositionBuilder_ == null) { - startPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder>( - getStartPosition(), - getParentForChildren(), - isClean()); + startPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder>( + getStartPosition(), getParentForChildren(), isClean()); startPosition_ = null; } return startPositionBuilder_; @@ -1663,34 +1815,47 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOr private com.google.monitoring.v3.TextLocator.Position endPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> endPositionBuilder_; + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder> + endPositionBuilder_; /** + * + * *
      * The position of the last byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return Whether the endPosition field is set. */ public boolean hasEndPosition() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The position of the last byte within the text.
      * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return The endPosition. */ public com.google.monitoring.v3.TextLocator.Position getEndPosition() { if (endPositionBuilder_ == null) { - return endPosition_ == null ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; + return endPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : endPosition_; } else { return endPositionBuilder_.getMessage(); } } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1711,6 +1876,8 @@ public Builder setEndPosition(com.google.monitoring.v3.TextLocator.Position valu return this; } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1729,6 +1896,8 @@ public Builder setEndPosition( return this; } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1737,9 +1906,9 @@ public Builder setEndPosition( */ public Builder mergeEndPosition(com.google.monitoring.v3.TextLocator.Position value) { if (endPositionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - endPosition_ != null && - endPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && endPosition_ != null + && endPosition_ != com.google.monitoring.v3.TextLocator.Position.getDefaultInstance()) { getEndPositionBuilder().mergeFrom(value); } else { endPosition_ = value; @@ -1752,6 +1921,8 @@ public Builder mergeEndPosition(com.google.monitoring.v3.TextLocator.Position va return this; } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1769,6 +1940,8 @@ public Builder clearEndPosition() { return this; } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1781,6 +1954,8 @@ public com.google.monitoring.v3.TextLocator.Position.Builder getEndPositionBuild return getEndPositionFieldBuilder().getBuilder(); } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1791,11 +1966,14 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu if (endPositionBuilder_ != null) { return endPositionBuilder_.getMessageOrBuilder(); } else { - return endPosition_ == null ? - com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() : endPosition_; + return endPosition_ == null + ? com.google.monitoring.v3.TextLocator.Position.getDefaultInstance() + : endPosition_; } } /** + * + * *
      * The position of the last byte within the text.
      * 
@@ -1803,14 +1981,17 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu * .google.monitoring.v3.TextLocator.Position end_position = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder> + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder> getEndPositionFieldBuilder() { if (endPositionBuilder_ == null) { - endPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator.Position, com.google.monitoring.v3.TextLocator.Position.Builder, com.google.monitoring.v3.TextLocator.PositionOrBuilder>( - getEndPosition(), - getParentForChildren(), - isClean()); + endPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TextLocator.Position, + com.google.monitoring.v3.TextLocator.Position.Builder, + com.google.monitoring.v3.TextLocator.PositionOrBuilder>( + getEndPosition(), getParentForChildren(), isClean()); endPosition_ = null; } return endPositionBuilder_; @@ -1818,8 +1999,13 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu private com.google.monitoring.v3.TextLocator nestedLocator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> nestedLocatorBuilder_; + com.google.monitoring.v3.TextLocator, + com.google.monitoring.v3.TextLocator.Builder, + com.google.monitoring.v3.TextLocatorOrBuilder> + nestedLocatorBuilder_; /** + * + * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1828,12 +2014,15 @@ public com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBu
      * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return Whether the nestedLocator field is set. */ public boolean hasNestedLocator() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1842,16 +2031,21 @@ public boolean hasNestedLocator() {
      * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return The nestedLocator. */ public com.google.monitoring.v3.TextLocator getNestedLocator() { if (nestedLocatorBuilder_ == null) { - return nestedLocator_ == null ? com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_; + return nestedLocator_ == null + ? com.google.monitoring.v3.TextLocator.getDefaultInstance() + : nestedLocator_; } else { return nestedLocatorBuilder_.getMessage(); } } /** + * + * *
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1875,6 +2069,8 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1884,8 +2080,7 @@ public Builder setNestedLocator(com.google.monitoring.v3.TextLocator value) {
      *
      * .google.monitoring.v3.TextLocator nested_locator = 4;
      */
-    public Builder setNestedLocator(
-        com.google.monitoring.v3.TextLocator.Builder builderForValue) {
+    public Builder setNestedLocator(com.google.monitoring.v3.TextLocator.Builder builderForValue) {
       if (nestedLocatorBuilder_ == null) {
         nestedLocator_ = builderForValue.build();
       } else {
@@ -1896,6 +2091,8 @@ public Builder setNestedLocator(
       return this;
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1907,9 +2104,9 @@ public Builder setNestedLocator(
      */
     public Builder mergeNestedLocator(com.google.monitoring.v3.TextLocator value) {
       if (nestedLocatorBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          nestedLocator_ != null &&
-          nestedLocator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && nestedLocator_ != null
+            && nestedLocator_ != com.google.monitoring.v3.TextLocator.getDefaultInstance()) {
           getNestedLocatorBuilder().mergeFrom(value);
         } else {
           nestedLocator_ = value;
@@ -1922,6 +2119,8 @@ public Builder mergeNestedLocator(com.google.monitoring.v3.TextLocator value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1942,6 +2141,8 @@ public Builder clearNestedLocator() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1957,6 +2158,8 @@ public com.google.monitoring.v3.TextLocator.Builder getNestedLocatorBuilder() {
       return getNestedLocatorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1970,11 +2173,14 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
       if (nestedLocatorBuilder_ != null) {
         return nestedLocatorBuilder_.getMessageOrBuilder();
       } else {
-        return nestedLocator_ == null ?
-            com.google.monitoring.v3.TextLocator.getDefaultInstance() : nestedLocator_;
+        return nestedLocator_ == null
+            ? com.google.monitoring.v3.TextLocator.getDefaultInstance()
+            : nestedLocator_;
       }
     }
     /**
+     *
+     *
      * 
      * If `source`, `start_position`, and `end_position` describe a call on
      * some object (e.g. a macro in the time series query language text) and a
@@ -1985,14 +2191,17 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
      * .google.monitoring.v3.TextLocator nested_locator = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder> 
+            com.google.monitoring.v3.TextLocator,
+            com.google.monitoring.v3.TextLocator.Builder,
+            com.google.monitoring.v3.TextLocatorOrBuilder>
         getNestedLocatorFieldBuilder() {
       if (nestedLocatorBuilder_ == null) {
-        nestedLocatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.TextLocator, com.google.monitoring.v3.TextLocator.Builder, com.google.monitoring.v3.TextLocatorOrBuilder>(
-                getNestedLocator(),
-                getParentForChildren(),
-                isClean());
+        nestedLocatorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.TextLocator,
+                com.google.monitoring.v3.TextLocator.Builder,
+                com.google.monitoring.v3.TextLocatorOrBuilder>(
+                getNestedLocator(), getParentForChildren(), isClean());
         nestedLocator_ = null;
       }
       return nestedLocatorBuilder_;
@@ -2000,6 +2209,8 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
 
     private java.lang.Object nestingReason_ = "";
     /**
+     *
+     *
      * 
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2010,13 +2221,13 @@ public com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder()
      * 
* * string nesting_reason = 5; + * * @return The nestingReason. */ public java.lang.String getNestingReason() { java.lang.Object ref = nestingReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nestingReason_ = s; return s; @@ -2025,6 +2236,8 @@ public java.lang.String getNestingReason() { } } /** + * + * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2035,15 +2248,14 @@ public java.lang.String getNestingReason() {
      * 
* * string nesting_reason = 5; + * * @return The bytes for nestingReason. */ - public com.google.protobuf.ByteString - getNestingReasonBytes() { + public com.google.protobuf.ByteString getNestingReasonBytes() { java.lang.Object ref = nestingReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nestingReason_ = b; return b; } else { @@ -2051,6 +2263,8 @@ public java.lang.String getNestingReason() { } } /** + * + * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2061,18 +2275,22 @@ public java.lang.String getNestingReason() {
      * 
* * string nesting_reason = 5; + * * @param value The nestingReason to set. * @return This builder for chaining. */ - public Builder setNestingReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNestingReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nestingReason_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2083,6 +2301,7 @@ public Builder setNestingReason(
      * 
* * string nesting_reason = 5; + * * @return This builder for chaining. */ public Builder clearNestingReason() { @@ -2092,6 +2311,8 @@ public Builder clearNestingReason() { return this; } /** + * + * *
      * When `nested_locator` is set, this field gives the reason for the nesting.
      * Usually, the reason is a macro invocation. In that case, the macro name
@@ -2102,21 +2323,23 @@ public Builder clearNestingReason() {
      * 
* * string nesting_reason = 5; + * * @param value The bytes for nestingReason to set. * @return This builder for chaining. */ - public Builder setNestingReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNestingReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nestingReason_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2126,12 +2349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TextLocator) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TextLocator) private static final com.google.monitoring.v3.TextLocator DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TextLocator(); } @@ -2140,27 +2363,27 @@ public static com.google.monitoring.v3.TextLocator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextLocator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextLocator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2175,6 +2398,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TextLocator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java similarity index 85% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java index cbf6e25ab51f..b23f8279a553 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocatorOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TextLocatorOrBuilder extends +public interface TextLocatorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TextLocator) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -19,10 +37,13 @@ public interface TextLocatorOrBuilder extends
    * 
* * string source = 1; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
    * The source of the text. The source may be a field in the request, in which
    * case its format is the format of the
@@ -34,30 +55,38 @@ public interface TextLocatorOrBuilder extends
    * 
* * string source = 1; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return Whether the startPosition field is set. */ boolean hasStartPosition(); /** + * + * *
    * The position of the first byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position start_position = 2; + * * @return The startPosition. */ com.google.monitoring.v3.TextLocator.Position getStartPosition(); /** + * + * *
    * The position of the first byte within the text.
    * 
@@ -67,24 +96,32 @@ public interface TextLocatorOrBuilder extends com.google.monitoring.v3.TextLocator.PositionOrBuilder getStartPositionOrBuilder(); /** + * + * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return Whether the endPosition field is set. */ boolean hasEndPosition(); /** + * + * *
    * The position of the last byte within the text.
    * 
* * .google.monitoring.v3.TextLocator.Position end_position = 3; + * * @return The endPosition. */ com.google.monitoring.v3.TextLocator.Position getEndPosition(); /** + * + * *
    * The position of the last byte within the text.
    * 
@@ -94,6 +131,8 @@ public interface TextLocatorOrBuilder extends com.google.monitoring.v3.TextLocator.PositionOrBuilder getEndPositionOrBuilder(); /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -102,10 +141,13 @@ public interface TextLocatorOrBuilder extends
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return Whether the nestedLocator field is set. */ boolean hasNestedLocator(); /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -114,10 +156,13 @@ public interface TextLocatorOrBuilder extends
    * 
* * .google.monitoring.v3.TextLocator nested_locator = 4; + * * @return The nestedLocator. */ com.google.monitoring.v3.TextLocator getNestedLocator(); /** + * + * *
    * If `source`, `start_position`, and `end_position` describe a call on
    * some object (e.g. a macro in the time series query language text) and a
@@ -130,6 +175,8 @@ public interface TextLocatorOrBuilder extends
   com.google.monitoring.v3.TextLocatorOrBuilder getNestedLocatorOrBuilder();
 
   /**
+   *
+   *
    * 
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -140,10 +187,13 @@ public interface TextLocatorOrBuilder extends
    * 
* * string nesting_reason = 5; + * * @return The nestingReason. */ java.lang.String getNestingReason(); /** + * + * *
    * When `nested_locator` is set, this field gives the reason for the nesting.
    * Usually, the reason is a macro invocation. In that case, the macro name
@@ -154,8 +204,8 @@ public interface TextLocatorOrBuilder extends
    * 
* * string nesting_reason = 5; + * * @return The bytes for nestingReason. */ - com.google.protobuf.ByteString - getNestingReasonBytes(); + com.google.protobuf.ByteString getNestingReasonBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java index 7e2bf998efef..a0466e356425 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** + * + * *
  * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
  *
@@ -37,46 +54,50 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeInterval}
  */
-public final class TimeInterval extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeInterval extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeInterval)
     TimeIntervalOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeInterval.newBuilder() to construct.
   private TimeInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeInterval() {
-  }
+
+  private TimeInterval() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.CommonProto
+        .internal_static_google_monitoring_v3_TimeInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
+    return com.google.monitoring.v3.CommonProto
+        .internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeInterval.class, com.google.monitoring.v3.TimeInterval.Builder.class);
+            com.google.monitoring.v3.TimeInterval.class,
+            com.google.monitoring.v3.TimeInterval.Builder.class);
   }
 
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
+   *
+   *
    * 
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -84,11 +105,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -96,6 +120,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Required. The end of the time interval.
    * 
@@ -110,6 +136,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -117,6 +145,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -124,6 +153,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -131,6 +162,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -138,6 +170,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -152,6 +186,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -163,8 +198,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -181,12 +215,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -196,7 +228,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.TimeInterval)) {
       return super.equals(obj);
@@ -205,13 +237,11 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime()
-          .equals(other.getStartTime())) return false;
+      if (!getStartTime().equals(other.getStartTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -237,99 +267,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.TimeInterval parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.TimeInterval parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.monitoring.v3.TimeInterval parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.monitoring.v3.TimeInterval parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.monitoring.v3.TimeInterval parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.TimeInterval parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.TimeInterval parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.TimeInterval prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
    *
@@ -363,33 +397,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.TimeInterval}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeInterval)
       com.google.monitoring.v3.TimeIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_TimeInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeInterval.class, com.google.monitoring.v3.TimeInterval.Builder.class);
+              com.google.monitoring.v3.TimeInterval.class,
+              com.google.monitoring.v3.TimeInterval.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeInterval.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,9 +441,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TimeInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.CommonProto
+          .internal_static_google_monitoring_v3_TimeInterval_descriptor;
     }
 
     @java.lang.Override
@@ -429,8 +462,11 @@ public com.google.monitoring.v3.TimeInterval build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeInterval buildPartial() {
-      com.google.monitoring.v3.TimeInterval result = new com.google.monitoring.v3.TimeInterval(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.TimeInterval result =
+          new com.google.monitoring.v3.TimeInterval(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -438,14 +474,10 @@ public com.google.monitoring.v3.TimeInterval buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.TimeInterval result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
     }
 
@@ -453,38 +485,39 @@ private void buildPartial0(com.google.monitoring.v3.TimeInterval result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeInterval) {
-        return mergeFrom((com.google.monitoring.v3.TimeInterval)other);
+        return mergeFrom((com.google.monitoring.v3.TimeInterval) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,26 +558,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -554,28 +586,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -586,6 +628,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -606,14 +650,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -624,6 +669,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -632,9 +679,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -647,6 +694,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -664,6 +713,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -676,6 +727,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -686,11 +739,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Required. The end of the time interval.
      * 
@@ -698,14 +752,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -713,8 +770,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -722,12 +784,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -735,6 +800,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -745,6 +811,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -767,6 +835,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -775,8 +845,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -787,6 +856,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -797,9 +868,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -812,6 +883,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -831,6 +904,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -845,6 +920,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -857,11 +934,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
@@ -871,21 +949,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -895,12 +976,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeInterval)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval)
   private static final com.google.monitoring.v3.TimeInterval DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeInterval();
   }
@@ -909,27 +990,27 @@ public static com.google.monitoring.v3.TimeInterval getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TimeInterval parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TimeInterval parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.TimeInterval getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
index 8a2e0ea04a4a..dd97663caa16 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeIntervalOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/common.proto
 
 package com.google.monitoring.v3;
 
-public interface TimeIntervalOrBuilder extends
+public interface TimeIntervalOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeInterval)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
@@ -35,6 +59,8 @@ public interface TimeIntervalOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -42,10 +68,13 @@ public interface TimeIntervalOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
@@ -53,10 +82,13 @@ public interface TimeIntervalOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
similarity index 80%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
index bf9a215ab402..9f6df5261ec9 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/metric.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * A collection of data points that describes the time-varying values
  * of a metric. A time series is identified by a combination of a
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeries}
  */
-public final class TimeSeries extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeSeries extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeries)
     TimeSeriesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeSeries.newBuilder() to construct.
   private TimeSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TimeSeries() {
     metricKind_ = 0;
     valueType_ = 0;
@@ -31,33 +49,37 @@ private TimeSeries() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeSeries();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TimeSeries_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeries.class, com.google.monitoring.v3.TimeSeries.Builder.class);
+            com.google.monitoring.v3.TimeSeries.class,
+            com.google.monitoring.v3.TimeSeries.Builder.class);
   }
 
   public static final int METRIC_FIELD_NUMBER = 1;
   private com.google.api.Metric metric_;
   /**
+   *
+   *
    * 
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; + * * @return Whether the metric field is set. */ @java.lang.Override @@ -65,12 +87,15 @@ public boolean hasMetric() { return metric_ != null; } /** + * + * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; + * * @return The metric. */ @java.lang.Override @@ -78,6 +103,8 @@ public com.google.api.Metric getMetric() { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } /** + * + * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
@@ -93,6 +120,8 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
   public static final int RESOURCE_FIELD_NUMBER = 2;
   private com.google.api.MonitoredResource resource_;
   /**
+   *
+   *
    * 
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -101,6 +130,7 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
    * 
* * .google.api.MonitoredResource resource = 2; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -108,6 +138,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -116,6 +148,7 @@ public boolean hasResource() {
    * 
* * .google.api.MonitoredResource resource = 2; + * * @return The resource. */ @java.lang.Override @@ -123,6 +156,8 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** + * + * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -140,6 +175,8 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
   public static final int METADATA_FIELD_NUMBER = 7;
   private com.google.api.MonitoredResourceMetadata metadata_;
   /**
+   *
+   *
    * 
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -147,6 +184,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -154,6 +192,8 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -161,13 +201,18 @@ public boolean hasMetadata() {
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return The metadata. */ @java.lang.Override public com.google.api.MonitoredResourceMetadata getMetadata() { - return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -178,12 +223,16 @@ public com.google.api.MonitoredResourceMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.api.MonitoredResourceMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   public static final int METRIC_KIND_FIELD_NUMBER = 3;
   private int metricKind_ = 0;
   /**
+   *
+   *
    * 
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -197,12 +246,16 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -216,16 +269,21 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ - @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int VALUE_TYPE_FIELD_NUMBER = 4; private int valueType_ = 0; /** + * + * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -236,12 +294,16 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -252,17 +314,23 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The valueType. */ - @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override + public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int POINTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List points_; /** + * + * *
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -281,6 +349,8 @@ public java.util.List getPointsList() {
     return points_;
   }
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -295,11 +365,13 @@ public java.util.List getPointsList() {
    * repeated .google.monitoring.v3.Point points = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPointsOrBuilderList() {
     return points_;
   }
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -318,6 +390,8 @@ public int getPointsCount() {
     return points_.size();
   }
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -336,6 +410,8 @@ public com.google.monitoring.v3.Point getPoints(int index) {
     return points_.get(index);
   }
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -350,15 +426,17 @@ public com.google.monitoring.v3.Point getPoints(int index) {
    * repeated .google.monitoring.v3.Point points = 5;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
-      int index) {
+  public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
     return points_.get(index);
   }
 
   public static final int UNIT_FIELD_NUMBER = 8;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object unit_ = "";
   /**
+   *
+   *
    * 
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -366,6 +444,7 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
    * 
* * string unit = 8; + * * @return The unit. */ @java.lang.Override @@ -374,14 +453,15 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** + * + * *
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -389,16 +469,15 @@ public java.lang.String getUnit() {
    * 
* * string unit = 8; + * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -407,6 +486,7 @@ public java.lang.String getUnit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,18 +498,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metric_ != null) { output.writeMessage(1, getMetric()); } if (resource_ != null) { output.writeMessage(2, getResource()); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, valueType_); } for (int i = 0; i < points_.size(); i++) { @@ -451,28 +532,24 @@ public int getSerializedSize() { size = 0; if (metric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetric()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetric()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, metricKind_); + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, valueType_); + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, valueType_); } for (int i = 0; i < points_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, points_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, points_.get(i)); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, unit_); @@ -485,7 +562,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeries)) { return super.equals(obj); @@ -494,25 +571,20 @@ public boolean equals(final java.lang.Object obj) { if (hasMetric() != other.hasMetric()) return false; if (hasMetric()) { - if (!getMetric() - .equals(other.getMetric())) return false; + if (!getMetric().equals(other.getMetric())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } if (metricKind_ != other.metricKind_) return false; if (valueType_ != other.valueType_) return false; - if (!getPointsList() - .equals(other.getPointsList())) return false; - if (!getUnit() - .equals(other.getUnit())) return false; + if (!getPointsList().equals(other.getPointsList())) return false; + if (!getUnit().equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -551,99 +623,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeries parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeries parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeries parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeries parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.TimeSeries parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeries parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeries parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeries parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TimeSeries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeries parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeries parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeries parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TimeSeries prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A collection of data points that describes the time-varying values
    * of a metric. A time series is identified by a combination of a
@@ -653,33 +729,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeries}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeries)
       com.google.monitoring.v3.TimeSeriesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeries_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeries.class, com.google.monitoring.v3.TimeSeries.Builder.class);
+              com.google.monitoring.v3.TimeSeries.class,
+              com.google.monitoring.v3.TimeSeries.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeries.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -713,9 +788,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeries_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeries_descriptor;
     }
 
     @java.lang.Override
@@ -736,7 +811,9 @@ public com.google.monitoring.v3.TimeSeries build() {
     public com.google.monitoring.v3.TimeSeries buildPartial() {
       com.google.monitoring.v3.TimeSeries result = new com.google.monitoring.v3.TimeSeries(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -756,19 +833,13 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.TimeSeries resu
     private void buildPartial0(com.google.monitoring.v3.TimeSeries result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.metric_ = metricBuilder_ == null
-            ? metric_
-            : metricBuilder_.build();
+        result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.resource_ = resourceBuilder_ == null
-            ? resource_
-            : resourceBuilder_.build();
+        result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.metricKind_ = metricKind_;
@@ -785,38 +856,39 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeries result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeries) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeries)other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeries) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -858,9 +930,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeries other) {
             pointsBuilder_ = null;
             points_ = other.points_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            pointsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPointsFieldBuilder() : null;
+            pointsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPointsFieldBuilder()
+                    : null;
           } else {
             pointsBuilder_.addAllMessages(other.points_);
           }
@@ -897,61 +970,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getMetricFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              metricKind_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 24
-            case 32: {
-              valueType_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 32
-            case 42: {
-              com.google.monitoring.v3.Point m =
-                  input.readMessage(
-                      com.google.monitoring.v3.Point.parser(),
-                      extensionRegistry);
-              if (pointsBuilder_ == null) {
-                ensurePointsIsMutable();
-                points_.add(m);
-              } else {
-                pointsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 58: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            case 66: {
-              unit_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                metricKind_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+            case 32:
+              {
+                valueType_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.monitoring.v3.Point m =
+                    input.readMessage(com.google.monitoring.v3.Point.parser(), extensionRegistry);
+                if (pointsBuilder_ == null) {
+                  ensurePointsIsMutable();
+                  points_.add(m);
+                } else {
+                  pointsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 58:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            case 66:
+              {
+                unit_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -961,30 +1034,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.api.Metric metric_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder> metricBuilder_;
+            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>
+        metricBuilder_;
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
      * 
* * .google.api.Metric metric = 1; + * * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The associated metric. A fully-specified metric used to identify the time
      * series.
      * 
* * .google.api.Metric metric = 1; + * * @return The metric. */ public com.google.api.Metric getMetric() { @@ -995,6 +1076,8 @@ public com.google.api.Metric getMetric() { } } /** + * + * *
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1016,6 +1099,8 @@ public Builder setMetric(com.google.api.Metric value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1023,8 +1108,7 @@ public Builder setMetric(com.google.api.Metric value) {
      *
      * .google.api.Metric metric = 1;
      */
-    public Builder setMetric(
-        com.google.api.Metric.Builder builderForValue) {
+    public Builder setMetric(com.google.api.Metric.Builder builderForValue) {
       if (metricBuilder_ == null) {
         metric_ = builderForValue.build();
       } else {
@@ -1035,6 +1119,8 @@ public Builder setMetric(
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1044,9 +1130,9 @@ public Builder setMetric(
      */
     public Builder mergeMetric(com.google.api.Metric value) {
       if (metricBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          metric_ != null &&
-          metric_ != com.google.api.Metric.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && metric_ != null
+            && metric_ != com.google.api.Metric.getDefaultInstance()) {
           getMetricBuilder().mergeFrom(value);
         } else {
           metric_ = value;
@@ -1059,6 +1145,8 @@ public Builder mergeMetric(com.google.api.Metric value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1077,6 +1165,8 @@ public Builder clearMetric() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1090,6 +1180,8 @@ public com.google.api.Metric.Builder getMetricBuilder() {
       return getMetricFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1101,11 +1193,12 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
       if (metricBuilder_ != null) {
         return metricBuilder_.getMessageOrBuilder();
       } else {
-        return metric_ == null ?
-            com.google.api.Metric.getDefaultInstance() : metric_;
+        return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_;
       }
     }
     /**
+     *
+     *
      * 
      * The associated metric. A fully-specified metric used to identify the time
      * series.
@@ -1114,14 +1207,14 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
      * .google.api.Metric metric = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder> 
+            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>
         getMetricFieldBuilder() {
       if (metricBuilder_ == null) {
-        metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.Metric, com.google.api.Metric.Builder, com.google.api.MetricOrBuilder>(
-                getMetric(),
-                getParentForChildren(),
-                isClean());
+        metricBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.Metric,
+                com.google.api.Metric.Builder,
+                com.google.api.MetricOrBuilder>(getMetric(), getParentForChildren(), isClean());
         metric_ = null;
       }
       return metricBuilder_;
@@ -1129,8 +1222,13 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
 
     private com.google.api.MonitoredResource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_;
+            com.google.api.MonitoredResource,
+            com.google.api.MonitoredResource.Builder,
+            com.google.api.MonitoredResourceOrBuilder>
+        resourceBuilder_;
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1139,12 +1237,15 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
      * 
* * .google.api.MonitoredResource resource = 2; + * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1153,16 +1254,21 @@ public boolean hasResource() {
      * 
* * .google.api.MonitoredResource resource = 2; + * * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.api.MonitoredResource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1186,6 +1292,8 @@ public Builder setResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1195,8 +1303,7 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      *
      * .google.api.MonitoredResource resource = 2;
      */
-    public Builder setResource(
-        com.google.api.MonitoredResource.Builder builderForValue) {
+    public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
       } else {
@@ -1207,6 +1314,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1218,9 +1327,9 @@ public Builder setResource(
      */
     public Builder mergeResource(com.google.api.MonitoredResource value) {
       if (resourceBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          resource_ != null &&
-          resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && resource_ != null
+            && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
           getResourceBuilder().mergeFrom(value);
         } else {
           resource_ = value;
@@ -1233,6 +1342,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1253,6 +1364,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1268,6 +1381,8 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1281,11 +1396,14 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null ?
-            com.google.api.MonitoredResource.getDefaultInstance() : resource_;
+        return resource_ == null
+            ? com.google.api.MonitoredResource.getDefaultInstance()
+            : resource_;
       }
     }
     /**
+     *
+     *
      * 
      * The associated monitored resource.  Custom metrics can use only certain
      * monitored resource types in their time series data. For more information,
@@ -1296,14 +1414,17 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * .google.api.MonitoredResource resource = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> 
+            com.google.api.MonitoredResource,
+            com.google.api.MonitoredResource.Builder,
+            com.google.api.MonitoredResourceOrBuilder>
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>(
-                getResource(),
-                getParentForChildren(),
-                isClean());
+        resourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.MonitoredResource,
+                com.google.api.MonitoredResource.Builder,
+                com.google.api.MonitoredResourceOrBuilder>(
+                getResource(), getParentForChildren(), isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1311,8 +1432,13 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
 
     private com.google.api.MonitoredResourceMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> metadataBuilder_;
+            com.google.api.MonitoredResourceMetadata,
+            com.google.api.MonitoredResourceMetadata.Builder,
+            com.google.api.MonitoredResourceMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1320,12 +1446,15 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1333,16 +1462,21 @@ public boolean hasMetadata() {
      * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return The metadata. */ public com.google.api.MonitoredResourceMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1365,6 +1499,8 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1373,8 +1509,7 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) {
      *
      * .google.api.MonitoredResourceMetadata metadata = 7;
      */
-    public Builder setMetadata(
-        com.google.api.MonitoredResourceMetadata.Builder builderForValue) {
+    public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
       } else {
@@ -1385,6 +1520,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1395,9 +1532,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.api.MonitoredResourceMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && metadata_ != null
+            && metadata_ != com.google.api.MonitoredResourceMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1410,6 +1547,8 @@ public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1429,6 +1568,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1443,6 +1584,8 @@ public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder() {
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1455,11 +1598,14 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.api.MonitoredResourceMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. The associated monitored resource metadata. When reading a
      * time series, this field will include metadata labels that are explicitly
@@ -1469,14 +1615,17 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
      * .google.api.MonitoredResourceMetadata metadata = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> 
+            com.google.api.MonitoredResourceMetadata,
+            com.google.api.MonitoredResourceMetadata.Builder,
+            com.google.api.MonitoredResourceMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.MonitoredResourceMetadata,
+                com.google.api.MonitoredResourceMetadata.Builder,
+                com.google.api.MonitoredResourceMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
@@ -1484,6 +1633,8 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
 
     private int metricKind_ = 0;
     /**
+     *
+     *
      * 
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1497,12 +1648,16 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1516,6 +1671,7 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -1526,6 +1682,8 @@ public Builder setMetricKindValue(int value) { return this; } /** + * + * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1539,14 +1697,18 @@ public Builder setMetricKindValue(int value) {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** + * + * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1560,6 +1722,7 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -1573,6 +1736,8 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** + * + * *
      * The metric kind of the time series. When listing time series, this metric
      * kind might be different from the metric kind of the associated metric if
@@ -1586,6 +1751,7 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -1597,6 +1763,8 @@ public Builder clearMetricKind() { private int valueType_ = 0; /** + * + * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1607,12 +1775,16 @@ public Builder clearMetricKind() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1623,6 +1795,7 @@ public Builder clearMetricKind() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -1633,6 +1806,8 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1643,14 +1818,18 @@ public Builder setValueTypeValue(int value) {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1661,6 +1840,7 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @param value The valueType to set. * @return This builder for chaining. */ @@ -1674,6 +1854,8 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** + * + * *
      * The value type of the time series. When listing time series, this value
      * type might be different from the value type of the associated metric if
@@ -1684,6 +1866,7 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) {
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return This builder for chaining. */ public Builder clearValueType() { @@ -1694,18 +1877,24 @@ public Builder clearValueType() { } private java.util.List points_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { points_ = new java.util.ArrayList(points_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder> pointsBuilder_; + com.google.monitoring.v3.Point, + com.google.monitoring.v3.Point.Builder, + com.google.monitoring.v3.PointOrBuilder> + pointsBuilder_; /** + * + * *
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1727,6 +1916,8 @@ public java.util.List getPointsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1748,6 +1939,8 @@ public int getPointsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1769,6 +1962,8 @@ public com.google.monitoring.v3.Point getPoints(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1782,8 +1977,7 @@ public com.google.monitoring.v3.Point getPoints(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder setPoints(
-        int index, com.google.monitoring.v3.Point value) {
+    public Builder setPoints(int index, com.google.monitoring.v3.Point value) {
       if (pointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1797,6 +1991,8 @@ public Builder setPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1810,8 +2006,7 @@ public Builder setPoints(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder setPoints(
-        int index, com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder setPoints(int index, com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.set(index, builderForValue.build());
@@ -1822,6 +2017,8 @@ public Builder setPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1849,6 +2046,8 @@ public Builder addPoints(com.google.monitoring.v3.Point value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1862,8 +2061,7 @@ public Builder addPoints(com.google.monitoring.v3.Point value) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(
-        int index, com.google.monitoring.v3.Point value) {
+    public Builder addPoints(int index, com.google.monitoring.v3.Point value) {
       if (pointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1877,6 +2075,8 @@ public Builder addPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1890,8 +2090,7 @@ public Builder addPoints(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(
-        com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder addPoints(com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.add(builderForValue.build());
@@ -1902,6 +2101,8 @@ public Builder addPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1915,8 +2116,7 @@ public Builder addPoints(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public Builder addPoints(
-        int index, com.google.monitoring.v3.Point.Builder builderForValue) {
+    public Builder addPoints(int index, com.google.monitoring.v3.Point.Builder builderForValue) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
         points_.add(index, builderForValue.build());
@@ -1927,6 +2127,8 @@ public Builder addPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1944,8 +2146,7 @@ public Builder addAllPoints(
         java.lang.Iterable values) {
       if (pointsBuilder_ == null) {
         ensurePointsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, points_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, points_);
         onChanged();
       } else {
         pointsBuilder_.addAllMessages(values);
@@ -1953,6 +2154,8 @@ public Builder addAllPoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1977,6 +2180,8 @@ public Builder clearPoints() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2001,6 +2206,8 @@ public Builder removePoints(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2014,11 +2221,12 @@ public Builder removePoints(int index) {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.Point.Builder getPointsBuilder(
-        int index) {
+    public com.google.monitoring.v3.Point.Builder getPointsBuilder(int index) {
       return getPointsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2032,14 +2240,16 @@ public com.google.monitoring.v3.Point.Builder getPointsBuilder(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
-        int index) {
+    public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index) {
       if (pointsBuilder_ == null) {
-        return points_.get(index);  } else {
+        return points_.get(index);
+      } else {
         return pointsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2053,8 +2263,8 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public java.util.List 
-         getPointsOrBuilderList() {
+    public java.util.List
+        getPointsOrBuilderList() {
       if (pointsBuilder_ != null) {
         return pointsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2062,6 +2272,8 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2076,10 +2288,12 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
      * repeated .google.monitoring.v3.Point points = 5;
      */
     public com.google.monitoring.v3.Point.Builder addPointsBuilder() {
-      return getPointsFieldBuilder().addBuilder(
-          com.google.monitoring.v3.Point.getDefaultInstance());
+      return getPointsFieldBuilder()
+          .addBuilder(com.google.monitoring.v3.Point.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2093,12 +2307,13 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder() {
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public com.google.monitoring.v3.Point.Builder addPointsBuilder(
-        int index) {
-      return getPointsFieldBuilder().addBuilder(
-          index, com.google.monitoring.v3.Point.getDefaultInstance());
+    public com.google.monitoring.v3.Point.Builder addPointsBuilder(int index) {
+      return getPointsFieldBuilder()
+          .addBuilder(index, com.google.monitoring.v3.Point.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -2112,20 +2327,22 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(
      *
      * repeated .google.monitoring.v3.Point points = 5;
      */
-    public java.util.List 
-         getPointsBuilderList() {
+    public java.util.List getPointsBuilderList() {
       return getPointsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder> 
+            com.google.monitoring.v3.Point,
+            com.google.monitoring.v3.Point.Builder,
+            com.google.monitoring.v3.PointOrBuilder>
         getPointsFieldBuilder() {
       if (pointsBuilder_ == null) {
-        pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder>(
-                points_,
-                ((bitField0_ & 0x00000020) != 0),
-                getParentForChildren(),
-                isClean());
+        pointsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.Point,
+                com.google.monitoring.v3.Point.Builder,
+                com.google.monitoring.v3.PointOrBuilder>(
+                points_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
         points_ = null;
       }
       return pointsBuilder_;
@@ -2133,6 +2350,8 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(
 
     private java.lang.Object unit_ = "";
     /**
+     *
+     *
      * 
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2140,13 +2359,13 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(
      * 
* * string unit = 8; + * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -2155,6 +2374,8 @@ public java.lang.String getUnit() { } } /** + * + * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2162,15 +2383,14 @@ public java.lang.String getUnit() {
      * 
* * string unit = 8; + * * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -2178,6 +2398,8 @@ public java.lang.String getUnit() { } } /** + * + * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2185,18 +2407,22 @@ public java.lang.String getUnit() {
      * 
* * string unit = 8; + * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } unit_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2204,6 +2430,7 @@ public Builder setUnit(
      * 
* * string unit = 8; + * * @return This builder for chaining. */ public Builder clearUnit() { @@ -2213,6 +2440,8 @@ public Builder clearUnit() { return this; } /** + * + * *
      * The units in which the metric value is reported. It is only applicable
      * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -2220,21 +2449,23 @@ public Builder clearUnit() {
      * 
* * string unit = 8; + * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2244,12 +2475,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeries) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) private static final com.google.monitoring.v3.TimeSeries DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeries(); } @@ -2258,27 +2489,27 @@ public static com.google.monitoring.v3.TimeSeries getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeries parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2293,6 +2524,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java index f76f64efbf36..9a874b8ad775 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** + * + * *
  * Represents the values of a time series associated with a
  * TimeSeriesDescriptor.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
  */
-public final class TimeSeriesData extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeSeriesData extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData)
     TimeSeriesDataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeSeriesData.newBuilder() to construct.
   private TimeSeriesData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TimeSeriesData() {
     labelValues_ = java.util.Collections.emptyList();
     pointData_ = java.util.Collections.emptyList();
@@ -27,38 +45,43 @@ private TimeSeriesData() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeSeriesData();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
+    return com.google.monitoring.v3.MetricProto
+        .internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeriesData.class, com.google.monitoring.v3.TimeSeriesData.Builder.class);
+            com.google.monitoring.v3.TimeSeriesData.class,
+            com.google.monitoring.v3.TimeSeriesData.Builder.class);
   }
 
-  public interface PointDataOrBuilder extends
+  public interface PointDataOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesData.PointData)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
      * The values that make up the point.
      * 
@@ -67,6 +90,8 @@ public interface PointDataOrBuilder extends */ com.google.monitoring.v3.TypedValue getValues(int index); /** + * + * *
      * The values that make up the point.
      * 
@@ -75,43 +100,53 @@ public interface PointDataOrBuilder extends */ int getValuesCount(); /** + * + * *
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - java.util.List - getValuesOrBuilderList(); + java.util.List getValuesOrBuilderList(); /** + * + * *
      * The values that make up the point.
      * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( - int index); + com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index); /** + * + * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return Whether the timeInterval field is set. */ boolean hasTimeInterval(); /** + * + * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return The timeInterval. */ com.google.monitoring.v3.TimeInterval getTimeInterval(); /** + * + * *
      * The time interval associated with the point.
      * 
@@ -121,6 +156,8 @@ com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder(); } /** + * + * *
    * A point's value columns and time interval. Each point has one or more
    * point values corresponding to the entries in `point_descriptors` field in
@@ -129,43 +166,48 @@ com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
    */
-  public static final class PointData extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PointData extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesData.PointData)
       PointDataOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PointData.newBuilder() to construct.
     private PointData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private PointData() {
       values_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PointData();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesData.PointData.class, com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
+              com.google.monitoring.v3.TimeSeriesData.PointData.class,
+              com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
     }
 
     public static final int VALUES_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private java.util.List values_;
     /**
+     *
+     *
      * 
      * The values that make up the point.
      * 
@@ -177,6 +219,8 @@ public java.util.List getValuesList() { return values_; } /** + * + * *
      * The values that make up the point.
      * 
@@ -184,11 +228,13 @@ public java.util.List getValuesList() { * repeated .google.monitoring.v3.TypedValue values = 1; */ @java.lang.Override - public java.util.List + public java.util.List getValuesOrBuilderList() { return values_; } /** + * + * *
      * The values that make up the point.
      * 
@@ -200,6 +246,8 @@ public int getValuesCount() { return values_.size(); } /** + * + * *
      * The values that make up the point.
      * 
@@ -211,6 +259,8 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { return values_.get(index); } /** + * + * *
      * The values that make up the point.
      * 
@@ -218,19 +268,21 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { * repeated .google.monitoring.v3.TypedValue values = 1; */ @java.lang.Override - public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( - int index) { + public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) { return values_.get(index); } public static final int TIME_INTERVAL_FIELD_NUMBER = 2; private com.google.monitoring.v3.TimeInterval timeInterval_; /** + * + * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return Whether the timeInterval field is set. */ @java.lang.Override @@ -238,18 +290,25 @@ public boolean hasTimeInterval() { return timeInterval_ != null; } /** + * + * *
      * The time interval associated with the point.
      * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return The timeInterval. */ @java.lang.Override public com.google.monitoring.v3.TimeInterval getTimeInterval() { - return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; + return timeInterval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : timeInterval_; } /** + * + * *
      * The time interval associated with the point.
      * 
@@ -258,10 +317,13 @@ public com.google.monitoring.v3.TimeInterval getTimeInterval() { */ @java.lang.Override public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() { - return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; + return timeInterval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : timeInterval_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } @@ -291,12 +352,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); } if (timeInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimeInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,19 +365,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesData.PointData)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesData.PointData other = (com.google.monitoring.v3.TimeSeriesData.PointData) obj; + com.google.monitoring.v3.TimeSeriesData.PointData other = + (com.google.monitoring.v3.TimeSeriesData.PointData) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (hasTimeInterval() != other.hasTimeInterval()) return false; if (hasTimeInterval()) { - if (!getTimeInterval() - .equals(other.getTimeInterval())) return false; + if (!getTimeInterval().equals(other.getTimeInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -345,89 +403,93 @@ public int hashCode() { } public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesData.PointData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesData.PointData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesData.PointData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -437,6 +499,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A point's value columns and time interval. Each point has one or more
      * point values corresponding to the entries in `point_descriptors` field in
@@ -445,33 +509,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.TimeSeriesData.PointData}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesData.PointData)
         com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.MetricProto
+            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
+        return com.google.monitoring.v3.MetricProto
+            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.TimeSeriesData.PointData.class, com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
+                com.google.monitoring.v3.TimeSeriesData.PointData.class,
+                com.google.monitoring.v3.TimeSeriesData.PointData.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.TimeSeriesData.PointData.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -492,9 +556,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.MetricProto
+            .internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor;
       }
 
       @java.lang.Override
@@ -513,14 +577,18 @@ public com.google.monitoring.v3.TimeSeriesData.PointData build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.TimeSeriesData.PointData buildPartial() {
-        com.google.monitoring.v3.TimeSeriesData.PointData result = new com.google.monitoring.v3.TimeSeriesData.PointData(this);
+        com.google.monitoring.v3.TimeSeriesData.PointData result =
+            new com.google.monitoring.v3.TimeSeriesData.PointData(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.monitoring.v3.TimeSeriesData.PointData result) {
+      private void buildPartialRepeatedFields(
+          com.google.monitoring.v3.TimeSeriesData.PointData result) {
         if (valuesBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             values_ = java.util.Collections.unmodifiableList(values_);
@@ -535,9 +603,8 @@ private void buildPartialRepeatedFields(com.google.monitoring.v3.TimeSeriesData.
       private void buildPartial0(com.google.monitoring.v3.TimeSeriesData.PointData result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.timeInterval_ = timeIntervalBuilder_ == null
-              ? timeInterval_
-              : timeIntervalBuilder_.build();
+          result.timeInterval_ =
+              timeIntervalBuilder_ == null ? timeInterval_ : timeIntervalBuilder_.build();
         }
       }
 
@@ -545,38 +612,41 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesData.PointData res
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.TimeSeriesData.PointData) {
-          return mergeFrom((com.google.monitoring.v3.TimeSeriesData.PointData)other);
+          return mergeFrom((com.google.monitoring.v3.TimeSeriesData.PointData) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -584,7 +654,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData.PointData other) {
-        if (other == com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance())
+          return this;
         if (valuesBuilder_ == null) {
           if (!other.values_.isEmpty()) {
             if (values_.isEmpty()) {
@@ -603,9 +674,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData.PointData other
               valuesBuilder_ = null;
               values_ = other.values_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              valuesBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getValuesFieldBuilder() : null;
+              valuesBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getValuesFieldBuilder()
+                      : null;
             } else {
               valuesBuilder_.addAllMessages(other.values_);
             }
@@ -640,32 +712,32 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                com.google.monitoring.v3.TypedValue m =
-                    input.readMessage(
-                        com.google.monitoring.v3.TypedValue.parser(),
-                        extensionRegistry);
-                if (valuesBuilder_ == null) {
-                  ensureValuesIsMutable();
-                  values_.add(m);
-                } else {
-                  valuesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getTimeIntervalFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  com.google.monitoring.v3.TypedValue m =
+                      input.readMessage(
+                          com.google.monitoring.v3.TypedValue.parser(), extensionRegistry);
+                  if (valuesBuilder_ == null) {
+                    ensureValuesIsMutable();
+                    values_.add(m);
+                  } else {
+                    valuesBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(getTimeIntervalFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,21 +747,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.util.List values_ =
-        java.util.Collections.emptyList();
+          java.util.Collections.emptyList();
+
       private void ensureValuesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           values_ = new java.util.ArrayList(values_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> valuesBuilder_;
+              com.google.monitoring.v3.TypedValue,
+              com.google.monitoring.v3.TypedValue.Builder,
+              com.google.monitoring.v3.TypedValueOrBuilder>
+          valuesBuilder_;
 
       /**
+       *
+       *
        * 
        * The values that make up the point.
        * 
@@ -704,6 +783,8 @@ public java.util.List getValuesList() { } } /** + * + * *
        * The values that make up the point.
        * 
@@ -718,6 +799,8 @@ public int getValuesCount() { } } /** + * + * *
        * The values that make up the point.
        * 
@@ -732,14 +815,15 @@ public com.google.monitoring.v3.TypedValue getValues(int index) { } } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder setValues( - int index, com.google.monitoring.v3.TypedValue value) { + public Builder setValues(int index, com.google.monitoring.v3.TypedValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,6 +837,8 @@ public Builder setValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -771,6 +857,8 @@ public Builder setValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -791,14 +879,15 @@ public Builder addValues(com.google.monitoring.v3.TypedValue value) { return this; } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder addValues( - int index, com.google.monitoring.v3.TypedValue value) { + public Builder addValues(int index, com.google.monitoring.v3.TypedValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -812,14 +901,15 @@ public Builder addValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public Builder addValues( - com.google.monitoring.v3.TypedValue.Builder builderForValue) { + public Builder addValues(com.google.monitoring.v3.TypedValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -830,6 +920,8 @@ public Builder addValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -848,6 +940,8 @@ public Builder addValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -858,8 +952,7 @@ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -867,6 +960,8 @@ public Builder addAllValues( return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -884,6 +979,8 @@ public Builder clearValues() { return this; } /** + * + * *
        * The values that make up the point.
        * 
@@ -901,39 +998,44 @@ public Builder removeValues(int index) { return this; } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValue.Builder getValuesBuilder( - int index) { + public com.google.monitoring.v3.TypedValue.Builder getValuesBuilder(int index) { return getValuesFieldBuilder().getBuilder(index); } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( - int index) { + public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder(int index) { if (valuesBuilder_ == null) { - return values_.get(index); } else { + return values_.get(index); + } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public java.util.List - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -941,6 +1043,8 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( } } /** + * + * *
        * The values that make up the point.
        * 
@@ -948,42 +1052,47 @@ public com.google.monitoring.v3.TypedValueOrBuilder getValuesOrBuilder( * repeated .google.monitoring.v3.TypedValue values = 1; */ public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - com.google.monitoring.v3.TypedValue.getDefaultInstance()); + return getValuesFieldBuilder() + .addBuilder(com.google.monitoring.v3.TypedValue.getDefaultInstance()); } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TypedValue.getDefaultInstance()); + public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.TypedValue.getDefaultInstance()); } /** + * + * *
        * The values that make up the point.
        * 
* * repeated .google.monitoring.v3.TypedValue values = 1; */ - public java.util.List - getValuesBuilderList() { + public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder> + com.google.monitoring.v3.TypedValue, + com.google.monitoring.v3.TypedValue.Builder, + com.google.monitoring.v3.TypedValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TypedValue, com.google.monitoring.v3.TypedValue.Builder, com.google.monitoring.v3.TypedValueOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TypedValue, + com.google.monitoring.v3.TypedValue.Builder, + com.google.monitoring.v3.TypedValueOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; @@ -991,34 +1100,47 @@ public com.google.monitoring.v3.TypedValue.Builder addValuesBuilder( private com.google.monitoring.v3.TimeInterval timeInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> timeIntervalBuilder_; + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> + timeIntervalBuilder_; /** + * + * *
        * The time interval associated with the point.
        * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return Whether the timeInterval field is set. */ public boolean hasTimeInterval() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The time interval associated with the point.
        * 
* * .google.monitoring.v3.TimeInterval time_interval = 2; + * * @return The timeInterval. */ public com.google.monitoring.v3.TimeInterval getTimeInterval() { if (timeIntervalBuilder_ == null) { - return timeInterval_ == null ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; + return timeInterval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : timeInterval_; } else { return timeIntervalBuilder_.getMessage(); } } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1039,6 +1161,8 @@ public Builder setTimeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1057,6 +1181,8 @@ public Builder setTimeInterval( return this; } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1065,9 +1191,9 @@ public Builder setTimeInterval( */ public Builder mergeTimeInterval(com.google.monitoring.v3.TimeInterval value) { if (timeIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - timeInterval_ != null && - timeInterval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && timeInterval_ != null + && timeInterval_ != com.google.monitoring.v3.TimeInterval.getDefaultInstance()) { getTimeIntervalBuilder().mergeFrom(value); } else { timeInterval_ = value; @@ -1080,6 +1206,8 @@ public Builder mergeTimeInterval(com.google.monitoring.v3.TimeInterval value) { return this; } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1097,6 +1225,8 @@ public Builder clearTimeInterval() { return this; } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1109,6 +1239,8 @@ public com.google.monitoring.v3.TimeInterval.Builder getTimeIntervalBuilder() { return getTimeIntervalFieldBuilder().getBuilder(); } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1119,11 +1251,14 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() if (timeIntervalBuilder_ != null) { return timeIntervalBuilder_.getMessageOrBuilder(); } else { - return timeInterval_ == null ? - com.google.monitoring.v3.TimeInterval.getDefaultInstance() : timeInterval_; + return timeInterval_ == null + ? com.google.monitoring.v3.TimeInterval.getDefaultInstance() + : timeInterval_; } } /** + * + * *
        * The time interval associated with the point.
        * 
@@ -1131,18 +1266,22 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getTimeIntervalOrBuilder() * .google.monitoring.v3.TimeInterval time_interval = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder> getTimeIntervalFieldBuilder() { if (timeIntervalBuilder_ == null) { - timeIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder>( - getTimeInterval(), - getParentForChildren(), - isClean()); + timeIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.TimeInterval, + com.google.monitoring.v3.TimeInterval.Builder, + com.google.monitoring.v3.TimeIntervalOrBuilder>( + getTimeInterval(), getParentForChildren(), isClean()); timeInterval_ = null; } return timeIntervalBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1155,12 +1294,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesData.PointData) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData.PointData) private static final com.google.monitoring.v3.TimeSeriesData.PointData DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesData.PointData(); } @@ -1169,27 +1308,28 @@ public static com.google.monitoring.v3.TimeSeriesData.PointData getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PointData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PointData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1204,13 +1344,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesData.PointData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LABEL_VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List labelValues_; /** + * + * *
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1225,6 +1367,8 @@ public java.util.List getLabelValuesList()
     return labelValues_;
   }
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1235,11 +1379,13 @@ public java.util.List getLabelValuesList()
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLabelValuesOrBuilderList() {
     return labelValues_;
   }
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1254,6 +1400,8 @@ public int getLabelValuesCount() {
     return labelValues_.size();
   }
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1268,6 +1416,8 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
     return labelValues_.get(index);
   }
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1278,15 +1428,17 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
-      int index) {
+  public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
     return labelValues_.get(index);
   }
 
   public static final int POINT_DATA_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List pointData_;
   /**
+   *
+   *
    * 
    * The points in the time series.
    * 
@@ -1298,6 +1450,8 @@ public java.util.List getPoin return pointData_; } /** + * + * *
    * The points in the time series.
    * 
@@ -1305,11 +1459,13 @@ public java.util.List getPoin * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPointDataOrBuilderList() { return pointData_; } /** + * + * *
    * The points in the time series.
    * 
@@ -1321,6 +1477,8 @@ public int getPointDataCount() { return pointData_.size(); } /** + * + * *
    * The points in the time series.
    * 
@@ -1332,6 +1490,8 @@ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) return pointData_.get(index); } /** + * + * *
    * The points in the time series.
    * 
@@ -1345,6 +1505,7 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1356,8 +1517,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < labelValues_.size(); i++) { output.writeMessage(1, labelValues_.get(i)); } @@ -1374,12 +1534,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < labelValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, labelValues_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelValues_.get(i)); } for (int i = 0; i < pointData_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, pointData_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pointData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1389,17 +1547,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesData)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeriesData other = (com.google.monitoring.v3.TimeSeriesData) obj; - if (!getLabelValuesList() - .equals(other.getLabelValuesList())) return false; - if (!getPointDataList() - .equals(other.getPointDataList())) return false; + if (!getLabelValuesList().equals(other.getLabelValuesList())) return false; + if (!getPointDataList().equals(other.getPointDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1424,99 +1580,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesData parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the values of a time series associated with a
    * TimeSeriesDescriptor.
@@ -1524,33 +1685,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesData}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesData)
       com.google.monitoring.v3.TimeSeriesDataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesData.class, com.google.monitoring.v3.TimeSeriesData.Builder.class);
+              com.google.monitoring.v3.TimeSeriesData.class,
+              com.google.monitoring.v3.TimeSeriesData.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeriesData.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1573,9 +1733,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.MetricProto
+          .internal_static_google_monitoring_v3_TimeSeriesData_descriptor;
     }
 
     @java.lang.Override
@@ -1594,9 +1754,12 @@ public com.google.monitoring.v3.TimeSeriesData build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeSeriesData buildPartial() {
-      com.google.monitoring.v3.TimeSeriesData result = new com.google.monitoring.v3.TimeSeriesData(this);
+      com.google.monitoring.v3.TimeSeriesData result =
+          new com.google.monitoring.v3.TimeSeriesData(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1630,38 +1793,39 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesData result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeriesData) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeriesData)other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeriesData) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1688,9 +1852,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData other) {
             labelValuesBuilder_ = null;
             labelValues_ = other.labelValues_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            labelValuesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLabelValuesFieldBuilder() : null;
+            labelValuesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLabelValuesFieldBuilder()
+                    : null;
           } else {
             labelValuesBuilder_.addAllMessages(other.labelValues_);
           }
@@ -1714,9 +1879,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesData other) {
             pointDataBuilder_ = null;
             pointData_ = other.pointData_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            pointDataBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPointDataFieldBuilder() : null;
+            pointDataBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPointDataFieldBuilder()
+                    : null;
           } else {
             pointDataBuilder_.addAllMessages(other.pointData_);
           }
@@ -1748,38 +1914,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.monitoring.v3.LabelValue m =
-                  input.readMessage(
-                      com.google.monitoring.v3.LabelValue.parser(),
-                      extensionRegistry);
-              if (labelValuesBuilder_ == null) {
-                ensureLabelValuesIsMutable();
-                labelValues_.add(m);
-              } else {
-                labelValuesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.monitoring.v3.TimeSeriesData.PointData m =
-                  input.readMessage(
-                      com.google.monitoring.v3.TimeSeriesData.PointData.parser(),
-                      extensionRegistry);
-              if (pointDataBuilder_ == null) {
-                ensurePointDataIsMutable();
-                pointData_.add(m);
-              } else {
-                pointDataBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.monitoring.v3.LabelValue m =
+                    input.readMessage(
+                        com.google.monitoring.v3.LabelValue.parser(), extensionRegistry);
+                if (labelValuesBuilder_ == null) {
+                  ensureLabelValuesIsMutable();
+                  labelValues_.add(m);
+                } else {
+                  labelValuesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.monitoring.v3.TimeSeriesData.PointData m =
+                    input.readMessage(
+                        com.google.monitoring.v3.TimeSeriesData.PointData.parser(),
+                        extensionRegistry);
+                if (pointDataBuilder_ == null) {
+                  ensurePointDataIsMutable();
+                  pointData_.add(m);
+                } else {
+                  pointDataBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1789,21 +1957,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List labelValues_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLabelValuesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         labelValues_ = new java.util.ArrayList(labelValues_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder> labelValuesBuilder_;
+            com.google.monitoring.v3.LabelValue,
+            com.google.monitoring.v3.LabelValue.Builder,
+            com.google.monitoring.v3.LabelValueOrBuilder>
+        labelValuesBuilder_;
 
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1821,6 +1996,8 @@ public java.util.List getLabelValuesList()
       }
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1838,6 +2015,8 @@ public int getLabelValuesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1855,6 +2034,8 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1864,8 +2045,7 @@ public com.google.monitoring.v3.LabelValue getLabelValues(int index) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder setLabelValues(
-        int index, com.google.monitoring.v3.LabelValue value) {
+    public Builder setLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
       if (labelValuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1879,6 +2059,8 @@ public Builder setLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1900,6 +2082,8 @@ public Builder setLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1923,6 +2107,8 @@ public Builder addLabelValues(com.google.monitoring.v3.LabelValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1932,8 +2118,7 @@ public Builder addLabelValues(com.google.monitoring.v3.LabelValue value) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder addLabelValues(
-        int index, com.google.monitoring.v3.LabelValue value) {
+    public Builder addLabelValues(int index, com.google.monitoring.v3.LabelValue value) {
       if (labelValuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1947,6 +2132,8 @@ public Builder addLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1956,8 +2143,7 @@ public Builder addLabelValues(
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public Builder addLabelValues(
-        com.google.monitoring.v3.LabelValue.Builder builderForValue) {
+    public Builder addLabelValues(com.google.monitoring.v3.LabelValue.Builder builderForValue) {
       if (labelValuesBuilder_ == null) {
         ensureLabelValuesIsMutable();
         labelValues_.add(builderForValue.build());
@@ -1968,6 +2154,8 @@ public Builder addLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -1989,6 +2177,8 @@ public Builder addLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2002,8 +2192,7 @@ public Builder addAllLabelValues(
         java.lang.Iterable values) {
       if (labelValuesBuilder_ == null) {
         ensureLabelValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, labelValues_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelValues_);
         onChanged();
       } else {
         labelValuesBuilder_.addAllMessages(values);
@@ -2011,6 +2200,8 @@ public Builder addAllLabelValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2031,6 +2222,8 @@ public Builder clearLabelValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2051,6 +2244,8 @@ public Builder removeLabelValues(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2060,11 +2255,12 @@ public Builder removeLabelValues(int index) {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(
-        int index) {
+    public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(int index) {
       return getLabelValuesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2074,14 +2270,16 @@ public com.google.monitoring.v3.LabelValue.Builder getLabelValuesBuilder(
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
-        int index) {
+    public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index) {
       if (labelValuesBuilder_ == null) {
-        return labelValues_.get(index);  } else {
+        return labelValues_.get(index);
+      } else {
         return labelValuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2091,8 +2289,8 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public java.util.List 
-         getLabelValuesOrBuilderList() {
+    public java.util.List
+        getLabelValuesOrBuilderList() {
       if (labelValuesBuilder_ != null) {
         return labelValuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2100,6 +2298,8 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2110,10 +2310,12 @@ public com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
     public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder() {
-      return getLabelValuesFieldBuilder().addBuilder(
-          com.google.monitoring.v3.LabelValue.getDefaultInstance());
+      return getLabelValuesFieldBuilder()
+          .addBuilder(com.google.monitoring.v3.LabelValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2123,12 +2325,13 @@ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder() {
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(
-        int index) {
-      return getLabelValuesFieldBuilder().addBuilder(
-          index, com.google.monitoring.v3.LabelValue.getDefaultInstance());
+    public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(int index) {
+      return getLabelValuesFieldBuilder()
+          .addBuilder(index, com.google.monitoring.v3.LabelValue.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The values of the labels in the time series identifier, given in the same
      * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -2138,38 +2341,47 @@ public com.google.monitoring.v3.LabelValue.Builder addLabelValuesBuilder(
      *
      * repeated .google.monitoring.v3.LabelValue label_values = 1;
      */
-    public java.util.List 
-         getLabelValuesBuilderList() {
+    public java.util.List getLabelValuesBuilderList() {
       return getLabelValuesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder> 
+            com.google.monitoring.v3.LabelValue,
+            com.google.monitoring.v3.LabelValue.Builder,
+            com.google.monitoring.v3.LabelValueOrBuilder>
         getLabelValuesFieldBuilder() {
       if (labelValuesBuilder_ == null) {
-        labelValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.monitoring.v3.LabelValue, com.google.monitoring.v3.LabelValue.Builder, com.google.monitoring.v3.LabelValueOrBuilder>(
-                labelValues_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        labelValuesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.monitoring.v3.LabelValue,
+                com.google.monitoring.v3.LabelValue.Builder,
+                com.google.monitoring.v3.LabelValueOrBuilder>(
+                labelValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         labelValues_ = null;
       }
       return labelValuesBuilder_;
     }
 
     private java.util.List pointData_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePointDataIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        pointData_ = new java.util.ArrayList(pointData_);
+        pointData_ =
+            new java.util.ArrayList(pointData_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> pointDataBuilder_;
+            com.google.monitoring.v3.TimeSeriesData.PointData,
+            com.google.monitoring.v3.TimeSeriesData.PointData.Builder,
+            com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>
+        pointDataBuilder_;
 
     /**
+     *
+     *
      * 
      * The points in the time series.
      * 
@@ -2184,6 +2396,8 @@ public java.util.List getPoin } } /** + * + * *
      * The points in the time series.
      * 
@@ -2198,6 +2412,8 @@ public int getPointDataCount() { } } /** + * + * *
      * The points in the time series.
      * 
@@ -2212,6 +2428,8 @@ public com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index) } } /** + * + * *
      * The points in the time series.
      * 
@@ -2233,6 +2451,8 @@ public Builder setPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2251,6 +2471,8 @@ public Builder setPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2271,6 +2493,8 @@ public Builder addPointData(com.google.monitoring.v3.TimeSeriesData.PointData va return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2292,6 +2516,8 @@ public Builder addPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2310,6 +2536,8 @@ public Builder addPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2328,6 +2556,8 @@ public Builder addPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2338,8 +2568,7 @@ public Builder addAllPointData( java.lang.Iterable values) { if (pointDataBuilder_ == null) { ensurePointDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pointData_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointData_); onChanged(); } else { pointDataBuilder_.addAllMessages(values); @@ -2347,6 +2576,8 @@ public Builder addAllPointData( return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2364,6 +2595,8 @@ public Builder clearPointData() { return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2381,6 +2614,8 @@ public Builder removePointData(int index) { return this; } /** + * + * *
      * The points in the time series.
      * 
@@ -2392,6 +2627,8 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder getPointDataBui return getPointDataFieldBuilder().getBuilder(index); } /** + * + * *
      * The points in the time series.
      * 
@@ -2401,19 +2638,22 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder getPointDataBui public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder( int index) { if (pointDataBuilder_ == null) { - return pointData_.get(index); } else { + return pointData_.get(index); + } else { return pointDataBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The points in the time series.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - public java.util.List - getPointDataOrBuilderList() { + public java.util.List + getPointDataOrBuilderList() { if (pointDataBuilder_ != null) { return pointDataBuilder_.getMessageOrBuilderList(); } else { @@ -2421,6 +2661,8 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr } } /** + * + * *
      * The points in the time series.
      * 
@@ -2428,10 +2670,12 @@ public com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOr * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder() { - return getPointDataFieldBuilder().addBuilder( - com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); + return getPointDataFieldBuilder() + .addBuilder(com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); } /** + * + * *
      * The points in the time series.
      * 
@@ -2440,37 +2684,43 @@ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBui */ public com.google.monitoring.v3.TimeSeriesData.PointData.Builder addPointDataBuilder( int index) { - return getPointDataFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); + return getPointDataFieldBuilder() + .addBuilder( + index, com.google.monitoring.v3.TimeSeriesData.PointData.getDefaultInstance()); } /** + * + * *
      * The points in the time series.
      * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - public java.util.List - getPointDataBuilderList() { + public java.util.List + getPointDataBuilderList() { return getPointDataFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> + com.google.monitoring.v3.TimeSeriesData.PointData, + com.google.monitoring.v3.TimeSeriesData.PointData.Builder, + com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder> getPointDataFieldBuilder() { if (pointDataBuilder_ == null) { - pointDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesData.PointData, com.google.monitoring.v3.TimeSeriesData.PointData.Builder, com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>( - pointData_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + pointDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesData.PointData, + com.google.monitoring.v3.TimeSeriesData.PointData.Builder, + com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder>( + pointData_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); pointData_ = null; } return pointDataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2480,12 +2730,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesData) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesData) private static final com.google.monitoring.v3.TimeSeriesData DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesData(); } @@ -2494,27 +2744,27 @@ public static com.google.monitoring.v3.TimeSeriesData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2529,6 +2779,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java similarity index 80% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java index 35fa4f98d061..cf01a1516877 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesDataOrBuilder extends +public interface TimeSeriesDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesData) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -17,9 +35,10 @@ public interface TimeSeriesDataOrBuilder extends
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  java.util.List 
-      getLabelValuesList();
+  java.util.List getLabelValuesList();
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -31,6 +50,8 @@ public interface TimeSeriesDataOrBuilder extends
    */
   com.google.monitoring.v3.LabelValue getLabelValues(int index);
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -42,6 +63,8 @@ public interface TimeSeriesDataOrBuilder extends
    */
   int getLabelValuesCount();
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -51,9 +74,11 @@ public interface TimeSeriesDataOrBuilder extends
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  java.util.List 
+  java.util.List
       getLabelValuesOrBuilderList();
   /**
+   *
+   *
    * 
    * The values of the labels in the time series identifier, given in the same
    * order as the `label_descriptors` field of the TimeSeriesDescriptor
@@ -63,19 +88,21 @@ public interface TimeSeriesDataOrBuilder extends
    *
    * repeated .google.monitoring.v3.LabelValue label_values = 1;
    */
-  com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(
-      int index);
+  com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - java.util.List - getPointDataList(); + java.util.List getPointDataList(); /** + * + * *
    * The points in the time series.
    * 
@@ -84,6 +111,8 @@ com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder( */ com.google.monitoring.v3.TimeSeriesData.PointData getPointData(int index); /** + * + * *
    * The points in the time series.
    * 
@@ -92,21 +121,24 @@ com.google.monitoring.v3.LabelValueOrBuilder getLabelValuesOrBuilder( */ int getPointDataCount(); /** + * + * *
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - java.util.List + java.util.List getPointDataOrBuilderList(); /** + * + * *
    * The points in the time series.
    * 
* * repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2; */ - com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder( - int index); + com.google.monitoring.v3.TimeSeriesData.PointDataOrBuilder getPointDataOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java index 403ceef741a4..583bb99f23d2 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; /** + * + * *
  * A descriptor for the labels and points in a time series.
  * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor} */ -public final class TimeSeriesDescriptor extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeSeriesDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor) TimeSeriesDescriptorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeSeriesDescriptor.newBuilder() to construct. private TimeSeriesDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimeSeriesDescriptor() { labelDescriptors_ = java.util.Collections.emptyList(); pointDescriptors_ = java.util.Collections.emptyList(); @@ -26,87 +44,108 @@ private TimeSeriesDescriptor() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSeriesDescriptor(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.class, + com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); } - public interface ValueDescriptorOrBuilder extends + public interface ValueDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The value key.
      * 
* * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * The value key.
      * 
* * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** + * + * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** + * + * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** + * + * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -115,10 +154,13 @@ public interface ValueDescriptorOrBuilder extends
      * 
* * string unit = 4; + * * @return The unit. */ java.lang.String getUnit(); /** + * + * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -127,27 +169,30 @@ public interface ValueDescriptorOrBuilder extends
      * 
* * string unit = 4; + * * @return The bytes for unit. */ - com.google.protobuf.ByteString - getUnitBytes(); + com.google.protobuf.ByteString getUnitBytes(); } /** + * + * *
    * A descriptor for the value columns in a data point.
    * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor} */ - public static final class ValueDescriptor extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ValueDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) ValueDescriptorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValueDescriptor.newBuilder() to construct. private ValueDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValueDescriptor() { key_ = ""; valueType_ = 0; @@ -157,33 +202,38 @@ private ValueDescriptor() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValueDescriptor(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** + * + * *
      * The value key.
      * 
* * string key = 1; + * * @return The key. */ @java.lang.Override @@ -192,29 +242,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
      * The value key.
      * 
* * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -225,59 +275,80 @@ public java.lang.String getKey() { public static final int VALUE_TYPE_FIELD_NUMBER = 2; private int valueType_ = 0; /** + * + * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
      * The value type.
      * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The valueType. */ - @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override + public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int METRIC_KIND_FIELD_NUMBER = 3; private int metricKind_ = 0; /** + * + * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
      * The value stream kind.
      * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ - @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int UNIT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object unit_ = ""; /** + * + * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -286,6 +357,7 @@ public java.lang.String getKey() {
      * 
* * string unit = 4; + * * @return The unit. */ @java.lang.Override @@ -294,14 +366,15 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** + * + * *
      * The unit in which `time_series` point values are reported. `unit`
      * follows the UCUM format for units as seen in
@@ -310,16 +383,15 @@ public java.lang.String getUnit() {
      * 
* * string unit = 4; + * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -328,6 +400,7 @@ public java.lang.String getUnit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,15 +412,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { @@ -365,13 +439,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, valueType_); + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, metricKind_); + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, unit_); @@ -384,19 +458,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other = (com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) obj; + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other = + (com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) obj; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (valueType_ != other.valueType_) return false; if (metricKind_ != other.metricKind_) return false; - if (!getUnit() - .equals(other.getUnit())) return false; + if (!getUnit().equals(other.getUnit())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,89 +495,94 @@ public int hashCode() { } public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -514,39 +592,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A descriptor for the value columns in a data point.
      * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.class, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder.class); } // Construct using com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -559,13 +639,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; } @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType() { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor + getDefaultInstanceForType() { return com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance(); } @@ -580,13 +661,17 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor build() { @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor buildPartial() { - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result = new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result = + new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result) { + private void buildPartial0( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -606,46 +691,52 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) { - return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor)other); + return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other) { - if (other == com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor other) { + if (other + == com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()) + return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -688,32 +779,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - valueType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - metricKind_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - unit_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + valueType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + metricKind_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,22 +819,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object key_ = ""; /** + * + * *
        * The value key.
        * 
* * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -747,20 +846,21 @@ public java.lang.String getKey() { } } /** + * + * *
        * The value key.
        * 
* * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -768,28 +868,35 @@ public java.lang.String getKey() { } } /** + * + * *
        * The value key.
        * 
* * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The value key.
        * 
* * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -799,17 +906,21 @@ public Builder clearKey() { return this; } /** + * + * *
        * The value key.
        * 
* * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -819,22 +930,29 @@ public Builder setKeyBytes( private int valueType_ = 0; /** + * + * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -845,24 +963,31 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @param value The valueType to set. * @return This builder for chaining. */ @@ -876,11 +1001,14 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** + * + * *
        * The value type.
        * 
* * .google.api.MetricDescriptor.ValueType value_type = 2; + * * @return This builder for chaining. */ public Builder clearValueType() { @@ -892,22 +1020,29 @@ public Builder clearValueType() { private int metricKind_ = 0; /** + * + * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -918,24 +1053,31 @@ public Builder setMetricKindValue(int value) { return this; } /** + * + * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** + * + * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -949,11 +1091,14 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** + * + * *
        * The value stream kind.
        * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -965,6 +1110,8 @@ public Builder clearMetricKind() { private java.lang.Object unit_ = ""; /** + * + * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -973,13 +1120,13 @@ public Builder clearMetricKind() {
        * 
* * string unit = 4; + * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -988,6 +1135,8 @@ public java.lang.String getUnit() { } } /** + * + * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -996,15 +1145,14 @@ public java.lang.String getUnit() {
        * 
* * string unit = 4; + * * @return The bytes for unit. */ - public com.google.protobuf.ByteString - getUnitBytes() { + public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { @@ -1012,6 +1160,8 @@ public java.lang.String getUnit() { } } /** + * + * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1020,18 +1170,22 @@ public java.lang.String getUnit() {
        * 
* * string unit = 4; + * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1040,6 +1194,7 @@ public Builder setUnit(
        * 
* * string unit = 4; + * * @return This builder for chaining. */ public Builder clearUnit() { @@ -1049,6 +1204,8 @@ public Builder clearUnit() { return this; } /** + * + * *
        * The unit in which `time_series` point values are reported. `unit`
        * follows the UCUM format for units as seen in
@@ -1057,18 +1214,21 @@ public Builder clearUnit() {
        * 
* * string unit = 4; + * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1081,41 +1241,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor) - private static final com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor(); } - public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstance() { + public static com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,16 +1290,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getDefaultInstanceForType() { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LABEL_DESCRIPTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List labelDescriptors_; /** + * + * *
    * Descriptors for the labels.
    * 
@@ -1148,6 +1314,8 @@ public java.util.List getLabelDescriptorsList() return labelDescriptors_; } /** + * + * *
    * Descriptors for the labels.
    * 
@@ -1155,11 +1323,13 @@ public java.util.List getLabelDescriptorsList() * repeated .google.api.LabelDescriptor label_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLabelDescriptorsOrBuilderList() { return labelDescriptors_; } /** + * + * *
    * Descriptors for the labels.
    * 
@@ -1171,6 +1341,8 @@ public int getLabelDescriptorsCount() { return labelDescriptors_.size(); } /** + * + * *
    * Descriptors for the labels.
    * 
@@ -1182,6 +1354,8 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { return labelDescriptors_.get(index); } /** + * + * *
    * Descriptors for the labels.
    * 
@@ -1189,73 +1363,98 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { * repeated .google.api.LabelDescriptor label_descriptors = 1; */ @java.lang.Override - public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( - int index) { + public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) { return labelDescriptors_.get(index); } public static final int POINT_DESCRIPTORS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") - private java.util.List pointDescriptors_; + private java.util.List + pointDescriptors_; /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ @java.lang.Override - public java.util.List getPointDescriptorsList() { + public java.util.List + getPointDescriptorsList() { return pointDescriptors_; } /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> getPointDescriptorsOrBuilderList() { return pointDescriptors_; } /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ @java.lang.Override public int getPointDescriptorsCount() { return pointDescriptors_.size(); } /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors( + int index) { return pointDescriptors_.get(index); } /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ @java.lang.Override - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder + getPointDescriptorsOrBuilder(int index) { return pointDescriptors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1267,8 +1466,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < labelDescriptors_.size(); i++) { output.writeMessage(1, labelDescriptors_.get(i)); } @@ -1285,12 +1483,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < labelDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, labelDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labelDescriptors_.get(i)); } for (int i = 0; i < pointDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, pointDescriptors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pointDescriptors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1300,17 +1496,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesDescriptor)) { return super.equals(obj); } - com.google.monitoring.v3.TimeSeriesDescriptor other = (com.google.monitoring.v3.TimeSeriesDescriptor) obj; + com.google.monitoring.v3.TimeSeriesDescriptor other = + (com.google.monitoring.v3.TimeSeriesDescriptor) obj; - if (!getLabelDescriptorsList() - .equals(other.getLabelDescriptorsList())) return false; - if (!getPointDescriptorsList() - .equals(other.getPointDescriptorsList())) return false; + if (!getLabelDescriptorsList().equals(other.getLabelDescriptorsList())) return false; + if (!getPointDescriptorsList().equals(other.getPointDescriptorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1335,132 +1530,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A descriptor for the labels and points in a time series.
    * 
* * Protobuf type {@code google.monitoring.v3.TimeSeriesDescriptor} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesDescriptor) com.google.monitoring.v3.TimeSeriesDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TimeSeriesDescriptor.class, com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); + com.google.monitoring.v3.TimeSeriesDescriptor.class, + com.google.monitoring.v3.TimeSeriesDescriptor.Builder.class); } // Construct using com.google.monitoring.v3.TimeSeriesDescriptor.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1483,9 +1682,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.MetricProto.internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.MetricProto + .internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; } @java.lang.Override @@ -1504,9 +1703,12 @@ public com.google.monitoring.v3.TimeSeriesDescriptor build() { @java.lang.Override public com.google.monitoring.v3.TimeSeriesDescriptor buildPartial() { - com.google.monitoring.v3.TimeSeriesDescriptor result = new com.google.monitoring.v3.TimeSeriesDescriptor(this); + com.google.monitoring.v3.TimeSeriesDescriptor result = + new com.google.monitoring.v3.TimeSeriesDescriptor(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1540,38 +1742,39 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesDescriptor result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TimeSeriesDescriptor) { - return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor)other); + return mergeFrom((com.google.monitoring.v3.TimeSeriesDescriptor) other); } else { super.mergeFrom(other); return this; @@ -1598,9 +1801,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor other) { labelDescriptorsBuilder_ = null; labelDescriptors_ = other.labelDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - labelDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLabelDescriptorsFieldBuilder() : null; + labelDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelDescriptorsFieldBuilder() + : null; } else { labelDescriptorsBuilder_.addAllMessages(other.labelDescriptors_); } @@ -1624,9 +1828,10 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeriesDescriptor other) { pointDescriptorsBuilder_ = null; pointDescriptors_ = other.pointDescriptors_; bitField0_ = (bitField0_ & ~0x00000002); - pointDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPointDescriptorsFieldBuilder() : null; + pointDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPointDescriptorsFieldBuilder() + : null; } else { pointDescriptorsBuilder_.addAllMessages(other.pointDescriptors_); } @@ -1658,38 +1863,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.LabelDescriptor m = - input.readMessage( - com.google.api.LabelDescriptor.parser(), - extensionRegistry); - if (labelDescriptorsBuilder_ == null) { - ensureLabelDescriptorsIsMutable(); - labelDescriptors_.add(m); - } else { - labelDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 42: { - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor m = - input.readMessage( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.parser(), - extensionRegistry); - if (pointDescriptorsBuilder_ == null) { - ensurePointDescriptorsIsMutable(); - pointDescriptors_.add(m); - } else { - pointDescriptorsBuilder_.addMessage(m); - } - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.LabelDescriptor m = + input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry); + if (labelDescriptorsBuilder_ == null) { + ensureLabelDescriptorsIsMutable(); + labelDescriptors_.add(m); + } else { + labelDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 42: + { + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor m = + input.readMessage( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.parser(), + extensionRegistry); + if (pointDescriptorsBuilder_ == null) { + ensurePointDescriptorsIsMutable(); + pointDescriptors_.add(m); + } else { + pointDescriptorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1699,21 +1905,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List labelDescriptors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLabelDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - labelDescriptors_ = new java.util.ArrayList(labelDescriptors_); + labelDescriptors_ = + new java.util.ArrayList(labelDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> labelDescriptorsBuilder_; + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> + labelDescriptorsBuilder_; /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1728,6 +1942,8 @@ public java.util.List getLabelDescriptorsList() } } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1742,6 +1958,8 @@ public int getLabelDescriptorsCount() { } } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1756,14 +1974,15 @@ public com.google.api.LabelDescriptor getLabelDescriptors(int index) { } } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder setLabelDescriptors( - int index, com.google.api.LabelDescriptor value) { + public Builder setLabelDescriptors(int index, com.google.api.LabelDescriptor value) { if (labelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1777,6 +1996,8 @@ public Builder setLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1795,6 +2016,8 @@ public Builder setLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1815,14 +2038,15 @@ public Builder addLabelDescriptors(com.google.api.LabelDescriptor value) { return this; } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder addLabelDescriptors( - int index, com.google.api.LabelDescriptor value) { + public Builder addLabelDescriptors(int index, com.google.api.LabelDescriptor value) { if (labelDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1836,14 +2060,15 @@ public Builder addLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public Builder addLabelDescriptors( - com.google.api.LabelDescriptor.Builder builderForValue) { + public Builder addLabelDescriptors(com.google.api.LabelDescriptor.Builder builderForValue) { if (labelDescriptorsBuilder_ == null) { ensureLabelDescriptorsIsMutable(); labelDescriptors_.add(builderForValue.build()); @@ -1854,6 +2079,8 @@ public Builder addLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1872,6 +2099,8 @@ public Builder addLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1882,8 +2111,7 @@ public Builder addAllLabelDescriptors( java.lang.Iterable values) { if (labelDescriptorsBuilder_ == null) { ensureLabelDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labelDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelDescriptors_); onChanged(); } else { labelDescriptorsBuilder_.addAllMessages(values); @@ -1891,6 +2119,8 @@ public Builder addAllLabelDescriptors( return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1908,6 +2138,8 @@ public Builder clearLabelDescriptors() { return this; } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1925,39 +2157,44 @@ public Builder removeLabelDescriptors(int index) { return this; } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptor.Builder getLabelDescriptorsBuilder( - int index) { + public com.google.api.LabelDescriptor.Builder getLabelDescriptorsBuilder(int index) { return getLabelDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( - int index) { + public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index) { if (labelDescriptorsBuilder_ == null) { - return labelDescriptors_.get(index); } else { + return labelDescriptors_.get(index); + } else { return labelDescriptorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public java.util.List - getLabelDescriptorsOrBuilderList() { + public java.util.List + getLabelDescriptorsOrBuilderList() { if (labelDescriptorsBuilder_ != null) { return labelDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -1965,6 +2202,8 @@ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( } } /** + * + * *
      * Descriptors for the labels.
      * 
@@ -1972,38 +2211,46 @@ public com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( * repeated .google.api.LabelDescriptor label_descriptors = 1; */ public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder() { - return getLabelDescriptorsFieldBuilder().addBuilder( - com.google.api.LabelDescriptor.getDefaultInstance()); + return getLabelDescriptorsFieldBuilder() + .addBuilder(com.google.api.LabelDescriptor.getDefaultInstance()); } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder( - int index) { - return getLabelDescriptorsFieldBuilder().addBuilder( - index, com.google.api.LabelDescriptor.getDefaultInstance()); + public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder(int index) { + return getLabelDescriptorsFieldBuilder() + .addBuilder(index, com.google.api.LabelDescriptor.getDefaultInstance()); } /** + * + * *
      * Descriptors for the labels.
      * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - public java.util.List - getLabelDescriptorsBuilderList() { + public java.util.List getLabelDescriptorsBuilderList() { return getLabelDescriptorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder> + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder> getLabelDescriptorsFieldBuilder() { if (labelDescriptorsBuilder_ == null) { - labelDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.LabelDescriptor, com.google.api.LabelDescriptor.Builder, com.google.api.LabelDescriptorOrBuilder>( + labelDescriptorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.LabelDescriptor, + com.google.api.LabelDescriptor.Builder, + com.google.api.LabelDescriptorOrBuilder>( labelDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2013,26 +2260,37 @@ public com.google.api.LabelDescriptor.Builder addLabelDescriptorsBuilder( return labelDescriptorsBuilder_; } - private java.util.List pointDescriptors_ = - java.util.Collections.emptyList(); + private java.util.List + pointDescriptors_ = java.util.Collections.emptyList(); + private void ensurePointDescriptorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - pointDescriptors_ = new java.util.ArrayList(pointDescriptors_); + pointDescriptors_ = + new java.util.ArrayList( + pointDescriptors_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> pointDescriptorsBuilder_; + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> + pointDescriptorsBuilder_; /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public java.util.List getPointDescriptorsList() { + public java.util.List + getPointDescriptorsList() { if (pointDescriptorsBuilder_ == null) { return java.util.Collections.unmodifiableList(pointDescriptors_); } else { @@ -2040,11 +2298,15 @@ public java.util.List * Descriptors for the point data value columns. *
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public int getPointDescriptorsCount() { if (pointDescriptorsBuilder_ == null) { @@ -2054,13 +2316,18 @@ public int getPointDescriptorsCount() { } } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors( + int index) { if (pointDescriptorsBuilder_ == null) { return pointDescriptors_.get(index); } else { @@ -2068,11 +2335,15 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDes } } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder setPointDescriptors( int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { @@ -2089,14 +2360,19 @@ public Builder setPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder setPointDescriptors( - int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { + int index, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); pointDescriptors_.set(index, builderForValue.build()); @@ -2107,13 +2383,18 @@ public Builder setPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public Builder addPointDescriptors(com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { + public Builder addPointDescriptors( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { if (pointDescriptorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2127,11 +2408,15 @@ public Builder addPointDescriptors(com.google.monitoring.v3.TimeSeriesDescriptor return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder addPointDescriptors( int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor value) { @@ -2148,11 +2433,15 @@ public Builder addPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder addPointDescriptors( com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { @@ -2166,14 +2455,19 @@ public Builder addPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder addPointDescriptors( - int index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { + int index, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder builderForValue) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); pointDescriptors_.add(index, builderForValue.build()); @@ -2184,18 +2478,22 @@ public Builder addPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder addAllPointDescriptors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (pointDescriptorsBuilder_ == null) { ensurePointDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pointDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pointDescriptors_); onChanged(); } else { pointDescriptorsBuilder_.addAllMessages(values); @@ -2203,11 +2501,15 @@ public Builder addAllPointDescriptors( return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder clearPointDescriptors() { if (pointDescriptorsBuilder_ == null) { @@ -2220,11 +2522,15 @@ public Builder clearPointDescriptors() { return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ public Builder removePointDescriptors(int index) { if (pointDescriptorsBuilder_ == null) { @@ -2237,39 +2543,53 @@ public Builder removePointDescriptors(int index) { return this; } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder getPointDescriptorsBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder + getPointDescriptorsBuilder(int index) { return getPointDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( - int index) { + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder + getPointDescriptorsOrBuilder(int index) { if (pointDescriptorsBuilder_ == null) { - return pointDescriptors_.get(index); } else { + return pointDescriptors_.get(index); + } else { return pointDescriptorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public java.util.List - getPointDescriptorsOrBuilderList() { + public java.util.List< + ? extends com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> + getPointDescriptorsOrBuilderList() { if (pointDescriptorsBuilder_ != null) { return pointDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -2277,45 +2597,67 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder ge } } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder addPointDescriptorsBuilder() { - return getPointDescriptorsFieldBuilder().addBuilder( - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder + addPointDescriptorsBuilder() { + return getPointDescriptorsFieldBuilder() + .addBuilder( + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder addPointDescriptorsBuilder( - int index) { - return getPointDescriptorsFieldBuilder().addBuilder( - index, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); + public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder + addPointDescriptorsBuilder(int index) { + return getPointDescriptorsFieldBuilder() + .addBuilder( + index, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.getDefaultInstance()); } /** + * + * *
      * Descriptors for the point data value columns.
      * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - public java.util.List - getPointDescriptorsBuilderList() { + public java.util.List + getPointDescriptorsBuilderList() { return getPointDescriptorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder> getPointDescriptorsFieldBuilder() { if (pointDescriptorsBuilder_ == null) { - pointDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>( + pointDescriptorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder, + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder>( pointDescriptors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2324,9 +2666,9 @@ public com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor.Builder add } return pointDescriptorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2336,12 +2678,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesDescriptor) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesDescriptor) private static final com.google.monitoring.v3.TimeSeriesDescriptor DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesDescriptor(); } @@ -2350,27 +2692,27 @@ public static com.google.monitoring.v3.TimeSeriesDescriptor getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2385,6 +2727,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java similarity index 57% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java index 28e2af7116ad..4e332b8bd906 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptorOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesDescriptorOrBuilder extends +public interface TimeSeriesDescriptorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesDescriptor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - java.util.List - getLabelDescriptorsList(); + java.util.List getLabelDescriptorsList(); /** + * + * *
    * Descriptors for the labels.
    * 
@@ -25,6 +44,8 @@ public interface TimeSeriesDescriptorOrBuilder extends */ com.google.api.LabelDescriptor getLabelDescriptors(int index); /** + * + * *
    * Descriptors for the labels.
    * 
@@ -33,65 +54,88 @@ public interface TimeSeriesDescriptorOrBuilder extends */ int getLabelDescriptorsCount(); /** + * + * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - java.util.List + java.util.List getLabelDescriptorsOrBuilderList(); /** + * + * *
    * Descriptors for the labels.
    * 
* * repeated .google.api.LabelDescriptor label_descriptors = 1; */ - com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder( - int index); + com.google.api.LabelDescriptorOrBuilder getLabelDescriptorsOrBuilder(int index); /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - java.util.List + java.util.List getPointDescriptorsList(); /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor getPointDescriptors(int index); /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ int getPointDescriptorsCount(); /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - java.util.List + java.util.List getPointDescriptorsOrBuilderList(); /** + * + * *
    * Descriptors for the point data value columns.
    * 
* - * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * + * repeated .google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor point_descriptors = 5; + * */ - com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder getPointDescriptorsOrBuilder( - int index); + com.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptorOrBuilder + getPointDescriptorsOrBuilder(int index); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java similarity index 100% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java similarity index 90% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java index 55e7a4eb0418..c72c31b4bc0a 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/metric.proto package com.google.monitoring.v3; -public interface TimeSeriesOrBuilder extends +public interface TimeSeriesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeries) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; + * * @return Whether the metric field is set. */ boolean hasMetric(); /** + * + * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
    * 
* * .google.api.Metric metric = 1; + * * @return The metric. */ com.google.api.Metric getMetric(); /** + * + * *
    * The associated metric. A fully-specified metric used to identify the time
    * series.
@@ -38,6 +62,8 @@ public interface TimeSeriesOrBuilder extends
   com.google.api.MetricOrBuilder getMetricOrBuilder();
 
   /**
+   *
+   *
    * 
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -46,10 +72,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MonitoredResource resource = 2; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -58,10 +87,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MonitoredResource resource = 2; + * * @return The resource. */ com.google.api.MonitoredResource getResource(); /** + * + * *
    * The associated monitored resource.  Custom metrics can use only certain
    * monitored resource types in their time series data. For more information,
@@ -74,6 +106,8 @@ public interface TimeSeriesOrBuilder extends
   com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -81,10 +115,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -92,10 +129,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MonitoredResourceMetadata metadata = 7; + * * @return The metadata. */ com.google.api.MonitoredResourceMetadata getMetadata(); /** + * + * *
    * Output only. The associated monitored resource metadata. When reading a
    * time series, this field will include metadata labels that are explicitly
@@ -107,6 +147,8 @@ public interface TimeSeriesOrBuilder extends
   com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -120,10 +162,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** + * + * *
    * The metric kind of the time series. When listing time series, this metric
    * kind might be different from the metric kind of the associated metric if
@@ -137,11 +182,14 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** + * + * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -152,10 +200,13 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
    * The value type of the time series. When listing time series, this value
    * type might be different from the value type of the associated metric if
@@ -166,11 +217,14 @@ public interface TimeSeriesOrBuilder extends
    * 
* * .google.api.MetricDescriptor.ValueType value_type = 4; + * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** + * + * *
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -184,9 +238,10 @@ public interface TimeSeriesOrBuilder extends
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  java.util.List 
-      getPointsList();
+  java.util.List getPointsList();
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -202,6 +257,8 @@ public interface TimeSeriesOrBuilder extends
    */
   com.google.monitoring.v3.Point getPoints(int index);
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -217,6 +274,8 @@ public interface TimeSeriesOrBuilder extends
    */
   int getPointsCount();
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -230,9 +289,10 @@ public interface TimeSeriesOrBuilder extends
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  java.util.List 
-      getPointsOrBuilderList();
+  java.util.List getPointsOrBuilderList();
   /**
+   *
+   *
    * 
    * The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -246,10 +306,11 @@ public interface TimeSeriesOrBuilder extends
    *
    * repeated .google.monitoring.v3.Point points = 5;
    */
-  com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
-      int index);
+  com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -257,10 +318,13 @@ com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
    * 
* * string unit = 8; + * * @return The unit. */ java.lang.String getUnit(); /** + * + * *
    * The units in which the metric value is reported. It is only applicable
    * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
@@ -268,8 +332,8 @@ com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
    * 
* * string unit = 8; + * * @return The bytes for unit. */ - com.google.protobuf.ByteString - getUnitBytes(); + com.google.protobuf.ByteString getUnitBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java index 5299dc23c226..2853822a5cef 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
  * `good_service / total_service` ratio. The specified `TimeSeries` must have
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.TimeSeriesRatio}
  */
-public final class TimeSeriesRatio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeSeriesRatio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.TimeSeriesRatio)
     TimeSeriesRatioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeSeriesRatio.newBuilder() to construct.
   private TimeSeriesRatio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TimeSeriesRatio() {
     goodServiceFilter_ = "";
     badServiceFilter_ = "";
@@ -32,28 +50,32 @@ private TimeSeriesRatio() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeSeriesRatio();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.TimeSeriesRatio.class, com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
+            com.google.monitoring.v3.TimeSeriesRatio.class,
+            com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
   }
 
   public static final int GOOD_SERVICE_FILTER_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object goodServiceFilter_ = "";
   /**
+   *
+   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string good_service_filter = 4; + * * @return The goodServiceFilter. */ @java.lang.Override @@ -70,14 +93,15 @@ public java.lang.String getGoodServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); goodServiceFilter_ = s; return s; } } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -86,16 +110,15 @@ public java.lang.String getGoodServiceFilter() {
    * 
* * string good_service_filter = 4; + * * @return The bytes for goodServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getGoodServiceFilterBytes() { + public com.google.protobuf.ByteString getGoodServiceFilterBytes() { java.lang.Object ref = goodServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); goodServiceFilter_ = b; return b; } else { @@ -104,9 +127,12 @@ public java.lang.String getGoodServiceFilter() { } public static final int BAD_SERVICE_FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object badServiceFilter_ = ""; /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -116,6 +142,7 @@ public java.lang.String getGoodServiceFilter() {
    * 
* * string bad_service_filter = 5; + * * @return The badServiceFilter. */ @java.lang.Override @@ -124,14 +151,15 @@ public java.lang.String getBadServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); badServiceFilter_ = s; return s; } } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -141,16 +169,15 @@ public java.lang.String getBadServiceFilter() {
    * 
* * string bad_service_filter = 5; + * * @return The bytes for badServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getBadServiceFilterBytes() { + public com.google.protobuf.ByteString getBadServiceFilterBytes() { java.lang.Object ref = badServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); badServiceFilter_ = b; return b; } else { @@ -159,9 +186,12 @@ public java.lang.String getBadServiceFilter() { } public static final int TOTAL_SERVICE_FILTER_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object totalServiceFilter_ = ""; /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -170,6 +200,7 @@ public java.lang.String getBadServiceFilter() {
    * 
* * string total_service_filter = 6; + * * @return The totalServiceFilter. */ @java.lang.Override @@ -178,14 +209,15 @@ public java.lang.String getTotalServiceFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); totalServiceFilter_ = s; return s; } } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -194,16 +226,15 @@ public java.lang.String getTotalServiceFilter() {
    * 
* * string total_service_filter = 6; + * * @return The bytes for totalServiceFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getTotalServiceFilterBytes() { + public com.google.protobuf.ByteString getTotalServiceFilterBytes() { java.lang.Object ref = totalServiceFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); totalServiceFilter_ = b; return b; } else { @@ -212,6 +243,7 @@ public java.lang.String getTotalServiceFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goodServiceFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, goodServiceFilter_); } @@ -260,19 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeriesRatio)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeriesRatio other = (com.google.monitoring.v3.TimeSeriesRatio) obj; - if (!getGoodServiceFilter() - .equals(other.getGoodServiceFilter())) return false; - if (!getBadServiceFilter() - .equals(other.getBadServiceFilter())) return false; - if (!getTotalServiceFilter() - .equals(other.getTotalServiceFilter())) return false; + if (!getGoodServiceFilter().equals(other.getGoodServiceFilter())) return false; + if (!getBadServiceFilter().equals(other.getBadServiceFilter())) return false; + if (!getTotalServiceFilter().equals(other.getTotalServiceFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,99 +323,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TimeSeriesRatio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TimeSeriesRatio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TimeSeriesRatio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
    * `good_service / total_service` ratio. The specified `TimeSeries` must have
@@ -399,33 +432,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.TimeSeriesRatio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TimeSeriesRatio)
       com.google.monitoring.v3.TimeSeriesRatioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.TimeSeriesRatio.class, com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
+              com.google.monitoring.v3.TimeSeriesRatio.class,
+              com.google.monitoring.v3.TimeSeriesRatio.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.TimeSeriesRatio.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +469,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor;
     }
 
     @java.lang.Override
@@ -458,8 +490,11 @@ public com.google.monitoring.v3.TimeSeriesRatio build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.TimeSeriesRatio buildPartial() {
-      com.google.monitoring.v3.TimeSeriesRatio result = new com.google.monitoring.v3.TimeSeriesRatio(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.TimeSeriesRatio result =
+          new com.google.monitoring.v3.TimeSeriesRatio(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -481,38 +516,39 @@ private void buildPartial0(com.google.monitoring.v3.TimeSeriesRatio result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.TimeSeriesRatio) {
-        return mergeFrom((com.google.monitoring.v3.TimeSeriesRatio)other);
+        return mergeFrom((com.google.monitoring.v3.TimeSeriesRatio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -562,27 +598,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 34: {
-              goodServiceFilter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 34
-            case 42: {
-              badServiceFilter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 42
-            case 50: {
-              totalServiceFilter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 34:
+              {
+                goodServiceFilter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 34
+            case 42:
+              {
+                badServiceFilter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 42
+            case 50:
+              {
+                totalServiceFilter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -592,10 +632,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object goodServiceFilter_ = "";
     /**
+     *
+     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -604,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string good_service_filter = 4; + * * @return The goodServiceFilter. */ public java.lang.String getGoodServiceFilter() { java.lang.Object ref = goodServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); goodServiceFilter_ = s; return s; @@ -619,6 +662,8 @@ public java.lang.String getGoodServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -627,15 +672,14 @@ public java.lang.String getGoodServiceFilter() {
      * 
* * string good_service_filter = 4; + * * @return The bytes for goodServiceFilter. */ - public com.google.protobuf.ByteString - getGoodServiceFilterBytes() { + public com.google.protobuf.ByteString getGoodServiceFilterBytes() { java.lang.Object ref = goodServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); goodServiceFilter_ = b; return b; } else { @@ -643,6 +687,8 @@ public java.lang.String getGoodServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -651,18 +697,22 @@ public java.lang.String getGoodServiceFilter() {
      * 
* * string good_service_filter = 4; + * * @param value The goodServiceFilter to set. * @return This builder for chaining. */ - public Builder setGoodServiceFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGoodServiceFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } goodServiceFilter_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -671,6 +721,7 @@ public Builder setGoodServiceFilter(
      * 
* * string good_service_filter = 4; + * * @return This builder for chaining. */ public Builder clearGoodServiceFilter() { @@ -680,6 +731,8 @@ public Builder clearGoodServiceFilter() { return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -688,12 +741,14 @@ public Builder clearGoodServiceFilter() {
      * 
* * string good_service_filter = 4; + * * @param value The bytes for goodServiceFilter to set. * @return This builder for chaining. */ - public Builder setGoodServiceFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGoodServiceFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); goodServiceFilter_ = value; bitField0_ |= 0x00000001; @@ -703,6 +758,8 @@ public Builder setGoodServiceFilterBytes( private java.lang.Object badServiceFilter_ = ""; /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -712,13 +769,13 @@ public Builder setGoodServiceFilterBytes(
      * 
* * string bad_service_filter = 5; + * * @return The badServiceFilter. */ public java.lang.String getBadServiceFilter() { java.lang.Object ref = badServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); badServiceFilter_ = s; return s; @@ -727,6 +784,8 @@ public java.lang.String getBadServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -736,15 +795,14 @@ public java.lang.String getBadServiceFilter() {
      * 
* * string bad_service_filter = 5; + * * @return The bytes for badServiceFilter. */ - public com.google.protobuf.ByteString - getBadServiceFilterBytes() { + public com.google.protobuf.ByteString getBadServiceFilterBytes() { java.lang.Object ref = badServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); badServiceFilter_ = b; return b; } else { @@ -752,6 +810,8 @@ public java.lang.String getBadServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -761,18 +821,22 @@ public java.lang.String getBadServiceFilter() {
      * 
* * string bad_service_filter = 5; + * * @param value The badServiceFilter to set. * @return This builder for chaining. */ - public Builder setBadServiceFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBadServiceFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } badServiceFilter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -782,6 +846,7 @@ public Builder setBadServiceFilter(
      * 
* * string bad_service_filter = 5; + * * @return This builder for chaining. */ public Builder clearBadServiceFilter() { @@ -791,6 +856,8 @@ public Builder clearBadServiceFilter() { return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -800,12 +867,14 @@ public Builder clearBadServiceFilter() {
      * 
* * string bad_service_filter = 5; + * * @param value The bytes for badServiceFilter to set. * @return This builder for chaining. */ - public Builder setBadServiceFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBadServiceFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); badServiceFilter_ = value; bitField0_ |= 0x00000002; @@ -815,6 +884,8 @@ public Builder setBadServiceFilterBytes( private java.lang.Object totalServiceFilter_ = ""; /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -823,13 +894,13 @@ public Builder setBadServiceFilterBytes(
      * 
* * string total_service_filter = 6; + * * @return The totalServiceFilter. */ public java.lang.String getTotalServiceFilter() { java.lang.Object ref = totalServiceFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); totalServiceFilter_ = s; return s; @@ -838,6 +909,8 @@ public java.lang.String getTotalServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -846,15 +919,14 @@ public java.lang.String getTotalServiceFilter() {
      * 
* * string total_service_filter = 6; + * * @return The bytes for totalServiceFilter. */ - public com.google.protobuf.ByteString - getTotalServiceFilterBytes() { + public com.google.protobuf.ByteString getTotalServiceFilterBytes() { java.lang.Object ref = totalServiceFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); totalServiceFilter_ = b; return b; } else { @@ -862,6 +934,8 @@ public java.lang.String getTotalServiceFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -870,18 +944,22 @@ public java.lang.String getTotalServiceFilter() {
      * 
* * string total_service_filter = 6; + * * @param value The totalServiceFilter to set. * @return This builder for chaining. */ - public Builder setTotalServiceFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTotalServiceFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } totalServiceFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -890,6 +968,7 @@ public Builder setTotalServiceFilter(
      * 
* * string total_service_filter = 6; + * * @return This builder for chaining. */ public Builder clearTotalServiceFilter() { @@ -899,6 +978,8 @@ public Builder clearTotalServiceFilter() { return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -907,21 +988,23 @@ public Builder clearTotalServiceFilter() {
      * 
* * string total_service_filter = 6; + * * @param value The bytes for totalServiceFilter to set. * @return This builder for chaining. */ - public Builder setTotalServiceFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTotalServiceFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); totalServiceFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,12 +1014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TimeSeriesRatio) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeriesRatio) private static final com.google.monitoring.v3.TimeSeriesRatio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TimeSeriesRatio(); } @@ -945,27 +1028,27 @@ public static com.google.monitoring.v3.TimeSeriesRatio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeriesRatio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesRatio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,6 +1063,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TimeSeriesRatio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java index 019f08e70621..f6a81bc31c0e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; -public interface TimeSeriesRatioOrBuilder extends +public interface TimeSeriesRatioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TimeSeriesRatio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -16,10 +34,13 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string good_service_filter = 4; + * * @return The goodServiceFilter. */ java.lang.String getGoodServiceFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying good service provided. Must have
@@ -28,12 +49,14 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string good_service_filter = 4; + * * @return The bytes for goodServiceFilter. */ - com.google.protobuf.ByteString - getGoodServiceFilterBytes(); + com.google.protobuf.ByteString getGoodServiceFilterBytes(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -43,10 +66,13 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string bad_service_filter = 5; + * * @return The badServiceFilter. */ java.lang.String getBadServiceFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying bad service, either demanded service
@@ -56,12 +82,14 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string bad_service_filter = 5; + * * @return The bytes for badServiceFilter. */ - com.google.protobuf.ByteString - getBadServiceFilterBytes(); + com.google.protobuf.ByteString getBadServiceFilterBytes(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -70,10 +98,13 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string total_service_filter = 6; + * * @return The totalServiceFilter. */ java.lang.String getTotalServiceFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` quantifying total demanded service. Must have
@@ -82,8 +113,8 @@ public interface TimeSeriesRatioOrBuilder extends
    * 
* * string total_service_filter = 6; + * * @return The bytes for totalServiceFilter. */ - com.google.protobuf.ByteString - getTotalServiceFilterBytes(); + com.google.protobuf.ByteString getTotalServiceFilterBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java index 49368c19f2aa..d3553bdb19d6 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java @@ -1,52 +1,73 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; /** + * + * *
  * A single strongly-typed value.
  * 
* * Protobuf type {@code google.monitoring.v3.TypedValue} */ -public final class TypedValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TypedValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.TypedValue) TypedValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TypedValue.newBuilder() to construct. private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TypedValue() { - } + + private TypedValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TypedValue(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.CommonProto + .internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable + return com.google.monitoring.v3.CommonProto + .internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TypedValue.class, com.google.monitoring.v3.TypedValue.Builder.class); + com.google.monitoring.v3.TypedValue.class, + com.google.monitoring.v3.TypedValue.Builder.class); } private int valueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object value_; + public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), @@ -55,6 +76,7 @@ public enum ValueCase DISTRIBUTION_VALUE(5), VALUE_NOT_SET(0); private final int value; + private ValueCase(int value) { this.value = value; } @@ -70,33 +92,42 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: return BOOL_VALUE; - case 2: return INT64_VALUE; - case 3: return DOUBLE_VALUE; - case 4: return STRING_VALUE; - case 5: return DISTRIBUTION_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; + case 1: + return BOOL_VALUE; + case 2: + return INT64_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 5: + return DISTRIBUTION_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -104,11 +135,14 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ @java.lang.Override @@ -121,11 +155,14 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -133,11 +170,14 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ @java.lang.Override @@ -150,6 +190,8 @@ public long getInt64Value() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -157,6 +199,7 @@ public long getInt64Value() {
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -164,6 +207,8 @@ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -171,6 +216,7 @@ public boolean hasDoubleValue() {
    * 
* * double double_value = 3; + * * @return The doubleValue. */ @java.lang.Override @@ -183,22 +229,28 @@ public double getDoubleValue() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -209,8 +261,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -219,23 +270,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueCase_ == 4) { value_ = b; } @@ -247,11 +299,14 @@ public java.lang.String getStringValue() { public static final int DISTRIBUTION_VALUE_FIELD_NUMBER = 5; /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -259,21 +314,26 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override public com.google.api.Distribution getDistributionValue() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } /** + * + * *
    * A distribution value.
    * 
@@ -283,12 +343,13 @@ public com.google.api.Distribution getDistributionValue() { @java.lang.Override public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,19 +361,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) value_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) value_)); + output.writeInt64(2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - output.writeDouble( - 3, (double)((java.lang.Double) value_)); + output.writeDouble(3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); @@ -330,26 +387,27 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) value_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) value_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 3, (double)((java.lang.Double) value_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); } if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.api.Distribution) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.api.Distribution) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,7 +417,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.TypedValue)) { return super.equals(obj); @@ -369,25 +427,20 @@ public boolean equals(final java.lang.Object obj) { if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() - != other.getBoolValue()) return false; + if (getBoolValue() != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() - != other.getInt64Value()) return false; + if (getInt64Value() != other.getInt64Value()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; break; case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 5: - if (!getDistributionValue() - .equals(other.getDistributionValue())) return false; + if (!getDistributionValue().equals(other.getDistributionValue())) return false; break; case 0: default: @@ -406,18 +459,18 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 4: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -435,132 +488,135 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.TypedValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.TypedValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TypedValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.TypedValue parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.monitoring.v3.TypedValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TypedValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.TypedValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.TypedValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TypedValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.TypedValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.TypedValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.TypedValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.TypedValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.TypedValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single strongly-typed value.
    * 
* * Protobuf type {@code google.monitoring.v3.TypedValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.TypedValue) com.google.monitoring.v3.TypedValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.CommonProto + .internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable + return com.google.monitoring.v3.CommonProto + .internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.TypedValue.class, com.google.monitoring.v3.TypedValue.Builder.class); + com.google.monitoring.v3.TypedValue.class, + com.google.monitoring.v3.TypedValue.Builder.class); } // Construct using com.google.monitoring.v3.TypedValue.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -574,9 +630,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.CommonProto.internal_static_google_monitoring_v3_TypedValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.CommonProto + .internal_static_google_monitoring_v3_TypedValue_descriptor; } @java.lang.Override @@ -596,7 +652,9 @@ public com.google.monitoring.v3.TypedValue build() { @java.lang.Override public com.google.monitoring.v3.TypedValue buildPartial() { com.google.monitoring.v3.TypedValue result = new com.google.monitoring.v3.TypedValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -609,8 +667,7 @@ private void buildPartial0(com.google.monitoring.v3.TypedValue result) { private void buildPartialOneofs(com.google.monitoring.v3.TypedValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 5 && - distributionValueBuilder_ != null) { + if (valueCase_ == 5 && distributionValueBuilder_ != null) { result.value_ = distributionValueBuilder_.build(); } } @@ -619,38 +676,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.TypedValue result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.TypedValue) { - return mergeFrom((com.google.monitoring.v3.TypedValue)other); + return mergeFrom((com.google.monitoring.v3.TypedValue) other); } else { super.mergeFrom(other); return this; @@ -660,31 +718,37 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.monitoring.v3.TypedValue other) { if (other == com.google.monitoring.v3.TypedValue.getDefaultInstance()) return this; switch (other.getValueCase()) { - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case DISTRIBUTION_VALUE: { - mergeDistributionValue(other.getDistributionValue()); - break; - } - case VALUE_NOT_SET: { - break; - } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case DISTRIBUTION_VALUE: + { + mergeDistributionValue(other.getDistributionValue()); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -712,40 +776,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - case 42: { - input.readMessage( - getDistributionValueFieldBuilder().getBuilder(), - extensionRegistry); - valueCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: + { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: + { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + getDistributionValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -755,12 +824,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueCase_ = 0; private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public Builder clearValue() { @@ -773,22 +842,28 @@ public Builder clearValue() { private int bitField0_; /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return The boolValue. */ public boolean getBoolValue() { @@ -798,11 +873,14 @@ public boolean getBoolValue() { return false; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @param value The boolValue to set. * @return This builder for chaining. */ @@ -814,11 +892,14 @@ public Builder setBoolValue(boolean value) { return this; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -831,22 +912,28 @@ public Builder clearBoolValue() { } /** + * + * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; + * * @return The int64Value. */ public long getInt64Value() { @@ -856,11 +943,14 @@ public long getInt64Value() { return 0L; } /** + * + * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; + * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -872,11 +962,14 @@ public Builder setInt64Value(long value) { return this; } /** + * + * *
      * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
      * 
* * int64 int64_value = 2; + * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -889,6 +982,8 @@ public Builder clearInt64Value() { } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -896,12 +991,15 @@ public Builder clearInt64Value() {
      * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -909,6 +1007,7 @@ public boolean hasDoubleValue() {
      * 
* * double double_value = 3; + * * @return The doubleValue. */ public double getDoubleValue() { @@ -918,6 +1017,8 @@ public double getDoubleValue() { return 0D; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -925,6 +1026,7 @@ public double getDoubleValue() {
      * 
* * double double_value = 3; + * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -936,6 +1038,8 @@ public Builder setDoubleValue(double value) { return this; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -943,6 +1047,7 @@ public Builder setDoubleValue(double value) {
      * 
* * double double_value = 3; + * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -955,11 +1060,14 @@ public Builder clearDoubleValue() { } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -967,11 +1075,14 @@ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The stringValue. */ @java.lang.Override @@ -981,8 +1092,7 @@ public java.lang.String getStringValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -993,24 +1103,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (valueCase_ == 4) { value_ = b; } @@ -1020,28 +1131,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 4; value_ = value; onChanged(); return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1053,17 +1171,21 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 4; value_ = value; @@ -1072,13 +1194,19 @@ public Builder setStringValueBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> distributionValueBuilder_; + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> + distributionValueBuilder_; /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -1086,11 +1214,14 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override @@ -1108,6 +1239,8 @@ public com.google.api.Distribution getDistributionValue() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1128,14 +1261,15 @@ public Builder setDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; */ - public Builder setDistributionValue( - com.google.api.Distribution.Builder builderForValue) { + public Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue) { if (distributionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1146,6 +1280,8 @@ public Builder setDistributionValue( return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1154,10 +1290,11 @@ public Builder setDistributionValue( */ public Builder mergeDistributionValue(com.google.api.Distribution value) { if (distributionValueBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.api.Distribution.getDefaultInstance()) { - value_ = com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 5 && value_ != com.google.api.Distribution.getDefaultInstance()) { + value_ = + com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -1173,6 +1310,8 @@ public Builder mergeDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1196,6 +1335,8 @@ public Builder clearDistributionValue() { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1206,6 +1347,8 @@ public com.google.api.Distribution.Builder getDistributionValueBuilder() { return getDistributionValueFieldBuilder().getBuilder(); } /** + * + * *
      * A distribution value.
      * 
@@ -1224,6 +1367,8 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1231,26 +1376,29 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { * .google.api.Distribution distribution_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> getDistributionValueFieldBuilder() { if (distributionValueBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = com.google.api.Distribution.getDefaultInstance(); } - distributionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder>( - (com.google.api.Distribution) value_, - getParentForChildren(), - isClean()); + distributionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder>( + (com.google.api.Distribution) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged(); return distributionValueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,12 +1408,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.TypedValue) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) private static final com.google.monitoring.v3.TypedValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.TypedValue(); } @@ -1274,27 +1422,27 @@ public static com.google.monitoring.v3.TypedValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1309,6 +1457,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.TypedValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java index 531417d1c226..1074b812fc7d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValueOrBuilder.java @@ -1,51 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/common.proto package com.google.monitoring.v3; -public interface TypedValueOrBuilder extends +public interface TypedValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.TypedValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ boolean getBoolValue(); /** + * + * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** + * + * *
    * A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ long getInt64Value(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -53,10 +83,13 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16
@@ -64,58 +97,75 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return The doubleValue. */ double getDoubleValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ boolean hasDistributionValue(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ com.google.api.Distribution getDistributionValue(); /** + * + * *
    * A distribution value.
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java index 2ac5295b075c..50c978f0a638 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java @@ -1,50 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `UpdateAlertPolicy` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateAlertPolicyRequest} */ -public final class UpdateAlertPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateAlertPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateAlertPolicyRequest) UpdateAlertPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAlertPolicyRequest.newBuilder() to construct. private UpdateAlertPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAlertPolicyRequest() { - } + + private UpdateAlertPolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateAlertPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateAlertPolicyRequest.class, com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.UpdateAlertPolicyRequest.class, + com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -70,6 +90,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -77,6 +98,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -102,6 +125,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -109,6 +133,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -143,6 +169,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int ALERT_POLICY_FIELD_NUMBER = 3;
   private com.google.monitoring.v3.AlertPolicy alertPolicy_;
   /**
+   *
+   *
    * 
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -150,7 +178,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ @java.lang.Override @@ -158,6 +189,8 @@ public boolean hasAlertPolicy() { return alertPolicy_ != null; } /** + * + * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -165,14 +198,21 @@ public boolean hasAlertPolicy() {
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ @java.lang.Override public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } /** + * + * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -180,14 +220,19 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() {
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -217,12 +261,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (alertPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAlertPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAlertPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -232,22 +274,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateAlertPolicyRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateAlertPolicyRequest other = (com.google.monitoring.v3.UpdateAlertPolicyRequest) obj; + com.google.monitoring.v3.UpdateAlertPolicyRequest other = + (com.google.monitoring.v3.UpdateAlertPolicyRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasAlertPolicy() != other.hasAlertPolicy()) return false; if (hasAlertPolicy()) { - if (!getAlertPolicy() - .equals(other.getAlertPolicy())) return false; + if (!getAlertPolicy().equals(other.getAlertPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,131 +315,135 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateAlertPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.UpdateAlertPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `UpdateAlertPolicy` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateAlertPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateAlertPolicyRequest) com.google.monitoring.v3.UpdateAlertPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateAlertPolicyRequest.class, com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); + com.google.monitoring.v3.UpdateAlertPolicyRequest.class, + com.google.monitoring.v3.UpdateAlertPolicyRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateAlertPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.AlertServiceProto.internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertServiceProto + .internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; } @java.lang.Override @@ -438,8 +483,11 @@ public com.google.monitoring.v3.UpdateAlertPolicyRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateAlertPolicyRequest buildPartial() { - com.google.monitoring.v3.UpdateAlertPolicyRequest result = new com.google.monitoring.v3.UpdateAlertPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateAlertPolicyRequest result = + new com.google.monitoring.v3.UpdateAlertPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -447,14 +495,11 @@ public com.google.monitoring.v3.UpdateAlertPolicyRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateAlertPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.alertPolicy_ = alertPolicyBuilder_ == null - ? alertPolicy_ - : alertPolicyBuilder_.build(); + result.alertPolicy_ = + alertPolicyBuilder_ == null ? alertPolicy_ : alertPolicyBuilder_.build(); } } @@ -462,38 +507,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateAlertPolicyRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateAlertPolicyRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateAlertPolicyRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateAlertPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -501,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateAlertPolicyRequest other) { - if (other == com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UpdateAlertPolicyRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -534,26 +581,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getAlertPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(getAlertPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,12 +609,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -594,12 +646,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -625,16 +680,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -675,6 +735,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -701,8 +763,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -713,6 +774,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -741,9 +804,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -756,6 +819,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -793,6 +858,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -825,6 +892,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -855,11 +924,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. A list of alerting policy field names. If this field is not
      * empty, each listed field in the existing alerting policy is set to the
@@ -887,14 +959,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -902,8 +977,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.monitoring.v3.AlertPolicy alertPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> alertPolicyBuilder_;
+            com.google.monitoring.v3.AlertPolicy,
+            com.google.monitoring.v3.AlertPolicy.Builder,
+            com.google.monitoring.v3.AlertPolicyOrBuilder>
+        alertPolicyBuilder_;
     /**
+     *
+     *
      * 
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -911,13 +991,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ public boolean hasAlertPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -925,17 +1010,24 @@ public boolean hasAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { - return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -943,7 +1035,9 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { @@ -959,6 +1053,8 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -966,10 +1062,11 @@ public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy value) {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAlertPolicy( - com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { + public Builder setAlertPolicy(com.google.monitoring.v3.AlertPolicy.Builder builderForValue) { if (alertPolicyBuilder_ == null) { alertPolicy_ = builderForValue.build(); } else { @@ -980,6 +1077,8 @@ public Builder setAlertPolicy( return this; } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -987,13 +1086,15 @@ public Builder setAlertPolicy(
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { if (alertPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - alertPolicy_ != null && - alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && alertPolicy_ != null + && alertPolicy_ != com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) { getAlertPolicyBuilder().mergeFrom(value); } else { alertPolicy_ = value; @@ -1006,6 +1107,8 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) { return this; } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1013,7 +1116,9 @@ public Builder mergeAlertPolicy(com.google.monitoring.v3.AlertPolicy value) {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAlertPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1026,6 +1131,8 @@ public Builder clearAlertPolicy() { return this; } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1033,7 +1140,9 @@ public Builder clearAlertPolicy() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { bitField0_ |= 0x00000002; @@ -1041,6 +1150,8 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() { return getAlertPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1048,17 +1159,22 @@ public com.google.monitoring.v3.AlertPolicy.Builder getAlertPolicyBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { - return alertPolicy_ == null ? - com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; + return alertPolicy_ == null + ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() + : alertPolicy_; } } /** + * + * *
      * Required. The updated alerting policy or the updated values for the
      * fields listed in `update_mask`.
@@ -1066,24 +1182,29 @@ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() {
      * not in `update_mask` are ignored.
      * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder> + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder> getAlertPolicyFieldBuilder() { if (alertPolicyBuilder_ == null) { - alertPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.AlertPolicy, com.google.monitoring.v3.AlertPolicy.Builder, com.google.monitoring.v3.AlertPolicyOrBuilder>( - getAlertPolicy(), - getParentForChildren(), - isClean()); + alertPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy, + com.google.monitoring.v3.AlertPolicy.Builder, + com.google.monitoring.v3.AlertPolicyOrBuilder>( + getAlertPolicy(), getParentForChildren(), isClean()); alertPolicy_ = null; } return alertPolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,12 +1214,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateAlertPolicyRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) private static final com.google.monitoring.v3.UpdateAlertPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateAlertPolicyRequest(); } @@ -1107,27 +1228,27 @@ public static com.google.monitoring.v3.UpdateAlertPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAlertPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAlertPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,6 +1263,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateAlertPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java similarity index 83% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java index 5aa4a388022f..a2a6b7051963 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/alert_service.proto package com.google.monitoring.v3; -public interface UpdateAlertPolicyRequestOrBuilder extends +public interface UpdateAlertPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateAlertPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -33,10 +51,13 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -62,10 +83,13 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. A list of alerting policy field names. If this field is not
    * empty, each listed field in the existing alerting policy is set to the
@@ -95,6 +119,8 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -102,11 +128,16 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the alertPolicy field is set. */ boolean hasAlertPolicy(); /** + * + * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -114,11 +145,16 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The alertPolicy. */ com.google.monitoring.v3.AlertPolicy getAlertPolicy(); /** + * + * *
    * Required. The updated alerting policy or the updated values for the
    * fields listed in `update_mask`.
@@ -126,7 +162,9 @@ public interface UpdateAlertPolicyRequestOrBuilder extends
    * not in `update_mask` are ignored.
    * 
* - * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.AlertPolicy alert_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java similarity index 70% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java index 96d1633f4036..59bd7dfa918d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `UpdateGroup` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateGroupRequest} */ -public final class UpdateGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateGroupRequest) UpdateGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateGroupRequest.newBuilder() to construct. private UpdateGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateGroupRequest() { - } + + private UpdateGroupRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateGroupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateGroupRequest.class, com.google.monitoring.v3.UpdateGroupRequest.Builder.class); + com.google.monitoring.v3.UpdateGroupRequest.class, + com.google.monitoring.v3.UpdateGroupRequest.Builder.class); } public static final int GROUP_FIELD_NUMBER = 2; private com.google.monitoring.v3.Group group_; /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ @java.lang.Override @@ -58,12 +79,15 @@ public boolean hasGroup() { return group_ != null; } /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ @java.lang.Override @@ -71,6 +95,8 @@ public com.google.monitoring.v3.Group getGroup() { return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_; } /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
@@ -86,11 +112,14 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 3;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If true, validate this request but do not update the existing group.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -99,6 +128,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (group_ != null) { output.writeMessage(2, getGroup()); } @@ -128,12 +157,10 @@ public int getSerializedSize() { size = 0; if (group_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGroup()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGroup()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -143,20 +170,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateGroupRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateGroupRequest other = (com.google.monitoring.v3.UpdateGroupRequest) obj; + com.google.monitoring.v3.UpdateGroupRequest other = + (com.google.monitoring.v3.UpdateGroupRequest) obj; if (hasGroup() != other.hasGroup()) return false; if (hasGroup()) { - if (!getGroup() - .equals(other.getGroup())) return false; + if (!getGroup().equals(other.getGroup())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,139 +199,142 @@ public int hashCode() { hash = (53 * hash) + getGroup().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.UpdateGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `UpdateGroup` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateGroupRequest) com.google.monitoring.v3.UpdateGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateGroupRequest.class, com.google.monitoring.v3.UpdateGroupRequest.Builder.class); + com.google.monitoring.v3.UpdateGroupRequest.class, + com.google.monitoring.v3.UpdateGroupRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateGroupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.GroupServiceProto.internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.GroupServiceProto + .internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; } @java.lang.Override @@ -341,8 +370,11 @@ public com.google.monitoring.v3.UpdateGroupRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateGroupRequest buildPartial() { - com.google.monitoring.v3.UpdateGroupRequest result = new com.google.monitoring.v3.UpdateGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateGroupRequest result = + new com.google.monitoring.v3.UpdateGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -350,9 +382,7 @@ public com.google.monitoring.v3.UpdateGroupRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateGroupRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.group_ = groupBuilder_ == null - ? group_ - : groupBuilder_.build(); + result.group_ = groupBuilder_ == null ? group_ : groupBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.validateOnly_ = validateOnly_; @@ -363,38 +393,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateGroupRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateGroupRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateGroupRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -435,24 +466,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,30 +494,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.Group group_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> groupBuilder_; + com.google.monitoring.v3.Group, + com.google.monitoring.v3.Group.Builder, + com.google.monitoring.v3.GroupOrBuilder> + groupBuilder_; /** + * + * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
      * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ public com.google.monitoring.v3.Group getGroup() { @@ -496,6 +538,8 @@ public com.google.monitoring.v3.Group getGroup() { } } /** + * + * *
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -517,6 +561,8 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -524,8 +570,7 @@ public Builder setGroup(com.google.monitoring.v3.Group value) {
      *
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setGroup(
-        com.google.monitoring.v3.Group.Builder builderForValue) {
+    public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue) {
       if (groupBuilder_ == null) {
         group_ = builderForValue.build();
       } else {
@@ -536,6 +581,8 @@ public Builder setGroup(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -545,9 +592,9 @@ public Builder setGroup(
      */
     public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       if (groupBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          group_ != null &&
-          group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && group_ != null
+            && group_ != com.google.monitoring.v3.Group.getDefaultInstance()) {
           getGroupBuilder().mergeFrom(value);
         } else {
           group_ = value;
@@ -560,6 +607,8 @@ public Builder mergeGroup(com.google.monitoring.v3.Group value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -578,6 +627,8 @@ public Builder clearGroup() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -591,6 +642,8 @@ public com.google.monitoring.v3.Group.Builder getGroupBuilder() {
       return getGroupFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -602,11 +655,12 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
       if (groupBuilder_ != null) {
         return groupBuilder_.getMessageOrBuilder();
       } else {
-        return group_ == null ?
-            com.google.monitoring.v3.Group.getDefaultInstance() : group_;
+        return group_ == null ? com.google.monitoring.v3.Group.getDefaultInstance() : group_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The new definition of the group.  All fields of the existing group,
      * excepting `name`, are replaced with the corresponding fields of this group.
@@ -615,26 +669,32 @@ public com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder() {
      * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder> 
+            com.google.monitoring.v3.Group,
+            com.google.monitoring.v3.Group.Builder,
+            com.google.monitoring.v3.GroupOrBuilder>
         getGroupFieldBuilder() {
       if (groupBuilder_ == null) {
-        groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.Group, com.google.monitoring.v3.Group.Builder, com.google.monitoring.v3.GroupOrBuilder>(
-                getGroup(),
-                getParentForChildren(),
-                isClean());
+        groupBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.Group,
+                com.google.monitoring.v3.Group.Builder,
+                com.google.monitoring.v3.GroupOrBuilder>(
+                getGroup(), getParentForChildren(), isClean());
         group_ = null;
       }
       return groupBuilder_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -642,11 +702,14 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,11 +721,14 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * If true, validate this request but do not update the existing group.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -671,9 +737,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +749,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateGroupRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) private static final com.google.monitoring.v3.UpdateGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateGroupRequest(); } @@ -697,27 +763,27 @@ public static com.google.monitoring.v3.UpdateGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +798,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java index 4ea723dd2111..dfde9f3960e7 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequestOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/group_service.proto package com.google.monitoring.v3; -public interface UpdateGroupRequestOrBuilder extends +public interface UpdateGroupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateGroupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the group field is set. */ boolean hasGroup(); /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
    * 
* * .google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The group. */ com.google.monitoring.v3.Group getGroup(); /** + * + * *
    * Required. The new definition of the group.  All fields of the existing group,
    * excepting `name`, are replaced with the corresponding fields of this group.
@@ -38,11 +62,14 @@ public interface UpdateGroupRequestOrBuilder extends
   com.google.monitoring.v3.GroupOrBuilder getGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * If true, validate this request but do not update the existing group.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java similarity index 65% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java index 137e0429eab8..183cf5cc3762 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java @@ -1,55 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `UpdateNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateNotificationChannelRequest} */ -public final class UpdateNotificationChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateNotificationChannelRequest) UpdateNotificationChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNotificationChannelRequest.newBuilder() to construct. - private UpdateNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationChannelRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNotificationChannelRequest() { - } + + private UpdateNotificationChannelRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateNotificationChannelRequest.class, com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.UpdateNotificationChannelRequest.class, + com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -57,11 +79,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -69,6 +94,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The fields to update.
    * 
@@ -83,6 +110,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int NOTIFICATION_CHANNEL_FIELD_NUMBER = 3; private com.google.monitoring.v3.NotificationChannel notificationChannel_; /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -90,7 +119,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ @java.lang.Override @@ -98,6 +130,8 @@ public boolean hasNotificationChannel() { return notificationChannel_ != null; } /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -105,14 +139,21 @@ public boolean hasNotificationChannel() {
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ @java.lang.Override public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -120,14 +161,19 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() {
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -157,12 +202,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (notificationChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNotificationChannel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationChannel()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,22 +215,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateNotificationChannelRequest other = (com.google.monitoring.v3.UpdateNotificationChannelRequest) obj; + com.google.monitoring.v3.UpdateNotificationChannelRequest other = + (com.google.monitoring.v3.UpdateNotificationChannelRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasNotificationChannel() != other.hasNotificationChannel()) return false; if (hasNotificationChannel()) { - if (!getNotificationChannel() - .equals(other.getNotificationChannel())) return false; + if (!getNotificationChannel().equals(other.getNotificationChannel())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,131 +256,136 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateNotificationChannelRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UpdateNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `UpdateNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateNotificationChannelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateNotificationChannelRequest) com.google.monitoring.v3.UpdateNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateNotificationChannelRequest.class, com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.UpdateNotificationChannelRequest.class, + com.google.monitoring.v3.UpdateNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateNotificationChannelRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +404,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_UpdateNotificationChannelRequest_descriptor; } @java.lang.Override @@ -378,8 +425,11 @@ public com.google.monitoring.v3.UpdateNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.UpdateNotificationChannelRequest result = new com.google.monitoring.v3.UpdateNotificationChannelRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateNotificationChannelRequest result = + new com.google.monitoring.v3.UpdateNotificationChannelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -387,14 +437,13 @@ public com.google.monitoring.v3.UpdateNotificationChannelRequest buildPartial() private void buildPartial0(com.google.monitoring.v3.UpdateNotificationChannelRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationChannel_ = notificationChannelBuilder_ == null - ? notificationChannel_ - : notificationChannelBuilder_.build(); + result.notificationChannel_ = + notificationChannelBuilder_ == null + ? notificationChannel_ + : notificationChannelBuilder_.build(); } } @@ -402,38 +451,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateNotificationChannelReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateNotificationChannelRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateNotificationChannelRequest) other); } else { super.mergeFrom(other); return this; @@ -441,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -474,26 +525,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getNotificationChannelFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage( + getNotificationChannelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -503,38 +554,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The fields to update.
      * 
@@ -555,14 +620,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -573,6 +639,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The fields to update.
      * 
@@ -581,9 +649,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -596,6 +664,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The fields to update.
      * 
@@ -613,6 +683,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The fields to update.
      * 
@@ -625,6 +697,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The fields to update.
      * 
@@ -635,11 +709,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The fields to update.
      * 
@@ -647,14 +724,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -662,8 +742,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.monitoring.v3.NotificationChannel notificationChannel_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> notificationChannelBuilder_; + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> + notificationChannelBuilder_; /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -671,13 +756,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ public boolean hasNotificationChannel() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -685,17 +775,24 @@ public boolean hasNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { if (notificationChannelBuilder_ == null) { - return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -703,7 +800,9 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { @@ -719,6 +818,8 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann return this; } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -726,7 +827,9 @@ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChann
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationChannel( com.google.monitoring.v3.NotificationChannel.Builder builderForValue) { @@ -740,6 +843,8 @@ public Builder setNotificationChannel( return this; } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -747,13 +852,16 @@ public Builder setNotificationChannel(
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - notificationChannel_ != null && - notificationChannel_ != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && notificationChannel_ != null + && notificationChannel_ + != com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) { getNotificationChannelBuilder().mergeFrom(value); } else { notificationChannel_ = value; @@ -766,6 +874,8 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha return this; } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -773,7 +883,9 @@ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationCha
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationChannel() { bitField0_ = (bitField0_ & ~0x00000002); @@ -786,6 +898,8 @@ public Builder clearNotificationChannel() { return this; } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -793,7 +907,9 @@ public Builder clearNotificationChannel() {
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { bitField0_ |= 0x00000002; @@ -801,6 +917,8 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann return getNotificationChannelFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -808,17 +926,22 @@ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChann
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { - return notificationChannel_ == null ? - com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; + return notificationChannel_ == null + ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() + : notificationChannel_; } } /** + * + * *
      * Required. A description of the changes to be applied to the specified
      * notification channel. The description must provide a definition for
@@ -826,24 +949,29 @@ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChan
      * included in the `update_mask`.
      * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelFieldBuilder() { if (notificationChannelBuilder_ == null) { - notificationChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( - getNotificationChannel(), - getParentForChildren(), - isClean()); + notificationChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.NotificationChannel, + com.google.monitoring.v3.NotificationChannel.Builder, + com.google.monitoring.v3.NotificationChannelOrBuilder>( + getNotificationChannel(), getParentForChildren(), isClean()); notificationChannel_ = null; } return notificationChannelBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) private static final com.google.monitoring.v3.UpdateNotificationChannelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateNotificationChannelRequest(); } @@ -867,27 +995,27 @@ public static com.google.monitoring.v3.UpdateNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,6 +1030,4 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.UpdateNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java index d2168eaec1ed..32f9874a181c 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface UpdateNotificationChannelRequestOrBuilder extends +public interface UpdateNotificationChannelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The fields to update.
    * 
@@ -35,6 +59,8 @@ public interface UpdateNotificationChannelRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -42,11 +68,16 @@ public interface UpdateNotificationChannelRequestOrBuilder extends
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationChannel field is set. */ boolean hasNotificationChannel(); /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -54,11 +85,16 @@ public interface UpdateNotificationChannelRequestOrBuilder extends
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationChannel. */ com.google.monitoring.v3.NotificationChannel getNotificationChannel(); /** + * + * *
    * Required. A description of the changes to be applied to the specified
    * notification channel. The description must provide a definition for
@@ -66,7 +102,9 @@ public interface UpdateNotificationChannelRequestOrBuilder extends
    * included in the `update_mask`.
    * 
* - * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.NotificationChannel notification_channel = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java similarity index 64% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java index 8ffc69babf44..21d7fb780b51 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java @@ -1,56 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `UpdateServiceLevelObjective` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceLevelObjectiveRequest} */ -public final class UpdateServiceLevelObjectiveRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateServiceLevelObjectiveRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) UpdateServiceLevelObjectiveRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateServiceLevelObjectiveRequest.newBuilder() to construct. - private UpdateServiceLevelObjectiveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateServiceLevelObjectiveRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateServiceLevelObjectiveRequest() { - } + + private UpdateServiceLevelObjectiveRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateServiceLevelObjectiveRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); } public static final int SERVICE_LEVEL_OBJECTIVE_FIELD_NUMBER = 1; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ @java.lang.Override @@ -58,39 +82,56 @@ public boolean hasServiceLevelObjective() { return serviceLevelObjective_ != null; } /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ @java.lang.Override public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder + getServiceLevelObjectiveOrBuilder() { + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,11 +139,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -110,6 +154,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
@@ -122,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (serviceLevelObjective_ != null) { output.writeMessage(1, getServiceLevelObjective()); } @@ -151,12 +197,11 @@ public int getSerializedSize() { size = 0; if (serviceLevelObjective_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getServiceLevelObjective()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getServiceLevelObjective()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other = (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) obj; + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other = + (com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) obj; if (hasServiceLevelObjective() != other.hasServiceLevelObjective()) return false; if (hasServiceLevelObjective()) { - if (!getServiceLevelObjective() - .equals(other.getServiceLevelObjective())) return false; + if (!getServiceLevelObjective().equals(other.getServiceLevelObjective())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -208,131 +252,136 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `UpdateServiceLevelObjective` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceLevelObjectiveRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) com.google.monitoring.v3.UpdateServiceLevelObjectiveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; } @java.lang.Override @@ -372,8 +421,11 @@ public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest buildPartial() { - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result = new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result = + new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +433,13 @@ public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest buildPartial( private void buildPartial0(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.serviceLevelObjective_ = serviceLevelObjectiveBuilder_ == null - ? serviceLevelObjective_ - : serviceLevelObjectiveBuilder_.build(); + result.serviceLevelObjective_ = + serviceLevelObjectiveBuilder_ == null + ? serviceLevelObjective_ + : serviceLevelObjectiveBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +447,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateServiceLevelObjectiveR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest other) { - if (other == com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance()) + return this; if (other.hasServiceLevelObjective()) { mergeServiceLevelObjective(other.getServiceLevelObjective()); } @@ -468,26 +521,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getServiceLevelObjectiveFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getServiceLevelObjectiveFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,46 +550,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.ServiceLevelObjective serviceLevelObjective_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> serviceLevelObjectiveBuilder_; + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + serviceLevelObjectiveBuilder_; /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ public boolean hasServiceLevelObjective() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective() { if (serviceLevelObjectiveBuilder_ == null) { - return serviceLevelObjective_ == null ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } else { return serviceLevelObjectiveBuilder_.getMessage(); } } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { @@ -552,12 +625,16 @@ public Builder setServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObj return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setServiceLevelObjective( com.google.monitoring.v3.ServiceLevelObjective.Builder builderForValue) { @@ -571,18 +648,24 @@ public Builder setServiceLevelObjective( return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelObjective value) { + public Builder mergeServiceLevelObjective( + com.google.monitoring.v3.ServiceLevelObjective value) { if (serviceLevelObjectiveBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - serviceLevelObjective_ != null && - serviceLevelObjective_ != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && serviceLevelObjective_ != null + && serviceLevelObjective_ + != com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance()) { getServiceLevelObjectiveBuilder().mergeFrom(value); } else { serviceLevelObjective_ = value; @@ -595,12 +678,16 @@ public Builder mergeServiceLevelObjective(com.google.monitoring.v3.ServiceLevelO return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearServiceLevelObjective() { bitField0_ = (bitField0_ & ~0x00000001); @@ -613,51 +700,69 @@ public Builder clearServiceLevelObjective() { return this; } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.ServiceLevelObjective.Builder getServiceLevelObjectiveBuilder() { + public com.google.monitoring.v3.ServiceLevelObjective.Builder + getServiceLevelObjectiveBuilder() { bitField0_ |= 0x00000001; onChanged(); return getServiceLevelObjectiveFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder() { + public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder + getServiceLevelObjectiveOrBuilder() { if (serviceLevelObjectiveBuilder_ != null) { return serviceLevelObjectiveBuilder_.getMessageOrBuilder(); } else { - return serviceLevelObjective_ == null ? - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() : serviceLevelObjective_; + return serviceLevelObjective_ == null + ? com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance() + : serviceLevelObjective_; } } /** + * + * *
      * Required. The `ServiceLevelObjective` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder> getServiceLevelObjectiveFieldBuilder() { if (serviceLevelObjectiveBuilder_ == null) { - serviceLevelObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.ServiceLevelObjective, com.google.monitoring.v3.ServiceLevelObjective.Builder, com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( - getServiceLevelObjective(), - getParentForChildren(), - isClean()); + serviceLevelObjectiveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.ServiceLevelObjective, + com.google.monitoring.v3.ServiceLevelObjective.Builder, + com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder>( + getServiceLevelObjective(), getParentForChildren(), isClean()); serviceLevelObjective_ = null; } return serviceLevelObjectiveBuilder_; @@ -665,34 +770,47 @@ public com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelOb private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -713,14 +831,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -731,6 +850,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -739,9 +860,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -754,6 +875,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -771,6 +894,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -783,6 +908,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -793,11 +920,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -805,21 +935,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) private static final com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest(); } @@ -843,27 +976,27 @@ public static com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceLevelObjectiveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceLevelObjectiveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -878,6 +1011,4 @@ public com.google.protobuf.Parser getParserF public com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java index a4b20583482b..83d08701d62d 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequestOrBuilder.java @@ -1,61 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface UpdateServiceLevelObjectiveRequestOrBuilder extends +public interface UpdateServiceLevelObjectiveRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateServiceLevelObjectiveRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the serviceLevelObjective field is set. */ boolean hasServiceLevelObjective(); /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The serviceLevelObjective. */ com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(); /** + * + * *
    * Required. The `ServiceLevelObjective` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.ServiceLevelObjective service_level_objective = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java similarity index 69% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java index 11b19e44173e..596052849cea 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; /** + * + * *
  * The `UpdateService` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceRequest} */ -public final class UpdateServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateServiceRequest) UpdateServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateServiceRequest.newBuilder() to construct. private UpdateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateServiceRequest() { - } + + private UpdateServiceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateServiceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceRequest.class, com.google.monitoring.v3.UpdateServiceRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceRequest.class, + com.google.monitoring.v3.UpdateServiceRequest.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.monitoring.v3.Service service_; /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ @java.lang.Override @@ -58,12 +80,16 @@ public boolean hasService() { return service_ != null; } /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ @java.lang.Override @@ -71,12 +97,15 @@ public com.google.monitoring.v3.Service getService() { return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { @@ -86,11 +115,14 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,11 +130,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -110,6 +145,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
@@ -122,6 +159,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,8 +171,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (service_ != null) { output.writeMessage(1, getService()); } @@ -151,12 +188,10 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,22 +201,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateServiceRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateServiceRequest other = (com.google.monitoring.v3.UpdateServiceRequest) obj; + com.google.monitoring.v3.UpdateServiceRequest other = + (com.google.monitoring.v3.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -207,132 +241,136 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateServiceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateServiceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.UpdateServiceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `UpdateService` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateServiceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateServiceRequest) com.google.monitoring.v3.UpdateServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateServiceRequest.class, com.google.monitoring.v3.UpdateServiceRequest.Builder.class); + com.google.monitoring.v3.UpdateServiceRequest.class, + com.google.monitoring.v3.UpdateServiceRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateServiceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.ServiceMonitoringServiceProto + .internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; } @java.lang.Override @@ -372,8 +410,11 @@ public com.google.monitoring.v3.UpdateServiceRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateServiceRequest buildPartial() { - com.google.monitoring.v3.UpdateServiceRequest result = new com.google.monitoring.v3.UpdateServiceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateServiceRequest result = + new com.google.monitoring.v3.UpdateServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +422,10 @@ public com.google.monitoring.v3.UpdateServiceRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateServiceRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.service_ = serviceBuilder_ == null - ? service_ - : serviceBuilder_.build(); + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -396,38 +433,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateServiceRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateServiceRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateServiceRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateServiceRequest) other); } else { super.mergeFrom(other); return this; @@ -468,26 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getServiceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,30 +534,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.monitoring.v3.Service service_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> serviceBuilder_; + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> + serviceBuilder_; /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ public boolean hasService() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ public com.google.monitoring.v3.Service getService() { @@ -531,12 +580,15 @@ public com.google.monitoring.v3.Service getService() { } } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { @@ -552,15 +604,17 @@ public Builder setService(com.google.monitoring.v3.Service value) { return this; } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setService( - com.google.monitoring.v3.Service.Builder builderForValue) { + public Builder setService(com.google.monitoring.v3.Service.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); } else { @@ -571,18 +625,21 @@ public Builder setService( return this; } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeService(com.google.monitoring.v3.Service value) { if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - service_ != null && - service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && service_ != null + && service_ != com.google.monitoring.v3.Service.getDefaultInstance()) { getServiceBuilder().mergeFrom(value); } else { service_ = value; @@ -595,12 +652,15 @@ public Builder mergeService(com.google.monitoring.v3.Service value) { return this; } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); @@ -613,12 +673,15 @@ public Builder clearService() { return this; } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { bitField0_ |= 0x00000001; @@ -626,38 +689,46 @@ public com.google.monitoring.v3.Service.Builder getServiceBuilder() { return getServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? - com.google.monitoring.v3.Service.getDefaultInstance() : service_; + return service_ == null ? com.google.monitoring.v3.Service.getDefaultInstance() : service_; } } /** + * + * *
      * Required. The `Service` to draw updates from.
      * The given `name` specifies the resource to update.
      * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder> + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Service, com.google.monitoring.v3.Service.Builder, com.google.monitoring.v3.ServiceOrBuilder>( - getService(), - getParentForChildren(), - isClean()); + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Service, + com.google.monitoring.v3.Service.Builder, + com.google.monitoring.v3.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; @@ -665,34 +736,47 @@ public com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -713,14 +797,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -731,6 +816,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -739,9 +826,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -754,6 +841,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -771,6 +860,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -783,6 +874,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -793,11 +886,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * A set of field paths defining which fields to use for the update.
      * 
@@ -805,21 +901,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +928,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateServiceRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateServiceRequest) private static final com.google.monitoring.v3.UpdateServiceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateServiceRequest(); } @@ -843,27 +942,27 @@ public static com.google.monitoring.v3.UpdateServiceRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -878,6 +977,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java index 18152641016c..5e0938ee6573 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequestOrBuilder.java @@ -1,61 +1,96 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service_service.proto package com.google.monitoring.v3; -public interface UpdateServiceRequestOrBuilder extends +public interface UpdateServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ boolean hasService(); /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ com.google.monitoring.v3.Service getService(); /** + * + * *
    * Required. The `Service` to draw updates from.
    * The given `name` specifies the resource to update.
    * 
* - * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.ServiceOrBuilder getServiceOrBuilder(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * A set of field paths defining which fields to use for the update.
    * 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java similarity index 76% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java index 9bd7d01d3236..7022dddbd695 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; /** + * + * *
  * The message definition for updating a `Snooze`. The field, `snooze.name`
  * identifies the `Snooze` to be updated. The remainder of `snooze` gives the
@@ -22,46 +39,50 @@
  *
  * Protobuf type {@code google.monitoring.v3.UpdateSnoozeRequest}
  */
-public final class UpdateSnoozeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateSnoozeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateSnoozeRequest)
     UpdateSnoozeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateSnoozeRequest.newBuilder() to construct.
   private UpdateSnoozeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateSnoozeRequest() {
-  }
+
+  private UpdateSnoozeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateSnoozeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
+    return com.google.monitoring.v3.SnoozeServiceProto
+        .internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UpdateSnoozeRequest.class, com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
+            com.google.monitoring.v3.UpdateSnoozeRequest.class,
+            com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
   }
 
   public static final int SNOOZE_FIELD_NUMBER = 1;
   private com.google.monitoring.v3.Snooze snooze_;
   /**
+   *
+   *
    * 
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snooze field is set. */ @java.lang.Override @@ -69,11 +90,14 @@ public boolean hasSnooze() { return snooze_ != null; } /** + * + * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snooze. */ @java.lang.Override @@ -81,6 +105,8 @@ public com.google.monitoring.v3.Snooze getSnooze() { return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } /** + * + * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
@@ -95,6 +121,8 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The fields to update.
    *
@@ -120,7 +148,9 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -128,6 +158,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The fields to update.
    *
@@ -153,7 +185,9 @@ public boolean hasUpdateMask() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -161,6 +195,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The fields to update.
    *
@@ -186,7 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -194,6 +231,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snooze_ != null) { output.writeMessage(1, getSnooze()); } @@ -223,12 +260,10 @@ public int getSerializedSize() { size = 0; if (snooze_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnooze()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnooze()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,22 +273,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateSnoozeRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateSnoozeRequest other = (com.google.monitoring.v3.UpdateSnoozeRequest) obj; + com.google.monitoring.v3.UpdateSnoozeRequest other = + (com.google.monitoring.v3.UpdateSnoozeRequest) obj; if (hasSnooze() != other.hasSnooze()) return false; if (hasSnooze()) { - if (!getSnooze() - .equals(other.getSnooze())) return false; + if (!getSnooze().equals(other.getSnooze())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -279,99 +313,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateSnoozeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateSnoozeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.UpdateSnoozeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The message definition for updating a `Snooze`. The field, `snooze.name`
    * identifies the `Snooze` to be updated. The remainder of `snooze` gives the
@@ -390,33 +429,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.UpdateSnoozeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateSnoozeRequest)
       com.google.monitoring.v3.UpdateSnoozeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UpdateSnoozeRequest.class, com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
+              com.google.monitoring.v3.UpdateSnoozeRequest.class,
+              com.google.monitoring.v3.UpdateSnoozeRequest.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UpdateSnoozeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -435,9 +473,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.SnoozeServiceProto.internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.SnoozeServiceProto
+          .internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -456,8 +494,11 @@ public com.google.monitoring.v3.UpdateSnoozeRequest build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UpdateSnoozeRequest buildPartial() {
-      com.google.monitoring.v3.UpdateSnoozeRequest result = new com.google.monitoring.v3.UpdateSnoozeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.UpdateSnoozeRequest result =
+          new com.google.monitoring.v3.UpdateSnoozeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -465,14 +506,10 @@ public com.google.monitoring.v3.UpdateSnoozeRequest buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.UpdateSnoozeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.snooze_ = snoozeBuilder_ == null
-            ? snooze_
-            : snoozeBuilder_.build();
+        result.snooze_ = snoozeBuilder_ == null ? snooze_ : snoozeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -480,38 +517,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateSnoozeRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UpdateSnoozeRequest) {
-        return mergeFrom((com.google.monitoring.v3.UpdateSnoozeRequest)other);
+        return mergeFrom((com.google.monitoring.v3.UpdateSnoozeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -552,26 +590,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getSnoozeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getSnoozeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,28 +618,40 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.monitoring.v3.Snooze snooze_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> snoozeBuilder_;
+            com.google.monitoring.v3.Snooze,
+            com.google.monitoring.v3.Snooze.Builder,
+            com.google.monitoring.v3.SnoozeOrBuilder>
+        snoozeBuilder_;
     /**
+     *
+     *
      * 
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snooze field is set. */ public boolean hasSnooze() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snooze. */ public com.google.monitoring.v3.Snooze getSnooze() { @@ -613,11 +662,14 @@ public com.google.monitoring.v3.Snooze getSnooze() { } } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { @@ -633,14 +685,16 @@ public Builder setSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSnooze( - com.google.monitoring.v3.Snooze.Builder builderForValue) { + public Builder setSnooze(com.google.monitoring.v3.Snooze.Builder builderForValue) { if (snoozeBuilder_ == null) { snooze_ = builderForValue.build(); } else { @@ -651,17 +705,20 @@ public Builder setSnooze( return this; } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { if (snoozeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - snooze_ != null && - snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && snooze_ != null + && snooze_ != com.google.monitoring.v3.Snooze.getDefaultInstance()) { getSnoozeBuilder().mergeFrom(value); } else { snooze_ = value; @@ -674,11 +731,14 @@ public Builder mergeSnooze(com.google.monitoring.v3.Snooze value) { return this; } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnooze() { bitField0_ = (bitField0_ & ~0x00000001); @@ -691,11 +751,14 @@ public Builder clearSnooze() { return this; } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { bitField0_ |= 0x00000001; @@ -703,36 +766,44 @@ public com.google.monitoring.v3.Snooze.Builder getSnoozeBuilder() { return getSnoozeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { if (snoozeBuilder_ != null) { return snoozeBuilder_.getMessageOrBuilder(); } else { - return snooze_ == null ? - com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; + return snooze_ == null ? com.google.monitoring.v3.Snooze.getDefaultInstance() : snooze_; } } /** + * + * *
      * Required. The `Snooze` to update. Must have the name field present.
      * 
* - * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder> + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder> getSnoozeFieldBuilder() { if (snoozeBuilder_ == null) { - snoozeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Snooze, com.google.monitoring.v3.Snooze.Builder, com.google.monitoring.v3.SnoozeOrBuilder>( - getSnooze(), - getParentForChildren(), - isClean()); + snoozeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.Snooze, + com.google.monitoring.v3.Snooze.Builder, + com.google.monitoring.v3.SnoozeOrBuilder>( + getSnooze(), getParentForChildren(), isClean()); snooze_ = null; } return snoozeBuilder_; @@ -740,8 +811,13 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The fields to update.
      *
@@ -767,13 +843,17 @@ public com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The fields to update.
      *
@@ -799,17 +879,23 @@ public boolean hasUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The fields to update.
      *
@@ -835,7 +921,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -851,6 +938,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The fields to update.
      *
@@ -876,10 +965,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -890,6 +979,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The fields to update.
      *
@@ -915,13 +1006,14 @@ public Builder setUpdateMask(
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -934,6 +1026,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The fields to update.
      *
@@ -959,7 +1053,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -972,6 +1067,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The fields to update.
      *
@@ -997,7 +1094,8 @@ public Builder clearUpdateMask() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1005,6 +1103,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The fields to update.
      *
@@ -1030,17 +1130,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The fields to update.
      *
@@ -1066,24 +1170,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * which fields can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,12 +1201,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateSnoozeRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateSnoozeRequest) private static final com.google.monitoring.v3.UpdateSnoozeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateSnoozeRequest(); } @@ -1107,27 +1215,27 @@ public static com.google.monitoring.v3.UpdateSnoozeRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnoozeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnoozeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,6 +1250,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UpdateSnoozeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java similarity index 83% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java index aa2f2ab0ea20..2ef28bde74a4 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateSnoozeRequestOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/snooze_service.proto package com.google.monitoring.v3; -public interface UpdateSnoozeRequestOrBuilder extends +public interface UpdateSnoozeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateSnoozeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snooze field is set. */ boolean hasSnooze(); /** + * + * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
* * .google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snooze. */ com.google.monitoring.v3.Snooze getSnooze(); /** + * + * *
    * Required. The `Snooze` to update. Must have the name field present.
    * 
@@ -35,6 +59,8 @@ public interface UpdateSnoozeRequestOrBuilder extends com.google.monitoring.v3.SnoozeOrBuilder getSnoozeOrBuilder(); /** + * + * *
    * Required. The fields to update.
    *
@@ -60,11 +86,15 @@ public interface UpdateSnoozeRequestOrBuilder extends
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The fields to update.
    *
@@ -90,11 +120,15 @@ public interface UpdateSnoozeRequestOrBuilder extends
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The fields to update.
    *
@@ -120,7 +154,8 @@ public interface UpdateSnoozeRequestOrBuilder extends
    * which fields can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java index a4f34aca6880..dcac8e2e19c6 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java @@ -1,50 +1,71 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; /** + * + * *
  * The protocol for the `UpdateUptimeCheckConfig` request.
  * 
* * Protobuf type {@code google.monitoring.v3.UpdateUptimeCheckConfigRequest} */ -public final class UpdateUptimeCheckConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateUptimeCheckConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UpdateUptimeCheckConfigRequest) UpdateUptimeCheckConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateUptimeCheckConfigRequest.newBuilder() to construct. - private UpdateUptimeCheckConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateUptimeCheckConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateUptimeCheckConfigRequest() { - } + + private UpdateUptimeCheckConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateUptimeCheckConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -53,6 +74,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -60,6 +82,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -68,6 +92,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -75,6 +100,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -92,6 +119,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int UPTIME_CHECK_CONFIG_FIELD_NUMBER = 3;
   private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_;
   /**
+   *
+   *
    * 
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -106,7 +135,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the uptimeCheckConfig field is set. */ @java.lang.Override @@ -114,6 +146,8 @@ public boolean hasUptimeCheckConfig() { return uptimeCheckConfig_ != null; } /** + * + * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -128,14 +162,21 @@ public boolean hasUptimeCheckConfig() {
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The uptimeCheckConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } /** + * + * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -150,14 +191,19 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() {
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } @@ -187,12 +232,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (uptimeCheckConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUptimeCheckConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUptimeCheckConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,22 +245,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateUptimeCheckConfigRequest)) { return super.equals(obj); } - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other = (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) obj; + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other = + (com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasUptimeCheckConfig() != other.hasUptimeCheckConfig()) return false; if (hasUptimeCheckConfig()) { - if (!getUptimeCheckConfig() - .equals(other.getUptimeCheckConfig())) return false; + if (!getUptimeCheckConfig().equals(other.getUptimeCheckConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -244,131 +286,136 @@ public int hashCode() { } public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The protocol for the `UpdateUptimeCheckConfig` request.
    * 
* * Protobuf type {@code google.monitoring.v3.UpdateUptimeCheckConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UpdateUptimeCheckConfigRequest) com.google.monitoring.v3.UpdateUptimeCheckConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.Builder.class); } // Construct using com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeServiceProto.internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeServiceProto + .internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; } @java.lang.Override @@ -408,8 +455,11 @@ public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest build() { @java.lang.Override public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest buildPartial() { - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result = new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result = + new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -417,14 +467,13 @@ public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest buildPartial() { private void buildPartial0(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.uptimeCheckConfig_ = uptimeCheckConfigBuilder_ == null - ? uptimeCheckConfig_ - : uptimeCheckConfigBuilder_.build(); + result.uptimeCheckConfig_ = + uptimeCheckConfigBuilder_ == null + ? uptimeCheckConfig_ + : uptimeCheckConfigBuilder_.build(); } } @@ -432,38 +481,39 @@ private void buildPartial0(com.google.monitoring.v3.UpdateUptimeCheckConfigReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) { - return mergeFrom((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest)other); + return mergeFrom((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest other) { - if (other == com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -504,26 +555,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getUptimeCheckConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage( + getUptimeCheckConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,12 +584,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -547,12 +604,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -561,16 +621,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -594,6 +659,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -603,8 +670,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -615,6 +681,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -626,9 +694,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -641,6 +709,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -661,6 +731,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -676,6 +748,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -689,11 +763,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. If present, only the listed fields in the current Uptime check
      * configuration are updated with values from the new configuration. If this
@@ -704,14 +781,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -719,8 +799,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.monitoring.v3.UptimeCheckConfig uptimeCheckConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> uptimeCheckConfigBuilder_;
+            com.google.monitoring.v3.UptimeCheckConfig,
+            com.google.monitoring.v3.UptimeCheckConfig.Builder,
+            com.google.monitoring.v3.UptimeCheckConfigOrBuilder>
+        uptimeCheckConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -735,13 +820,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the uptimeCheckConfig field is set. */ public boolean hasUptimeCheckConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -756,17 +846,24 @@ public boolean hasUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The uptimeCheckConfig. */ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { if (uptimeCheckConfigBuilder_ == null) { - return uptimeCheckConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } else { return uptimeCheckConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -781,7 +878,9 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { @@ -797,6 +896,8 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v return this; } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -811,7 +912,9 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUptimeCheckConfig( com.google.monitoring.v3.UptimeCheckConfig.Builder builderForValue) { @@ -825,6 +928,8 @@ public Builder setUptimeCheckConfig( return this; } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -839,13 +944,16 @@ public Builder setUptimeCheckConfig(
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig value) { if (uptimeCheckConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - uptimeCheckConfig_ != null && - uptimeCheckConfig_ != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && uptimeCheckConfig_ != null + && uptimeCheckConfig_ + != com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance()) { getUptimeCheckConfigBuilder().mergeFrom(value); } else { uptimeCheckConfig_ = value; @@ -858,6 +966,8 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig return this; } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -872,7 +982,9 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUptimeCheckConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -885,6 +997,8 @@ public Builder clearUptimeCheckConfig() { return this; } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -899,7 +1013,9 @@ public Builder clearUptimeCheckConfig() {
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBuilder() { bitField0_ |= 0x00000002; @@ -907,6 +1023,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu return getUptimeCheckConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -921,17 +1039,22 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder() { if (uptimeCheckConfigBuilder_ != null) { return uptimeCheckConfigBuilder_.getMessageOrBuilder(); } else { - return uptimeCheckConfig_ == null ? - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() : uptimeCheckConfig_; + return uptimeCheckConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance() + : uptimeCheckConfig_; } } /** + * + * *
      * Required. If an `updateMask` has been specified, this field gives
      * the values for the set of fields mentioned in the `updateMask`. If an
@@ -946,24 +1069,29 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigO
      * `selected_regions`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder> getUptimeCheckConfigFieldBuilder() { if (uptimeCheckConfigBuilder_ == null) { - uptimeCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig, com.google.monitoring.v3.UptimeCheckConfig.Builder, com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( - getUptimeCheckConfig(), - getParentForChildren(), - isClean()); + uptimeCheckConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig, + com.google.monitoring.v3.UptimeCheckConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfigOrBuilder>( + getUptimeCheckConfig(), getParentForChildren(), isClean()); uptimeCheckConfig_ = null; } return uptimeCheckConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -973,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) private static final com.google.monitoring.v3.UpdateUptimeCheckConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UpdateUptimeCheckConfigRequest(); } @@ -987,27 +1115,27 @@ public static com.google.monitoring.v3.UpdateUptimeCheckConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateUptimeCheckConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUptimeCheckConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,6 +1150,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.monitoring.v3.UpdateUptimeCheckConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java index ead9ed2d6bca..61d9565f0101 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime_service.proto package com.google.monitoring.v3; -public interface UpdateUptimeCheckConfigRequestOrBuilder extends +public interface UpdateUptimeCheckConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UpdateUptimeCheckConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -16,10 +34,13 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -28,10 +49,13 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. If present, only the listed fields in the current Uptime check
    * configuration are updated with values from the new configuration. If this
@@ -44,6 +68,8 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -58,11 +84,16 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the uptimeCheckConfig field is set. */ boolean hasUptimeCheckConfig(); /** + * + * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -77,11 +108,16 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The uptimeCheckConfig. */ com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); /** + * + * *
    * Required. If an `updateMask` has been specified, this field gives
    * the values for the set of fields mentioned in the `updateMask`. If an
@@ -96,7 +132,9 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends
    * `selected_regions`.
    * 
* - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java index 1271da603e72..4e111462978f 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** + * + * *
  * This message configures which resources and services to monitor for
  * availability.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig}
  */
-public final class UptimeCheckConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UptimeCheckConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig)
     UptimeCheckConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UptimeCheckConfig.newBuilder() to construct.
   private UptimeCheckConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UptimeCheckConfig() {
     name_ = "";
     displayName_ = "";
@@ -31,46 +49,49 @@ private UptimeCheckConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UptimeCheckConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 20:
         return internalGetUserLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UptimeCheckConfig.class, com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
+            com.google.monitoring.v3.UptimeCheckConfig.class,
+            com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * What kind of checkers are available to be used by the check.
    * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.CheckerType} */ - public enum CheckerType - implements com.google.protobuf.ProtocolMessageEnum { + public enum CheckerType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The default checker type. Currently converted to `STATIC_IP_CHECKERS`
      * on creation, the default conversion behavior may change in the future.
@@ -80,6 +101,8 @@ public enum CheckerType
      */
     CHECKER_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
      * across the public internet. `STATIC_IP_CHECKERS` use the static IP
@@ -90,6 +113,8 @@ public enum CheckerType
      */
     STATIC_IP_CHECKERS(1),
     /**
+     *
+     *
      * 
      * `VPC_CHECKERS` are used for uptime checks that perform egress using
      * Service Directory and private network access. When using `VPC_CHECKERS`,
@@ -103,6 +128,8 @@ public enum CheckerType
     ;
 
     /**
+     *
+     *
      * 
      * The default checker type. Currently converted to `STATIC_IP_CHECKERS`
      * on creation, the default conversion behavior may change in the future.
@@ -112,6 +139,8 @@ public enum CheckerType
      */
     public static final int CHECKER_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
      * across the public internet. `STATIC_IP_CHECKERS` use the static IP
@@ -122,6 +151,8 @@ public enum CheckerType
      */
     public static final int STATIC_IP_CHECKERS_VALUE = 1;
     /**
+     *
+     *
      * 
      * `VPC_CHECKERS` are used for uptime checks that perform egress using
      * Service Directory and private network access. When using `VPC_CHECKERS`,
@@ -132,7 +163,6 @@ public enum CheckerType
      */
     public static final int VPC_CHECKERS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -157,49 +187,49 @@ public static CheckerType valueOf(int value) {
      */
     public static CheckerType forNumber(int value) {
       switch (value) {
-        case 0: return CHECKER_TYPE_UNSPECIFIED;
-        case 1: return STATIC_IP_CHECKERS;
-        case 3: return VPC_CHECKERS;
-        default: return null;
+        case 0:
+          return CHECKER_TYPE_UNSPECIFIED;
+        case 1:
+          return STATIC_IP_CHECKERS;
+        case 3:
+          return VPC_CHECKERS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        CheckerType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CheckerType findValueByNumber(int number) {
-              return CheckerType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public CheckerType findValueByNumber(int number) {
+            return CheckerType.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.monitoring.v3.UptimeCheckConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final CheckerType[] VALUES = values();
 
-    public static CheckerType valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static CheckerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -216,11 +246,14 @@ private CheckerType(int value) {
     // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.CheckerType)
   }
 
-  public interface ResourceGroupOrBuilder extends
+  public interface ResourceGroupOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -228,10 +261,13 @@ public interface ResourceGroupOrBuilder extends
      * 
* * string group_id = 1; + * * @return The groupId. */ java.lang.String getGroupId(); /** + * + * *
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -239,31 +275,39 @@ public interface ResourceGroupOrBuilder extends
      * 
* * string group_id = 1; + * * @return The bytes for groupId. */ - com.google.protobuf.ByteString - getGroupIdBytes(); + com.google.protobuf.ByteString getGroupIdBytes(); /** + * + * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** + * + * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The resourceType. */ com.google.monitoring.v3.GroupResourceType getResourceType(); } /** + * + * *
    * The resource submessage for group checks. It can be used instead of a
    * monitored resource, when multiple resources are being monitored.
@@ -271,15 +315,16 @@ public interface ResourceGroupOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ResourceGroup}
    */
-  public static final class ResourceGroup extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ResourceGroup extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
       ResourceGroupOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ResourceGroup.newBuilder() to construct.
     private ResourceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ResourceGroup() {
       groupId_ = "";
       resourceType_ = 0;
@@ -287,28 +332,32 @@ private ResourceGroup() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ResourceGroup();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class,
+              com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
     }
 
     public static final int GROUP_ID_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object groupId_ = "";
     /**
+     *
+     *
      * 
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -316,6 +365,7 @@ protected java.lang.Object newInstance(
      * 
* * string group_id = 1; + * * @return The groupId. */ @java.lang.Override @@ -324,14 +374,15 @@ public java.lang.String getGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupId_ = s; return s; } } /** + * + * *
      * The group of resources being monitored. Should be only the `[GROUP_ID]`,
      * and not the full-path
@@ -339,16 +390,15 @@ public java.lang.String getGroupId() {
      * 
* * string group_id = 1; + * * @return The bytes for groupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupIdBytes() { + public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupId_ = b; return b; } else { @@ -359,30 +409,40 @@ public java.lang.String getGroupId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_ = 0; /** + * + * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
      * The resource type of the group members.
      * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The resourceType. */ - @java.lang.Override public com.google.monitoring.v3.GroupResourceType getResourceType() { - com.google.monitoring.v3.GroupResourceType result = com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); + @java.lang.Override + public com.google.monitoring.v3.GroupResourceType getResourceType() { + com.google.monitoring.v3.GroupResourceType result = + com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); return result == null ? com.google.monitoring.v3.GroupResourceType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,12 +454,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupId_); } - if (resourceType_ != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ + != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } getUnknownFields().writeTo(output); @@ -414,9 +474,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupId_); } - if (resourceType_ != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); + if (resourceType_ + != com.google.monitoring.v3.GroupResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -426,15 +486,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other = (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) obj; + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other = + (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) obj; - if (!getGroupId() - .equals(other.getGroupId())) return false; + if (!getGroupId().equals(other.getGroupId())) return false; if (resourceType_ != other.resourceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -457,89 +517,94 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -549,6 +614,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The resource submessage for group checks. It can be used instead of a
      * monitored resource, when multiple resources are being monitored.
@@ -556,33 +623,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ResourceGroup}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ResourceGroup)
         com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.class,
+                com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -593,9 +660,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
       }
 
       @java.lang.Override
@@ -614,8 +681,11 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup result = new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup result =
+            new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -634,38 +704,41 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ResourceGr
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup)other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -673,7 +746,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance())
+          return this;
         if (!other.getGroupId().isEmpty()) {
           groupId_ = other.groupId_;
           bitField0_ |= 0x00000001;
@@ -708,22 +782,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                groupId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 16: {
-                resourceType_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  groupId_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 16:
+                {
+                  resourceType_ = input.readEnum();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -733,10 +810,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object groupId_ = "";
       /**
+       *
+       *
        * 
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -744,13 +824,13 @@ public Builder mergeFrom(
        * 
* * string group_id = 1; + * * @return The groupId. */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupId_ = s; return s; @@ -759,6 +839,8 @@ public java.lang.String getGroupId() { } } /** + * + * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -766,15 +848,14 @@ public java.lang.String getGroupId() {
        * 
* * string group_id = 1; + * * @return The bytes for groupId. */ - public com.google.protobuf.ByteString - getGroupIdBytes() { + public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupId_ = b; return b; } else { @@ -782,6 +863,8 @@ public java.lang.String getGroupId() { } } /** + * + * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -789,18 +872,22 @@ public java.lang.String getGroupId() {
        * 
* * string group_id = 1; + * * @param value The groupId to set. * @return This builder for chaining. */ - public Builder setGroupId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } groupId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -808,6 +895,7 @@ public Builder setGroupId(
        * 
* * string group_id = 1; + * * @return This builder for chaining. */ public Builder clearGroupId() { @@ -817,6 +905,8 @@ public Builder clearGroupId() { return this; } /** + * + * *
        * The group of resources being monitored. Should be only the `[GROUP_ID]`,
        * and not the full-path
@@ -824,12 +914,14 @@ public Builder clearGroupId() {
        * 
* * string group_id = 1; + * * @param value The bytes for groupId to set. * @return This builder for chaining. */ - public Builder setGroupIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); groupId_ = value; bitField0_ |= 0x00000001; @@ -839,22 +931,29 @@ public Builder setGroupIdBytes( private int resourceType_ = 0; /** + * + * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ @@ -865,24 +964,31 @@ public Builder setResourceTypeValue(int value) { return this; } /** + * + * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return The resourceType. */ @java.lang.Override public com.google.monitoring.v3.GroupResourceType getResourceType() { - com.google.monitoring.v3.GroupResourceType result = com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); + com.google.monitoring.v3.GroupResourceType result = + com.google.monitoring.v3.GroupResourceType.forNumber(resourceType_); return result == null ? com.google.monitoring.v3.GroupResourceType.UNRECOGNIZED : result; } /** + * + * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @param value The resourceType to set. * @return This builder for chaining. */ @@ -896,11 +1002,14 @@ public Builder setResourceType(com.google.monitoring.v3.GroupResourceType value) return this; } /** + * + * *
        * The resource type of the group members.
        * 
* * .google.monitoring.v3.GroupResourceType resource_type = 2; + * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -909,6 +1018,7 @@ public Builder clearResourceType() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -921,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) private static final com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup(); } @@ -935,27 +1045,28 @@ public static com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -970,24 +1081,29 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PingConfigOrBuilder extends + public interface PingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.PingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
      * 
* * int32 pings_count = 1; + * * @return The pingsCount. */ int getPingsCount(); } /** + * + * *
    * Information involved in sending ICMP pings alongside public HTTP/TCP
    * checks. For HTTP, the pings are performed for each part of the redirect
@@ -996,46 +1112,50 @@ public interface PingConfigOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.PingConfig}
    */
-  public static final class PingConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PingConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.PingConfig)
       PingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PingConfig.newBuilder() to construct.
     private PingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private PingConfig() {
-    }
+
+    private PingConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PingConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class,
+              com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
     }
 
     public static final int PINGS_COUNT_FIELD_NUMBER = 1;
     private int pingsCount_ = 0;
     /**
+     *
+     *
      * 
      * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
      * 
* * int32 pings_count = 1; + * * @return The pingsCount. */ @java.lang.Override @@ -1044,6 +1164,7 @@ public int getPingsCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1055,8 +1176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pingsCount_ != 0) { output.writeInt32(1, pingsCount_); } @@ -1070,8 +1190,7 @@ public int getSerializedSize() { size = 0; if (pingsCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pingsCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pingsCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1081,15 +1200,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.PingConfig)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.PingConfig other = (com.google.monitoring.v3.UptimeCheckConfig.PingConfig) obj; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig other = + (com.google.monitoring.v3.UptimeCheckConfig.PingConfig) obj; - if (getPingsCount() - != other.getPingsCount()) return false; + if (getPingsCount() != other.getPingsCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1109,89 +1228,94 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.PingConfig prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.PingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1201,6 +1325,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information involved in sending ICMP pings alongside public HTTP/TCP
      * checks. For HTTP, the pings are performed for each part of the redirect
@@ -1209,33 +1335,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.PingConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.PingConfig)
         com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.class,
+                com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.PingConfig.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1245,9 +1371,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
       }
 
       @java.lang.Override
@@ -1266,8 +1392,11 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.PingConfig buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.PingConfig result = new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.UptimeCheckConfig.PingConfig result =
+            new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -1283,38 +1412,41 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.PingConfig
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.PingConfig) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.PingConfig)other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.PingConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1322,7 +1454,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.PingConfig other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance())
+          return this;
         if (other.getPingsCount() != 0) {
           setPingsCount(other.getPingsCount());
         }
@@ -1352,17 +1485,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                pingsCount_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  pingsCount_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1372,15 +1507,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int pingsCount_ ;
+      private int pingsCount_;
       /**
+       *
+       *
        * 
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; + * * @return The pingsCount. */ @java.lang.Override @@ -1388,11 +1527,14 @@ public int getPingsCount() { return pingsCount_; } /** + * + * *
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; + * * @param value The pingsCount to set. * @return This builder for chaining. */ @@ -1404,11 +1546,14 @@ public Builder setPingsCount(int value) { return this; } /** + * + * *
        * Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
        * 
* * int32 pings_count = 1; + * * @return This builder for chaining. */ public Builder clearPingsCount() { @@ -1417,6 +1562,7 @@ public Builder clearPingsCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1429,12 +1575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.PingConfig) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.PingConfig) private static final com.google.monitoring.v3.UptimeCheckConfig.PingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.PingConfig(); } @@ -1443,27 +1589,28 @@ public static com.google.monitoring.v3.UptimeCheckConfig.PingConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1478,45 +1625,58 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface HttpCheckOrBuilder extends + public interface HttpCheckOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The enum numeric value on the wire for requestMethod. */ int getRequestMethodValue(); /** + * + * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The requestMethod. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod(); /** + * + * *
      * If `true`, use HTTPS instead of HTTP to run the check.
      * 
* * bool use_ssl = 1; + * * @return The useSsl. */ boolean getUseSsl(); /** + * + * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -1526,10 +1686,13 @@ public interface HttpCheckOrBuilder extends
      * 
* * string path = 2; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -1539,12 +1702,14 @@ public interface HttpCheckOrBuilder extends
      * 
* * string path = 2; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
      * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
      * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -1553,41 +1718,56 @@ public interface HttpCheckOrBuilder extends
      * 
* * int32 port = 3; + * * @return The port. */ int getPort(); /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return Whether the authInfo field is set. */ boolean hasAuthInfo(); /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return The authInfo. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo(); /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder + getAuthInfoOrBuilder(); /** + * + * *
      * Boolean specifying whether to encrypt the header information.
      * Encryption should be specified for any headers related to authentication
@@ -1598,11 +1778,14 @@ public interface HttpCheckOrBuilder extends
      * 
* * bool mask_headers = 5; + * * @return The maskHeaders. */ boolean getMaskHeaders(); /** + * + * *
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1618,6 +1801,8 @@ public interface HttpCheckOrBuilder extends
      */
     int getHeadersCount();
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1631,15 +1816,13 @@ public interface HttpCheckOrBuilder extends
      *
      * map<string, string> headers = 6;
      */
-    boolean containsHeaders(
-        java.lang.String key);
-    /**
-     * Use {@link #getHeadersMap()} instead.
-     */
+    boolean containsHeaders(java.lang.String key);
+    /** Use {@link #getHeadersMap()} instead. */
     @java.lang.Deprecated
-    java.util.Map
-    getHeaders();
+    java.util.Map getHeaders();
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1653,9 +1836,10 @@ boolean containsHeaders(
      *
      * map<string, string> headers = 6;
      */
-    java.util.Map
-    getHeadersMap();
+    java.util.Map getHeadersMap();
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1670,11 +1854,13 @@ boolean containsHeaders(
      * map<string, string> headers = 6;
      */
     /* nullable */
-java.lang.String getHeadersOrDefault(
+    java.lang.String getHeadersOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue);
+        java.lang.String defaultValue);
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -1688,10 +1874,11 @@ java.lang.String getHeadersOrDefault(
      *
      * map<string, string> headers = 6;
      */
-    java.lang.String getHeadersOrThrow(
-        java.lang.String key);
+    java.lang.String getHeadersOrThrow(java.lang.String key);
 
     /**
+     *
+     *
      * 
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -1704,10 +1891,13 @@ java.lang.String getHeadersOrThrow(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -1720,11 +1910,14 @@ java.lang.String getHeadersOrThrow(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * * @return The contentType. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType(); /** + * + * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -1735,10 +1928,13 @@ java.lang.String getHeadersOrThrow(
      * 
* * string custom_content_type = 13; + * * @return The customContentType. */ java.lang.String getCustomContentType(); /** + * + * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -1749,12 +1945,14 @@ java.lang.String getHeadersOrThrow(
      * 
* * string custom_content_type = 13; + * * @return The bytes for customContentType. */ - com.google.protobuf.ByteString - getCustomContentTypeBytes(); + com.google.protobuf.ByteString getCustomContentTypeBytes(); /** + * + * *
      * Boolean specifying whether to include SSL certificate validation as a
      * part of the Uptime check. Only applies to checks where
@@ -1763,11 +1961,14 @@ java.lang.String getHeadersOrThrow(
      * 
* * bool validate_ssl = 7; + * * @return The validateSsl. */ boolean getValidateSsl(); /** + * + * *
      * The request body associated with the HTTP POST request. If `content_type`
      * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -1781,83 +1982,115 @@ java.lang.String getHeadersOrThrow(
      * 
* * bytes body = 10; + * * @return The body. */ com.google.protobuf.ByteString getBody(); /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - java.util.List + java.util.List getAcceptedResponseStatusCodesList(); /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + getAcceptedResponseStatusCodes(int index); /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ int getAcceptedResponseStatusCodesCount(); /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - java.util.List + java.util.List< + ? extends + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> getAcceptedResponseStatusCodesOrBuilderList(); /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( - int index); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder + getAcceptedResponseStatusCodesOrBuilder(int index); /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return Whether the pingConfig field is set. */ boolean hasPingConfig(); /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return The pingConfig. */ com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig(); /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
@@ -1867,21 +2100,24 @@ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder(); } /** + * + * *
    * Information involved in an HTTP/HTTPS Uptime check request.
    * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck} */ - public static final class HttpCheck extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class HttpCheck extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck) HttpCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpCheck.newBuilder() to construct. private HttpCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HttpCheck() { requestMethod_ = 0; path_ = ""; @@ -1893,46 +2129,49 @@ private HttpCheck() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetHeaders(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); } /** + * + * *
      * The HTTP request method options.
      * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod} */ - public enum RequestMethod - implements com.google.protobuf.ProtocolMessageEnum { + public enum RequestMethod implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * No request method specified.
        * 
@@ -1941,6 +2180,8 @@ public enum RequestMethod */ METHOD_UNSPECIFIED(0), /** + * + * *
        * GET request.
        * 
@@ -1949,6 +2190,8 @@ public enum RequestMethod */ GET(1), /** + * + * *
        * POST request.
        * 
@@ -1960,6 +2203,8 @@ public enum RequestMethod ; /** + * + * *
        * No request method specified.
        * 
@@ -1968,6 +2213,8 @@ public enum RequestMethod */ public static final int METHOD_UNSPECIFIED_VALUE = 0; /** + * + * *
        * GET request.
        * 
@@ -1976,6 +2223,8 @@ public enum RequestMethod */ public static final int GET_VALUE = 1; /** + * + * *
        * POST request.
        * 
@@ -1984,7 +2233,6 @@ public enum RequestMethod */ public static final int POST_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2009,40 +2257,45 @@ public static RequestMethod valueOf(int value) { */ public static RequestMethod forNumber(int value) { switch (value) { - case 0: return METHOD_UNSPECIFIED; - case 1: return GET; - case 2: return POST; - default: return null; + case 0: + return METHOD_UNSPECIFIED; + case 1: + return GET; + case 2: + return POST; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RequestMethod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RequestMethod findValueByNumber(int number) { - return RequestMethod.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RequestMethod findValueByNumber(int number) { + return RequestMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor() + .getEnumTypes() + .get(0); } private static final RequestMethod[] VALUES = values(); @@ -2050,8 +2303,7 @@ public RequestMethod findValueByNumber(int number) { public static RequestMethod valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -2069,15 +2321,18 @@ private RequestMethod(int value) { } /** + * + * *
      * Header options corresponding to the content type of a HTTP request body.
      * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType} */ - public enum ContentType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * No content type specified.
        * 
@@ -2086,6 +2341,8 @@ public enum ContentType */ TYPE_UNSPECIFIED(0), /** + * + * *
        * `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
        * to `application/x-www-form-urlencoded` in the HTTP request.
@@ -2095,6 +2352,8 @@ public enum ContentType
        */
       URL_ENCODED(1),
       /**
+       *
+       *
        * 
        * `body` is in `custom_content_type` form. Equivalent to setting the
        * `Content-Type` to the contents of `custom_content_type` in the HTTP
@@ -2108,6 +2367,8 @@ public enum ContentType
       ;
 
       /**
+       *
+       *
        * 
        * No content type specified.
        * 
@@ -2116,6 +2377,8 @@ public enum ContentType */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
        * to `application/x-www-form-urlencoded` in the HTTP request.
@@ -2125,6 +2388,8 @@ public enum ContentType
        */
       public static final int URL_ENCODED_VALUE = 1;
       /**
+       *
+       *
        * 
        * `body` is in `custom_content_type` form. Equivalent to setting the
        * `Content-Type` to the contents of `custom_content_type` in the HTTP
@@ -2135,7 +2400,6 @@ public enum ContentType
        */
       public static final int USER_PROVIDED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -2160,49 +2424,51 @@ public static ContentType valueOf(int value) {
        */
       public static ContentType forNumber(int value) {
         switch (value) {
-          case 0: return TYPE_UNSPECIFIED;
-          case 1: return URL_ENCODED;
-          case 2: return USER_PROVIDED;
-          default: return null;
+          case 0:
+            return TYPE_UNSPECIFIED;
+          case 1:
+            return URL_ENCODED;
+          case 2:
+            return USER_PROVIDED;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          ContentType> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ContentType findValueByNumber(int number) {
-                return ContentType.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ContentType findValueByNumber(int number) {
+              return ContentType.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor().getEnumTypes().get(1);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDescriptor()
+            .getEnumTypes()
+            .get(1);
       }
 
       private static final ContentType[] VALUES = values();
 
-      public static ContentType valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -2219,51 +2485,64 @@ private ContentType(int value) {
       // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType)
     }
 
-    public interface BasicAuthenticationOrBuilder extends
+    public interface BasicAuthenticationOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } /** + * + * *
      * The authentication parameters to provide to the specified resource or
      * URL that requires a username and password. Currently, only
@@ -2273,15 +2552,16 @@ public interface BasicAuthenticationOrBuilder extends
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication}
      */
-    public static final class BasicAuthentication extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class BasicAuthentication extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
         BasicAuthenticationOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use BasicAuthentication.newBuilder() to construct.
       private BasicAuthentication(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private BasicAuthentication() {
         username_ = "";
         password_ = "";
@@ -2289,33 +2569,39 @@ private BasicAuthentication() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new BasicAuthentication();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class,
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
+                    .class);
       }
 
       public static final int USERNAME_FIELD_NUMBER = 1;
+
       @SuppressWarnings("serial")
       private volatile java.lang.Object username_ = "";
       /**
+       *
+       *
        * 
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -2324,29 +2610,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * The username to use when authenticating with the HTTP server.
        * 
* * string username = 1; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2355,14 +2641,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -2371,29 +2661,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * The password to use when authenticating with the HTTP server.
        * 
* * string password = 2; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2402,6 +2692,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2413,8 +2704,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2444,17 +2734,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)) { + if (!(obj + instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other = + (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2475,90 +2765,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2568,6 +2871,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * The authentication parameters to provide to the specified resource or
        * URL that requires a username and password. Currently, only
@@ -2577,33 +2882,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)
           com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder.class);
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.class,
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
+                      .class);
         }
 
-        // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.newBuilder()
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -2614,19 +2921,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
+            getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication build() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result = buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -2634,14 +2944,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
+            buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result =
+              new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.username_ = username_;
@@ -2655,46 +2970,54 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) {
-            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication)other);
+          if (other
+              instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) {
+            return mergeFrom(
+                (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other) {
-          if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other) {
+          if (other
+              == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication
+                  .getDefaultInstance()) return this;
           if (!other.getUsername().isEmpty()) {
             username_ = other.username_;
             bitField0_ |= 0x00000001;
@@ -2731,22 +3054,25 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  username_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                case 18: {
-                  password_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    username_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                case 18:
+                  {
+                    password_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000002;
+                    break;
+                  } // case 18
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2756,22 +3082,25 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private java.lang.Object username_ = "";
         /**
+         *
+         *
          * 
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2780,20 +3109,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2801,28 +3131,35 @@ public java.lang.String getUsername() { } } /** + * + * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -2832,17 +3169,21 @@ public Builder clearUsername() { return this; } /** + * + * *
          * The username to use when authenticating with the HTTP server.
          * 
* * string username = 1; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2852,18 +3193,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2872,20 +3215,21 @@ public java.lang.String getPassword() { } } /** + * + * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2893,28 +3237,35 @@ public java.lang.String getPassword() { } } /** + * + * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -2924,23 +3275,28 @@ public Builder clearPassword() { return this; } /** + * + * *
          * The password to use when authenticating with the HTTP server.
          * 
* * string password = 2; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2953,41 +3309,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) - private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication(); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAuthentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicAuthentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2999,66 +3359,92 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ResponseStatusCodeOrBuilder extends + public interface ResponseStatusCodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A status code to accept.
        * 
* * int32 status_value = 1; + * * @return Whether the statusValue field is set. */ boolean hasStatusValue(); /** + * + * *
        * A status code to accept.
        * 
* * int32 status_value = 1; + * * @return The statusValue. */ int getStatusValue(); /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return Whether the statusClass field is set. */ boolean hasStatusClass(); /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The enum numeric value on the wire for statusClass. */ int getStatusClassValue(); /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The statusClass. */ - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + getStatusClass(); - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase getStatusCodeCase(); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase + getStatusCodeCase(); } /** + * + * *
      * A status to accept. Either a status code class like "2xx", or an integer
      * status code like "200".
@@ -3066,48 +3452,54 @@ public interface ResponseStatusCodeOrBuilder extends
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode}
      */
-    public static final class ResponseStatusCode extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class ResponseStatusCode extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)
         ResponseStatusCodeOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use ResponseStatusCode.newBuilder() to construct.
       private ResponseStatusCode(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private ResponseStatusCode() {
-      }
+
+      private ResponseStatusCode() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new ResponseStatusCode();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class,
+                com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder
+                    .class);
       }
 
       /**
+       *
+       *
        * 
        * An HTTP status code class.
        * 
* - * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass} + * Protobuf enum {@code + * google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass} */ - public enum StatusClass - implements com.google.protobuf.ProtocolMessageEnum { + public enum StatusClass implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Default value that matches no status codes.
          * 
@@ -3116,6 +3508,8 @@ public enum StatusClass */ STATUS_CLASS_UNSPECIFIED(0), /** + * + * *
          * The class of status codes between 100 and 199.
          * 
@@ -3124,6 +3518,8 @@ public enum StatusClass */ STATUS_CLASS_1XX(100), /** + * + * *
          * The class of status codes between 200 and 299.
          * 
@@ -3132,6 +3528,8 @@ public enum StatusClass */ STATUS_CLASS_2XX(200), /** + * + * *
          * The class of status codes between 300 and 399.
          * 
@@ -3140,6 +3538,8 @@ public enum StatusClass */ STATUS_CLASS_3XX(300), /** + * + * *
          * The class of status codes between 400 and 499.
          * 
@@ -3148,6 +3548,8 @@ public enum StatusClass */ STATUS_CLASS_4XX(400), /** + * + * *
          * The class of status codes between 500 and 599.
          * 
@@ -3156,6 +3558,8 @@ public enum StatusClass */ STATUS_CLASS_5XX(500), /** + * + * *
          * The class of all status codes.
          * 
@@ -3167,6 +3571,8 @@ public enum StatusClass ; /** + * + * *
          * Default value that matches no status codes.
          * 
@@ -3175,6 +3581,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The class of status codes between 100 and 199.
          * 
@@ -3183,6 +3591,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_1XX_VALUE = 100; /** + * + * *
          * The class of status codes between 200 and 299.
          * 
@@ -3191,6 +3601,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_2XX_VALUE = 200; /** + * + * *
          * The class of status codes between 300 and 399.
          * 
@@ -3199,6 +3611,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_3XX_VALUE = 300; /** + * + * *
          * The class of status codes between 400 and 499.
          * 
@@ -3207,6 +3621,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_4XX_VALUE = 400; /** + * + * *
          * The class of status codes between 500 and 599.
          * 
@@ -3215,6 +3631,8 @@ public enum StatusClass */ public static final int STATUS_CLASS_5XX_VALUE = 500; /** + * + * *
          * The class of all status codes.
          * 
@@ -3223,7 +3641,6 @@ public enum StatusClass */ public static final int STATUS_CLASS_ANY_VALUE = 1000; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3248,44 +3665,54 @@ public static StatusClass valueOf(int value) { */ public static StatusClass forNumber(int value) { switch (value) { - case 0: return STATUS_CLASS_UNSPECIFIED; - case 100: return STATUS_CLASS_1XX; - case 200: return STATUS_CLASS_2XX; - case 300: return STATUS_CLASS_3XX; - case 400: return STATUS_CLASS_4XX; - case 500: return STATUS_CLASS_5XX; - case 1000: return STATUS_CLASS_ANY; - default: return null; + case 0: + return STATUS_CLASS_UNSPECIFIED; + case 100: + return STATUS_CLASS_1XX; + case 200: + return STATUS_CLASS_2XX; + case 300: + return STATUS_CLASS_3XX; + case 400: + return STATUS_CLASS_4XX; + case 500: + return STATUS_CLASS_5XX; + case 1000: + return STATUS_CLASS_ANY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StatusClass> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StatusClass findValueByNumber(int number) { - return StatusClass.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StatusClass findValueByNumber(int number) { + return StatusClass.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .getDescriptor() + .getEnumTypes() + .get(0); } private static final StatusClass[] VALUES = values(); @@ -3294,7 +3721,7 @@ public static StatusClass valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -3312,15 +3739,19 @@ private StatusClass(int value) { } private int statusCodeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object statusCode_; + public enum StatusCodeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATUS_VALUE(1), STATUS_CLASS(2), STATUSCODE_NOT_SET(0); private final int value; + private StatusCodeCase(int value) { this.value = value; } @@ -3336,30 +3767,36 @@ public static StatusCodeCase valueOf(int value) { public static StatusCodeCase forNumber(int value) { switch (value) { - case 1: return STATUS_VALUE; - case 2: return STATUS_CLASS; - case 0: return STATUSCODE_NOT_SET; - default: return null; + case 1: + return STATUS_VALUE; + case 2: + return STATUS_CLASS; + case 0: + return STATUSCODE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public StatusCodeCase - getStatusCodeCase() { - return StatusCodeCase.forNumber( - statusCodeCase_); + public StatusCodeCase getStatusCodeCase() { + return StatusCodeCase.forNumber(statusCodeCase_); } public static final int STATUS_VALUE_FIELD_NUMBER = 1; /** + * + * *
        * A status code to accept.
        * 
* * int32 status_value = 1; + * * @return Whether the statusValue field is set. */ @java.lang.Override @@ -3367,11 +3804,14 @@ public boolean hasStatusValue() { return statusCodeCase_ == 1; } /** + * + * *
        * A status code to accept.
        * 
* * int32 status_value = 1; + * * @return The statusValue. */ @java.lang.Override @@ -3384,22 +3824,32 @@ public int getStatusValue() { public static final int STATUS_CLASS_FIELD_NUMBER = 2; /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return Whether the statusClass field is set. */ public boolean hasStatusClass() { return statusCodeCase_ == 2; } /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The enum numeric value on the wire for statusClass. */ public int getStatusClassValue() { @@ -3409,23 +3859,36 @@ public int getStatusClassValue() { return 0; } /** + * + * *
        * A class of status codes to accept.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The statusClass. */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + getStatusClass() { if (statusCodeCase_ == 2) { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.forNumber( - (java.lang.Integer) statusCode_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .StatusClass.forNumber((java.lang.Integer) statusCode_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + .UNRECOGNIZED + : result; } - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.STATUS_CLASS_UNSPECIFIED; + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + .STATUS_CLASS_UNSPECIFIED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3437,11 +3900,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statusCodeCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) statusCode_)); + output.writeInt32(1, (int) ((java.lang.Integer) statusCode_)); } if (statusCodeCase_ == 2) { output.writeEnum(2, ((java.lang.Integer) statusCode_)); @@ -3456,13 +3917,14 @@ public int getSerializedSize() { size = 0; if (statusCodeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) statusCode_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, (int) ((java.lang.Integer) statusCode_)); } if (statusCodeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) statusCode_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) statusCode_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3472,22 +3934,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)) { + if (!(obj + instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other = + (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) obj; if (!getStatusCodeCase().equals(other.getStatusCodeCase())) return false; switch (statusCodeCase_) { case 1: - if (getStatusValue() - != other.getStatusValue()) return false; + if (getStatusValue() != other.getStatusValue()) return false; break; case 2: - if (getStatusClassValue() - != other.getStatusClassValue()) return false; + if (getStatusClassValue() != other.getStatusClassValue()) return false; break; case 0: default: @@ -3520,90 +3982,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3613,6 +4088,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A status to accept. Either a status code class like "2xx", or an integer
        * status code like "200".
@@ -3620,33 +4097,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)
           com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder.class);
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.class,
+                  com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder
+                      .class);
         }
 
-        // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.newBuilder()
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -3657,19 +4136,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
+            getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode build() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result = buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -3677,19 +4159,25 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode b
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+        public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
+            buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result =
+              new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           buildPartialOneofs(result);
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
           int from_bitField0_ = bitField0_;
         }
 
-        private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
+        private void buildPartialOneofs(
+            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode result) {
           result.statusCodeCase_ = statusCodeCase_;
           result.statusCode_ = this.statusCode_;
         }
@@ -3698,58 +4186,69 @@ private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.HttpC
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) {
-            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode)other);
+          if (other
+              instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) {
+            return mergeFrom(
+                (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other) {
-          if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode other) {
+          if (other
+              == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode
+                  .getDefaultInstance()) return this;
           switch (other.getStatusCodeCase()) {
-            case STATUS_VALUE: {
-              setStatusValue(other.getStatusValue());
-              break;
-            }
-            case STATUS_CLASS: {
-              setStatusClassValue(other.getStatusClassValue());
-              break;
-            }
-            case STATUSCODE_NOT_SET: {
-              break;
-            }
+            case STATUS_VALUE:
+              {
+                setStatusValue(other.getStatusValue());
+                break;
+              }
+            case STATUS_CLASS:
+              {
+                setStatusClassValue(other.getStatusClassValue());
+                break;
+              }
+            case STATUSCODE_NOT_SET:
+              {
+                break;
+              }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
@@ -3777,23 +4276,26 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8: {
-                  statusCode_ = input.readInt32();
-                  statusCodeCase_ = 1;
-                  break;
-                } // case 8
-                case 16: {
-                  int rawValue = input.readEnum();
-                  statusCodeCase_ = 2;
-                  statusCode_ = rawValue;
-                  break;
-                } // case 16
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 8:
+                  {
+                    statusCode_ = input.readInt32();
+                    statusCodeCase_ = 1;
+                    break;
+                  } // case 8
+                case 16:
+                  {
+                    int rawValue = input.readEnum();
+                    statusCodeCase_ = 2;
+                    statusCode_ = rawValue;
+                    break;
+                  } // case 16
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3803,12 +4305,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int statusCodeCase_ = 0;
         private java.lang.Object statusCode_;
-        public StatusCodeCase
-            getStatusCodeCase() {
-          return StatusCodeCase.forNumber(
-              statusCodeCase_);
+
+        public StatusCodeCase getStatusCodeCase() {
+          return StatusCodeCase.forNumber(statusCodeCase_);
         }
 
         public Builder clearStatusCode() {
@@ -3821,22 +4323,28 @@ public Builder clearStatusCode() {
         private int bitField0_;
 
         /**
+         *
+         *
          * 
          * A status code to accept.
          * 
* * int32 status_value = 1; + * * @return Whether the statusValue field is set. */ public boolean hasStatusValue() { return statusCodeCase_ == 1; } /** + * + * *
          * A status code to accept.
          * 
* * int32 status_value = 1; + * * @return The statusValue. */ public int getStatusValue() { @@ -3846,11 +4354,14 @@ public int getStatusValue() { return 0; } /** + * + * *
          * A status code to accept.
          * 
* * int32 status_value = 1; + * * @param value The statusValue to set. * @return This builder for chaining. */ @@ -3862,11 +4373,14 @@ public Builder setStatusValue(int value) { return this; } /** + * + * *
          * A status code to accept.
          * 
* * int32 status_value = 1; + * * @return This builder for chaining. */ public Builder clearStatusValue() { @@ -3879,11 +4393,16 @@ public Builder clearStatusValue() { } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return Whether the statusClass field is set. */ @java.lang.Override @@ -3891,11 +4410,16 @@ public boolean hasStatusClass() { return statusCodeCase_ == 2; } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The enum numeric value on the wire for statusClass. */ @java.lang.Override @@ -3906,11 +4430,16 @@ public int getStatusClassValue() { return 0; } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @param value The enum numeric value on the wire for statusClass to set. * @return This builder for chaining. */ @@ -3921,32 +4450,51 @@ public Builder setStatusClassValue(int value) { return this; } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return The statusClass. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + getStatusClass() { if (statusCodeCase_ == 2) { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.forNumber( - (java.lang.Integer) statusCode_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .StatusClass.forNumber((java.lang.Integer) statusCode_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .StatusClass.UNRECOGNIZED + : result; } - return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass.STATUS_CLASS_UNSPECIFIED; + return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + .STATUS_CLASS_UNSPECIFIED; } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @param value The statusClass to set. * @return This builder for chaining. */ - public Builder setStatusClass(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass value) { + public Builder setStatusClass( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass + value) { if (value == null) { throw new NullPointerException(); } @@ -3956,11 +4504,16 @@ public Builder setStatusClass(com.google.monitoring.v3.UptimeCheckConfig.HttpChe return this; } /** + * + * *
          * A class of status codes to accept.
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2; + * + * * @return This builder for chaining. */ public Builder clearStatusClass() { @@ -3971,6 +4524,7 @@ public Builder clearStatusClass() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3983,41 +4537,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode) - private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode(); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseStatusCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseStatusCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4029,48 +4587,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int REQUEST_METHOD_FIELD_NUMBER = 8; private int requestMethod_ = 0; /** + * + * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The enum numeric value on the wire for requestMethod. */ - @java.lang.Override public int getRequestMethodValue() { + @java.lang.Override + public int getRequestMethodValue() { return requestMethod_; } /** + * + * *
      * The HTTP request method to use for the check. If set to
      * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The requestMethod. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber(requestMethod_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber( + requestMethod_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED + : result; } public static final int USE_SSL_FIELD_NUMBER = 1; private boolean useSsl_ = false; /** + * + * *
      * If `true`, use HTTPS instead of HTTP to run the check.
      * 
* * bool use_ssl = 1; + * * @return The useSsl. */ @java.lang.Override @@ -4079,9 +4654,12 @@ public boolean getUseSsl() { } public static final int PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -4091,6 +4669,7 @@ public boolean getUseSsl() {
      * 
* * string path = 2; + * * @return The path. */ @java.lang.Override @@ -4099,14 +4678,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
      * Optional (defaults to "/"). The path to the page against which to run
      * the check. Will be combined with the `host` (specified within the
@@ -4116,16 +4696,15 @@ public java.lang.String getPath() {
      * 
* * string path = 2; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -4136,6 +4715,8 @@ public java.lang.String getPath() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** + * + * *
      * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
      * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -4144,6 +4725,7 @@ public java.lang.String getPath() {
      * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -4154,12 +4736,16 @@ public int getPort() { public static final int AUTH_INFO_FIELD_NUMBER = 4; private com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication authInfo_; /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return Whether the authInfo field is set. */ @java.lang.Override @@ -4167,34 +4753,50 @@ public boolean hasAuthInfo() { return authInfo_ != null; } /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return The authInfo. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo() { - return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; + return authInfo_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + .getDefaultInstance() + : authInfo_; } /** + * + * *
      * The authentication information. Optional when creating an HTTP check;
      * defaults to empty.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder() { - return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder + getAuthInfoOrBuilder() { + return authInfo_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + .getDefaultInstance() + : authInfo_; } public static final int MASK_HEADERS_FIELD_NUMBER = 5; private boolean maskHeaders_ = false; /** + * + * *
      * Boolean specifying whether to encrypt the header information.
      * Encryption should be specified for any headers related to authentication
@@ -4205,6 +4807,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationO
      * 
* * bool mask_headers = 5; + * * @return The maskHeaders. */ @java.lang.Override @@ -4213,32 +4816,34 @@ public boolean getMaskHeaders() { } public static final int HEADERS_FIELD_NUMBER = 6; + private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> headers_; - private com.google.protobuf.MapField - internalGetHeaders() { + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeadersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } + public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** + * + * *
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4253,20 +4858,21 @@ public int getHeadersCount() {
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public boolean containsHeaders(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsHeaders(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetHeaders().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getHeadersMap()} instead.
-     */
+    /** Use {@link #getHeadersMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getHeaders() {
       return getHeadersMap();
     }
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4285,6 +4891,8 @@ public java.util.Map getHeadersMap() {
       return internalGetHeaders().getMap();
     }
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4299,17 +4907,19 @@ public java.util.Map getHeadersMap() {
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getHeadersOrDefault(
+    public /* nullable */ java.lang.String getHeadersOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetHeaders().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The list of headers to send as part of the Uptime check request.
      * If two headers have the same key and different values, they should
@@ -4324,11 +4934,11 @@ java.lang.String getHeadersOrDefault(
      * map<string, string> headers = 6;
      */
     @java.lang.Override
-    public java.lang.String getHeadersOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetHeaders().getMap();
+    public java.lang.String getHeadersOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4338,6 +4948,8 @@ public java.lang.String getHeadersOrThrow(
     public static final int CONTENT_TYPE_FIELD_NUMBER = 9;
     private int contentType_ = 0;
     /**
+     *
+     *
      * 
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -4350,12 +4962,16 @@ public java.lang.String getHeadersOrThrow(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
      * The content type header to use for the check. The following
      * configurations result in errors:
@@ -4368,17 +4984,25 @@ public java.lang.String getHeadersOrThrow(
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * * @return The contentType. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED + : result; } public static final int CUSTOM_CONTENT_TYPE_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object customContentType_ = ""; /** + * + * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -4389,6 +5013,7 @@ public java.lang.String getHeadersOrThrow(
      * 
* * string custom_content_type = 13; + * * @return The customContentType. */ @java.lang.Override @@ -4397,14 +5022,15 @@ public java.lang.String getCustomContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customContentType_ = s; return s; } } /** + * + * *
      * A user provided content type header to use for the check. The invalid
      * configurations outlined in the `content_type` field apply to
@@ -4415,16 +5041,15 @@ public java.lang.String getCustomContentType() {
      * 
* * string custom_content_type = 13; + * * @return The bytes for customContentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomContentTypeBytes() { + public com.google.protobuf.ByteString getCustomContentTypeBytes() { java.lang.Object ref = customContentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customContentType_ = b; return b; } else { @@ -4435,6 +5060,8 @@ public java.lang.String getCustomContentType() { public static final int VALIDATE_SSL_FIELD_NUMBER = 7; private boolean validateSsl_ = false; /** + * + * *
      * Boolean specifying whether to include SSL certificate validation as a
      * part of the Uptime check. Only applies to checks where
@@ -4443,6 +5070,7 @@ public java.lang.String getCustomContentType() {
      * 
* * bool validate_ssl = 7; + * * @return The validateSsl. */ @java.lang.Override @@ -4453,6 +5081,8 @@ public boolean getValidateSsl() { public static final int BODY_FIELD_NUMBER = 10; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The request body associated with the HTTP POST request. If `content_type`
      * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -4466,6 +5096,7 @@ public boolean getValidateSsl() {
      * 
* * bytes body = 10; + * * @return The body. */ @java.lang.Override @@ -4474,84 +5105,113 @@ public com.google.protobuf.ByteString getBody() { } public static final int ACCEPTED_RESPONSE_STATUS_CODES_FIELD_NUMBER = 11; + @SuppressWarnings("serial") - private java.util.List acceptedResponseStatusCodes_; + private java.util.List + acceptedResponseStatusCodes_; /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ @java.lang.Override - public java.util.List getAcceptedResponseStatusCodesList() { + public java.util.List + getAcceptedResponseStatusCodesList() { return acceptedResponseStatusCodes_; } /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> getAcceptedResponseStatusCodesOrBuilderList() { return acceptedResponseStatusCodes_; } /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ @java.lang.Override public int getAcceptedResponseStatusCodesCount() { return acceptedResponseStatusCodes_.size(); } /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + getAcceptedResponseStatusCodes(int index) { return acceptedResponseStatusCodes_.get(index); } /** + * + * *
      * If present, the check will only pass if the HTTP response status code is
      * in this set of status codes. If empty, the HTTP status code will only
      * pass if the HTTP status code is 200-299.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder + getAcceptedResponseStatusCodesOrBuilder(int index) { return acceptedResponseStatusCodes_.get(index); } public static final int PING_CONFIG_FIELD_NUMBER = 12; private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return Whether the pingConfig field is set. */ @java.lang.Override @@ -4559,18 +5219,25 @@ public boolean hasPingConfig() { return pingConfig_ != null; } /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return The pingConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } /** + * + * *
      * Contains information needed to add pings to an HTTP check.
      * 
@@ -4579,10 +5246,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4594,8 +5264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (useSsl_ != false) { output.writeBool(1, useSsl_); } @@ -4611,19 +5280,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maskHeaders_ != false) { output.writeBool(5, maskHeaders_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHeaders(), - HeadersDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 6); if (validateSsl_ != false) { output.writeBool(7, validateSsl_); } - if (requestMethod_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED.getNumber()) { + if (requestMethod_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED + .getNumber()) { output.writeEnum(8, requestMethod_); } - if (contentType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(9, contentType_); } if (!body_.isEmpty()) { @@ -4648,57 +5317,53 @@ public int getSerializedSize() { size = 0; if (useSsl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, useSsl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useSsl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); } if (authInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAuthInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthInfo()); } if (maskHeaders_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, maskHeaders_); - } - for (java.util.Map.Entry entry - : internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry - headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, headers__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, maskHeaders_); + } + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, headers__); } if (validateSsl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, validateSsl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, validateSsl_); } - if (requestMethod_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, requestMethod_); + if (requestMethod_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, requestMethod_); } - if (contentType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, contentType_); + if (contentType_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, contentType_); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, body_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, body_); } for (int i = 0; i < acceptedResponseStatusCodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, acceptedResponseStatusCodes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, acceptedResponseStatusCodes_.get(i)); } if (pingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customContentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, customContentType_); @@ -4711,42 +5376,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other = (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) obj; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other = + (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) obj; if (requestMethod_ != other.requestMethod_) return false; - if (getUseSsl() - != other.getUseSsl()) return false; - if (!getPath() - .equals(other.getPath())) return false; - if (getPort() - != other.getPort()) return false; + if (getUseSsl() != other.getUseSsl()) return false; + if (!getPath().equals(other.getPath())) return false; + if (getPort() != other.getPort()) return false; if (hasAuthInfo() != other.hasAuthInfo()) return false; if (hasAuthInfo()) { - if (!getAuthInfo() - .equals(other.getAuthInfo())) return false; + if (!getAuthInfo().equals(other.getAuthInfo())) return false; } - if (getMaskHeaders() - != other.getMaskHeaders()) return false; - if (!internalGetHeaders().equals( - other.internalGetHeaders())) return false; + if (getMaskHeaders() != other.getMaskHeaders()) return false; + if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (contentType_ != other.contentType_) return false; - if (!getCustomContentType() - .equals(other.getCustomContentType())) return false; - if (getValidateSsl() - != other.getValidateSsl()) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getAcceptedResponseStatusCodesList() - .equals(other.getAcceptedResponseStatusCodesList())) return false; + if (!getCustomContentType().equals(other.getCustomContentType())) return false; + if (getValidateSsl() != other.getValidateSsl()) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getAcceptedResponseStatusCodesList().equals(other.getAcceptedResponseStatusCodesList())) + return false; if (hasPingConfig() != other.hasPingConfig()) return false; if (hasPingConfig()) { - if (!getPingConfig() - .equals(other.getPingConfig())) return false; + if (!getPingConfig().equals(other.getPingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4762,8 +5418,7 @@ public int hashCode() { hash = (37 * hash) + REQUEST_METHOD_FIELD_NUMBER; hash = (53 * hash) + requestMethod_; hash = (37 * hash) + USE_SSL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseSsl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseSsl()); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; @@ -4773,8 +5428,7 @@ public int hashCode() { hash = (53 * hash) + getAuthInfo().hashCode(); } hash = (37 * hash) + MASK_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMaskHeaders()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMaskHeaders()); if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); @@ -4784,8 +5438,7 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getCustomContentType().hashCode(); hash = (37 * hash) + VALIDATE_SSL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateSsl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateSsl()); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (getAcceptedResponseStatusCodesCount() > 0) { @@ -4802,89 +5455,94 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4894,61 +5552,61 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information involved in an HTTP/HTTPS Uptime check request.
      * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.HttpCheck} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.HttpCheck) com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetHeaders(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableHeaders(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.class, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder.class); } // Construct using com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4984,9 +5642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; } @java.lang.Override @@ -5005,17 +5663,22 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck build() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck buildPartial() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(this); + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result = + new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result) { + private void buildPartialRepeatedFields( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result) { if (acceptedResponseStatusCodesBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { - acceptedResponseStatusCodes_ = java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); + acceptedResponseStatusCodes_ = + java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); bitField0_ = (bitField0_ & ~0x00000800); } result.acceptedResponseStatusCodes_ = acceptedResponseStatusCodes_; @@ -5039,9 +5702,7 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result.port_ = port_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authInfo_ = authInfoBuilder_ == null - ? authInfo_ - : authInfoBuilder_.build(); + result.authInfo_ = authInfoBuilder_ == null ? authInfo_ : authInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.maskHeaders_ = maskHeaders_; @@ -5063,9 +5724,8 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck result.body_ = body_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.pingConfig_ = pingConfigBuilder_ == null - ? pingConfig_ - : pingConfigBuilder_.build(); + result.pingConfig_ = + pingConfigBuilder_ == null ? pingConfig_ : pingConfigBuilder_.build(); } } @@ -5073,38 +5733,41 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) { - return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck)other); + return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) other); } else { super.mergeFrom(other); return this; @@ -5112,7 +5775,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck other) { - if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) + return this; if (other.requestMethod_ != 0) { setRequestMethodValue(other.getRequestMethodValue()); } @@ -5133,8 +5797,7 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck ot if (other.getMaskHeaders() != false) { setMaskHeaders(other.getMaskHeaders()); } - internalGetMutableHeaders().mergeFrom( - other.internalGetHeaders()); + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); bitField0_ |= 0x00000040; if (other.contentType_ != 0) { setContentTypeValue(other.getContentTypeValue()); @@ -5168,11 +5831,13 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck ot acceptedResponseStatusCodesBuilder_ = null; acceptedResponseStatusCodes_ = other.acceptedResponseStatusCodes_; bitField0_ = (bitField0_ & ~0x00000800); - acceptedResponseStatusCodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceptedResponseStatusCodesFieldBuilder() : null; + acceptedResponseStatusCodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceptedResponseStatusCodesFieldBuilder() + : null; } else { - acceptedResponseStatusCodesBuilder_.addAllMessages(other.acceptedResponseStatusCodes_); + acceptedResponseStatusCodesBuilder_.addAllMessages( + other.acceptedResponseStatusCodes_); } } } @@ -5205,93 +5870,106 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - useSsl_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: { - port_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - input.readMessage( - getAuthInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: { - maskHeaders_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: { - com.google.protobuf.MapEntry - headers__ = input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableHeaders().getMutableMap().put( - headers__.getKey(), headers__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: { - validateSsl_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 56 - case 64: { - requestMethod_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 64 - case 72: { - contentType_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - body_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 82 - case 90: { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode m = - input.readMessage( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.parser(), - extensionRegistry); - if (acceptedResponseStatusCodesBuilder_ == null) { - ensureAcceptedResponseStatusCodesIsMutable(); - acceptedResponseStatusCodes_.add(m); - } else { - acceptedResponseStatusCodesBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - input.readMessage( - getPingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 106: { - customContentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + useSsl_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage(getAuthInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + maskHeaders_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: + { + validateSsl_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 56 + case 64: + { + requestMethod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 64 + case 72: + { + contentType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + body_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode m = + input.readMessage( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .parser(), + extensionRegistry); + if (acceptedResponseStatusCodesBuilder_ == null) { + ensureAcceptedResponseStatusCodesIsMutable(); + acceptedResponseStatusCodes_.add(m); + } else { + acceptedResponseStatusCodesBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + input.readMessage(getPingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: + { + customContentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5301,28 +5979,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int requestMethod_ = 0; /** + * + * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The enum numeric value on the wire for requestMethod. */ - @java.lang.Override public int getRequestMethodValue() { + @java.lang.Override + public int getRequestMethodValue() { return requestMethod_; } /** + * + * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @param value The enum numeric value on the wire for requestMethod to set. * @return This builder for chaining. */ @@ -5333,30 +6021,43 @@ public Builder setRequestMethodValue(int value) { return this; } /** + * + * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return The requestMethod. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod getRequestMethod() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber(requestMethod_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.forNumber( + requestMethod_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod.UNRECOGNIZED + : result; } /** + * + * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @param value The requestMethod to set. * @return This builder for chaining. */ - public Builder setRequestMethod(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod value) { + public Builder setRequestMethod( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod value) { if (value == null) { throw new NullPointerException(); } @@ -5366,12 +6067,16 @@ public Builder setRequestMethod(com.google.monitoring.v3.UptimeCheckConfig.HttpC return this; } /** + * + * *
        * The HTTP request method to use for the check. If set to
        * `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod request_method = 8; + * + * * @return This builder for chaining. */ public Builder clearRequestMethod() { @@ -5381,13 +6086,16 @@ public Builder clearRequestMethod() { return this; } - private boolean useSsl_ ; + private boolean useSsl_; /** + * + * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; + * * @return The useSsl. */ @java.lang.Override @@ -5395,11 +6103,14 @@ public boolean getUseSsl() { return useSsl_; } /** + * + * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; + * * @param value The useSsl to set. * @return This builder for chaining. */ @@ -5411,11 +6122,14 @@ public Builder setUseSsl(boolean value) { return this; } /** + * + * *
        * If `true`, use HTTPS instead of HTTP to run the check.
        * 
* * bool use_ssl = 1; + * * @return This builder for chaining. */ public Builder clearUseSsl() { @@ -5427,6 +6141,8 @@ public Builder clearUseSsl() { private java.lang.Object path_ = ""; /** + * + * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -5436,13 +6152,13 @@ public Builder clearUseSsl() {
        * 
* * string path = 2; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -5451,6 +6167,8 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -5460,15 +6178,14 @@ public java.lang.String getPath() {
        * 
* * string path = 2; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -5476,6 +6193,8 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -5485,18 +6204,22 @@ public java.lang.String getPath() {
        * 
* * string path = 2; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -5506,6 +6229,7 @@ public Builder setPath(
        * 
* * string path = 2; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -5515,6 +6239,8 @@ public Builder clearPath() { return this; } /** + * + * *
        * Optional (defaults to "/"). The path to the page against which to run
        * the check. Will be combined with the `host` (specified within the
@@ -5524,12 +6250,14 @@ public Builder clearPath() {
        * 
* * string path = 2; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000004; @@ -5537,8 +6265,10 @@ public Builder setPathBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -5547,6 +6277,7 @@ public Builder setPathBytes(
        * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -5554,6 +6285,8 @@ public int getPort() { return port_; } /** + * + * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -5562,6 +6295,7 @@ public int getPort() {
        * 
* * int32 port = 3; + * * @param value The port to set. * @return This builder for chaining. */ @@ -5573,6 +6307,8 @@ public Builder setPort(int value) { return this; } /** + * + * *
        * Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
        * `use_ssl` is `true`). The TCP port on the HTTP server against which to
@@ -5581,6 +6317,7 @@ public Builder setPort(int value) {
        * 
* * int32 port = 3; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -5592,44 +6329,63 @@ public Builder clearPort() { private com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication authInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> authInfoBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> + authInfoBuilder_; /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return Whether the authInfo field is set. */ public boolean hasAuthInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * + * * @return The authInfo. */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + getAuthInfo() { if (authInfoBuilder_ == null) { - return authInfo_ == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; + return authInfo_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + .getDefaultInstance() + : authInfo_; } else { return authInfoBuilder_.getMessage(); } } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ - public Builder setAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { + public Builder setAuthInfo( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { if (authInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5643,15 +6399,19 @@ public Builder setAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck. return this; } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ public Builder setAuthInfo( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder + builderForValue) { if (authInfoBuilder_ == null) { authInfo_ = builderForValue.build(); } else { @@ -5662,18 +6422,24 @@ public Builder setAuthInfo( return this; } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ - public Builder mergeAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { + public Builder mergeAuthInfo( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication value) { if (authInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - authInfo_ != null && - authInfo_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && authInfo_ != null + && authInfo_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + .getDefaultInstance()) { getAuthInfoBuilder().mergeFrom(value); } else { authInfo_ = value; @@ -5686,12 +6452,15 @@ public Builder mergeAuthInfo(com.google.monitoring.v3.UptimeCheckConfig.HttpChec return this; } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ public Builder clearAuthInfo() { bitField0_ = (bitField0_ & ~0x00000010); @@ -5704,58 +6473,77 @@ public Builder clearAuthInfo() { return this; } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder getAuthInfoBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder + getAuthInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAuthInfoFieldBuilder().getBuilder(); } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder + getAuthInfoOrBuilder() { if (authInfoBuilder_ != null) { return authInfoBuilder_.getMessageOrBuilder(); } else { - return authInfo_ == null ? - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.getDefaultInstance() : authInfo_; + return authInfo_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication + .getDefaultInstance() + : authInfo_; } } /** + * + * *
        * The authentication information. Optional when creating an HTTP check;
        * defaults to empty.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder> getAuthInfoFieldBuilder() { if (authInfoBuilder_ == null) { - authInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder>( - getAuthInfo(), - getParentForChildren(), - isClean()); + authInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck + .BasicAuthenticationOrBuilder>( + getAuthInfo(), getParentForChildren(), isClean()); authInfo_ = null; } return authInfoBuilder_; } - private boolean maskHeaders_ ; + private boolean maskHeaders_; /** + * + * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -5766,6 +6554,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthenticationO
        * 
* * bool mask_headers = 5; + * * @return The maskHeaders. */ @java.lang.Override @@ -5773,6 +6562,8 @@ public boolean getMaskHeaders() { return maskHeaders_; } /** + * + * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -5783,6 +6574,7 @@ public boolean getMaskHeaders() {
        * 
* * bool mask_headers = 5; + * * @param value The maskHeaders to set. * @return This builder for chaining. */ @@ -5794,6 +6586,8 @@ public Builder setMaskHeaders(boolean value) { return this; } /** + * + * *
        * Boolean specifying whether to encrypt the header information.
        * Encryption should be specified for any headers related to authentication
@@ -5804,6 +6598,7 @@ public Builder setMaskHeaders(boolean value) {
        * 
* * bool mask_headers = 5; + * * @return This builder for chaining. */ public Builder clearMaskHeaders() { @@ -5813,21 +6608,21 @@ public Builder clearMaskHeaders() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> headers_; + private com.google.protobuf.MapField headers_; + private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeadersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } + private com.google.protobuf.MapField internalGetMutableHeaders() { if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); + headers_ = + com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); @@ -5836,10 +6631,13 @@ public Builder clearMaskHeaders() { onChanged(); return headers_; } + public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** + * + * *
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5854,20 +6652,21 @@ public int getHeadersCount() {
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public boolean containsHeaders(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public boolean containsHeaders(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         return internalGetHeaders().getMap().containsKey(key);
       }
-      /**
-       * Use {@link #getHeadersMap()} instead.
-       */
+      /** Use {@link #getHeadersMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getHeaders() {
         return getHeadersMap();
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5886,6 +6685,8 @@ public java.util.Map getHeadersMap() {
         return internalGetHeaders().getMap();
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5900,17 +6701,19 @@ public java.util.Map getHeadersMap() {
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public /* nullable */
-java.lang.String getHeadersOrDefault(
+      public /* nullable */ java.lang.String getHeadersOrDefault(
           java.lang.String key,
           /* nullable */
-java.lang.String defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetHeaders().getMap();
+          java.lang.String defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetHeaders().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5925,23 +6728,25 @@ java.lang.String getHeadersOrDefault(
        * map<string, string> headers = 6;
        */
       @java.lang.Override
-      public java.lang.String getHeadersOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetHeaders().getMap();
+      public java.lang.String getHeadersOrThrow(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetHeaders().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
         return map.get(key);
       }
+
       public Builder clearHeaders() {
         bitField0_ = (bitField0_ & ~0x00000040);
-        internalGetMutableHeaders().getMutableMap()
-            .clear();
+        internalGetMutableHeaders().getMutableMap().clear();
         return this;
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5955,23 +6760,22 @@ public Builder clearHeaders() {
        *
        * map<string, string> headers = 6;
        */
-      public Builder removeHeaders(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        internalGetMutableHeaders().getMutableMap()
-            .remove(key);
+      public Builder removeHeaders(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        internalGetMutableHeaders().getMutableMap().remove(key);
         return this;
       }
-      /**
-       * Use alternate mutation accessors instead.
-       */
+      /** Use alternate mutation accessors instead. */
       @java.lang.Deprecated
-      public java.util.Map
-          getMutableHeaders() {
+      public java.util.Map getMutableHeaders() {
         bitField0_ |= 0x00000040;
         return internalGetMutableHeaders().getMutableMap();
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -5985,17 +6789,20 @@ public Builder removeHeaders(
        *
        * map<string, string> headers = 6;
        */
-      public Builder putHeaders(
-          java.lang.String key,
-          java.lang.String value) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        if (value == null) { throw new NullPointerException("map value"); }
-        internalGetMutableHeaders().getMutableMap()
-            .put(key, value);
+      public Builder putHeaders(java.lang.String key, java.lang.String value) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        if (value == null) {
+          throw new NullPointerException("map value");
+        }
+        internalGetMutableHeaders().getMutableMap().put(key, value);
         bitField0_ |= 0x00000040;
         return this;
       }
       /**
+       *
+       *
        * 
        * The list of headers to send as part of the Uptime check request.
        * If two headers have the same key and different values, they should
@@ -6009,16 +6816,16 @@ public Builder putHeaders(
        *
        * map<string, string> headers = 6;
        */
-      public Builder putAllHeaders(
-          java.util.Map values) {
-        internalGetMutableHeaders().getMutableMap()
-            .putAll(values);
+      public Builder putAllHeaders(java.util.Map values) {
+        internalGetMutableHeaders().getMutableMap().putAll(values);
         bitField0_ |= 0x00000040;
         return this;
       }
 
       private int contentType_ = 0;
       /**
+       *
+       *
        * 
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6030,13 +6837,18 @@ public Builder putAllHeaders(
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6048,7 +6860,9 @@ public Builder putAllHeaders(
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ @@ -6059,6 +6873,8 @@ public Builder setContentTypeValue(int value) { return this; } /** + * + * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6070,15 +6886,23 @@ public Builder setContentTypeValue(int value) {
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * + * * @return The contentType. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getContentType() { - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber(contentType_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType result = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.forNumber( + contentType_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType.UNRECOGNIZED + : result; } /** + * + * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6090,11 +6914,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType getConte
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * + * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType value) { + public Builder setContentType( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType value) { if (value == null) { throw new NullPointerException(); } @@ -6104,6 +6931,8 @@ public Builder setContentType(com.google.monitoring.v3.UptimeCheckConfig.HttpChe return this; } /** + * + * *
        * The content type header to use for the check. The following
        * configurations result in errors:
@@ -6115,7 +6944,9 @@ public Builder setContentType(com.google.monitoring.v3.UptimeCheckConfig.HttpChe
        * `headers` field. The `content_type` field should be used instead.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType content_type = 9; + * + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -6127,6 +6958,8 @@ public Builder clearContentType() { private java.lang.Object customContentType_ = ""; /** + * + * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6137,13 +6970,13 @@ public Builder clearContentType() {
        * 
* * string custom_content_type = 13; + * * @return The customContentType. */ public java.lang.String getCustomContentType() { java.lang.Object ref = customContentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customContentType_ = s; return s; @@ -6152,6 +6985,8 @@ public java.lang.String getCustomContentType() { } } /** + * + * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6162,15 +6997,14 @@ public java.lang.String getCustomContentType() {
        * 
* * string custom_content_type = 13; + * * @return The bytes for customContentType. */ - public com.google.protobuf.ByteString - getCustomContentTypeBytes() { + public com.google.protobuf.ByteString getCustomContentTypeBytes() { java.lang.Object ref = customContentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customContentType_ = b; return b; } else { @@ -6178,6 +7012,8 @@ public java.lang.String getCustomContentType() { } } /** + * + * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6188,18 +7024,22 @@ public java.lang.String getCustomContentType() {
        * 
* * string custom_content_type = 13; + * * @param value The customContentType to set. * @return This builder for chaining. */ - public Builder setCustomContentType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomContentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customContentType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6210,6 +7050,7 @@ public Builder setCustomContentType(
        * 
* * string custom_content_type = 13; + * * @return This builder for chaining. */ public Builder clearCustomContentType() { @@ -6219,6 +7060,8 @@ public Builder clearCustomContentType() { return this; } /** + * + * *
        * A user provided content type header to use for the check. The invalid
        * configurations outlined in the `content_type` field apply to
@@ -6229,12 +7072,14 @@ public Builder clearCustomContentType() {
        * 
* * string custom_content_type = 13; + * * @param value The bytes for customContentType to set. * @return This builder for chaining. */ - public Builder setCustomContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomContentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customContentType_ = value; bitField0_ |= 0x00000100; @@ -6242,8 +7087,10 @@ public Builder setCustomContentTypeBytes( return this; } - private boolean validateSsl_ ; + private boolean validateSsl_; /** + * + * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -6252,6 +7099,7 @@ public Builder setCustomContentTypeBytes(
        * 
* * bool validate_ssl = 7; + * * @return The validateSsl. */ @java.lang.Override @@ -6259,6 +7107,8 @@ public boolean getValidateSsl() { return validateSsl_; } /** + * + * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -6267,6 +7117,7 @@ public boolean getValidateSsl() {
        * 
* * bool validate_ssl = 7; + * * @param value The validateSsl to set. * @return This builder for chaining. */ @@ -6278,6 +7129,8 @@ public Builder setValidateSsl(boolean value) { return this; } /** + * + * *
        * Boolean specifying whether to include SSL certificate validation as a
        * part of the Uptime check. Only applies to checks where
@@ -6286,6 +7139,7 @@ public Builder setValidateSsl(boolean value) {
        * 
* * bool validate_ssl = 7; + * * @return This builder for chaining. */ public Builder clearValidateSsl() { @@ -6297,6 +7151,8 @@ public Builder clearValidateSsl() { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -6310,6 +7166,7 @@ public Builder clearValidateSsl() {
        * 
* * bytes body = 10; + * * @return The body. */ @java.lang.Override @@ -6317,6 +7174,8 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** + * + * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -6330,17 +7189,22 @@ public com.google.protobuf.ByteString getBody() {
        * 
* * bytes body = 10; + * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
        * The request body associated with the HTTP POST request. If `content_type`
        * is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
@@ -6354,6 +7218,7 @@ public Builder setBody(com.google.protobuf.ByteString value) {
        * 
* * bytes body = 10; + * * @return This builder for chaining. */ public Builder clearBody() { @@ -6363,28 +7228,41 @@ public Builder clearBody() { return this; } - private java.util.List acceptedResponseStatusCodes_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode> + acceptedResponseStatusCodes_ = java.util.Collections.emptyList(); + private void ensureAcceptedResponseStatusCodesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - acceptedResponseStatusCodes_ = new java.util.ArrayList(acceptedResponseStatusCodes_); + acceptedResponseStatusCodes_ = + new java.util.ArrayList< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode>( + acceptedResponseStatusCodes_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> acceptedResponseStatusCodesBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + acceptedResponseStatusCodesBuilder_; /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public java.util.List getAcceptedResponseStatusCodesList() { + public java.util.List + getAcceptedResponseStatusCodesList() { if (acceptedResponseStatusCodesBuilder_ == null) { return java.util.Collections.unmodifiableList(acceptedResponseStatusCodes_); } else { @@ -6392,13 +7270,17 @@ public java.util.List * If present, the check will only pass if the HTTP response status code is * in this set of status codes. If empty, the HTTP status code will only * pass if the HTTP status code is 200-299. *
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public int getAcceptedResponseStatusCodesCount() { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -6408,15 +7290,20 @@ public int getAcceptedResponseStatusCodesCount() { } } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode getAcceptedResponseStatusCodes(int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + getAcceptedResponseStatusCodes(int index) { if (acceptedResponseStatusCodesBuilder_ == null) { return acceptedResponseStatusCodes_.get(index); } else { @@ -6424,16 +7311,21 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode g } } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder setAcceptedResponseStatusCodes( - int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6447,16 +7339,22 @@ public Builder setAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder setAcceptedResponseStatusCodes( - int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.set(index, builderForValue.build()); @@ -6467,15 +7365,20 @@ public Builder setAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public Builder addAcceptedResponseStatusCodes(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + public Builder addAcceptedResponseStatusCodes( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6489,16 +7392,21 @@ public Builder addAcceptedResponseStatusCodes(com.google.monitoring.v3.UptimeChe return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder addAcceptedResponseStatusCodes( - int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode value) { if (acceptedResponseStatusCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6512,16 +7420,21 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder addAcceptedResponseStatusCodes( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.add(builderForValue.build()); @@ -6532,16 +7445,22 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder addAcceptedResponseStatusCodes( - int index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder builderForValue) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + builderForValue) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); acceptedResponseStatusCodes_.add(index, builderForValue.build()); @@ -6552,16 +7471,22 @@ public Builder addAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder addAllAcceptedResponseStatusCodes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode> + values) { if (acceptedResponseStatusCodesBuilder_ == null) { ensureAcceptedResponseStatusCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -6573,13 +7498,17 @@ public Builder addAllAcceptedResponseStatusCodes( return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder clearAcceptedResponseStatusCodes() { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -6592,13 +7521,17 @@ public Builder clearAcceptedResponseStatusCodes() { return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ public Builder removeAcceptedResponseStatusCodes(int index) { if (acceptedResponseStatusCodesBuilder_ == null) { @@ -6611,45 +7544,60 @@ public Builder removeAcceptedResponseStatusCodes(int index) { return this; } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder getAcceptedResponseStatusCodesBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + getAcceptedResponseStatusCodesBuilder(int index) { return getAcceptedResponseStatusCodesFieldBuilder().getBuilder(index); } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder getAcceptedResponseStatusCodesOrBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder + getAcceptedResponseStatusCodesOrBuilder(int index) { if (acceptedResponseStatusCodesBuilder_ == null) { - return acceptedResponseStatusCodes_.get(index); } else { + return acceptedResponseStatusCodes_.get(index); + } else { return acceptedResponseStatusCodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public java.util.List - getAcceptedResponseStatusCodesOrBuilderList() { + public java.util.List< + ? extends + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + getAcceptedResponseStatusCodesOrBuilderList() { if (acceptedResponseStatusCodesBuilder_ != null) { return acceptedResponseStatusCodesBuilder_.getMessageOrBuilderList(); } else { @@ -6657,51 +7605,76 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOr } } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder addAcceptedResponseStatusCodesBuilder() { - return getAcceptedResponseStatusCodesFieldBuilder().addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + addAcceptedResponseStatusCodesBuilder() { + return getAcceptedResponseStatusCodesFieldBuilder() + .addBuilder( + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .getDefaultInstance()); } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder addAcceptedResponseStatusCodesBuilder( - int index) { - return getAcceptedResponseStatusCodesFieldBuilder().addBuilder( - index, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder + addAcceptedResponseStatusCodesBuilder(int index) { + return getAcceptedResponseStatusCodesFieldBuilder() + .addBuilder( + index, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode + .getDefaultInstance()); } /** + * + * *
        * If present, the check will only pass if the HTTP response status code is
        * in this set of status codes. If empty, the HTTP status code will only
        * pass if the HTTP status code is 200-299.
        * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * + * repeated .google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode accepted_response_status_codes = 11; + * */ - public java.util.List - getAcceptedResponseStatusCodesBuilderList() { + public java.util.List< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder> + getAcceptedResponseStatusCodesBuilderList() { return getAcceptedResponseStatusCodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder> getAcceptedResponseStatusCodesFieldBuilder() { if (acceptedResponseStatusCodesBuilder_ == null) { - acceptedResponseStatusCodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder>( + acceptedResponseStatusCodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder>( acceptedResponseStatusCodes_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -6713,34 +7686,47 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.B private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> pingConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + pingConfigBuilder_; /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return Whether the pingConfig field is set. */ public boolean hasPingConfig() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; + * * @return The pingConfig. */ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { if (pingConfigBuilder_ == null) { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } else { return pingConfigBuilder_.getMessage(); } } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6761,6 +7747,8 @@ public Builder setPingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConf return this; } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6779,6 +7767,8 @@ public Builder setPingConfig( return this; } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6787,9 +7777,10 @@ public Builder setPingConfig( */ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConfig value) { if (pingConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - pingConfig_ != null && - pingConfig_ != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && pingConfig_ != null + && pingConfig_ + != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { getPingConfigBuilder().mergeFrom(value); } else { pingConfig_ = value; @@ -6802,6 +7793,8 @@ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingCo return this; } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6819,6 +7812,8 @@ public Builder clearPingConfig() { return this; } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6831,21 +7826,27 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf return getPingConfigFieldBuilder().getBuilder(); } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; */ - public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder + getPingConfigOrBuilder() { if (pingConfigBuilder_ != null) { return pingConfigBuilder_.getMessageOrBuilder(); } else { - return pingConfig_ == null ? - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } } /** + * + * *
        * Contains information needed to add pings to an HTTP check.
        * 
@@ -6853,18 +7854,22 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingCon * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> getPingConfigFieldBuilder() { if (pingConfigBuilder_ == null) { - pingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( - getPingConfig(), - getParentForChildren(), - isClean()); + pingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( + getPingConfig(), getParentForChildren(), isClean()); pingConfig_ = null; } return pingConfigBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6877,12 +7882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) private static final com.google.monitoring.v3.UptimeCheckConfig.HttpCheck DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.HttpCheck(); } @@ -6891,27 +7896,28 @@ public static com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6926,14 +7932,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TcpCheckOrBuilder extends + public interface TcpCheckOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.TcpCheck) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The TCP port on the server against which to run the check. Will be
      * combined with host (specified within the `monitored_resource`) to
@@ -6941,29 +7949,38 @@ public interface TcpCheckOrBuilder extends
      * 
* * int32 port = 1; + * * @return The port. */ int getPort(); /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return Whether the pingConfig field is set. */ boolean hasPingConfig(); /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return The pingConfig. */ com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig(); /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
@@ -6973,47 +7990,52 @@ public interface TcpCheckOrBuilder extends com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder(); } /** + * + * *
    * Information required for a TCP Uptime check request.
    * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.TcpCheck} */ - public static final class TcpCheck extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TcpCheck extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.TcpCheck) TcpCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TcpCheck.newBuilder() to construct. private TcpCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TcpCheck() { - } + + private TcpCheck() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TcpCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private int port_ = 0; /** + * + * *
      * The TCP port on the server against which to run the check. Will be
      * combined with host (specified within the `monitored_resource`) to
@@ -7021,6 +8043,7 @@ protected java.lang.Object newInstance(
      * 
* * int32 port = 1; + * * @return The port. */ @java.lang.Override @@ -7031,11 +8054,14 @@ public int getPort() { public static final int PING_CONFIG_FIELD_NUMBER = 2; private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return Whether the pingConfig field is set. */ @java.lang.Override @@ -7043,18 +8069,25 @@ public boolean hasPingConfig() { return pingConfig_ != null; } /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return The pingConfig. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } /** + * + * *
      * Contains information needed to add pings to a TCP check.
      * 
@@ -7063,10 +8096,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7078,8 +8114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (port_ != 0) { output.writeInt32(1, port_); } @@ -7096,12 +8131,10 @@ public int getSerializedSize() { size = 0; if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, port_); } if (pingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7111,19 +8144,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.TcpCheck)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other = (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) obj; + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other = + (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) obj; - if (getPort() - != other.getPort()) return false; + if (getPort() != other.getPort()) return false; if (hasPingConfig() != other.hasPingConfig()) return false; if (hasPingConfig()) { - if (!getPingConfig() - .equals(other.getPingConfig())) return false; + if (!getPingConfig().equals(other.getPingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7148,89 +8180,94 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7240,39 +8277,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information required for a TCP Uptime check request.
      * 
* * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.TcpCheck} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.TcpCheck) com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.class, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder.class); } // Construct using com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -7287,9 +8326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; } @java.lang.Override @@ -7308,8 +8347,11 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck build() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck buildPartial() { - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck result = new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck result = + new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -7320,9 +8362,8 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck r result.port_ = port_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pingConfig_ = pingConfigBuilder_ == null - ? pingConfig_ - : pingConfigBuilder_.build(); + result.pingConfig_ = + pingConfigBuilder_ == null ? pingConfig_ : pingConfigBuilder_.build(); } } @@ -7330,38 +8371,41 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) { - return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck)other); + return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) other); } else { super.mergeFrom(other); return this; @@ -7369,7 +8413,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck other) { - if (other == com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) + return this; if (other.getPort() != 0) { setPort(other.getPort()); } @@ -7402,24 +8447,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - port_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getPingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getPingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7429,10 +8475,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int port_ ; + private int port_; /** + * + * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -7440,6 +8489,7 @@ public Builder mergeFrom(
        * 
* * int32 port = 1; + * * @return The port. */ @java.lang.Override @@ -7447,6 +8497,8 @@ public int getPort() { return port_; } /** + * + * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -7454,6 +8506,7 @@ public int getPort() {
        * 
* * int32 port = 1; + * * @param value The port to set. * @return This builder for chaining. */ @@ -7465,6 +8518,8 @@ public Builder setPort(int value) { return this; } /** + * + * *
        * The TCP port on the server against which to run the check. Will be
        * combined with host (specified within the `monitored_resource`) to
@@ -7472,6 +8527,7 @@ public Builder setPort(int value) {
        * 
* * int32 port = 1; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -7483,34 +8539,47 @@ public Builder clearPort() { private com.google.monitoring.v3.UptimeCheckConfig.PingConfig pingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> pingConfigBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + pingConfigBuilder_; /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return Whether the pingConfig field is set. */ public boolean hasPingConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; + * * @return The pingConfig. */ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig getPingConfig() { if (pingConfigBuilder_ == null) { - return pingConfig_ == null ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } else { return pingConfigBuilder_.getMessage(); } } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7531,6 +8600,8 @@ public Builder setPingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConf return this; } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7549,6 +8620,8 @@ public Builder setPingConfig( return this; } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7557,9 +8630,10 @@ public Builder setPingConfig( */ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingConfig value) { if (pingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - pingConfig_ != null && - pingConfig_ != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && pingConfig_ != null + && pingConfig_ + != com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance()) { getPingConfigBuilder().mergeFrom(value); } else { pingConfig_ = value; @@ -7572,6 +8646,8 @@ public Builder mergePingConfig(com.google.monitoring.v3.UptimeCheckConfig.PingCo return this; } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7589,6 +8665,8 @@ public Builder clearPingConfig() { return this; } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7601,21 +8679,27 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder getPingConf return getPingConfigFieldBuilder().getBuilder(); } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
* * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; */ - public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingConfigOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder + getPingConfigOrBuilder() { if (pingConfigBuilder_ != null) { return pingConfigBuilder_.getMessageOrBuilder(); } else { - return pingConfig_ == null ? - com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() : pingConfig_; + return pingConfig_ == null + ? com.google.monitoring.v3.UptimeCheckConfig.PingConfig.getDefaultInstance() + : pingConfig_; } } /** + * + * *
        * Contains information needed to add pings to a TCP check.
        * 
@@ -7623,18 +8707,22 @@ public com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder getPingCon * .google.monitoring.v3.UptimeCheckConfig.PingConfig ping_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder> getPingConfigFieldBuilder() { if (pingConfigBuilder_ == null) { - pingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.PingConfig, com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( - getPingConfig(), - getParentForChildren(), - isClean()); + pingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.PingConfig, + com.google.monitoring.v3.UptimeCheckConfig.PingConfig.Builder, + com.google.monitoring.v3.UptimeCheckConfig.PingConfigOrBuilder>( + getPingConfig(), getParentForChildren(), isClean()); pingConfig_ = null; } return pingConfigBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7647,12 +8735,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) private static final com.google.monitoring.v3.UptimeCheckConfig.TcpCheck DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.TcpCheck(); } @@ -7661,27 +8749,28 @@ public static com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TcpCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TcpCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7696,86 +8785,119 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ContentMatcherOrBuilder extends + public interface ContentMatcherOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The enum numeric value on the wire for matcher. */ int getMatcherValue(); /** + * + * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The matcher. */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher(); /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return Whether the jsonPathMatcher field is set. */ boolean hasJsonPathMatcher(); /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return The jsonPathMatcher. */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher(); /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder + getJsonPathMatcherOrBuilder(); - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase getAdditionalMatcherInfoCase(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase + getAdditionalMatcherInfoCase(); } /** + * + * *
    * Optional. Used to perform content matching. This allows matching based on
    * substrings and regular expressions, together with their negations. Only the
@@ -7786,15 +8908,16 @@ public interface ContentMatcherOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher}
    */
-  public static final class ContentMatcher extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ContentMatcher extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher)
       ContentMatcherOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ContentMatcher.newBuilder() to construct.
     private ContentMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ContentMatcher() {
       content_ = "";
       matcher_ = 0;
@@ -7802,34 +8925,39 @@ private ContentMatcher() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ContentMatcher();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class,
+              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
     }
 
     /**
+     *
+     *
      * 
      * Options to perform content matching.
      * 
* - * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption} + * Protobuf enum {@code + * google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption} */ - public enum ContentMatcherOption - implements com.google.protobuf.ProtocolMessageEnum { + public enum ContentMatcherOption implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * No content matcher type specified (maintained for backward
        * compatibility, but deprecated for future use).
@@ -7840,6 +8968,8 @@ public enum ContentMatcherOption
        */
       CONTENT_MATCHER_OPTION_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * Selects substring matching. The match succeeds if the output contains
        * the `content` string.  This is the default value for checks without
@@ -7851,6 +8981,8 @@ public enum ContentMatcherOption
        */
       CONTAINS_STRING(1),
       /**
+       *
+       *
        * 
        * Selects negation of substring matching. The match succeeds if the
        * output does _NOT_ contain the `content` string.
@@ -7860,6 +8992,8 @@ public enum ContentMatcherOption
        */
       NOT_CONTAINS_STRING(2),
       /**
+       *
+       *
        * 
        * Selects regular-expression matching. The match succeeds if the output
        * matches the regular expression specified in the `content` string.
@@ -7870,6 +9004,8 @@ public enum ContentMatcherOption
        */
       MATCHES_REGEX(3),
       /**
+       *
+       *
        * 
        * Selects negation of regular-expression matching. The match succeeds if
        * the output does _NOT_ match the regular expression specified in the
@@ -7881,6 +9017,8 @@ public enum ContentMatcherOption
        */
       NOT_MATCHES_REGEX(4),
       /**
+       *
+       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
@@ -7891,6 +9029,8 @@ public enum ContentMatcherOption
        */
       MATCHES_JSON_PATH(5),
       /**
+       *
+       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. Succeeds when output does _NOT_ match as specified.
@@ -7904,6 +9044,8 @@ public enum ContentMatcherOption
       ;
 
       /**
+       *
+       *
        * 
        * No content matcher type specified (maintained for backward
        * compatibility, but deprecated for future use).
@@ -7914,6 +9056,8 @@ public enum ContentMatcherOption
        */
       public static final int CONTENT_MATCHER_OPTION_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * Selects substring matching. The match succeeds if the output contains
        * the `content` string.  This is the default value for checks without
@@ -7925,6 +9069,8 @@ public enum ContentMatcherOption
        */
       public static final int CONTAINS_STRING_VALUE = 1;
       /**
+       *
+       *
        * 
        * Selects negation of substring matching. The match succeeds if the
        * output does _NOT_ contain the `content` string.
@@ -7934,6 +9080,8 @@ public enum ContentMatcherOption
        */
       public static final int NOT_CONTAINS_STRING_VALUE = 2;
       /**
+       *
+       *
        * 
        * Selects regular-expression matching. The match succeeds if the output
        * matches the regular expression specified in the `content` string.
@@ -7944,6 +9092,8 @@ public enum ContentMatcherOption
        */
       public static final int MATCHES_REGEX_VALUE = 3;
       /**
+       *
+       *
        * 
        * Selects negation of regular-expression matching. The match succeeds if
        * the output does _NOT_ match the regular expression specified in the
@@ -7955,6 +9105,8 @@ public enum ContentMatcherOption
        */
       public static final int NOT_MATCHES_REGEX_VALUE = 4;
       /**
+       *
+       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
@@ -7965,6 +9117,8 @@ public enum ContentMatcherOption
        */
       public static final int MATCHES_JSON_PATH_VALUE = 5;
       /**
+       *
+       *
        * 
        * Selects JSONPath matching. See `JsonPathMatcher` for details on when
        * the match succeeds. Succeeds when output does _NOT_ match as specified.
@@ -7975,7 +9129,6 @@ public enum ContentMatcherOption
        */
       public static final int NOT_MATCHES_JSON_PATH_VALUE = 6;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -8000,14 +9153,22 @@ public static ContentMatcherOption valueOf(int value) {
        */
       public static ContentMatcherOption forNumber(int value) {
         switch (value) {
-          case 0: return CONTENT_MATCHER_OPTION_UNSPECIFIED;
-          case 1: return CONTAINS_STRING;
-          case 2: return NOT_CONTAINS_STRING;
-          case 3: return MATCHES_REGEX;
-          case 4: return NOT_MATCHES_REGEX;
-          case 5: return MATCHES_JSON_PATH;
-          case 6: return NOT_MATCHES_JSON_PATH;
-          default: return null;
+          case 0:
+            return CONTENT_MATCHER_OPTION_UNSPECIFIED;
+          case 1:
+            return CONTAINS_STRING;
+          case 2:
+            return NOT_CONTAINS_STRING;
+          case 3:
+            return MATCHES_REGEX;
+          case 4:
+            return NOT_MATCHES_REGEX;
+          case 5:
+            return MATCHES_JSON_PATH;
+          case 6:
+            return NOT_MATCHES_JSON_PATH;
+          default:
+            return null;
         }
       }
 
@@ -8015,29 +9176,31 @@ public static ContentMatcherOption forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          ContentMatcherOption> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ContentMatcherOption findValueByNumber(int number) {
-                return ContentMatcherOption.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public ContentMatcherOption findValueByNumber(int number) {
+                  return ContentMatcherOption.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final ContentMatcherOption[] VALUES = values();
@@ -8045,8 +9208,7 @@ public ContentMatcherOption findValueByNumber(int number) {
       public static ContentMatcherOption valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -8063,54 +9225,74 @@ private ContentMatcherOption(int value) {
       // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption)
     }
 
-    public interface JsonPathMatcherOrBuilder extends
+    public interface JsonPathMatcherOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; + * * @return The jsonPath. */ java.lang.String getJsonPath(); /** + * + * *
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; + * * @return The bytes for jsonPath. */ - com.google.protobuf.ByteString - getJsonPathBytes(); + com.google.protobuf.ByteString getJsonPathBytes(); /** + * + * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The enum numeric value on the wire for jsonMatcher. */ int getJsonMatcherValue(); /** + * + * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The jsonMatcher. */ - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher(); + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + getJsonMatcher(); } /** + * + * *
      * Information needed to perform a JSONPath content match.
      * Used for `ContentMatcherOption::MATCHES_JSON_PATH` and
@@ -8119,15 +9301,16 @@ public interface JsonPathMatcherOrBuilder extends
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher}
      */
-    public static final class JsonPathMatcher extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class JsonPathMatcher extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
         JsonPathMatcherOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use JsonPathMatcher.newBuilder() to construct.
       private JsonPathMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private JsonPathMatcher() {
         jsonPath_ = "";
         jsonMatcher_ = 0;
@@ -8135,34 +9318,40 @@ private JsonPathMatcher() {
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new JsonPathMatcher();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class,
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder
+                    .class);
       }
 
       /**
+       *
+       *
        * 
        * Options to perform JSONPath content matching.
        * 
* - * Protobuf enum {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption} + * Protobuf enum {@code + * google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption} */ - public enum JsonPathMatcherOption - implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonPathMatcherOption implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * No JSONPath matcher type specified (not valid).
          * 
@@ -8171,6 +9360,8 @@ public enum JsonPathMatcherOption */ JSON_PATH_MATCHER_OPTION_UNSPECIFIED(0), /** + * + * *
          * Selects 'exact string' matching. The match succeeds if the content at
          * the `json_path` within the output is exactly the same as the
@@ -8181,6 +9372,8 @@ public enum JsonPathMatcherOption
          */
         EXACT_MATCH(1),
         /**
+         *
+         *
          * 
          * Selects regular-expression matching. The match succeeds if the
          * content at the `json_path` within the output matches the regular
@@ -8194,6 +9387,8 @@ public enum JsonPathMatcherOption
         ;
 
         /**
+         *
+         *
          * 
          * No JSONPath matcher type specified (not valid).
          * 
@@ -8202,6 +9397,8 @@ public enum JsonPathMatcherOption */ public static final int JSON_PATH_MATCHER_OPTION_UNSPECIFIED_VALUE = 0; /** + * + * *
          * Selects 'exact string' matching. The match succeeds if the content at
          * the `json_path` within the output is exactly the same as the
@@ -8212,6 +9409,8 @@ public enum JsonPathMatcherOption
          */
         public static final int EXACT_MATCH_VALUE = 1;
         /**
+         *
+         *
          * 
          * Selects regular-expression matching. The match succeeds if the
          * content at the `json_path` within the output matches the regular
@@ -8222,7 +9421,6 @@ public enum JsonPathMatcherOption
          */
         public static final int REGEX_MATCH_VALUE = 2;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -8247,10 +9445,14 @@ public static JsonPathMatcherOption valueOf(int value) {
          */
         public static JsonPathMatcherOption forNumber(int value) {
           switch (value) {
-            case 0: return JSON_PATH_MATCHER_OPTION_UNSPECIFIED;
-            case 1: return EXACT_MATCH;
-            case 2: return REGEX_MATCH;
-            default: return null;
+            case 0:
+              return JSON_PATH_MATCHER_OPTION_UNSPECIFIED;
+            case 1:
+              return EXACT_MATCH;
+            case 2:
+              return REGEX_MATCH;
+            default:
+              return null;
           }
         }
 
@@ -8258,29 +9460,32 @@ public static JsonPathMatcherOption forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            JsonPathMatcherOption> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public JsonPathMatcherOption findValueByNumber(int number) {
-                  return JsonPathMatcherOption.forNumber(number);
-                }
-              };
 
-        public final com.google.protobuf.Descriptors.EnumValueDescriptor
-            getValueDescriptor() {
+        private static final com.google.protobuf.Internal.EnumLiteMap
+            internalValueMap =
+                new com.google.protobuf.Internal.EnumLiteMap() {
+                  public JsonPathMatcherOption findValueByNumber(int number) {
+                    return JsonPathMatcherOption.forNumber(number);
+                  }
+                };
+
+        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
-        public final com.google.protobuf.Descriptors.EnumDescriptor
-            getDescriptorForType() {
+
+        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
-        public static final com.google.protobuf.Descriptors.EnumDescriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
+              .getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final JsonPathMatcherOption[] VALUES = values();
@@ -8289,7 +9494,7 @@ public static JsonPathMatcherOption valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -8307,15 +9512,19 @@ private JsonPathMatcherOption(int value) {
       }
 
       public static final int JSON_PATH_FIELD_NUMBER = 1;
+
       @SuppressWarnings("serial")
       private volatile java.lang.Object jsonPath_ = "";
       /**
+       *
+       *
        * 
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; + * * @return The jsonPath. */ @java.lang.Override @@ -8324,30 +9533,30 @@ public java.lang.String getJsonPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jsonPath_ = s; return s; } } /** + * + * *
        * JSONPath within the response output pointing to the expected
        * `ContentMatcher::content` to match against.
        * 
* * string json_path = 1; + * * @return The bytes for jsonPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getJsonPathBytes() { + public com.google.protobuf.ByteString getJsonPathBytes() { java.lang.Object ref = jsonPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jsonPath_ = b; return b; } else { @@ -8358,32 +9567,54 @@ public java.lang.String getJsonPath() { public static final int JSON_MATCHER_FIELD_NUMBER = 2; private int jsonMatcher_ = 0; /** + * + * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The enum numeric value on the wire for jsonMatcher. */ - @java.lang.Override public int getJsonMatcherValue() { + @java.lang.Override + public int getJsonMatcherValue() { return jsonMatcher_; } /** + * + * *
        * The type of JSONPath match that will be applied to the JSON output
        * (`ContentMatcher.content`)
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The jsonMatcher. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.forNumber(jsonMatcher_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + getJsonMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + result = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.forNumber(jsonMatcher_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8395,12 +9626,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jsonPath_); } - if (jsonMatcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED.getNumber()) { + if (jsonMatcher_ + != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, jsonMatcher_); } getUnknownFields().writeTo(output); @@ -8415,9 +9648,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jsonPath_); } - if (jsonMatcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, jsonMatcher_); + if (jsonMatcher_ + != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.JSON_PATH_MATCHER_OPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, jsonMatcher_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8427,15 +9662,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)) { + if (!(obj + instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other = (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) obj; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other = + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) obj; - if (!getJsonPath() - .equals(other.getJsonPath())) return false; + if (!getJsonPath().equals(other.getJsonPath())) return false; if (jsonMatcher_ != other.jsonMatcher_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -8457,90 +9693,103 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8550,6 +9799,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Information needed to perform a JSONPath content match.
        * Used for `ContentMatcherOption::MATCHES_JSON_PATH` and
@@ -8558,33 +9809,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)
           com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder.class);
+                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.class,
+                  com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder
+                      .class);
         }
 
-        // Construct using com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder()
-        private Builder() {
+        // Construct using
+        // com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder()
+        private Builder() {}
 
-        }
-
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -8595,19 +9848,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.monitoring.v3.UptimeProto
+              .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstanceForType() {
-          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance();
+        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
+            getDefaultInstanceForType() {
+          return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher build() {
-          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result = buildPartial();
+          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -8615,14 +9871,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
         }
 
         @java.lang.Override
-        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher buildPartial() {
-          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+        public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
+            buildPartial() {
+          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result =
+              new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result) {
+        private void buildPartial0(
+            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.jsonPath_ = jsonPath_;
@@ -8636,46 +9897,55 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ContentMat
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) {
-            return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher)other);
+          if (other
+              instanceof
+              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) {
+            return mergeFrom(
+                (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other) {
-          if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher other) {
+          if (other
+              == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
+                  .getDefaultInstance()) return this;
           if (!other.getJsonPath().isEmpty()) {
             jsonPath_ = other.jsonPath_;
             bitField0_ |= 0x00000001;
@@ -8710,22 +9980,25 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  jsonPath_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                case 16: {
-                  jsonMatcher_ = input.readEnum();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    jsonPath_ = input.readStringRequireUtf8();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                case 16:
+                  {
+                    jsonMatcher_ = input.readEnum();
+                    bitField0_ |= 0x00000002;
+                    break;
+                  } // case 16
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8735,23 +10008,26 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private java.lang.Object jsonPath_ = "";
         /**
+         *
+         *
          * 
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; + * * @return The jsonPath. */ public java.lang.String getJsonPath() { java.lang.Object ref = jsonPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jsonPath_ = s; return s; @@ -8760,21 +10036,22 @@ public java.lang.String getJsonPath() { } } /** + * + * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; + * * @return The bytes for jsonPath. */ - public com.google.protobuf.ByteString - getJsonPathBytes() { + public com.google.protobuf.ByteString getJsonPathBytes() { java.lang.Object ref = jsonPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jsonPath_ = b; return b; } else { @@ -8782,30 +10059,37 @@ public java.lang.String getJsonPath() { } } /** + * + * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; + * * @param value The jsonPath to set. * @return This builder for chaining. */ - public Builder setJsonPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJsonPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } jsonPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; + * * @return This builder for chaining. */ public Builder clearJsonPath() { @@ -8815,18 +10099,22 @@ public Builder clearJsonPath() { return this; } /** + * + * *
          * JSONPath within the response output pointing to the expected
          * `ContentMatcher::content` to match against.
          * 
* * string json_path = 1; + * * @param value The bytes for jsonPath to set. * @return This builder for chaining. */ - public Builder setJsonPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setJsonPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); jsonPath_ = value; bitField0_ |= 0x00000001; @@ -8836,24 +10124,35 @@ public Builder setJsonPathBytes( private int jsonMatcher_ = 0; /** + * + * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The enum numeric value on the wire for jsonMatcher. */ - @java.lang.Override public int getJsonMatcherValue() { + @java.lang.Override + public int getJsonMatcherValue() { return jsonMatcher_; } /** + * + * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @param value The enum numeric value on the wire for jsonMatcher to set. * @return This builder for chaining. */ @@ -8864,30 +10163,52 @@ public Builder setJsonMatcherValue(int value) { return this; } /** + * + * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return The jsonMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption getJsonMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.forNumber(jsonMatcher_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption.UNRECOGNIZED : result; + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + getJsonMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + result = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.forNumber(jsonMatcher_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption.UNRECOGNIZED + : result; } /** + * + * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @param value The jsonMatcher to set. * @return This builder for chaining. */ - public Builder setJsonMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption value) { + public Builder setJsonMatcher( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .JsonPathMatcherOption + value) { if (value == null) { throw new NullPointerException(); } @@ -8897,12 +10218,17 @@ public Builder setJsonMatcher(com.google.monitoring.v3.UptimeCheckConfig.Content return this; } /** + * + * *
          * The type of JSONPath match that will be applied to the JSON output
          * (`ContentMatcher.content`)
          * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption json_matcher = 2; + * + * * @return This builder for chaining. */ public Builder clearJsonMatcher() { @@ -8911,6 +10237,7 @@ public Builder clearJsonMatcher() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8923,41 +10250,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) - private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(); + DEFAULT_INSTANCE = + new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher(); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstance() { + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonPathMatcher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonPathMatcher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8969,21 +10300,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getDefaultInstanceForType() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int additionalMatcherInfoCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object additionalMatcherInfo_; + public enum AdditionalMatcherInfoCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { JSON_PATH_MATCHER(3), ADDITIONALMATCHERINFO_NOT_SET(0); private final int value; + private AdditionalMatcherInfoCase(int value) { this.value = value; } @@ -8999,32 +10334,38 @@ public static AdditionalMatcherInfoCase valueOf(int value) { public static AdditionalMatcherInfoCase forNumber(int value) { switch (value) { - case 3: return JSON_PATH_MATCHER; - case 0: return ADDITIONALMATCHERINFO_NOT_SET; - default: return null; + case 3: + return JSON_PATH_MATCHER; + case 0: + return ADDITIONALMATCHERINFO_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AdditionalMatcherInfoCase - getAdditionalMatcherInfoCase() { - return AdditionalMatcherInfoCase.forNumber( - additionalMatcherInfoCase_); + public AdditionalMatcherInfoCase getAdditionalMatcherInfoCase() { + return AdditionalMatcherInfoCase.forNumber(additionalMatcherInfoCase_); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -9033,30 +10374,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
      * String, regex or JSON content to match. Maximum 1024 bytes. An empty
      * `content` string indicates no content matching is to be performed.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -9067,38 +10408,61 @@ public java.lang.String getContent() { public static final int MATCHER_FIELD_NUMBER = 2; private int matcher_ = 0; /** + * + * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The enum numeric value on the wire for matcher. */ - @java.lang.Override public int getMatcherValue() { + @java.lang.Override + public int getMatcherValue() { return matcher_; } /** + * + * *
      * The type of content matcher that will be applied to the server output,
      * compared to the `content` string when the check is run.
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The matcher. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber(matcher_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + getMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber( + matcher_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + .UNRECOGNIZED + : result; } public static final int JSON_PATH_MATCHER_FIELD_NUMBER = 3; /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return Whether the jsonPathMatcher field is set. */ @java.lang.Override @@ -9106,36 +10470,52 @@ public boolean hasJsonPathMatcher() { return additionalMatcherInfoCase_ == 3; } /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return The jsonPathMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + getJsonPathMatcher() { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } /** + * + * *
      * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
      * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder + getJsonPathMatcherOrBuilder() { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9147,16 +10527,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } - if (matcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.CONTENT_MATCHER_OPTION_UNSPECIFIED.getNumber()) { + if (matcher_ + != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + .CONTENT_MATCHER_OPTION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, matcher_); } if (additionalMatcherInfoCase_ == 3) { - output.writeMessage(3, (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_); + output.writeMessage( + 3, + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_); } getUnknownFields().writeTo(output); } @@ -9170,13 +10555,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } - if (matcher_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.CONTENT_MATCHER_OPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, matcher_); + if (matcher_ + != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + .CONTENT_MATCHER_OPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, matcher_); } if (additionalMatcherInfoCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9186,21 +10576,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher)) { return super.equals(obj); } - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other = (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) obj; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other = + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (matcher_ != other.matcher_) return false; - if (!getAdditionalMatcherInfoCase().equals(other.getAdditionalMatcherInfoCase())) return false; + if (!getAdditionalMatcherInfoCase().equals(other.getAdditionalMatcherInfoCase())) + return false; switch (additionalMatcherInfoCase_) { case 3: - if (!getJsonPathMatcher() - .equals(other.getJsonPathMatcher())) return false; + if (!getJsonPathMatcher().equals(other.getJsonPathMatcher())) return false; break; case 0: default: @@ -9234,89 +10624,94 @@ public int hashCode() { } public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9326,6 +10721,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Optional. Used to perform content matching. This allows matching based on
      * substrings and regular expressions, together with their negations. Only the
@@ -9336,33 +10733,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.ContentMatcher}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.ContentMatcher)
         com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.class,
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9378,9 +10775,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.UptimeProto
+            .internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
       }
 
       @java.lang.Override
@@ -9399,8 +10796,11 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher buildPartial() {
-        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result =
+            new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -9416,11 +10816,11 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig.ContentMat
         }
       }
 
-      private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result) {
+      private void buildPartialOneofs(
+          com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher result) {
         result.additionalMatcherInfoCase_ = additionalMatcherInfoCase_;
         result.additionalMatcherInfo_ = this.additionalMatcherInfo_;
-        if (additionalMatcherInfoCase_ == 3 &&
-            jsonPathMatcherBuilder_ != null) {
+        if (additionalMatcherInfoCase_ == 3 && jsonPathMatcherBuilder_ != null) {
           result.additionalMatcherInfo_ = jsonPathMatcherBuilder_.build();
         }
       }
@@ -9429,38 +10829,41 @@ private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig.Conte
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) {
-          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher)other);
+          return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -9468,7 +10871,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher other) {
-        if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance())
+          return this;
         if (!other.getContent().isEmpty()) {
           content_ = other.content_;
           bitField0_ |= 0x00000001;
@@ -9478,13 +10882,15 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.ContentMatch
           setMatcherValue(other.getMatcherValue());
         }
         switch (other.getAdditionalMatcherInfoCase()) {
-          case JSON_PATH_MATCHER: {
-            mergeJsonPathMatcher(other.getJsonPathMatcher());
-            break;
-          }
-          case ADDITIONALMATCHERINFO_NOT_SET: {
-            break;
-          }
+          case JSON_PATH_MATCHER:
+            {
+              mergeJsonPathMatcher(other.getJsonPathMatcher());
+              break;
+            }
+          case ADDITIONALMATCHERINFO_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -9512,29 +10918,32 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                content_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 16: {
-                matcher_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              case 26: {
-                input.readMessage(
-                    getJsonPathMatcherFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                additionalMatcherInfoCase_ = 3;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  content_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 16:
+                {
+                  matcher_ = input.readEnum();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+              case 26:
+                {
+                  input.readMessage(
+                      getJsonPathMatcherFieldBuilder().getBuilder(), extensionRegistry);
+                  additionalMatcherInfoCase_ = 3;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9544,12 +10953,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int additionalMatcherInfoCase_ = 0;
       private java.lang.Object additionalMatcherInfo_;
-      public AdditionalMatcherInfoCase
-          getAdditionalMatcherInfoCase() {
-        return AdditionalMatcherInfoCase.forNumber(
-            additionalMatcherInfoCase_);
+
+      public AdditionalMatcherInfoCase getAdditionalMatcherInfoCase() {
+        return AdditionalMatcherInfoCase.forNumber(additionalMatcherInfoCase_);
       }
 
       public Builder clearAdditionalMatcherInfo() {
@@ -9563,19 +10972,21 @@ public Builder clearAdditionalMatcherInfo() {
 
       private java.lang.Object content_ = "";
       /**
+       *
+       *
        * 
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -9584,21 +10995,22 @@ public java.lang.String getContent() { } } /** + * + * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -9606,30 +11018,37 @@ public java.lang.String getContent() { } } /** + * + * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -9639,18 +11058,22 @@ public Builder clearContent() { return this; } /** + * + * *
        * String, regex or JSON content to match. Maximum 1024 bytes. An empty
        * `content` string indicates no content matching is to be performed.
        * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -9660,24 +11083,35 @@ public Builder setContentBytes( private int matcher_ = 0; /** + * + * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The enum numeric value on the wire for matcher. */ - @java.lang.Override public int getMatcherValue() { + @java.lang.Override + public int getMatcherValue() { return matcher_; } /** + * + * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @param value The enum numeric value on the wire for matcher to set. * @return This builder for chaining. */ @@ -9688,30 +11122,47 @@ public Builder setMatcherValue(int value) { return this; } /** + * + * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return The matcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher() { - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.forNumber(matcher_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption.UNRECOGNIZED : result; + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + getMatcher() { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption result = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + .forNumber(matcher_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption + .UNRECOGNIZED + : result; } /** + * + * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @param value The matcher to set. * @return This builder for chaining. */ - public Builder setMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption value) { + public Builder setMatcher( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption value) { if (value == null) { throw new NullPointerException(); } @@ -9721,12 +11172,17 @@ public Builder setMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatc return this; } /** + * + * *
        * The type of content matcher that will be applied to the server output,
        * compared to the `content` string when the check is run.
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2; + * + * * @return This builder for chaining. */ public Builder clearMatcher() { @@ -9737,13 +11193,21 @@ public Builder clearMatcher() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> jsonPathMatcherBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> + jsonPathMatcherBuilder_; /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return Whether the jsonPathMatcher field is set. */ @java.lang.Override @@ -9751,35 +11215,49 @@ public boolean hasJsonPathMatcher() { return additionalMatcherInfoCase_ == 3; } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * * @return The jsonPathMatcher. */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + getJsonPathMatcher() { if (jsonPathMatcherBuilder_ == null) { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } else { if (additionalMatcherInfoCase_ == 3) { return jsonPathMatcherBuilder_.getMessage(); } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ - public Builder setJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { + public Builder setJsonPathMatcher( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { if (jsonPathMatcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9793,14 +11271,19 @@ public Builder setJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.Con return this; } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ public Builder setJsonPathMatcher( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder builderForValue) { + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder + builderForValue) { if (jsonPathMatcherBuilder_ == null) { additionalMatcherInfo_ = builderForValue.build(); onChanged(); @@ -9811,18 +11294,30 @@ public Builder setJsonPathMatcher( return this; } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ - public Builder mergeJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { + public Builder mergeJsonPathMatcher( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher value) { if (jsonPathMatcherBuilder_ == null) { - if (additionalMatcherInfoCase_ == 3 && - additionalMatcherInfo_ != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance()) { - additionalMatcherInfo_ = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_) - .mergeFrom(value).buildPartial(); + if (additionalMatcherInfoCase_ == 3 + && additionalMatcherInfo_ + != com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance()) { + additionalMatcherInfo_ = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .newBuilder( + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_) + .mergeFrom(value) + .buildPartial(); } else { additionalMatcherInfo_ = value; } @@ -9838,11 +11333,15 @@ public Builder mergeJsonPathMatcher(com.google.monitoring.v3.UptimeCheckConfig.C return this; } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ public Builder clearJsonPathMatcher() { if (jsonPathMatcherBuilder_ == null) { @@ -9861,50 +11360,75 @@ public Builder clearJsonPathMatcher() { return this; } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder getJsonPathMatcherBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder + getJsonPathMatcherBuilder() { return getJsonPathMatcherFieldBuilder().getBuilder(); } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder + getJsonPathMatcherOrBuilder() { if ((additionalMatcherInfoCase_ == 3) && (jsonPathMatcherBuilder_ != null)) { return jsonPathMatcherBuilder_.getMessageOrBuilder(); } else { if (additionalMatcherInfoCase_ == 3) { - return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_; + return (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_; } - return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + return com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } } /** + * + * *
        * Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
        * 
* - * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * + * .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder> getJsonPathMatcherFieldBuilder() { if (jsonPathMatcherBuilder_ == null) { if (!(additionalMatcherInfoCase_ == 3)) { - additionalMatcherInfo_ = com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.getDefaultInstance(); + additionalMatcherInfo_ = + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher + .getDefaultInstance(); } - jsonPathMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder>( - (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) additionalMatcherInfo_, + jsonPathMatcherBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher + .JsonPathMatcherOrBuilder>( + (com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher) + additionalMatcherInfo_, getParentForChildren(), isClean()); additionalMatcherInfo_ = null; @@ -9913,6 +11437,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher onChanged(); return jsonPathMatcherBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9925,12 +11450,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) private static final com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher(); } @@ -9939,27 +11464,28 @@ public static com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentMatcher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentMatcher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9974,19 +11500,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int resourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object resource_; + public enum ResourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MONITORED_RESOURCE(3), RESOURCE_GROUP(4), RESOURCE_NOT_SET(0); private final int value; + private ResourceCase(int value) { this.value = value; } @@ -10002,33 +11531,40 @@ public static ResourceCase valueOf(int value) { public static ResourceCase forNumber(int value) { switch (value) { - case 3: return MONITORED_RESOURCE; - case 4: return RESOURCE_GROUP; - case 0: return RESOURCE_NOT_SET; - default: return null; + case 3: + return MONITORED_RESOURCE; + case 4: + return RESOURCE_GROUP; + case 0: + return RESOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); } private int checkRequestTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object checkRequestType_; + public enum CheckRequestTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HTTP_CHECK(5), TCP_CHECK(6), CHECKREQUESTTYPE_NOT_SET(0); private final int value; + private CheckRequestTypeCase(int value) { this.value = value; } @@ -10044,27 +11580,33 @@ public static CheckRequestTypeCase valueOf(int value) { public static CheckRequestTypeCase forNumber(int value) { switch (value) { - case 5: return HTTP_CHECK; - case 6: return TCP_CHECK; - case 0: return CHECKREQUESTTYPE_NOT_SET; - default: return null; + case 5: + return HTTP_CHECK; + case 6: + return TCP_CHECK; + case 0: + return CHECKREQUESTTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CheckRequestTypeCase - getCheckRequestTypeCase() { - return CheckRequestTypeCase.forNumber( - checkRequestTypeCase_); + public CheckRequestTypeCase getCheckRequestTypeCase() { + return CheckRequestTypeCase.forNumber(checkRequestTypeCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -10079,6 +11621,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -10087,14 +11630,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -10109,16 +11653,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -10127,9 +11670,12 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -10137,6 +11683,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -10145,14 +11692,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -10160,16 +11708,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -10179,6 +11726,8 @@ public java.lang.String getDisplayName() { public static final int MONITORED_RESOURCE_FIELD_NUMBER = 3; /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -10195,6 +11744,7 @@ public java.lang.String getDisplayName() {
    * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return Whether the monitoredResource field is set. */ @java.lang.Override @@ -10202,6 +11752,8 @@ public boolean hasMonitoredResource() { return resourceCase_ == 3; } /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -10218,16 +11770,19 @@ public boolean hasMonitoredResource() {
    * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return The monitoredResource. */ @java.lang.Override public com.google.api.MonitoredResource getMonitoredResource() { if (resourceCase_ == 3) { - return (com.google.api.MonitoredResource) resource_; + return (com.google.api.MonitoredResource) resource_; } return com.google.api.MonitoredResource.getDefaultInstance(); } /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -10248,18 +11803,21 @@ public com.google.api.MonitoredResource getMonitoredResource() {
   @java.lang.Override
   public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder() {
     if (resourceCase_ == 3) {
-       return (com.google.api.MonitoredResource) resource_;
+      return (com.google.api.MonitoredResource) resource_;
     }
     return com.google.api.MonitoredResource.getDefaultInstance();
   }
 
   public static final int RESOURCE_GROUP_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return Whether the resourceGroup field is set. */ @java.lang.Override @@ -10267,21 +11825,26 @@ public boolean hasResourceGroup() { return resourceCase_ == 4; } /** + * + * *
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return The resourceGroup. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup() { if (resourceCase_ == 4) { - return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; + return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; } return com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } /** + * + * *
    * The group resource associated with the configuration.
    * 
@@ -10289,20 +11852,24 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder + getResourceGroupOrBuilder() { if (resourceCase_ == 4) { - return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; + return (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_; } return com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } public static final int HTTP_CHECK_FIELD_NUMBER = 5; /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return Whether the httpCheck field is set. */ @java.lang.Override @@ -10310,21 +11877,26 @@ public boolean hasHttpCheck() { return checkRequestTypeCase_ == 5; } /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return The httpCheck. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { if (checkRequestTypeCase_ == 5) { - return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); } /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
@@ -10334,18 +11906,21 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpCheckOrBuilder() { if (checkRequestTypeCase_ == 5) { - return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); } public static final int TCP_CHECK_FIELD_NUMBER = 6; /** + * + * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return Whether the tcpCheck field is set. */ @java.lang.Override @@ -10353,21 +11928,26 @@ public boolean hasTcpCheck() { return checkRequestTypeCase_ == 6; } /** + * + * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return The tcpCheck. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { if (checkRequestTypeCase_ == 6) { - return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); } /** + * + * *
    * Contains information needed to make a TCP check.
    * 
@@ -10377,7 +11957,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckOrBuilder() { if (checkRequestTypeCase_ == 6) { - return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; + return (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_; } return com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); } @@ -10385,6 +11965,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO public static final int PERIOD_FIELD_NUMBER = 7; private com.google.protobuf.Duration period_; /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -10393,6 +11975,7 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO
    * 
* * .google.protobuf.Duration period = 7; + * * @return Whether the period field is set. */ @java.lang.Override @@ -10400,6 +11983,8 @@ public boolean hasPeriod() { return period_ != null; } /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -10408,6 +11993,7 @@ public boolean hasPeriod() {
    * 
* * .google.protobuf.Duration period = 7; + * * @return The period. */ @java.lang.Override @@ -10415,6 +12001,8 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -10432,12 +12020,15 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
+   *
+   *
    * 
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -10445,12 +12036,15 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ @java.lang.Override @@ -10458,6 +12052,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
@@ -10471,9 +12067,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   }
 
   public static final int CONTENT_MATCHERS_FIELD_NUMBER = 9;
+
   @SuppressWarnings("serial")
-  private java.util.List contentMatchers_;
+  private java.util.List
+      contentMatchers_;
   /**
+   *
+   *
    * 
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -10482,13 +12082,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ @java.lang.Override - public java.util.List getContentMatchersList() { + public java.util.List + getContentMatchersList() { return contentMatchers_; } /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -10497,14 +12101,18 @@ public java.util.List
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> getContentMatchersOrBuilderList() { return contentMatchers_; } /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -10513,13 +12121,16 @@ public java.util.List
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ @java.lang.Override public int getContentMatchersCount() { return contentMatchers_.size(); } /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -10528,13 +12139,16 @@ public int getContentMatchersCount() {
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index) { return contentMatchers_.get(index); } /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -10543,53 +12157,73 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder + getContentMatchersOrBuilder(int index) { return contentMatchers_.get(index); } public static final int CHECKER_TYPE_FIELD_NUMBER = 17; private int checkerType_ = 0; /** + * + * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The enum numeric value on the wire for checkerType. */ - @java.lang.Override public int getCheckerTypeValue() { + @java.lang.Override + public int getCheckerTypeValue() { return checkerType_; } /** + * + * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The checkerType. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { - com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { + com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = + com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED + : result; } public static final int SELECTED_REGIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List selectedRegions_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion> selectedRegions_converter_ = + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion> + selectedRegions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>() { public com.google.monitoring.v3.UptimeCheckRegion convert(java.lang.Integer from) { - com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(from); - return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckRegion result = + com.google.monitoring.v3.UptimeCheckRegion.forNumber(from); + return result == null + ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED + : result; } }; /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -10599,14 +12233,18 @@ public com.google.monitoring.v3.UptimeCheckRegion convert(java.lang.Integer from
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the selectedRegions. */ @java.lang.Override public java.util.List getSelectedRegionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>(selectedRegions_, selectedRegions_converter_); + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>( + selectedRegions_, selectedRegions_converter_); } /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -10616,6 +12254,7 @@ public java.util.List getSelectedReg
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return The count of selectedRegions. */ @java.lang.Override @@ -10623,6 +12262,8 @@ public int getSelectedRegionsCount() { return selectedRegions_.size(); } /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -10632,6 +12273,7 @@ public int getSelectedRegionsCount() {
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ @@ -10640,6 +12282,8 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index) return selectedRegions_converter_.convert(selectedRegions_.get(index)); } /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -10649,14 +12293,16 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index)
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the enum numeric values on the wire for selectedRegions. */ @java.lang.Override - public java.util.List - getSelectedRegionsValueList() { + public java.util.List getSelectedRegionsValueList() { return selectedRegions_; } /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -10666,6 +12312,7 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index)
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ @@ -10673,11 +12320,14 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index) public int getSelectedRegionsValue(int index) { return selectedRegions_.get(index); } + private int selectedRegionsMemoizedSerializedSize; public static final int IS_INTERNAL_FIELD_NUMBER = 15; private boolean isInternal_ = false; /** + * + * *
    * If this is `true`, then checks are made only from the 'internal_checkers'.
    * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -10686,19 +12336,24 @@ public int getSelectedRegionsValue(int index) {
    * 
* * bool is_internal = 15 [deprecated = true]; - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. - * See google/monitoring/v3/uptime.proto;l=478 + * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ @java.lang.Override - @java.lang.Deprecated public boolean getIsInternal() { + @java.lang.Deprecated + public boolean getIsInternal() { return isInternal_; } public static final int INTERNAL_CHECKERS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List internalCheckers_; /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -10706,13 +12361,18 @@ public int getSelectedRegionsValue(int index) {
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getInternalCheckersList() { + @java.lang.Deprecated + public java.util.List getInternalCheckersList() { return internalCheckers_; } /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -10720,14 +12380,19 @@ public int getSelectedRegionsValue(int index) {
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getInternalCheckersOrBuilderList() { return internalCheckers_; } /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -10735,13 +12400,18 @@ public int getSelectedRegionsValue(int index) {
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getInternalCheckersCount() { + @java.lang.Deprecated + public int getInternalCheckersCount() { return internalCheckers_.size(); } /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -10749,13 +12419,18 @@ public int getSelectedRegionsValue(int index) {
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { return internalCheckers_.get(index); } /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -10763,41 +12438,45 @@ public int getSelectedRegionsValue(int index) {
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder(int index) { return internalCheckers_.get(index); } public static final int USER_LABELS_FIELD_NUMBER = 20; + private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.monitoring.v3.UptimeProto + .internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; - private com.google.protobuf.MapField - internalGetUserLabels() { + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -10811,20 +12490,21 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -10842,6 +12522,8 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -10855,17 +12537,19 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  public /* nullable */ java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -10879,11 +12563,11 @@ java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 20;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -10891,6 +12575,7 @@ public java.lang.String getUserLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -10902,8 +12587,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getSerializedSize();
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -10918,10 +12602,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
     }
     if (checkRequestTypeCase_ == 5) {
-      output.writeMessage(5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
+      output.writeMessage(
+          5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
     }
     if (checkRequestTypeCase_ == 6) {
-      output.writeMessage(6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
+      output.writeMessage(
+          6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
     }
     if (period_ != null) {
       output.writeMessage(7, getPeriod());
@@ -10945,15 +12631,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (isInternal_ != false) {
       output.writeBool(15, isInternal_);
     }
-    if (checkerType_ != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED.getNumber()) {
+    if (checkerType_
+        != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(17, checkerType_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetUserLabels(),
-        UserLabelsDefaultEntryHolder.defaultEntry,
-        20);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 20);
     getUnknownFields().writeTo(output);
   }
 
@@ -10970,66 +12654,68 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (resourceCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.api.MonitoredResource) resource_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.api.MonitoredResource) resource_);
     }
     if (resourceCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_);
     }
     if (checkRequestTypeCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_);
     }
     if (checkRequestTypeCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_);
     }
     if (period_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getPeriod());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPeriod());
     }
     if (timeout_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getTimeout());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout());
     }
     for (int i = 0; i < contentMatchers_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, contentMatchers_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, contentMatchers_.get(i));
     }
     {
       int dataSize = 0;
       for (int i = 0; i < selectedRegions_.size(); i++) {
-        dataSize += com.google.protobuf.CodedOutputStream
-          .computeEnumSizeNoTag(selectedRegions_.get(i));
+        dataSize +=
+            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(selectedRegions_.get(i));
       }
       size += dataSize;
-      if (!getSelectedRegionsList().isEmpty()) {  size += 1;
-        size += com.google.protobuf.CodedOutputStream
-          .computeUInt32SizeNoTag(dataSize);
-      }selectedRegionsMemoizedSerializedSize = dataSize;
+      if (!getSelectedRegionsList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+      }
+      selectedRegionsMemoizedSerializedSize = dataSize;
     }
     for (int i = 0; i < internalCheckers_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, internalCheckers_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(14, internalCheckers_.get(i));
     }
     if (isInternal_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(15, isInternal_);
-    }
-    if (checkerType_ != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(17, checkerType_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(20, userLabels__);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, isInternal_);
+    }
+    if (checkerType_
+        != com.google.monitoring.v3.UptimeCheckConfig.CheckerType.CHECKER_TYPE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, checkerType_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry userLabels__ =
+          UserLabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -11039,46 +12725,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.UptimeCheckConfig)) {
       return super.equals(obj);
     }
-    com.google.monitoring.v3.UptimeCheckConfig other = (com.google.monitoring.v3.UptimeCheckConfig) obj;
+    com.google.monitoring.v3.UptimeCheckConfig other =
+        (com.google.monitoring.v3.UptimeCheckConfig) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
     if (hasPeriod() != other.hasPeriod()) return false;
     if (hasPeriod()) {
-      if (!getPeriod()
-          .equals(other.getPeriod())) return false;
+      if (!getPeriod().equals(other.getPeriod())) return false;
     }
     if (hasTimeout() != other.hasTimeout()) return false;
     if (hasTimeout()) {
-      if (!getTimeout()
-          .equals(other.getTimeout())) return false;
+      if (!getTimeout().equals(other.getTimeout())) return false;
     }
-    if (!getContentMatchersList()
-        .equals(other.getContentMatchersList())) return false;
+    if (!getContentMatchersList().equals(other.getContentMatchersList())) return false;
     if (checkerType_ != other.checkerType_) return false;
     if (!selectedRegions_.equals(other.selectedRegions_)) return false;
-    if (getIsInternal()
-        != other.getIsInternal()) return false;
-    if (!getInternalCheckersList()
-        .equals(other.getInternalCheckersList())) return false;
-    if (!internalGetUserLabels().equals(
-        other.internalGetUserLabels())) return false;
+    if (getIsInternal() != other.getIsInternal()) return false;
+    if (!getInternalCheckersList().equals(other.getInternalCheckersList())) return false;
+    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
     if (!getResourceCase().equals(other.getResourceCase())) return false;
     switch (resourceCase_) {
       case 3:
-        if (!getMonitoredResource()
-            .equals(other.getMonitoredResource())) return false;
+        if (!getMonitoredResource().equals(other.getMonitoredResource())) return false;
         break;
       case 4:
-        if (!getResourceGroup()
-            .equals(other.getResourceGroup())) return false;
+        if (!getResourceGroup().equals(other.getResourceGroup())) return false;
         break;
       case 0:
       default:
@@ -11086,12 +12763,10 @@ public boolean equals(final java.lang.Object obj) {
     if (!getCheckRequestTypeCase().equals(other.getCheckRequestTypeCase())) return false;
     switch (checkRequestTypeCase_) {
       case 5:
-        if (!getHttpCheck()
-            .equals(other.getHttpCheck())) return false;
+        if (!getHttpCheck().equals(other.getHttpCheck())) return false;
         break;
       case 6:
-        if (!getTcpCheck()
-            .equals(other.getTcpCheck())) return false;
+        if (!getTcpCheck().equals(other.getTcpCheck())) return false;
         break;
       case 0:
       default:
@@ -11130,8 +12805,7 @@ public int hashCode() {
       hash = (53 * hash) + selectedRegions_.hashCode();
     }
     hash = (37 * hash) + IS_INTERNAL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getIsInternal());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsInternal());
     if (getInternalCheckersCount() > 0) {
       hash = (37 * hash) + INTERNAL_CHECKERS_FIELD_NUMBER;
       hash = (53 * hash) + getInternalCheckersList().hashCode();
@@ -11169,99 +12843,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.UptimeCheckConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.UptimeCheckConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * This message configures which resources and services to monitor for
    * availability.
@@ -11269,55 +12948,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig)
       com.google.monitoring.v3.UptimeCheckConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 20:
           return internalGetUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 20:
           return internalGetMutableUserLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckConfig.class, com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
+              com.google.monitoring.v3.UptimeCheckConfig.class,
+              com.google.monitoring.v3.UptimeCheckConfig.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UptimeCheckConfig.newBuilder()
-    private Builder() {
-
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
+    private Builder() {}
 
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -11373,9 +13049,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
     }
 
     @java.lang.Override
@@ -11394,9 +13070,12 @@ public com.google.monitoring.v3.UptimeCheckConfig build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UptimeCheckConfig buildPartial() {
-      com.google.monitoring.v3.UptimeCheckConfig result = new com.google.monitoring.v3.UptimeCheckConfig(this);
+      com.google.monitoring.v3.UptimeCheckConfig result =
+          new com.google.monitoring.v3.UptimeCheckConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -11437,14 +13116,10 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig result) {
         result.displayName_ = displayName_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.period_ = periodBuilder_ == null
-            ? period_
-            : periodBuilder_.build();
+        result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.timeout_ = timeoutBuilder_ == null
-            ? timeout_
-            : timeoutBuilder_.build();
+        result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.checkerType_ = checkerType_;
@@ -11461,22 +13136,18 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckConfig result) {
     private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig result) {
       result.resourceCase_ = resourceCase_;
       result.resource_ = this.resource_;
-      if (resourceCase_ == 3 &&
-          monitoredResourceBuilder_ != null) {
+      if (resourceCase_ == 3 && monitoredResourceBuilder_ != null) {
         result.resource_ = monitoredResourceBuilder_.build();
       }
-      if (resourceCase_ == 4 &&
-          resourceGroupBuilder_ != null) {
+      if (resourceCase_ == 4 && resourceGroupBuilder_ != null) {
         result.resource_ = resourceGroupBuilder_.build();
       }
       result.checkRequestTypeCase_ = checkRequestTypeCase_;
       result.checkRequestType_ = this.checkRequestType_;
-      if (checkRequestTypeCase_ == 5 &&
-          httpCheckBuilder_ != null) {
+      if (checkRequestTypeCase_ == 5 && httpCheckBuilder_ != null) {
         result.checkRequestType_ = httpCheckBuilder_.build();
       }
-      if (checkRequestTypeCase_ == 6 &&
-          tcpCheckBuilder_ != null) {
+      if (checkRequestTypeCase_ == 6 && tcpCheckBuilder_ != null) {
         result.checkRequestType_ = tcpCheckBuilder_.build();
       }
     }
@@ -11485,38 +13156,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.UptimeCheckConfig resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UptimeCheckConfig) {
-        return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig)other);
+        return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -11559,9 +13231,10 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) {
             contentMatchersBuilder_ = null;
             contentMatchers_ = other.contentMatchers_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            contentMatchersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getContentMatchersFieldBuilder() : null;
+            contentMatchersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getContentMatchersFieldBuilder()
+                    : null;
           } else {
             contentMatchersBuilder_.addAllMessages(other.contentMatchers_);
           }
@@ -11601,42 +13274,48 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) {
             internalCheckersBuilder_ = null;
             internalCheckers_ = other.internalCheckers_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            internalCheckersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getInternalCheckersFieldBuilder() : null;
+            internalCheckersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getInternalCheckersFieldBuilder()
+                    : null;
           } else {
             internalCheckersBuilder_.addAllMessages(other.internalCheckers_);
           }
         }
       }
-      internalGetMutableUserLabels().mergeFrom(
-          other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
       bitField0_ |= 0x00002000;
       switch (other.getResourceCase()) {
-        case MONITORED_RESOURCE: {
-          mergeMonitoredResource(other.getMonitoredResource());
-          break;
-        }
-        case RESOURCE_GROUP: {
-          mergeResourceGroup(other.getResourceGroup());
-          break;
-        }
-        case RESOURCE_NOT_SET: {
-          break;
-        }
+        case MONITORED_RESOURCE:
+          {
+            mergeMonitoredResource(other.getMonitoredResource());
+            break;
+          }
+        case RESOURCE_GROUP:
+          {
+            mergeResourceGroup(other.getResourceGroup());
+            break;
+          }
+        case RESOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getCheckRequestTypeCase()) {
-        case HTTP_CHECK: {
-          mergeHttpCheck(other.getHttpCheck());
-          break;
-        }
-        case TCP_CHECK: {
-          mergeTcpCheck(other.getTcpCheck());
-          break;
-        }
-        case CHECKREQUESTTYPE_NOT_SET: {
-          break;
-        }
+        case HTTP_CHECK:
+          {
+            mergeHttpCheck(other.getHttpCheck());
+            break;
+          }
+        case TCP_CHECK:
+          {
+            mergeTcpCheck(other.getTcpCheck());
+            break;
+          }
+        case CHECKREQUESTTYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -11664,126 +13343,132 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getMonitoredResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              resourceCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getResourceGroupFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              resourceCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getHttpCheckFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              checkRequestTypeCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getTcpCheckFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              checkRequestTypeCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getPeriodFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher m =
-                  input.readMessage(
-                      com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.parser(),
-                      extensionRegistry);
-              if (contentMatchersBuilder_ == null) {
-                ensureContentMatchersIsMutable();
-                contentMatchers_.add(m);
-              } else {
-                contentMatchersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 74
-            case 80: {
-              int tmpRaw = input.readEnum();
-              ensureSelectedRegionsIsMutable();
-              selectedRegions_.add(tmpRaw);
-              break;
-            } // case 80
-            case 82: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(
+                    getMonitoredResourceFieldBuilder().getBuilder(), extensionRegistry);
+                resourceCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getResourceGroupFieldBuilder().getBuilder(), extensionRegistry);
+                resourceCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getHttpCheckFieldBuilder().getBuilder(), extensionRegistry);
+                checkRequestTypeCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getTcpCheckFieldBuilder().getBuilder(), extensionRegistry);
+                checkRequestTypeCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher m =
+                    input.readMessage(
+                        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.parser(),
+                        extensionRegistry);
+                if (contentMatchersBuilder_ == null) {
+                  ensureContentMatchersIsMutable();
+                  contentMatchers_.add(m);
+                } else {
+                  contentMatchersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+            case 80:
+              {
                 int tmpRaw = input.readEnum();
                 ensureSelectedRegionsIsMutable();
                 selectedRegions_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 82
-            case 114: {
-              com.google.monitoring.v3.InternalChecker m =
-                  input.readMessage(
-                      com.google.monitoring.v3.InternalChecker.parser(),
-                      extensionRegistry);
-              if (internalCheckersBuilder_ == null) {
-                ensureInternalCheckersIsMutable();
-                internalCheckers_.add(m);
-              } else {
-                internalCheckersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 120: {
-              isInternal_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 120
-            case 136: {
-              checkerType_ = input.readEnum();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 136
-            case 162: {
-              com.google.protobuf.MapEntry
-              userLabels__ = input.readMessage(
-                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserLabels().getMutableMap().put(
-                  userLabels__.getKey(), userLabels__.getValue());
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 162
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 80
+            case 82:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureSelectedRegionsIsMutable();
+                  selectedRegions_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 82
+            case 114:
+              {
+                com.google.monitoring.v3.InternalChecker m =
+                    input.readMessage(
+                        com.google.monitoring.v3.InternalChecker.parser(), extensionRegistry);
+                if (internalCheckersBuilder_ == null) {
+                  ensureInternalCheckersIsMutable();
+                  internalCheckers_.add(m);
+                } else {
+                  internalCheckersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 120:
+              {
+                isInternal_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 120
+            case 136:
+              {
+                checkerType_ = input.readEnum();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 136
+            case 162:
+              {
+                com.google.protobuf.MapEntry userLabels__ =
+                    input.readMessage(
+                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableUserLabels()
+                    .getMutableMap()
+                    .put(userLabels__.getKey(), userLabels__.getValue());
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 162
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11793,12 +13478,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int resourceCase_ = 0;
     private java.lang.Object resource_;
-    public ResourceCase
-        getResourceCase() {
-      return ResourceCase.forNumber(
-          resourceCase_);
+
+    public ResourceCase getResourceCase() {
+      return ResourceCase.forNumber(resourceCase_);
     }
 
     public Builder clearResource() {
@@ -11810,10 +13495,9 @@ public Builder clearResource() {
 
     private int checkRequestTypeCase_ = 0;
     private java.lang.Object checkRequestType_;
-    public CheckRequestTypeCase
-        getCheckRequestTypeCase() {
-      return CheckRequestTypeCase.forNumber(
-          checkRequestTypeCase_);
+
+    public CheckRequestTypeCase getCheckRequestTypeCase() {
+      return CheckRequestTypeCase.forNumber(checkRequestTypeCase_);
     }
 
     public Builder clearCheckRequestType() {
@@ -11827,6 +13511,8 @@ public Builder clearCheckRequestType() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -11841,13 +13527,13 @@ public Builder clearCheckRequestType() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -11856,6 +13542,8 @@ public java.lang.String getName() { } } /** + * + * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -11870,15 +13558,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -11886,6 +13573,8 @@ public java.lang.String getName() { } } /** + * + * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -11900,18 +13589,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -11926,6 +13619,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -11935,6 +13629,8 @@ public Builder clearName() { return this; } /** + * + * *
      * A unique resource name for this Uptime check configuration. The format is:
      *
@@ -11949,12 +13645,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -11964,6 +13662,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -11971,13 +13671,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -11986,6 +13686,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -11993,15 +13695,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -12009,6 +13710,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -12016,18 +13719,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -12035,6 +13742,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -12044,6 +13752,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A human-friendly name for the Uptime check configuration. The display name
      * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -12051,12 +13761,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -12065,8 +13777,13 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> monitoredResourceBuilder_; + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> + monitoredResourceBuilder_; /** + * + * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12083,6 +13800,7 @@ public Builder setDisplayNameBytes(
      * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return Whether the monitoredResource field is set. */ @java.lang.Override @@ -12090,6 +13808,8 @@ public boolean hasMonitoredResource() { return resourceCase_ == 3; } /** + * + * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12106,6 +13826,7 @@ public boolean hasMonitoredResource() {
      * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return The monitoredResource. */ @java.lang.Override @@ -12123,6 +13844,8 @@ public com.google.api.MonitoredResource getMonitoredResource() { } } /** + * + * *
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12154,6 +13877,8 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12171,8 +13896,7 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) {
      *
      * .google.api.MonitoredResource monitored_resource = 3;
      */
-    public Builder setMonitoredResource(
-        com.google.api.MonitoredResource.Builder builderForValue) {
+    public Builder setMonitoredResource(com.google.api.MonitoredResource.Builder builderForValue) {
       if (monitoredResourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -12183,6 +13907,8 @@ public Builder setMonitoredResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12202,10 +13928,13 @@ public Builder setMonitoredResource(
      */
     public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) {
       if (monitoredResourceBuilder_ == null) {
-        if (resourceCase_ == 3 &&
-            resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
-          resource_ = com.google.api.MonitoredResource.newBuilder((com.google.api.MonitoredResource) resource_)
-              .mergeFrom(value).buildPartial();
+        if (resourceCase_ == 3
+            && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) {
+          resource_ =
+              com.google.api.MonitoredResource.newBuilder(
+                      (com.google.api.MonitoredResource) resource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resource_ = value;
         }
@@ -12221,6 +13950,8 @@ public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12255,6 +13986,8 @@ public Builder clearMonitoredResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12276,6 +14009,8 @@ public com.google.api.MonitoredResource.Builder getMonitoredResourceBuilder() {
       return getMonitoredResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12305,6 +14040,8 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * The [monitored
      * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -12323,17 +14060,20 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
      * .google.api.MonitoredResource monitored_resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> 
+            com.google.api.MonitoredResource,
+            com.google.api.MonitoredResource.Builder,
+            com.google.api.MonitoredResourceOrBuilder>
         getMonitoredResourceFieldBuilder() {
       if (monitoredResourceBuilder_ == null) {
         if (!(resourceCase_ == 3)) {
           resource_ = com.google.api.MonitoredResource.getDefaultInstance();
         }
-        monitoredResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>(
-                (com.google.api.MonitoredResource) resource_,
-                getParentForChildren(),
-                isClean());
+        monitoredResourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.api.MonitoredResource,
+                com.google.api.MonitoredResource.Builder,
+                com.google.api.MonitoredResourceOrBuilder>(
+                (com.google.api.MonitoredResource) resource_, getParentForChildren(), isClean());
         resource_ = null;
       }
       resourceCase_ = 3;
@@ -12342,13 +14082,19 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> resourceGroupBuilder_;
+            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup,
+            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder,
+            com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>
+        resourceGroupBuilder_;
     /**
+     *
+     *
      * 
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return Whether the resourceGroup field is set. */ @java.lang.Override @@ -12356,11 +14102,14 @@ public boolean hasResourceGroup() { return resourceCase_ == 4; } /** + * + * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return The resourceGroup. */ @java.lang.Override @@ -12378,13 +14127,16 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup } } /** + * + * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public Builder setResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { + public Builder setResourceGroup( + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { if (resourceGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12398,6 +14150,8 @@ public Builder setResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.Resou return this; } /** + * + * *
      * The group resource associated with the configuration.
      * 
@@ -12416,18 +14170,25 @@ public Builder setResourceGroup( return this; } /** + * + * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public Builder mergeResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { + public Builder mergeResourceGroup( + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup value) { if (resourceGroupBuilder_ == null) { - if (resourceCase_ == 4 && - resource_ != com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) { - resource_ = com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_) - .mergeFrom(value).buildPartial(); + if (resourceCase_ == 4 + && resource_ + != com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance()) { + resource_ = + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.newBuilder( + (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -12443,6 +14204,8 @@ public Builder mergeResourceGroup(com.google.monitoring.v3.UptimeCheckConfig.Res return this; } /** + * + * *
      * The group resource associated with the configuration.
      * 
@@ -12466,16 +14229,21 @@ public Builder clearResourceGroup() { return this; } /** + * + * *
      * The group resource associated with the configuration.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder getResourceGroupBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder + getResourceGroupBuilder() { return getResourceGroupFieldBuilder().getBuilder(); } /** + * + * *
      * The group resource associated with the configuration.
      * 
@@ -12483,7 +14251,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder getResou * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder() { + public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder + getResourceGroupOrBuilder() { if ((resourceCase_ == 4) && (resourceGroupBuilder_ != null)) { return resourceGroupBuilder_.getMessageOrBuilder(); } else { @@ -12494,6 +14263,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getReso } } /** + * + * *
      * The group resource associated with the configuration.
      * 
@@ -12501,14 +14272,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getReso * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder> getResourceGroupFieldBuilder() { if (resourceGroupBuilder_ == null) { if (!(resourceCase_ == 4)) { resource_ = com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.getDefaultInstance(); } - resourceGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>( + resourceGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup, + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup) resource_, getParentForChildren(), isClean()); @@ -12520,13 +14296,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getReso } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> httpCheckBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> + httpCheckBuilder_; /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return Whether the httpCheck field is set. */ @java.lang.Override @@ -12534,11 +14316,14 @@ public boolean hasHttpCheck() { return checkRequestTypeCase_ == 5; } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return The httpCheck. */ @java.lang.Override @@ -12556,6 +14341,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck() { } } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12576,6 +14363,8 @@ public Builder setHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck return this; } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12594,6 +14383,8 @@ public Builder setHttpCheck( return this; } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12602,10 +14393,14 @@ public Builder setHttpCheck( */ public Builder mergeHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpCheck value) { if (httpCheckBuilder_ == null) { - if (checkRequestTypeCase_ == 5 && - checkRequestType_ != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) { - checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_) - .mergeFrom(value).buildPartial(); + if (checkRequestTypeCase_ == 5 + && checkRequestType_ + != com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance()) { + checkRequestType_ = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.newBuilder( + (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_) + .mergeFrom(value) + .buildPartial(); } else { checkRequestType_ = value; } @@ -12621,6 +14416,8 @@ public Builder mergeHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpChe return this; } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12644,6 +14441,8 @@ public Builder clearHttpCheck() { return this; } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12654,6 +14453,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder getHttpCheck return getHttpCheckFieldBuilder().getBuilder(); } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12672,6 +14473,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec } } /** + * + * *
      * Contains information needed to make an HTTP or HTTPS check.
      * 
@@ -12679,14 +14482,20 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder> getHttpCheckFieldBuilder() { if (httpCheckBuilder_ == null) { if (!(checkRequestTypeCase_ == 5)) { - checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); - } - httpCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder>( + checkRequestType_ = + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.getDefaultInstance(); + } + httpCheckBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.HttpCheck) checkRequestType_, getParentForChildren(), isClean()); @@ -12698,13 +14507,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpChec } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> tcpCheckBuilder_; + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> + tcpCheckBuilder_; /** + * + * *
      * Contains information needed to make a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return Whether the tcpCheck field is set. */ @java.lang.Override @@ -12712,11 +14527,14 @@ public boolean hasTcpCheck() { return checkRequestTypeCase_ == 6; } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return The tcpCheck. */ @java.lang.Override @@ -12734,6 +14552,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck() { } } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12754,6 +14574,8 @@ public Builder setTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck v return this; } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12772,6 +14594,8 @@ public Builder setTcpCheck( return this; } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12780,10 +14604,14 @@ public Builder setTcpCheck( */ public Builder mergeTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck value) { if (tcpCheckBuilder_ == null) { - if (checkRequestTypeCase_ == 6 && - checkRequestType_ != com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) { - checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder((com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_) - .mergeFrom(value).buildPartial(); + if (checkRequestTypeCase_ == 6 + && checkRequestType_ + != com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance()) { + checkRequestType_ = + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.newBuilder( + (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_) + .mergeFrom(value) + .buildPartial(); } else { checkRequestType_ = value; } @@ -12799,6 +14627,8 @@ public Builder mergeTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck return this; } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12822,6 +14652,8 @@ public Builder clearTcpCheck() { return this; } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12832,6 +14664,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder getTcpCheckBu return getTcpCheckFieldBuilder().getBuilder(); } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12850,6 +14684,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO } } /** + * + * *
      * Contains information needed to make a TCP check.
      * 
@@ -12857,14 +14693,20 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder> getTcpCheckFieldBuilder() { if (tcpCheckBuilder_ == null) { if (!(checkRequestTypeCase_ == 6)) { - checkRequestType_ = com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); - } - tcpCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder>( + checkRequestType_ = + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.getDefaultInstance(); + } + tcpCheckBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheck.Builder, + com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder>( (com.google.monitoring.v3.UptimeCheckConfig.TcpCheck) checkRequestType_, getParentForChildren(), isClean()); @@ -12877,8 +14719,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO private com.google.protobuf.Duration period_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + periodBuilder_; /** + * + * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12887,12 +14734,15 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO
      * 
* * .google.protobuf.Duration period = 7; + * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12901,6 +14751,7 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 7; + * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -12911,6 +14762,8 @@ public com.google.protobuf.Duration getPeriod() { } } /** + * + * *
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12934,6 +14787,8 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12943,8 +14798,7 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration period = 7;
      */
-    public Builder setPeriod(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
       if (periodBuilder_ == null) {
         period_ = builderForValue.build();
       } else {
@@ -12955,6 +14809,8 @@ public Builder setPeriod(
       return this;
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -12966,9 +14822,9 @@ public Builder setPeriod(
      */
     public Builder mergePeriod(com.google.protobuf.Duration value) {
       if (periodBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          period_ != null &&
-          period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && period_ != null
+            && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getPeriodBuilder().mergeFrom(value);
         } else {
           period_ = value;
@@ -12981,6 +14837,8 @@ public Builder mergePeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -13001,6 +14859,8 @@ public Builder clearPeriod() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -13016,6 +14876,8 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
       return getPeriodFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -13029,11 +14891,12 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
       if (periodBuilder_ != null) {
         return periodBuilder_.getMessageOrBuilder();
       } else {
-        return period_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : period_;
+        return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
       }
     }
     /**
+     *
+     *
      * 
      * How often, in seconds, the Uptime check is performed.
      * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -13044,14 +14907,17 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
      * .google.protobuf.Duration period = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getPeriodFieldBuilder() {
       if (periodBuilder_ == null) {
-        periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getPeriod(),
-                getParentForChildren(),
-                isClean());
+        periodBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getPeriod(), getParentForChildren(), isClean());
         period_ = null;
       }
       return periodBuilder_;
@@ -13059,26 +14925,35 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
 
     private com.google.protobuf.Duration timeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        timeoutBuilder_;
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -13089,6 +14964,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13110,6 +14987,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13117,8 +14996,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 8;
      */
-    public Builder setTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (timeoutBuilder_ == null) {
         timeout_ = builderForValue.build();
       } else {
@@ -13129,6 +15007,8 @@ public Builder setTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13138,9 +15018,9 @@ public Builder setTimeout(
      */
     public Builder mergeTimeout(com.google.protobuf.Duration value) {
       if (timeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          timeout_ != null &&
-          timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && timeout_ != null
+            && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTimeoutBuilder().mergeFrom(value);
         } else {
           timeout_ = value;
@@ -13153,6 +15033,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13171,6 +15053,8 @@ public Builder clearTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13184,6 +15068,8 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13195,11 +15081,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
       if (timeoutBuilder_ != null) {
         return timeoutBuilder_.getMessageOrBuilder();
       } else {
-        return timeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
+        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum amount of time to wait for the request to complete (must be
      * between 1 and 60 seconds). Required.
@@ -13208,32 +15095,43 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTimeoutFieldBuilder() {
       if (timeoutBuilder_ == null) {
-        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTimeout(),
-                getParentForChildren(),
-                isClean());
+        timeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTimeout(), getParentForChildren(), isClean());
         timeout_ = null;
       }
       return timeoutBuilder_;
     }
 
-    private java.util.List contentMatchers_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        contentMatchers_ = java.util.Collections.emptyList();
+
     private void ensureContentMatchersIsMutable() {
       if (!((bitField0_ & 0x00000100) != 0)) {
-        contentMatchers_ = new java.util.ArrayList(contentMatchers_);
+        contentMatchers_ =
+            new java.util.ArrayList(
+                contentMatchers_);
         bitField0_ |= 0x00000100;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> contentMatchersBuilder_;
+            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher,
+            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder,
+            com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>
+        contentMatchersBuilder_;
 
     /**
+     *
+     *
      * 
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13242,9 +15140,11 @@ private void ensureContentMatchersIsMutable() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public java.util.List getContentMatchersList() { + public java.util.List + getContentMatchersList() { if (contentMatchersBuilder_ == null) { return java.util.Collections.unmodifiableList(contentMatchers_); } else { @@ -13252,6 +15152,8 @@ public java.util.List } } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13260,7 +15162,8 @@ public java.util.List
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public int getContentMatchersCount() { if (contentMatchersBuilder_ == null) { @@ -13270,6 +15173,8 @@ public int getContentMatchersCount() { } } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13278,7 +15183,8 @@ public int getContentMatchersCount() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index) { if (contentMatchersBuilder_ == null) { @@ -13288,6 +15194,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch } } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13296,7 +15204,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatch
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder setContentMatchers( int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { @@ -13313,6 +15222,8 @@ public Builder setContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13321,10 +15232,12 @@ public Builder setContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder setContentMatchers( - int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); contentMatchers_.set(index, builderForValue.build()); @@ -13335,6 +15248,8 @@ public Builder setContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13343,9 +15258,11 @@ public Builder setContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public Builder addContentMatchers(com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { + public Builder addContentMatchers( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { if (contentMatchersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13359,6 +15276,8 @@ public Builder addContentMatchers(com.google.monitoring.v3.UptimeCheckConfig.Con return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13367,7 +15286,8 @@ public Builder addContentMatchers(com.google.monitoring.v3.UptimeCheckConfig.Con
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder addContentMatchers( int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher value) { @@ -13384,6 +15304,8 @@ public Builder addContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13392,7 +15314,8 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder addContentMatchers( com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { @@ -13406,6 +15329,8 @@ public Builder addContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13414,10 +15339,12 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder addContentMatchers( - int index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { + int index, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder builderForValue) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); contentMatchers_.add(index, builderForValue.build()); @@ -13428,6 +15355,8 @@ public Builder addContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13436,14 +15365,15 @@ public Builder addContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder addAllContentMatchers( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (contentMatchersBuilder_ == null) { ensureContentMatchersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contentMatchers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentMatchers_); onChanged(); } else { contentMatchersBuilder_.addAllMessages(values); @@ -13451,6 +15381,8 @@ public Builder addAllContentMatchers( return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13459,7 +15391,8 @@ public Builder addAllContentMatchers(
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder clearContentMatchers() { if (contentMatchersBuilder_ == null) { @@ -13472,6 +15405,8 @@ public Builder clearContentMatchers() { return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13480,7 +15415,8 @@ public Builder clearContentMatchers() {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ public Builder removeContentMatchers(int index) { if (contentMatchersBuilder_ == null) { @@ -13493,6 +15429,8 @@ public Builder removeContentMatchers(int index) { return this; } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13501,13 +15439,16 @@ public Builder removeContentMatchers(int index) {
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder getContentMatchersBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder + getContentMatchersBuilder(int index) { return getContentMatchersFieldBuilder().getBuilder(index); } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13516,16 +15457,20 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder getCont
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( - int index) { + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder + getContentMatchersOrBuilder(int index) { if (contentMatchersBuilder_ == null) { - return contentMatchers_.get(index); } else { + return contentMatchers_.get(index); + } else { return contentMatchersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13534,10 +15479,12 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getCon
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public java.util.List - getContentMatchersOrBuilderList() { + public java.util.List< + ? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> + getContentMatchersOrBuilderList() { if (contentMatchersBuilder_ != null) { return contentMatchersBuilder_.getMessageOrBuilderList(); } else { @@ -13545,6 +15492,8 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getCon } } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13553,13 +15502,18 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getCon
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder() { - return getContentMatchersFieldBuilder().addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder + addContentMatchersBuilder() { + return getContentMatchersFieldBuilder() + .addBuilder( + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13568,14 +15522,19 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addCont
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder( - int index) { - return getContentMatchersFieldBuilder().addBuilder( - index, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); + public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder + addContentMatchersBuilder(int index) { + return getContentMatchersFieldBuilder() + .addBuilder( + index, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.getDefaultInstance()); } /** + * + * *
      * The content that is expected to appear in the data returned by the target
      * server against which the check is run.  Currently, only the first entry
@@ -13584,18 +15543,25 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addCont
      * content match is required as part of the/ Uptime check.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - public java.util.List - getContentMatchersBuilderList() { + public java.util.List + getContentMatchersBuilderList() { return getContentMatchersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder> getContentMatchersFieldBuilder() { if (contentMatchersBuilder_ == null) { - contentMatchersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>( + contentMatchersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder, + com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>( contentMatchers_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -13607,22 +15573,29 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder addCont private int checkerType_ = 0; /** + * + * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The enum numeric value on the wire for checkerType. */ - @java.lang.Override public int getCheckerTypeValue() { + @java.lang.Override + public int getCheckerTypeValue() { return checkerType_; } /** + * + * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @param value The enum numeric value on the wire for checkerType to set. * @return This builder for chaining. */ @@ -13633,24 +15606,33 @@ public Builder setCheckerTypeValue(int value) { return this; } /** + * + * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The checkerType. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType() { - com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); - return result == null ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED : result; + com.google.monitoring.v3.UptimeCheckConfig.CheckerType result = + com.google.monitoring.v3.UptimeCheckConfig.CheckerType.forNumber(checkerType_); + return result == null + ? com.google.monitoring.v3.UptimeCheckConfig.CheckerType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @param value The checkerType to set. * @return This builder for chaining. */ @@ -13664,11 +15646,14 @@ public Builder setCheckerType(com.google.monitoring.v3.UptimeCheckConfig.Checker return this; } /** + * + * *
      * The type of checkers to use to execute the Uptime check.
      * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return This builder for chaining. */ public Builder clearCheckerType() { @@ -13678,8 +15663,8 @@ public Builder clearCheckerType() { return this; } - private java.util.List selectedRegions_ = - java.util.Collections.emptyList(); + private java.util.List selectedRegions_ = java.util.Collections.emptyList(); + private void ensureSelectedRegionsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { selectedRegions_ = new java.util.ArrayList(selectedRegions_); @@ -13687,6 +15672,8 @@ private void ensureSelectedRegionsIsMutable() { } } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13696,13 +15683,17 @@ private void ensureSelectedRegionsIsMutable() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the selectedRegions. */ public java.util.List getSelectedRegionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>(selectedRegions_, selectedRegions_converter_); + java.lang.Integer, com.google.monitoring.v3.UptimeCheckRegion>( + selectedRegions_, selectedRegions_converter_); } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13712,12 +15703,15 @@ public java.util.List getSelectedReg
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return The count of selectedRegions. */ public int getSelectedRegionsCount() { return selectedRegions_.size(); } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13727,6 +15721,7 @@ public int getSelectedRegionsCount() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ @@ -13734,6 +15729,8 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index) return selectedRegions_converter_.convert(selectedRegions_.get(index)); } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13743,12 +15740,12 @@ public com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index)
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index to set the value at. * @param value The selectedRegions to set. * @return This builder for chaining. */ - public Builder setSelectedRegions( - int index, com.google.monitoring.v3.UptimeCheckRegion value) { + public Builder setSelectedRegions(int index, com.google.monitoring.v3.UptimeCheckRegion value) { if (value == null) { throw new NullPointerException(); } @@ -13758,6 +15755,8 @@ public Builder setSelectedRegions( return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13767,6 +15766,7 @@ public Builder setSelectedRegions(
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param value The selectedRegions to add. * @return This builder for chaining. */ @@ -13780,6 +15780,8 @@ public Builder addSelectedRegions(com.google.monitoring.v3.UptimeCheckRegion val return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13789,6 +15791,7 @@ public Builder addSelectedRegions(com.google.monitoring.v3.UptimeCheckRegion val
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param values The selectedRegions to add. * @return This builder for chaining. */ @@ -13802,6 +15805,8 @@ public Builder addAllSelectedRegions( return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13811,6 +15816,7 @@ public Builder addAllSelectedRegions(
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return This builder for chaining. */ public Builder clearSelectedRegions() { @@ -13820,6 +15826,8 @@ public Builder clearSelectedRegions() { return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13829,13 +15837,15 @@ public Builder clearSelectedRegions() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the enum numeric values on the wire for selectedRegions. */ - public java.util.List - getSelectedRegionsValueList() { + public java.util.List getSelectedRegionsValueList() { return java.util.Collections.unmodifiableList(selectedRegions_); } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13845,6 +15855,7 @@ public Builder clearSelectedRegions() {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ @@ -13852,6 +15863,8 @@ public int getSelectedRegionsValue(int index) { return selectedRegions_.get(index); } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13861,18 +15874,20 @@ public int getSelectedRegionsValue(int index) {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for selectedRegions to set. * @return This builder for chaining. */ - public Builder setSelectedRegionsValue( - int index, int value) { + public Builder setSelectedRegionsValue(int index, int value) { ensureSelectedRegionsIsMutable(); selectedRegions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13882,6 +15897,7 @@ public Builder setSelectedRegionsValue(
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param value The enum numeric value on the wire for selectedRegions to add. * @return This builder for chaining. */ @@ -13892,6 +15908,8 @@ public Builder addSelectedRegionsValue(int value) { return this; } /** + * + * *
      * The list of regions from which the check will be run.
      * Some regions contain one location, and others contain more than one.
@@ -13901,11 +15919,11 @@ public Builder addSelectedRegionsValue(int value) {
      * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param values The enum numeric values on the wire for selectedRegions to add. * @return This builder for chaining. */ - public Builder addAllSelectedRegionsValue( - java.lang.Iterable values) { + public Builder addAllSelectedRegionsValue(java.lang.Iterable values) { ensureSelectedRegionsIsMutable(); for (int value : values) { selectedRegions_.add(value); @@ -13914,8 +15932,10 @@ public Builder addAllSelectedRegionsValue( return this; } - private boolean isInternal_ ; + private boolean isInternal_; /** + * + * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -13924,15 +15944,19 @@ public Builder addAllSelectedRegionsValue(
      * 
* * bool is_internal = 15 [deprecated = true]; - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. - * See google/monitoring/v3/uptime.proto;l=478 + * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ @java.lang.Override - @java.lang.Deprecated public boolean getIsInternal() { + @java.lang.Deprecated + public boolean getIsInternal() { return isInternal_; } /** + * + * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -13941,12 +15965,14 @@ public Builder addAllSelectedRegionsValue(
      * 
* * bool is_internal = 15 [deprecated = true]; - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. - * See google/monitoring/v3/uptime.proto;l=478 + * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=478 * @param value The isInternal to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setIsInternal(boolean value) { + @java.lang.Deprecated + public Builder setIsInternal(boolean value) { isInternal_ = value; bitField0_ |= 0x00000800; @@ -13954,6 +15980,8 @@ public Builder addAllSelectedRegionsValue( return this; } /** + * + * *
      * If this is `true`, then checks are made only from the 'internal_checkers'.
      * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -13962,11 +15990,13 @@ public Builder addAllSelectedRegionsValue(
      * 
* * bool is_internal = 15 [deprecated = true]; - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. - * See google/monitoring/v3/uptime.proto;l=478 + * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=478 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearIsInternal() { + @java.lang.Deprecated + public Builder clearIsInternal() { bitField0_ = (bitField0_ & ~0x00000800); isInternal_ = false; onChanged(); @@ -13974,18 +16004,25 @@ public Builder addAllSelectedRegionsValue( } private java.util.List internalCheckers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInternalCheckersIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - internalCheckers_ = new java.util.ArrayList(internalCheckers_); + internalCheckers_ = + new java.util.ArrayList(internalCheckers_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> internalCheckersBuilder_; + com.google.monitoring.v3.InternalChecker, + com.google.monitoring.v3.InternalChecker.Builder, + com.google.monitoring.v3.InternalCheckerOrBuilder> + internalCheckersBuilder_; /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -13993,9 +16030,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getInternalCheckersList() { + @java.lang.Deprecated + public java.util.List getInternalCheckersList() { if (internalCheckersBuilder_ == null) { return java.util.Collections.unmodifiableList(internalCheckers_); } else { @@ -14003,6 +16043,8 @@ private void ensureInternalCheckersIsMutable() { } } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14010,9 +16052,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public int getInternalCheckersCount() { + @java.lang.Deprecated + public int getInternalCheckersCount() { if (internalCheckersBuilder_ == null) { return internalCheckers_.size(); } else { @@ -14020,6 +16065,8 @@ private void ensureInternalCheckersIsMutable() { } } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14027,9 +16074,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { return internalCheckers_.get(index); } else { @@ -14037,6 +16087,8 @@ private void ensureInternalCheckersIsMutable() { } } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14044,10 +16096,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setInternalCheckers( - int index, com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated + public Builder setInternalCheckers(int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14061,6 +16115,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14068,9 +16124,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setInternalCheckers( + @java.lang.Deprecated + public Builder setInternalCheckers( int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -14082,6 +16141,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14089,9 +16150,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated + public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14105,6 +16169,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14112,10 +16178,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addInternalCheckers( - int index, com.google.monitoring.v3.InternalChecker value) { + @java.lang.Deprecated + public Builder addInternalCheckers(int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14129,6 +16197,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14136,9 +16206,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addInternalCheckers( + @java.lang.Deprecated + public Builder addInternalCheckers( com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -14150,6 +16223,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14157,9 +16232,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addInternalCheckers( + @java.lang.Deprecated + public Builder addInternalCheckers( int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); @@ -14171,6 +16249,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14178,14 +16258,16 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllInternalCheckers( + @java.lang.Deprecated + public Builder addAllInternalCheckers( java.lang.Iterable values) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, internalCheckers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalCheckers_); onChanged(); } else { internalCheckersBuilder_.addAllMessages(values); @@ -14193,6 +16275,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14200,9 +16284,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearInternalCheckers() { + @java.lang.Deprecated + public Builder clearInternalCheckers() { if (internalCheckersBuilder_ == null) { internalCheckers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); @@ -14213,6 +16300,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14220,9 +16309,12 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeInternalCheckers(int index) { + @java.lang.Deprecated + public Builder removeInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); internalCheckers_.remove(index); @@ -14233,6 +16325,8 @@ private void ensureInternalCheckersIsMutable() { return this; } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14240,13 +16334,17 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuilder( - int index) { + @java.lang.Deprecated + public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuilder(int index) { return getInternalCheckersFieldBuilder().getBuilder(index); } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14254,16 +16352,22 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + @java.lang.Deprecated + public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( int index) { if (internalCheckersBuilder_ == null) { - return internalCheckers_.get(index); } else { + return internalCheckers_.get(index); + } else { return internalCheckersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14271,10 +16375,13 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getInternalCheckersOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getInternalCheckersOrBuilderList() { if (internalCheckersBuilder_ != null) { return internalCheckersBuilder_.getMessageOrBuilderList(); } else { @@ -14282,6 +16389,8 @@ private void ensureInternalCheckersIsMutable() { } } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14289,13 +16398,18 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder() { - return getInternalCheckersFieldBuilder().addBuilder( - com.google.monitoring.v3.InternalChecker.getDefaultInstance()); + @java.lang.Deprecated + public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder() { + return getInternalCheckersFieldBuilder() + .addBuilder(com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14303,14 +16417,18 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder( - int index) { - return getInternalCheckersFieldBuilder().addBuilder( - index, com.google.monitoring.v3.InternalChecker.getDefaultInstance()); + @java.lang.Deprecated + public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder(int index) { + return getInternalCheckersFieldBuilder() + .addBuilder(index, com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** + * + * *
      * The internal checkers that this check will egress from. If `is_internal` is
      * `true` and this list is empty, the check will egress from all the
@@ -14318,18 +16436,27 @@ private void ensureInternalCheckersIsMutable() {
      * `UptimeCheckConfig`.
      * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getInternalCheckersBuilderList() { + @java.lang.Deprecated + public java.util.List + getInternalCheckersBuilderList() { return getInternalCheckersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> + com.google.monitoring.v3.InternalChecker, + com.google.monitoring.v3.InternalChecker.Builder, + com.google.monitoring.v3.InternalCheckerOrBuilder> getInternalCheckersFieldBuilder() { if (internalCheckersBuilder_ == null) { - internalCheckersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder>( + internalCheckersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.InternalChecker, + com.google.monitoring.v3.InternalChecker.Builder, + com.google.monitoring.v3.InternalCheckerOrBuilder>( internalCheckers_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), @@ -14339,8 +16466,8 @@ private void ensureInternalCheckersIsMutable() { return internalCheckersBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField userLabels_; + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -14349,11 +16476,12 @@ private void ensureInternalCheckersIsMutable() { } return userLabels_; } + private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -14362,10 +16490,13 @@ private void ensureInternalCheckersIsMutable() { onChanged(); return userLabels_; } + public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14379,20 +16510,21 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14410,6 +16542,8 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14423,17 +16557,19 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getUserLabelsOrDefault(
+    public /* nullable */ java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14447,23 +16583,25 @@ java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 20;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00002000);
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14476,23 +16614,22 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       bitField0_ |= 0x00002000;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14505,17 +16642,20 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00002000;
       return this;
     }
     /**
+     *
+     *
      * 
      * User-supplied key/value data to be used for organizing and
      * identifying the `UptimeCheckConfig` objects.
@@ -14528,16 +16668,14 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 20;
      */
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00002000;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -14547,12 +16685,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig)
   private static final com.google.monitoring.v3.UptimeCheckConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig();
   }
@@ -14561,27 +16699,27 @@ public static com.google.monitoring.v3.UptimeCheckConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UptimeCheckConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UptimeCheckConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -14596,6 +16734,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.UptimeCheckConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
similarity index 85%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
index 46fda1477eaa..c81032cc51c5 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/uptime.proto
 
 package com.google.monitoring.v3;
 
-public interface UptimeCheckConfigOrBuilder extends
+public interface UptimeCheckConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -22,10 +40,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * A unique resource name for this Uptime check configuration. The format is:
    *
@@ -40,12 +61,14 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -53,10 +76,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A human-friendly name for the Uptime check configuration. The display name
    * should be unique within a Cloud Monitoring Workspace in order to make it
@@ -64,12 +90,14 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -86,10 +114,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return Whether the monitoredResource field is set. */ boolean hasMonitoredResource(); /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -106,10 +137,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * .google.api.MonitoredResource monitored_resource = 3; + * * @return The monitoredResource. */ com.google.api.MonitoredResource getMonitoredResource(); /** + * + * *
    * The [monitored
    * resource](https://cloud.google.com/monitoring/api/resources) associated
@@ -130,24 +164,32 @@ public interface UptimeCheckConfigOrBuilder extends
   com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return Whether the resourceGroup field is set. */ boolean hasResourceGroup(); /** + * + * *
    * The group resource associated with the configuration.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4; + * * @return The resourceGroup. */ com.google.monitoring.v3.UptimeCheckConfig.ResourceGroup getResourceGroup(); /** + * + * *
    * The group resource associated with the configuration.
    * 
@@ -157,24 +199,32 @@ public interface UptimeCheckConfigOrBuilder extends com.google.monitoring.v3.UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder(); /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return Whether the httpCheck field is set. */ boolean hasHttpCheck(); /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5; + * * @return The httpCheck. */ com.google.monitoring.v3.UptimeCheckConfig.HttpCheck getHttpCheck(); /** + * + * *
    * Contains information needed to make an HTTP or HTTPS check.
    * 
@@ -184,24 +234,32 @@ public interface UptimeCheckConfigOrBuilder extends com.google.monitoring.v3.UptimeCheckConfig.HttpCheckOrBuilder getHttpCheckOrBuilder(); /** + * + * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return Whether the tcpCheck field is set. */ boolean hasTcpCheck(); /** + * + * *
    * Contains information needed to make a TCP check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6; + * * @return The tcpCheck. */ com.google.monitoring.v3.UptimeCheckConfig.TcpCheck getTcpCheck(); /** + * + * *
    * Contains information needed to make a TCP check.
    * 
@@ -211,6 +269,8 @@ public interface UptimeCheckConfigOrBuilder extends com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckOrBuilder(); /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -219,10 +279,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * .google.protobuf.Duration period = 7; + * * @return Whether the period field is set. */ boolean hasPeriod(); /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -231,10 +294,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * 
* * .google.protobuf.Duration period = 7; + * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** + * + * *
    * How often, in seconds, the Uptime check is performed.
    * Currently, the only supported values are `60s` (1 minute), `300s`
@@ -247,26 +313,34 @@ public interface UptimeCheckConfigOrBuilder extends
   com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
 
   /**
+   *
+   *
    * 
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * The maximum amount of time to wait for the request to complete (must be
    * between 1 and 60 seconds). Required.
@@ -277,6 +351,8 @@ public interface UptimeCheckConfigOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -285,11 +361,14 @@ public interface UptimeCheckConfigOrBuilder extends
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - java.util.List + java.util.List getContentMatchersList(); /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -298,10 +377,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getContentMatchers(int index); /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -310,10 +392,13 @@ public interface UptimeCheckConfigOrBuilder extends
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ int getContentMatchersCount(); /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -322,11 +407,14 @@ public interface UptimeCheckConfigOrBuilder extends
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ - java.util.List + java.util.List getContentMatchersOrBuilderList(); /** + * + * *
    * The content that is expected to appear in the data returned by the target
    * server against which the check is run.  Currently, only the first entry
@@ -335,31 +423,40 @@ public interface UptimeCheckConfigOrBuilder extends
    * content match is required as part of the/ Uptime check.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9; + * */ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder( int index); /** + * + * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The enum numeric value on the wire for checkerType. */ int getCheckerTypeValue(); /** + * + * *
    * The type of checkers to use to execute the Uptime check.
    * 
* * .google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17; + * * @return The checkerType. */ com.google.monitoring.v3.UptimeCheckConfig.CheckerType getCheckerType(); /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -369,10 +466,13 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the selectedRegions. */ java.util.List getSelectedRegionsList(); /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -382,10 +482,13 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return The count of selectedRegions. */ int getSelectedRegionsCount(); /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -395,11 +498,14 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the element to return. * @return The selectedRegions at the given index. */ com.google.monitoring.v3.UptimeCheckRegion getSelectedRegions(int index); /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -409,11 +515,13 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @return A list containing the enum numeric values on the wire for selectedRegions. */ - java.util.List - getSelectedRegionsValueList(); + java.util.List getSelectedRegionsValueList(); /** + * + * *
    * The list of regions from which the check will be run.
    * Some regions contain one location, and others contain more than one.
@@ -423,12 +531,15 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of selectedRegions at the given index. */ int getSelectedRegionsValue(int index); /** + * + * *
    * If this is `true`, then checks are made only from the 'internal_checkers'.
    * If it is `false`, then checks are made only from the 'selected_regions'.
@@ -437,13 +548,17 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * 
* * bool is_internal = 15 [deprecated = true]; - * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. - * See google/monitoring/v3/uptime.proto;l=478 + * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=478 * @return The isInternal. */ - @java.lang.Deprecated boolean getIsInternal(); + @java.lang.Deprecated + boolean getIsInternal(); /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -451,11 +566,15 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getInternalCheckersList(); + @java.lang.Deprecated + java.util.List getInternalCheckersList(); /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -463,10 +582,15 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.monitoring.v3.InternalChecker getInternalCheckers(int index); + @java.lang.Deprecated + com.google.monitoring.v3.InternalChecker getInternalCheckers(int index); /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -474,10 +598,15 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated int getInternalCheckersCount(); + @java.lang.Deprecated + int getInternalCheckersCount(); /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -485,11 +614,16 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getInternalCheckersOrBuilderList(); /** + * + * *
    * The internal checkers that this check will egress from. If `is_internal` is
    * `true` and this list is empty, the check will egress from all the
@@ -497,12 +631,16 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    * `UptimeCheckConfig`.
    * 
* - * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( - int index); + @java.lang.Deprecated + com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder(int index); /** + * + * *
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -517,6 +655,8 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -529,15 +669,13 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat
    *
    * map<string, string> user_labels = 20;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -550,9 +688,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 20;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -566,11 +705,13 @@ boolean containsUserLabels(
    * map<string, string> user_labels = 20;
    */
   /* nullable */
-java.lang.String getUserLabelsOrDefault(
+  java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * User-supplied key/value data to be used for organizing and
    * identifying the `UptimeCheckConfig` objects.
@@ -583,8 +724,7 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 20;
    */
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   com.google.monitoring.v3.UptimeCheckConfig.ResourceCase getResourceCase();
 
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
similarity index 72%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
index 8311ed067bae..c333e56506b7 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/uptime.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * Contains the region, location, and list of IP
  * addresses where checkers in the location run from.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.monitoring.v3.UptimeCheckIp}
  */
-public final class UptimeCheckIp extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UptimeCheckIp extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckIp)
     UptimeCheckIpOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UptimeCheckIp.newBuilder() to construct.
   private UptimeCheckIp(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UptimeCheckIp() {
     region_ = 0;
     location_ = "";
@@ -28,54 +46,67 @@ private UptimeCheckIp() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UptimeCheckIp();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
+    return com.google.monitoring.v3.UptimeProto
+        .internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.UptimeCheckIp.class, com.google.monitoring.v3.UptimeCheckIp.Builder.class);
+            com.google.monitoring.v3.UptimeCheckIp.class,
+            com.google.monitoring.v3.UptimeCheckIp.Builder.class);
   }
 
   public static final int REGION_FIELD_NUMBER = 1;
   private int region_ = 0;
   /**
+   *
+   *
    * 
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The enum numeric value on the wire for region. */ - @java.lang.Override public int getRegionValue() { + @java.lang.Override + public int getRegionValue() { return region_; } /** + * + * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The region. */ - @java.lang.Override public com.google.monitoring.v3.UptimeCheckRegion getRegion() { - com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); + @java.lang.Override + public com.google.monitoring.v3.UptimeCheckRegion getRegion() { + com.google.monitoring.v3.UptimeCheckRegion result = + com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; } public static final int LOCATION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** + * + * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -83,6 +114,7 @@ protected java.lang.Object newInstance(
    * 
* * string location = 2; + * * @return The location. */ @java.lang.Override @@ -91,14 +123,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -106,16 +139,15 @@ public java.lang.String getLocation() {
    * 
* * string location = 2; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -124,9 +156,12 @@ public java.lang.String getLocation() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -136,6 +171,7 @@ public java.lang.String getLocation() {
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -144,14 +180,15 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -161,16 +198,15 @@ public java.lang.String getIpAddress() {
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -179,6 +215,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) { output.writeEnum(1, region_); } @@ -211,8 +247,7 @@ public int getSerializedSize() { size = 0; if (region_ != com.google.monitoring.v3.UptimeCheckRegion.REGION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, region_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, region_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); @@ -228,7 +263,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.UptimeCheckIp)) { return super.equals(obj); @@ -236,10 +271,8 @@ public boolean equals(final java.lang.Object obj) { com.google.monitoring.v3.UptimeCheckIp other = (com.google.monitoring.v3.UptimeCheckIp) obj; if (region_ != other.region_) return false; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,99 +295,104 @@ public int hashCode() { return hash; } - public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - java.nio.ByteBuffer data) + public static com.google.monitoring.v3.UptimeCheckIp parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.monitoring.v3.UptimeCheckIp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.UptimeCheckIp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.UptimeCheckIp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.monitoring.v3.UptimeCheckIp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains the region, location, and list of IP
    * addresses where checkers in the location run from.
@@ -362,33 +400,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.UptimeCheckIp}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckIp)
       com.google.monitoring.v3.UptimeCheckIpOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.UptimeCheckIp.class, com.google.monitoring.v3.UptimeCheckIp.Builder.class);
+              com.google.monitoring.v3.UptimeCheckIp.class,
+              com.google.monitoring.v3.UptimeCheckIp.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.UptimeCheckIp.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,9 +437,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.UptimeProto
+          .internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
     }
 
     @java.lang.Override
@@ -421,8 +458,11 @@ public com.google.monitoring.v3.UptimeCheckIp build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.UptimeCheckIp buildPartial() {
-      com.google.monitoring.v3.UptimeCheckIp result = new com.google.monitoring.v3.UptimeCheckIp(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.UptimeCheckIp result =
+          new com.google.monitoring.v3.UptimeCheckIp(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -444,38 +484,39 @@ private void buildPartial0(com.google.monitoring.v3.UptimeCheckIp result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.UptimeCheckIp) {
-        return mergeFrom((com.google.monitoring.v3.UptimeCheckIp)other);
+        return mergeFrom((com.google.monitoring.v3.UptimeCheckIp) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -523,27 +564,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              region_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              location_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                region_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                location_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -553,26 +598,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int region_ = 0;
     /**
+     *
+     *
      * 
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The enum numeric value on the wire for region. */ - @java.lang.Override public int getRegionValue() { + @java.lang.Override + public int getRegionValue() { return region_; } /** + * + * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @param value The enum numeric value on the wire for region to set. * @return This builder for chaining. */ @@ -583,24 +636,31 @@ public Builder setRegionValue(int value) { return this; } /** + * + * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The region. */ @java.lang.Override public com.google.monitoring.v3.UptimeCheckRegion getRegion() { - com.google.monitoring.v3.UptimeCheckRegion result = com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); + com.google.monitoring.v3.UptimeCheckRegion result = + com.google.monitoring.v3.UptimeCheckRegion.forNumber(region_); return result == null ? com.google.monitoring.v3.UptimeCheckRegion.UNRECOGNIZED : result; } /** + * + * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @param value The region to set. * @return This builder for chaining. */ @@ -614,11 +674,14 @@ public Builder setRegion(com.google.monitoring.v3.UptimeCheckRegion value) { return this; } /** + * + * *
      * A broad region category in which the IP address is located.
      * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return This builder for chaining. */ public Builder clearRegion() { @@ -630,6 +693,8 @@ public Builder clearRegion() { private java.lang.Object location_ = ""; /** + * + * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -637,13 +702,13 @@ public Builder clearRegion() {
      * 
* * string location = 2; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -652,6 +717,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -659,15 +726,14 @@ public java.lang.String getLocation() {
      * 
* * string location = 2; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -675,6 +741,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -682,18 +750,22 @@ public java.lang.String getLocation() {
      * 
* * string location = 2; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -701,6 +773,7 @@ public Builder setLocation(
      * 
* * string location = 2; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -710,6 +783,8 @@ public Builder clearLocation() { return this; } /** + * + * *
      * A more specific location within the region that typically encodes
      * a particular city/town/metro (and its containing state/province or country)
@@ -717,12 +792,14 @@ public Builder clearLocation() {
      * 
* * string location = 2; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000002; @@ -732,6 +809,8 @@ public Builder setLocationBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -741,13 +820,13 @@ public Builder setLocationBytes(
      * 
* * string ip_address = 3; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -756,6 +835,8 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -765,15 +846,14 @@ public java.lang.String getIpAddress() {
      * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -781,6 +861,8 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -790,18 +872,22 @@ public java.lang.String getIpAddress() {
      * 
* * string ip_address = 3; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -811,6 +897,7 @@ public Builder setIpAddress(
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -820,6 +907,8 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address from which the Uptime check originates. This is a fully
      * specified IP address (not an IP address range). Most IP addresses, as of
@@ -829,21 +918,23 @@ public Builder clearIpAddress() {
      * 
* * string ip_address = 3; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.UptimeCheckIp) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) private static final com.google.monitoring.v3.UptimeCheckIp DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckIp(); } @@ -867,27 +958,27 @@ public static com.google.monitoring.v3.UptimeCheckIp getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UptimeCheckIp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UptimeCheckIp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,6 +993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.monitoring.v3.UptimeCheckIp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java similarity index 74% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java index 010c4bff20b6..0f16a36eda6e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIpOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; -public interface UptimeCheckIpOrBuilder extends +public interface UptimeCheckIpOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckIp) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The enum numeric value on the wire for region. */ int getRegionValue(); /** + * + * *
    * A broad region category in which the IP address is located.
    * 
* * .google.monitoring.v3.UptimeCheckRegion region = 1; + * * @return The region. */ com.google.monitoring.v3.UptimeCheckRegion getRegion(); /** + * + * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -34,10 +58,13 @@ public interface UptimeCheckIpOrBuilder extends
    * 
* * string location = 2; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
    * A more specific location within the region that typically encodes
    * a particular city/town/metro (and its containing state/province or country)
@@ -45,12 +72,14 @@ public interface UptimeCheckIpOrBuilder extends
    * 
* * string location = 2; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -60,10 +89,13 @@ public interface UptimeCheckIpOrBuilder extends
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address from which the Uptime check originates. This is a fully
    * specified IP address (not an IP address range). Most IP addresses, as of
@@ -73,8 +105,8 @@ public interface UptimeCheckIpOrBuilder extends
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java similarity index 75% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java index 6b4435da60f3..ef7e11a00970 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckRegion.java @@ -1,18 +1,36 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/uptime.proto package com.google.monitoring.v3; /** + * + * *
  * The regions from which an Uptime check can be run.
  * 
* * Protobuf enum {@code google.monitoring.v3.UptimeCheckRegion} */ -public enum UptimeCheckRegion - implements com.google.protobuf.ProtocolMessageEnum { +public enum UptimeCheckRegion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Default value if no region is specified. Will result in Uptime checks
    * running from all regions.
@@ -22,6 +40,8 @@ public enum UptimeCheckRegion
    */
   REGION_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the United States of America.
    * 
@@ -30,6 +50,8 @@ public enum UptimeCheckRegion */ USA(1), /** + * + * *
    * Allows checks to run from locations within the continent of Europe.
    * 
@@ -38,6 +60,8 @@ public enum UptimeCheckRegion */ EUROPE(2), /** + * + * *
    * Allows checks to run from locations within the continent of South
    * America.
@@ -47,6 +71,8 @@ public enum UptimeCheckRegion
    */
   SOUTH_AMERICA(3),
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the Asia Pacific area (ex:
    * Singapore).
@@ -56,6 +82,8 @@ public enum UptimeCheckRegion
    */
   ASIA_PACIFIC(4),
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the western United States of
    * America
@@ -65,6 +93,8 @@ public enum UptimeCheckRegion
    */
   USA_OREGON(5),
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the central United States of
    * America
@@ -74,6 +104,8 @@ public enum UptimeCheckRegion
    */
   USA_IOWA(6),
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the eastern United States of
    * America
@@ -86,6 +118,8 @@ public enum UptimeCheckRegion
   ;
 
   /**
+   *
+   *
    * 
    * Default value if no region is specified. Will result in Uptime checks
    * running from all regions.
@@ -95,6 +129,8 @@ public enum UptimeCheckRegion
    */
   public static final int REGION_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the United States of America.
    * 
@@ -103,6 +139,8 @@ public enum UptimeCheckRegion */ public static final int USA_VALUE = 1; /** + * + * *
    * Allows checks to run from locations within the continent of Europe.
    * 
@@ -111,6 +149,8 @@ public enum UptimeCheckRegion */ public static final int EUROPE_VALUE = 2; /** + * + * *
    * Allows checks to run from locations within the continent of South
    * America.
@@ -120,6 +160,8 @@ public enum UptimeCheckRegion
    */
   public static final int SOUTH_AMERICA_VALUE = 3;
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the Asia Pacific area (ex:
    * Singapore).
@@ -129,6 +171,8 @@ public enum UptimeCheckRegion
    */
   public static final int ASIA_PACIFIC_VALUE = 4;
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the western United States of
    * America
@@ -138,6 +182,8 @@ public enum UptimeCheckRegion
    */
   public static final int USA_OREGON_VALUE = 5;
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the central United States of
    * America
@@ -147,6 +193,8 @@ public enum UptimeCheckRegion
    */
   public static final int USA_IOWA_VALUE = 6;
   /**
+   *
+   *
    * 
    * Allows checks to run from locations within the eastern United States of
    * America
@@ -156,7 +204,6 @@ public enum UptimeCheckRegion
    */
   public static final int USA_VIRGINIA_VALUE = 7;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -181,44 +228,52 @@ public static UptimeCheckRegion valueOf(int value) {
    */
   public static UptimeCheckRegion forNumber(int value) {
     switch (value) {
-      case 0: return REGION_UNSPECIFIED;
-      case 1: return USA;
-      case 2: return EUROPE;
-      case 3: return SOUTH_AMERICA;
-      case 4: return ASIA_PACIFIC;
-      case 5: return USA_OREGON;
-      case 6: return USA_IOWA;
-      case 7: return USA_VIRGINIA;
-      default: return null;
+      case 0:
+        return REGION_UNSPECIFIED;
+      case 1:
+        return USA;
+      case 2:
+        return EUROPE;
+      case 3:
+        return SOUTH_AMERICA;
+      case 4:
+        return ASIA_PACIFIC;
+      case 5:
+        return USA_OREGON;
+      case 6:
+        return USA_IOWA;
+      case 7:
+        return USA_VIRGINIA;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      UptimeCheckRegion> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public UptimeCheckRegion findValueByNumber(int number) {
-            return UptimeCheckRegion.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap
+      internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public UptimeCheckRegion findValueByNumber(int number) {
+              return UptimeCheckRegion.forNumber(number);
+            }
+          };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.monitoring.v3.UptimeProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -227,8 +282,7 @@ public UptimeCheckRegion findValueByNumber(int number) {
   public static UptimeCheckRegion valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -244,4 +298,3 @@ private UptimeCheckRegion(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.monitoring.v3.UptimeCheckRegion)
 }
-
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
new file mode 100644
index 000000000000..3a3311b67631
--- /dev/null
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java
@@ -0,0 +1,364 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/uptime.proto
+
+package com.google.monitoring.v3;
+
+public final class UptimeProto {
+  private UptimeProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_InternalChecker_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UptimeCheckIp_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/monitoring/v3/uptime.proto\022\024goo"
+          + "gle.monitoring.v3\032\037google/api/field_beha"
+          + "vior.proto\032#google/api/monitored_resourc"
+          + "e.proto\032\031google/api/resource.proto\032\036goog"
+          + "le/protobuf/duration.proto\"\346\001\n\017InternalC"
+          + "hecker\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001"
+          + "(\t\022\017\n\007network\030\003 \001(\t\022\020\n\010gcp_zone\030\004 \001(\t\022\027\n"
+          + "\017peer_project_id\030\006 \001(\t\022:\n\005state\030\007 \001(\0162+."
+          + "google.monitoring.v3.InternalChecker.Sta"
+          + "te\"3\n\005State\022\017\n\013UNSPECIFIED\020\000\022\014\n\010CREATING"
+          + "\020\001\022\013\n\007RUNNING\020\002:\002\030\001\"\202\033\n\021UptimeCheckConfi"
+          + "g\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022;\n"
+          + "\022monitored_resource\030\003 \001(\0132\035.google.api.M"
+          + "onitoredResourceH\000\022O\n\016resource_group\030\004 \001"
+          + "(\01325.google.monitoring.v3.UptimeCheckCon"
+          + "fig.ResourceGroupH\000\022G\n\nhttp_check\030\005 \001(\0132"
+          + "1.google.monitoring.v3.UptimeCheckConfig"
+          + ".HttpCheckH\001\022E\n\ttcp_check\030\006 \001(\01320.google"
+          + ".monitoring.v3.UptimeCheckConfig.TcpChec"
+          + "kH\001\022)\n\006period\030\007 \001(\0132\031.google.protobuf.Du"
+          + "ration\022*\n\007timeout\030\010 \001(\0132\031.google.protobu"
+          + "f.Duration\022P\n\020content_matchers\030\t \003(\01326.g"
+          + "oogle.monitoring.v3.UptimeCheckConfig.Co"
+          + "ntentMatcher\022I\n\014checker_type\030\021 \001(\01623.goo"
+          + "gle.monitoring.v3.UptimeCheckConfig.Chec"
+          + "kerType\022A\n\020selected_regions\030\n \003(\0162\'.goog"
+          + "le.monitoring.v3.UptimeCheckRegion\022\027\n\013is"
+          + "_internal\030\017 \001(\010B\002\030\001\022D\n\021internal_checkers"
+          + "\030\016 \003(\0132%.google.monitoring.v3.InternalCh"
+          + "eckerB\002\030\001\022L\n\013user_labels\030\024 \003(\01327.google."
+          + "monitoring.v3.UptimeCheckConfig.UserLabe"
+          + "lsEntry\032a\n\rResourceGroup\022\020\n\010group_id\030\001 \001"
+          + "(\t\022>\n\rresource_type\030\002 \001(\0162\'.google.monit"
+          + "oring.v3.GroupResourceType\032!\n\nPingConfig"
+          + "\022\023\n\013pings_count\030\001 \001(\005\032\356\t\n\tHttpCheck\022W\n\016r"
+          + "equest_method\030\010 \001(\0162?.google.monitoring."
+          + "v3.UptimeCheckConfig.HttpCheck.RequestMe"
+          + "thod\022\017\n\007use_ssl\030\001 \001(\010\022\014\n\004path\030\002 \001(\t\022\014\n\004p"
+          + "ort\030\003 \001(\005\022X\n\tauth_info\030\004 \001(\0132E.google.mo"
+          + "nitoring.v3.UptimeCheckConfig.HttpCheck."
+          + "BasicAuthentication\022\024\n\014mask_headers\030\005 \001("
+          + "\010\022O\n\007headers\030\006 \003(\0132>.google.monitoring.v"
+          + "3.UptimeCheckConfig.HttpCheck.HeadersEnt"
+          + "ry\022S\n\014content_type\030\t \001(\0162=.google.monito"
+          + "ring.v3.UptimeCheckConfig.HttpCheck.Cont"
+          + "entType\022\033\n\023custom_content_type\030\r \001(\t\022\024\n\014"
+          + "validate_ssl\030\007 \001(\010\022\014\n\004body\030\n \001(\014\022l\n\036acce"
+          + "pted_response_status_codes\030\013 \003(\0132D.googl"
+          + "e.monitoring.v3.UptimeCheckConfig.HttpCh"
+          + "eck.ResponseStatusCode\022G\n\013ping_config\030\014 "
+          + "\001(\01322.google.monitoring.v3.UptimeCheckCo"
+          + "nfig.PingConfig\0329\n\023BasicAuthentication\022\020"
+          + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\032\334\002\n\022R"
+          + "esponseStatusCode\022\026\n\014status_value\030\001 \001(\005H"
+          + "\000\022h\n\014status_class\030\002 \001(\0162P.google.monitor"
+          + "ing.v3.UptimeCheckConfig.HttpCheck.Respo"
+          + "nseStatusCode.StatusClassH\000\"\264\001\n\013StatusCl"
+          + "ass\022\034\n\030STATUS_CLASS_UNSPECIFIED\020\000\022\024\n\020STA"
+          + "TUS_CLASS_1XX\020d\022\025\n\020STATUS_CLASS_2XX\020\310\001\022\025"
+          + "\n\020STATUS_CLASS_3XX\020\254\002\022\025\n\020STATUS_CLASS_4X"
+          + "X\020\220\003\022\025\n\020STATUS_CLASS_5XX\020\364\003\022\025\n\020STATUS_CL"
+          + "ASS_ANY\020\350\007B\r\n\013status_code\032.\n\014HeadersEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rReq"
+          + "uestMethod\022\026\n\022METHOD_UNSPECIFIED\020\000\022\007\n\003GE"
+          + "T\020\001\022\010\n\004POST\020\002\"G\n\013ContentType\022\024\n\020TYPE_UNS"
+          + "PECIFIED\020\000\022\017\n\013URL_ENCODED\020\001\022\021\n\rUSER_PROV"
+          + "IDED\020\002\032a\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\022G\n\013ping"
+          + "_config\030\002 \001(\01322.google.monitoring.v3.Upt"
+          + "imeCheckConfig.PingConfig\032\312\005\n\016ContentMat"
+          + "cher\022\017\n\007content\030\001 \001(\t\022\\\n\007matcher\030\002 \001(\0162K"
+          + ".google.monitoring.v3.UptimeCheckConfig."
+          + "ContentMatcher.ContentMatcherOption\022c\n\021j"
+          + "son_path_matcher\030\003 \001(\0132F.google.monitori"
+          + "ng.v3.UptimeCheckConfig.ContentMatcher.J"
+          + "sonPathMatcherH\000\032\375\001\n\017JsonPathMatcher\022\021\n\t"
+          + "json_path\030\001 \001(\t\022r\n\014json_matcher\030\002 \001(\0162\\."
+          + "google.monitoring.v3.UptimeCheckConfig.C"
+          + "ontentMatcher.JsonPathMatcher.JsonPathMa"
+          + "tcherOption\"c\n\025JsonPathMatcherOption\022(\n$"
+          + "JSON_PATH_MATCHER_OPTION_UNSPECIFIED\020\000\022\017"
+          + "\n\013EXACT_MATCH\020\001\022\017\n\013REGEX_MATCH\020\002\"\310\001\n\024Con"
+          + "tentMatcherOption\022&\n\"CONTENT_MATCHER_OPT"
+          + "ION_UNSPECIFIED\020\000\022\023\n\017CONTAINS_STRING\020\001\022\027"
+          + "\n\023NOT_CONTAINS_STRING\020\002\022\021\n\rMATCHES_REGEX"
+          + "\020\003\022\025\n\021NOT_MATCHES_REGEX\020\004\022\025\n\021MATCHES_JSO"
+          + "N_PATH\020\005\022\031\n\025NOT_MATCHES_JSON_PATH\020\006B\031\n\027a"
+          + "dditional_matcher_info\0321\n\017UserLabelsEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\013Che"
+          + "ckerType\022\034\n\030CHECKER_TYPE_UNSPECIFIED\020\000\022\026"
+          + "\n\022STATIC_IP_CHECKERS\020\001\022\020\n\014VPC_CHECKERS\020\003"
+          + ":\363\001\352A\357\001\n+monitoring.googleapis.com/Uptim"
+          + "eCheckConfig\022;projects/{project}/uptimeC"
+          + "heckConfigs/{uptime_check_config}\022Eorgan"
+          + "izations/{organization}/uptimeCheckConfi"
+          + "gs/{uptime_check_config}\0229folders/{folde"
+          + "r}/uptimeCheckConfigs/{uptime_check_conf"
+          + "ig}\022\001*B\n\n\010resourceB\024\n\022check_request_type"
+          + "\"n\n\rUptimeCheckIp\0227\n\006region\030\001 \001(\0162\'.goog"
+          + "le.monitoring.v3.UptimeCheckRegion\022\020\n\010lo"
+          + "cation\030\002 \001(\t\022\022\n\nip_address\030\003 \001(\t*\225\001\n\021Upt"
+          + "imeCheckRegion\022\026\n\022REGION_UNSPECIFIED\020\000\022\007"
+          + "\n\003USA\020\001\022\n\n\006EUROPE\020\002\022\021\n\rSOUTH_AMERICA\020\003\022\020"
+          + "\n\014ASIA_PACIFIC\020\004\022\016\n\nUSA_OREGON\020\005\022\014\n\010USA_"
+          + "IOWA\020\006\022\020\n\014USA_VIRGINIA\020\007*[\n\021GroupResourc"
+          + "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\014\n\010"
+          + "INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_BALANCER\020\002B\306\001"
+          + "\n\030com.google.monitoring.v3B\013UptimeProtoP"
+          + "\001ZAcloud.google.com/go/monitoring/apiv3/"
+          + "v2/monitoringpb;monitoringpb\252\002\032Google.Cl"
+          + "oud.Monitoring.V3\312\002\032Google\\Cloud\\Monitor"
+          + "ing\\V3\352\002\035Google::Cloud::Monitoring::V3b\006"
+          + "proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.MonitoredResourceProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+            });
+    internal_static_google_monitoring_v3_InternalChecker_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_InternalChecker_descriptor,
+            new java.lang.String[] {
+              "Name", "DisplayName", "Network", "GcpZone", "PeerProjectId", "State",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "MonitoredResource",
+              "ResourceGroup",
+              "HttpCheck",
+              "TcpCheck",
+              "Period",
+              "Timeout",
+              "ContentMatchers",
+              "CheckerType",
+              "SelectedRegions",
+              "IsInternal",
+              "InternalCheckers",
+              "UserLabels",
+              "Resource",
+              "CheckRequestType",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor,
+            new java.lang.String[] {
+              "GroupId", "ResourceType",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor,
+            new java.lang.String[] {
+              "PingsCount",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(2);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor,
+            new java.lang.String[] {
+              "RequestMethod",
+              "UseSsl",
+              "Path",
+              "Port",
+              "AuthInfo",
+              "MaskHeaders",
+              "Headers",
+              "ContentType",
+              "CustomContentType",
+              "ValidateSsl",
+              "Body",
+              "AcceptedResponseStatusCodes",
+              "PingConfig",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor,
+            new java.lang.String[] {
+              "Username", "Password",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor,
+            new java.lang.String[] {
+              "StatusValue", "StatusClass", "StatusCode",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(3);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor,
+            new java.lang.String[] {
+              "Port", "PingConfig",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(4);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor,
+            new java.lang.String[] {
+              "Content", "Matcher", "JsonPathMatcher", "AdditionalMatcherInfo",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor,
+            new java.lang.String[] {
+              "JsonPath", "JsonMatcher",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor =
+        internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(5);
+    internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_monitoring_v3_UptimeCheckIp_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UptimeCheckIp_descriptor,
+            new java.lang.String[] {
+              "Region", "Location", "IpAddress",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.MonitoredResourceProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
new file mode 100644
index 000000000000..df32fc4f6eb7
--- /dev/null
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java
@@ -0,0 +1,240 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/monitoring/v3/uptime_service.proto
+
+package com.google.monitoring.v3;
+
+public final class UptimeServiceProto {
+  private UptimeServiceProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)google/monitoring/v3/uptime_service.pr"
+          + "oto\022\024google.monitoring.v3\032\034google/api/an"
+          + "notations.proto\032\027google/api/client.proto"
+          + "\032\037google/api/field_behavior.proto\032\031googl"
+          + "e/api/resource.proto\032!google/monitoring/"
+          + "v3/uptime.proto\032\033google/protobuf/empty.p"
+          + "roto\032 google/protobuf/field_mask.proto\"\234"
+          + "\001\n\035ListUptimeCheckConfigsRequest\022D\n\006pare"
+          + "nt\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring.googleapis"
+          + ".com/UptimeCheckConfig\022\016\n\006filter\030\002 \001(\t\022\021"
+          + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\224\001"
+          + "\n\036ListUptimeCheckConfigsResponse\022E\n\024upti"
+          + "me_check_configs\030\001 \003(\0132\'.google.monitori"
+          + "ng.v3.UptimeCheckConfig\022\027\n\017next_page_tok"
+          + "en\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"a\n\033GetUptim"
+          + "eCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372"
+          + "A-\n+monitoring.googleapis.com/UptimeChec"
+          + "kConfig\"\262\001\n\036CreateUptimeCheckConfigReque"
+          + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring."
+          + "googleapis.com/UptimeCheckConfig\022J\n\023upti"
+          + "me_check_config\030\002 \001(\0132\'.google.monitorin"
+          + "g.v3.UptimeCheckConfigB\004\342A\001\002\"\235\001\n\036UpdateU"
+          + "ptimeCheckConfigRequest\022/\n\013update_mask\030\002"
+          + " \001(\0132\032.google.protobuf.FieldMask\022J\n\023upti"
+          + "me_check_config\030\003 \001(\0132\'.google.monitorin"
+          + "g.v3.UptimeCheckConfigB\004\342A\001\002\"d\n\036DeleteUp"
+          + "timeCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A"
+          + "\001\002\372A-\n+monitoring.googleapis.com/UptimeC"
+          + "heckConfig\"B\n\031ListUptimeCheckIpsRequest\022"
+          + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t"
+          + "\n\032ListUptimeCheckIpsResponse\022=\n\020uptime_c"
+          + "heck_ips\030\001 \003(\0132#.google.monitoring.v3.Up"
+          + "timeCheckIp\022\027\n\017next_page_token\030\002 \001(\t2\275\n\n"
+          + "\022UptimeCheckService\022\300\001\n\026ListUptimeCheckC"
+          + "onfigs\0223.google.monitoring.v3.ListUptime"
+          + "CheckConfigsRequest\0324.google.monitoring."
+          + "v3.ListUptimeCheckConfigsResponse\";\332A\006pa"
+          + "rent\202\323\344\223\002,\022*/v3/{parent=projects/*}/upti"
+          + "meCheckConfigs\022\255\001\n\024GetUptimeCheckConfig\022"
+          + "1.google.monitoring.v3.GetUptimeCheckCon"
+          + "figRequest\032\'.google.monitoring.v3.Uptime"
+          + "CheckConfig\"9\332A\004name\202\323\344\223\002,\022*/v3/{name=pr"
+          + "ojects/*/uptimeCheckConfigs/*}\022\336\001\n\027Creat"
+          + "eUptimeCheckConfig\0224.google.monitoring.v"
+          + "3.CreateUptimeCheckConfigRequest\032\'.googl"
+          + "e.monitoring.v3.UptimeCheckConfig\"d\332A\032pa"
+          + "rent,uptime_check_config\202\323\344\223\002A\"*/v3/{par"
+          + "ent=projects/*}/uptimeCheckConfigs:\023upti"
+          + "me_check_config\022\353\001\n\027UpdateUptimeCheckCon"
+          + "fig\0224.google.monitoring.v3.UpdateUptimeC"
+          + "heckConfigRequest\032\'.google.monitoring.v3"
+          + ".UptimeCheckConfig\"q\332A\023uptime_check_conf"
+          + "ig\202\323\344\223\002U2>/v3/{uptime_check_config.name="
+          + "projects/*/uptimeCheckConfigs/*}:\023uptime"
+          + "_check_config\022\242\001\n\027DeleteUptimeCheckConfi"
+          + "g\0224.google.monitoring.v3.DeleteUptimeChe"
+          + "ckConfigRequest\032\026.google.protobuf.Empty\""
+          + "9\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/upt"
+          + "imeCheckConfigs/*}\022\223\001\n\022ListUptimeCheckIp"
+          + "s\022/.google.monitoring.v3.ListUptimeCheck"
+          + "IpsRequest\0320.google.monitoring.v3.ListUp"
+          + "timeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3/uptime"
+          + "CheckIps\032\251\001\312A\031monitoring.googleapis.com\322"
+          + "A\211\001https://www.googleapis.com/auth/cloud"
+          + "-platform,https://www.googleapis.com/aut"
+          + "h/monitoring,https://www.googleapis.com/"
+          + "auth/monitoring.readB\315\001\n\030com.google.moni"
+          + "toring.v3B\022UptimeServiceProtoP\001ZAcloud.g"
+          + "oogle.com/go/monitoring/apiv3/v2/monitor"
+          + "ingpb;monitoringpb\252\002\032Google.Cloud.Monito"
+          + "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035G"
+          + "oogle::Cloud::Monitoring::V3b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.monitoring.v3.UptimeProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+            });
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor,
+            new java.lang.String[] {
+              "UptimeCheckConfigs", "NextPageToken", "TotalSize",
+            });
+    internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "UptimeCheckConfig",
+            });
+    internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor,
+            new java.lang.String[] {
+              "UpdateMask", "UptimeCheckConfig",
+            });
+    internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor,
+            new java.lang.String[] {
+              "PageSize", "PageToken",
+            });
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor,
+            new java.lang.String[] {
+              "UptimeCheckIps", "NextPageToken",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.monitoring.v3.UptimeProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
similarity index 67%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
index 62370ecdf9e7..b671117f68a4 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java
@@ -1,24 +1,43 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/notification_service.proto
 
 package com.google.monitoring.v3;
 
 /**
+ *
+ *
  * 
  * The `VerifyNotificationChannel` request.
  * 
* * Protobuf type {@code google.monitoring.v3.VerifyNotificationChannelRequest} */ -public final class VerifyNotificationChannelRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VerifyNotificationChannelRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.monitoring.v3.VerifyNotificationChannelRequest) VerifyNotificationChannelRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyNotificationChannelRequest.newBuilder() to construct. - private VerifyNotificationChannelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private VerifyNotificationChannelRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VerifyNotificationChannelRequest() { name_ = ""; code_ = ""; @@ -26,33 +45,40 @@ private VerifyNotificationChannelRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyNotificationChannelRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.VerifyNotificationChannelRequest.class, com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.VerifyNotificationChannelRequest.class, + com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The notification channel to verify.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The notification channel to verify.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,9 +120,12 @@ public java.lang.String getName() { } public static final int CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -106,6 +137,7 @@ public java.lang.String getName() {
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The code. */ @java.lang.Override @@ -114,14 +146,15 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -133,16 +166,15 @@ public java.lang.String getCode() {
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -151,6 +183,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -193,17 +225,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.VerifyNotificationChannelRequest)) { return super.equals(obj); } - com.google.monitoring.v3.VerifyNotificationChannelRequest other = (com.google.monitoring.v3.VerifyNotificationChannelRequest) obj; + com.google.monitoring.v3.VerifyNotificationChannelRequest other = + (com.google.monitoring.v3.VerifyNotificationChannelRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCode().equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,131 +256,136 @@ public int hashCode() { } public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.VerifyNotificationChannelRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.VerifyNotificationChannelRequest prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.VerifyNotificationChannelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The `VerifyNotificationChannel` request.
    * 
* * Protobuf type {@code google.monitoring.v3.VerifyNotificationChannelRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.monitoring.v3.VerifyNotificationChannelRequest) com.google.monitoring.v3.VerifyNotificationChannelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.VerifyNotificationChannelRequest.class, com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); + com.google.monitoring.v3.VerifyNotificationChannelRequest.class, + com.google.monitoring.v3.VerifyNotificationChannelRequest.Builder.class); } // Construct using com.google.monitoring.v3.VerifyNotificationChannelRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.NotificationServiceProto.internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.NotificationServiceProto + .internal_static_google_monitoring_v3_VerifyNotificationChannelRequest_descriptor; } @java.lang.Override @@ -381,8 +417,11 @@ public com.google.monitoring.v3.VerifyNotificationChannelRequest build() { @java.lang.Override public com.google.monitoring.v3.VerifyNotificationChannelRequest buildPartial() { - com.google.monitoring.v3.VerifyNotificationChannelRequest result = new com.google.monitoring.v3.VerifyNotificationChannelRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.monitoring.v3.VerifyNotificationChannelRequest result = + new com.google.monitoring.v3.VerifyNotificationChannelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -401,38 +440,39 @@ private void buildPartial0(com.google.monitoring.v3.VerifyNotificationChannelReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.VerifyNotificationChannelRequest) { - return mergeFrom((com.google.monitoring.v3.VerifyNotificationChannelRequest)other); + return mergeFrom((com.google.monitoring.v3.VerifyNotificationChannelRequest) other); } else { super.mergeFrom(other); return this; @@ -440,7 +480,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.monitoring.v3.VerifyNotificationChannelRequest other) { - if (other == com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance()) return this; + if (other == com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -477,22 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,22 +546,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The notification channel to verify.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -526,20 +575,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel to verify.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -547,28 +599,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The notification channel to verify.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The notification channel to verify.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -578,17 +641,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The notification channel to verify.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -598,6 +667,8 @@ public Builder setNameBytes( private java.lang.Object code_ = ""; /** + * + * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -609,13 +680,13 @@ public Builder setNameBytes(
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -624,6 +695,8 @@ public java.lang.String getCode() { } } /** + * + * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -635,15 +708,14 @@ public java.lang.String getCode() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -651,6 +723,8 @@ public java.lang.String getCode() { } } /** + * + * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -662,18 +736,22 @@ public java.lang.String getCode() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -685,6 +763,7 @@ public Builder setCode(
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -694,6 +773,8 @@ public Builder clearCode() { return this; } /** + * + * *
      * Required. The verification code that was delivered to the channel as
      * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -705,21 +786,23 @@ public Builder clearCode() {
      * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.VerifyNotificationChannelRequest) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) private static final com.google.monitoring.v3.VerifyNotificationChannelRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.VerifyNotificationChannelRequest(); } @@ -743,27 +826,27 @@ public static com.google.monitoring.v3.VerifyNotificationChannelRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyNotificationChannelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyNotificationChannelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -778,6 +861,4 @@ public com.google.protobuf.Parser getParserFor public com.google.monitoring.v3.VerifyNotificationChannelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java index d0fff2179aa4..1424978b584e 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/notification_service.proto package com.google.monitoring.v3; -public interface VerifyNotificationChannelRequestOrBuilder extends +public interface VerifyNotificationChannelRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.VerifyNotificationChannelRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The notification channel to verify.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The notification channel to verify.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -39,10 +66,13 @@ public interface VerifyNotificationChannelRequestOrBuilder extends
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * Required. The verification code that was delivered to the channel as
    * a result of invoking the `SendNotificationChannelVerificationCode` API
@@ -54,8 +84,8 @@ public interface VerifyNotificationChannelRequestOrBuilder extends
    * 
* * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java similarity index 71% rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java index dc897eadac8b..fdef7ad6f108 100644 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/monitoring/v3/service.proto package com.google.monitoring.v3; /** + * + * *
  * A `WindowsBasedSli` defines `good_service` as the count of time windows for
  * which the provided service was of good quality. Criteria for determining
@@ -12,61 +29,71 @@
  *
  * Protobuf type {@code google.monitoring.v3.WindowsBasedSli}
  */
-public final class WindowsBasedSli extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WindowsBasedSli extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli)
     WindowsBasedSliOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WindowsBasedSli.newBuilder() to construct.
   private WindowsBasedSli(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private WindowsBasedSli() {
-  }
+
+  private WindowsBasedSli() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WindowsBasedSli();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
+    return com.google.monitoring.v3.ServiceMonitoringProto
+        .internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.monitoring.v3.WindowsBasedSli.class, com.google.monitoring.v3.WindowsBasedSli.Builder.class);
+            com.google.monitoring.v3.WindowsBasedSli.class,
+            com.google.monitoring.v3.WindowsBasedSli.Builder.class);
   }
 
-  public interface PerformanceThresholdOrBuilder extends
+  public interface PerformanceThresholdOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return Whether the performance field is set. */ boolean hasPerformance(); /** + * + * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return The performance. */ com.google.monitoring.v3.RequestBasedSli getPerformance(); /** + * + * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
@@ -76,24 +103,32 @@ public interface PerformanceThresholdOrBuilder extends com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder(); /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return Whether the basicSliPerformance field is set. */ boolean hasBasicSliPerformance(); /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return The basicSliPerformance. */ com.google.monitoring.v3.BasicSli getBasicSliPerformance(); /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
@@ -103,11 +138,14 @@ public interface PerformanceThresholdOrBuilder extends com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilder(); /** + * + * *
      * If window `performance >= threshold`, the window is counted as good.
      * 
* * double threshold = 2; + * * @return The threshold. */ double getThreshold(); @@ -115,6 +153,8 @@ public interface PerformanceThresholdOrBuilder extends com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.TypeCase getTypeCase(); } /** + * + * *
    * A `PerformanceThreshold` is used when each window is good when that window
    * has a sufficiently high `performance`.
@@ -122,48 +162,53 @@ public interface PerformanceThresholdOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.PerformanceThreshold}
    */
-  public static final class PerformanceThreshold extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PerformanceThreshold extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
       PerformanceThresholdOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PerformanceThreshold.newBuilder() to construct.
     private PerformanceThreshold(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private PerformanceThreshold() {
-    }
+
+    private PerformanceThreshold() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PerformanceThreshold();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class,
+              com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
     }
 
     private int typeCase_ = 0;
+
     @SuppressWarnings("serial")
     private java.lang.Object type_;
+
     public enum TypeCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PERFORMANCE(1),
       BASIC_SLI_PERFORMANCE(3),
       TYPE_NOT_SET(0);
       private final int value;
+
       private TypeCase(int value) {
         this.value = value;
       }
@@ -179,30 +224,36 @@ public static TypeCase valueOf(int value) {
 
       public static TypeCase forNumber(int value) {
         switch (value) {
-          case 1: return PERFORMANCE;
-          case 3: return BASIC_SLI_PERFORMANCE;
-          case 0: return TYPE_NOT_SET;
-          default: return null;
+          case 1:
+            return PERFORMANCE;
+          case 3:
+            return BASIC_SLI_PERFORMANCE;
+          case 0:
+            return TYPE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public TypeCase
-    getTypeCase() {
-      return TypeCase.forNumber(
-          typeCase_);
+    public TypeCase getTypeCase() {
+      return TypeCase.forNumber(typeCase_);
     }
 
     public static final int PERFORMANCE_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return Whether the performance field is set. */ @java.lang.Override @@ -210,21 +261,26 @@ public boolean hasPerformance() { return typeCase_ == 1; } /** + * + * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return The performance. */ @java.lang.Override public com.google.monitoring.v3.RequestBasedSli getPerformance() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } /** + * + * *
      * `RequestBasedSli` to evaluate to judge window quality.
      * 
@@ -234,18 +290,21 @@ public com.google.monitoring.v3.RequestBasedSli getPerformance() { @java.lang.Override public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder() { if (typeCase_ == 1) { - return (com.google.monitoring.v3.RequestBasedSli) type_; + return (com.google.monitoring.v3.RequestBasedSli) type_; } return com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } public static final int BASIC_SLI_PERFORMANCE_FIELD_NUMBER = 3; /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return Whether the basicSliPerformance field is set. */ @java.lang.Override @@ -253,21 +312,26 @@ public boolean hasBasicSliPerformance() { return typeCase_ == 3; } /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return The basicSliPerformance. */ @java.lang.Override public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { if (typeCase_ == 3) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } /** + * + * *
      * `BasicSli` to evaluate to judge window quality.
      * 
@@ -277,7 +341,7 @@ public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { @java.lang.Override public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilder() { if (typeCase_ == 3) { - return (com.google.monitoring.v3.BasicSli) type_; + return (com.google.monitoring.v3.BasicSli) type_; } return com.google.monitoring.v3.BasicSli.getDefaultInstance(); } @@ -285,11 +349,14 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde public static final int THRESHOLD_FIELD_NUMBER = 2; private double threshold_ = 0D; /** + * + * *
      * If window `performance >= threshold`, the window is counted as good.
      * 
* * double threshold = 2; + * * @return The threshold. */ @java.lang.Override @@ -298,6 +365,7 @@ public double getThreshold() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,8 +377,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.monitoring.v3.RequestBasedSli) type_); } @@ -330,16 +397,17 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.monitoring.v3.RequestBasedSli) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.monitoring.v3.RequestBasedSli) type_); } if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, threshold_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, threshold_); } if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.monitoring.v3.BasicSli) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.monitoring.v3.BasicSli) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -349,25 +417,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)) { return super.equals(obj); } - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other = (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) obj; + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other = + (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) obj; if (java.lang.Double.doubleToLongBits(getThreshold()) - != java.lang.Double.doubleToLongBits( - other.getThreshold())) return false; + != java.lang.Double.doubleToLongBits(other.getThreshold())) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (!getPerformance() - .equals(other.getPerformance())) return false; + if (!getPerformance().equals(other.getPerformance())) return false; break; case 3: - if (!getBasicSliPerformance() - .equals(other.getBasicSliPerformance())) return false; + if (!getBasicSliPerformance().equals(other.getBasicSliPerformance())) return false; break; case 0: default: @@ -384,8 +450,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getThreshold())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreshold())); switch (typeCase_) { case 1: hash = (37 * hash) + PERFORMANCE_FIELD_NUMBER; @@ -404,89 +472,94 @@ public int hashCode() { } public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold prototype) { + + public static Builder newBuilder( + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -496,6 +569,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A `PerformanceThreshold` is used when each window is good when that window
      * has a sufficiently high `performance`.
@@ -503,33 +578,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.PerformanceThreshold}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)
         com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
+                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.class,
+                com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -547,13 +622,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor;
       }
 
       @java.lang.Override
-      public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstanceForType() {
+      public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold
+          getDefaultInstanceForType() {
         return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance();
       }
 
@@ -568,29 +644,32 @@ public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold buildPartial() {
-        com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result = new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result =
+            new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
+      private void buildPartial0(
+          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.threshold_ = threshold_;
         }
       }
 
-      private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
+      private void buildPartialOneofs(
+          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold result) {
         result.typeCase_ = typeCase_;
         result.type_ = this.type_;
-        if (typeCase_ == 1 &&
-            performanceBuilder_ != null) {
+        if (typeCase_ == 1 && performanceBuilder_ != null) {
           result.type_ = performanceBuilder_.build();
         }
-        if (typeCase_ == 3 &&
-            basicSliPerformanceBuilder_ != null) {
+        if (typeCase_ == 3 && basicSliPerformanceBuilder_ != null) {
           result.type_ = basicSliPerformanceBuilder_.build();
         }
       }
@@ -599,61 +678,70 @@ private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli.Perform
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) {
-          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold)other);
+          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other) {
-        if (other == com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold other) {
+        if (other
+            == com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance())
+          return this;
         if (other.getThreshold() != 0D) {
           setThreshold(other.getThreshold());
         }
         switch (other.getTypeCase()) {
-          case PERFORMANCE: {
-            mergePerformance(other.getPerformance());
-            break;
-          }
-          case BASIC_SLI_PERFORMANCE: {
-            mergeBasicSliPerformance(other.getBasicSliPerformance());
-            break;
-          }
-          case TYPE_NOT_SET: {
-            break;
-          }
+          case PERFORMANCE:
+            {
+              mergePerformance(other.getPerformance());
+              break;
+            }
+          case BASIC_SLI_PERFORMANCE:
+            {
+              mergeBasicSliPerformance(other.getBasicSliPerformance());
+              break;
+            }
+          case TYPE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -681,31 +769,32 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getPerformanceFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                typeCase_ = 1;
-                break;
-              } // case 10
-              case 17: {
-                threshold_ = input.readDouble();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 17
-              case 26: {
-                input.readMessage(
-                    getBasicSliPerformanceFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                typeCase_ = 3;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(getPerformanceFieldBuilder().getBuilder(), extensionRegistry);
+                  typeCase_ = 1;
+                  break;
+                } // case 10
+              case 17:
+                {
+                  threshold_ = input.readDouble();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 17
+              case 26:
+                {
+                  input.readMessage(
+                      getBasicSliPerformanceFieldBuilder().getBuilder(), extensionRegistry);
+                  typeCase_ = 3;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -715,12 +804,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int typeCase_ = 0;
       private java.lang.Object type_;
-      public TypeCase
-          getTypeCase() {
-        return TypeCase.forNumber(
-            typeCase_);
+
+      public TypeCase getTypeCase() {
+        return TypeCase.forNumber(typeCase_);
       }
 
       public Builder clearType() {
@@ -733,13 +822,19 @@ public Builder clearType() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> performanceBuilder_;
+              com.google.monitoring.v3.RequestBasedSli,
+              com.google.monitoring.v3.RequestBasedSli.Builder,
+              com.google.monitoring.v3.RequestBasedSliOrBuilder>
+          performanceBuilder_;
       /**
+       *
+       *
        * 
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return Whether the performance field is set. */ @java.lang.Override @@ -747,11 +842,14 @@ public boolean hasPerformance() { return typeCase_ == 1; } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.RequestBasedSli performance = 1; + * * @return The performance. */ @java.lang.Override @@ -769,6 +867,8 @@ public com.google.monitoring.v3.RequestBasedSli getPerformance() { } } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -789,6 +889,8 @@ public Builder setPerformance(com.google.monitoring.v3.RequestBasedSli value) { return this; } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -807,6 +909,8 @@ public Builder setPerformance( return this; } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -815,10 +919,13 @@ public Builder setPerformance( */ public Builder mergePerformance(com.google.monitoring.v3.RequestBasedSli value) { if (performanceBuilder_ == null) { - if (typeCase_ == 1 && - type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { - type_ = com.google.monitoring.v3.RequestBasedSli.newBuilder((com.google.monitoring.v3.RequestBasedSli) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 1 + && type_ != com.google.monitoring.v3.RequestBasedSli.getDefaultInstance()) { + type_ = + com.google.monitoring.v3.RequestBasedSli.newBuilder( + (com.google.monitoring.v3.RequestBasedSli) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -834,6 +941,8 @@ public Builder mergePerformance(com.google.monitoring.v3.RequestBasedSli value) return this; } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -857,6 +966,8 @@ public Builder clearPerformance() { return this; } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -867,6 +978,8 @@ public com.google.monitoring.v3.RequestBasedSli.Builder getPerformanceBuilder() return getPerformanceFieldBuilder().getBuilder(); } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -885,6 +998,8 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder } } /** + * + * *
        * `RequestBasedSli` to evaluate to judge window quality.
        * 
@@ -892,14 +1007,19 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder * .google.monitoring.v3.RequestBasedSli performance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder> + com.google.monitoring.v3.RequestBasedSli, + com.google.monitoring.v3.RequestBasedSli.Builder, + com.google.monitoring.v3.RequestBasedSliOrBuilder> getPerformanceFieldBuilder() { if (performanceBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.monitoring.v3.RequestBasedSli.getDefaultInstance(); } - performanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.RequestBasedSli, com.google.monitoring.v3.RequestBasedSli.Builder, com.google.monitoring.v3.RequestBasedSliOrBuilder>( + performanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.RequestBasedSli, + com.google.monitoring.v3.RequestBasedSli.Builder, + com.google.monitoring.v3.RequestBasedSliOrBuilder>( (com.google.monitoring.v3.RequestBasedSli) type_, getParentForChildren(), isClean()); @@ -911,13 +1031,19 @@ public com.google.monitoring.v3.RequestBasedSliOrBuilder getPerformanceOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> basicSliPerformanceBuilder_; + com.google.monitoring.v3.BasicSli, + com.google.monitoring.v3.BasicSli.Builder, + com.google.monitoring.v3.BasicSliOrBuilder> + basicSliPerformanceBuilder_; /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return Whether the basicSliPerformance field is set. */ @java.lang.Override @@ -925,11 +1051,14 @@ public boolean hasBasicSliPerformance() { return typeCase_ == 3; } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
* * .google.monitoring.v3.BasicSli basic_sli_performance = 3; + * * @return The basicSliPerformance. */ @java.lang.Override @@ -947,6 +1076,8 @@ public com.google.monitoring.v3.BasicSli getBasicSliPerformance() { } } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -967,6 +1098,8 @@ public Builder setBasicSliPerformance(com.google.monitoring.v3.BasicSli value) { return this; } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -985,6 +1118,8 @@ public Builder setBasicSliPerformance( return this; } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -993,10 +1128,12 @@ public Builder setBasicSliPerformance( */ public Builder mergeBasicSliPerformance(com.google.monitoring.v3.BasicSli value) { if (basicSliPerformanceBuilder_ == null) { - if (typeCase_ == 3 && - type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { - type_ = com.google.monitoring.v3.BasicSli.newBuilder((com.google.monitoring.v3.BasicSli) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 3 && type_ != com.google.monitoring.v3.BasicSli.getDefaultInstance()) { + type_ = + com.google.monitoring.v3.BasicSli.newBuilder( + (com.google.monitoring.v3.BasicSli) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1012,6 +1149,8 @@ public Builder mergeBasicSliPerformance(com.google.monitoring.v3.BasicSli value) return this; } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1035,6 +1174,8 @@ public Builder clearBasicSliPerformance() { return this; } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1045,6 +1186,8 @@ public com.google.monitoring.v3.BasicSli.Builder getBasicSliPerformanceBuilder() return getBasicSliPerformanceFieldBuilder().getBuilder(); } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1063,6 +1206,8 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde } } /** + * + * *
        * `BasicSli` to evaluate to judge window quality.
        * 
@@ -1070,17 +1215,20 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde * .google.monitoring.v3.BasicSli basic_sli_performance = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder> + com.google.monitoring.v3.BasicSli, + com.google.monitoring.v3.BasicSli.Builder, + com.google.monitoring.v3.BasicSliOrBuilder> getBasicSliPerformanceFieldBuilder() { if (basicSliPerformanceBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = com.google.monitoring.v3.BasicSli.getDefaultInstance(); } - basicSliPerformanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.BasicSli, com.google.monitoring.v3.BasicSli.Builder, com.google.monitoring.v3.BasicSliOrBuilder>( - (com.google.monitoring.v3.BasicSli) type_, - getParentForChildren(), - isClean()); + basicSliPerformanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.BasicSli, + com.google.monitoring.v3.BasicSli.Builder, + com.google.monitoring.v3.BasicSliOrBuilder>( + (com.google.monitoring.v3.BasicSli) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; @@ -1088,13 +1236,16 @@ public com.google.monitoring.v3.BasicSliOrBuilder getBasicSliPerformanceOrBuilde return basicSliPerformanceBuilder_; } - private double threshold_ ; + private double threshold_; /** + * + * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; + * * @return The threshold. */ @java.lang.Override @@ -1102,11 +1253,14 @@ public double getThreshold() { return threshold_; } /** + * + * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; + * * @param value The threshold to set. * @return This builder for chaining. */ @@ -1118,11 +1272,14 @@ public Builder setThreshold(double value) { return this; } /** + * + * *
        * If window `performance >= threshold`, the window is counted as good.
        * 
* * double threshold = 2; + * * @return This builder for chaining. */ public Builder clearThreshold() { @@ -1131,6 +1288,7 @@ public Builder clearThreshold() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1143,41 +1301,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) } // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) - private static final com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold DEFAULT_INSTANCE; + private static final com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold(); } - public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstance() { + public static com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PerformanceThreshold parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformanceThreshold parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,59 +1350,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getDefaultInstanceForType() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MetricRangeOrBuilder extends + public interface MetricRangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli.MetricRange) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; + * * @return The timeSeries. */ java.lang.String getTimeSeries(); /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; + * * @return The bytes for timeSeries. */ - com.google.protobuf.ByteString - getTimeSeriesBytes(); + com.google.protobuf.ByteString getTimeSeriesBytes(); /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; + * * @return Whether the range field is set. */ boolean hasRange(); /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; + * * @return The range. */ com.google.monitoring.v3.Range getRange(); /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
@@ -1252,6 +1427,8 @@ public interface MetricRangeOrBuilder extends
     com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder();
   }
   /**
+   *
+   *
    * 
    * A `MetricRange` is used when each window is good when the value x of a
    * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
@@ -1261,49 +1438,55 @@ public interface MetricRangeOrBuilder extends
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.MetricRange}
    */
-  public static final class MetricRange extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class MetricRange extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.monitoring.v3.WindowsBasedSli.MetricRange)
       MetricRangeOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use MetricRange.newBuilder() to construct.
     private MetricRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private MetricRange() {
       timeSeries_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new MetricRange();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.MetricRange.class, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.class,
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
     }
 
     public static final int TIME_SERIES_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object timeSeries_ = "";
     /**
+     *
+     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; + * * @return The timeSeries. */ @java.lang.Override @@ -1312,30 +1495,30 @@ public java.lang.String getTimeSeries() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeSeries_ = s; return s; } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying the `TimeSeries` to use for evaluating window quality.
      * 
* * string time_series = 1; + * * @return The bytes for timeSeries. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeSeriesBytes() { + public com.google.protobuf.ByteString getTimeSeriesBytes() { java.lang.Object ref = timeSeries_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeSeries_ = b; return b; } else { @@ -1346,12 +1529,15 @@ public java.lang.String getTimeSeries() { public static final int RANGE_FIELD_NUMBER = 4; private com.google.monitoring.v3.Range range_; /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; + * * @return Whether the range field is set. */ @java.lang.Override @@ -1359,12 +1545,15 @@ public boolean hasRange() { return range_ != null; } /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
      * 
* * .google.monitoring.v3.Range range = 4; + * * @return The range. */ @java.lang.Override @@ -1372,6 +1561,8 @@ public com.google.monitoring.v3.Range getRange() { return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_; } /** + * + * *
      * Range of values considered "good." For a one-sided range, set one bound
      * to an infinite value.
@@ -1385,6 +1576,7 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1396,8 +1588,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeSeries_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeSeries_);
       }
@@ -1417,8 +1608,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeSeries_);
       }
       if (range_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, getRange());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -1428,19 +1618,18 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli.MetricRange)) {
         return super.equals(obj);
       }
-      com.google.monitoring.v3.WindowsBasedSli.MetricRange other = (com.google.monitoring.v3.WindowsBasedSli.MetricRange) obj;
+      com.google.monitoring.v3.WindowsBasedSli.MetricRange other =
+          (com.google.monitoring.v3.WindowsBasedSli.MetricRange) obj;
 
-      if (!getTimeSeries()
-          .equals(other.getTimeSeries())) return false;
+      if (!getTimeSeries().equals(other.getTimeSeries())) return false;
       if (hasRange() != other.hasRange()) return false;
       if (hasRange()) {
-        if (!getRange()
-            .equals(other.getRange())) return false;
+        if (!getRange().equals(other.getRange())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1465,89 +1654,94 @@ public int hashCode() {
     }
 
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.monitoring.v3.WindowsBasedSli.MetricRange parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli.MetricRange prototype) {
+
+    public static Builder newBuilder(
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1557,6 +1751,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * A `MetricRange` is used when each window is good when the value x of a
      * single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
@@ -1566,33 +1762,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.monitoring.v3.WindowsBasedSli.MetricRange}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli.MetricRange)
         com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.monitoring.v3.WindowsBasedSli.MetricRange.class, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange.class,
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder.class);
       }
 
       // Construct using com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1607,9 +1803,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.monitoring.v3.ServiceMonitoringProto
+            .internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor;
       }
 
       @java.lang.Override
@@ -1628,8 +1824,11 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange build() {
 
       @java.lang.Override
       public com.google.monitoring.v3.WindowsBasedSli.MetricRange buildPartial() {
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange result = new com.google.monitoring.v3.WindowsBasedSli.MetricRange(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange result =
+            new com.google.monitoring.v3.WindowsBasedSli.MetricRange(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -1640,9 +1839,7 @@ private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.MetricRange
           result.timeSeries_ = timeSeries_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.range_ = rangeBuilder_ == null
-              ? range_
-              : rangeBuilder_.build();
+          result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build();
         }
       }
 
@@ -1650,38 +1847,41 @@ private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli.MetricRange
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.monitoring.v3.WindowsBasedSli.MetricRange) {
-          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.MetricRange)other);
+          return mergeFrom((com.google.monitoring.v3.WindowsBasedSli.MetricRange) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1689,7 +1889,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli.MetricRange other) {
-        if (other == com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) return this;
+        if (other == com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance())
+          return this;
         if (!other.getTimeSeries().isEmpty()) {
           timeSeries_ = other.timeSeries_;
           bitField0_ |= 0x00000001;
@@ -1724,24 +1925,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                timeSeries_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 34: {
-                input.readMessage(
-                    getRangeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  timeSeries_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 34:
+                {
+                  input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1751,23 +1953,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object timeSeries_ = "";
       /**
+       *
+       *
        * 
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; + * * @return The timeSeries. */ public java.lang.String getTimeSeries() { java.lang.Object ref = timeSeries_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeSeries_ = s; return s; @@ -1776,21 +1981,22 @@ public java.lang.String getTimeSeries() { } } /** + * + * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; + * * @return The bytes for timeSeries. */ - public com.google.protobuf.ByteString - getTimeSeriesBytes() { + public com.google.protobuf.ByteString getTimeSeriesBytes() { java.lang.Object ref = timeSeries_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeSeries_ = b; return b; } else { @@ -1798,30 +2004,37 @@ public java.lang.String getTimeSeries() { } } /** + * + * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; + * * @param value The timeSeries to set. * @return This builder for chaining. */ - public Builder setTimeSeries( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeSeries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeSeries_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; + * * @return This builder for chaining. */ public Builder clearTimeSeries() { @@ -1831,18 +2044,22 @@ public Builder clearTimeSeries() { return this; } /** + * + * *
        * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
        * specifying the `TimeSeries` to use for evaluating window quality.
        * 
* * string time_series = 1; + * * @param value The bytes for timeSeries to set. * @return This builder for chaining. */ - public Builder setTimeSeriesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeSeries_ = value; bitField0_ |= 0x00000001; @@ -1852,26 +2069,35 @@ public Builder setTimeSeriesBytes( private com.google.monitoring.v3.Range range_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> rangeBuilder_; + com.google.monitoring.v3.Range, + com.google.monitoring.v3.Range.Builder, + com.google.monitoring.v3.RangeOrBuilder> + rangeBuilder_; /** + * + * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
        * 
* * .google.monitoring.v3.Range range = 4; + * * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
        * 
* * .google.monitoring.v3.Range range = 4; + * * @return The range. */ public com.google.monitoring.v3.Range getRange() { @@ -1882,6 +2108,8 @@ public com.google.monitoring.v3.Range getRange() { } } /** + * + * *
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1903,6 +2131,8 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1910,8 +2140,7 @@ public Builder setRange(com.google.monitoring.v3.Range value) {
        *
        * .google.monitoring.v3.Range range = 4;
        */
-      public Builder setRange(
-          com.google.monitoring.v3.Range.Builder builderForValue) {
+      public Builder setRange(com.google.monitoring.v3.Range.Builder builderForValue) {
         if (rangeBuilder_ == null) {
           range_ = builderForValue.build();
         } else {
@@ -1922,6 +2151,8 @@ public Builder setRange(
         return this;
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1931,9 +2162,9 @@ public Builder setRange(
        */
       public Builder mergeRange(com.google.monitoring.v3.Range value) {
         if (rangeBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            range_ != null &&
-            range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && range_ != null
+              && range_ != com.google.monitoring.v3.Range.getDefaultInstance()) {
             getRangeBuilder().mergeFrom(value);
           } else {
             range_ = value;
@@ -1946,6 +2177,8 @@ public Builder mergeRange(com.google.monitoring.v3.Range value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1964,6 +2197,8 @@ public Builder clearRange() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1977,6 +2212,8 @@ public com.google.monitoring.v3.Range.Builder getRangeBuilder() {
         return getRangeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -1988,11 +2225,12 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
         if (rangeBuilder_ != null) {
           return rangeBuilder_.getMessageOrBuilder();
         } else {
-          return range_ == null ?
-              com.google.monitoring.v3.Range.getDefaultInstance() : range_;
+          return range_ == null ? com.google.monitoring.v3.Range.getDefaultInstance() : range_;
         }
       }
       /**
+       *
+       *
        * 
        * Range of values considered "good." For a one-sided range, set one bound
        * to an infinite value.
@@ -2001,18 +2239,22 @@ public com.google.monitoring.v3.RangeOrBuilder getRangeOrBuilder() {
        * .google.monitoring.v3.Range range = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder> 
+              com.google.monitoring.v3.Range,
+              com.google.monitoring.v3.Range.Builder,
+              com.google.monitoring.v3.RangeOrBuilder>
           getRangeFieldBuilder() {
         if (rangeBuilder_ == null) {
-          rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.monitoring.v3.Range, com.google.monitoring.v3.Range.Builder, com.google.monitoring.v3.RangeOrBuilder>(
-                  getRange(),
-                  getParentForChildren(),
-                  isClean());
+          rangeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.monitoring.v3.Range,
+                  com.google.monitoring.v3.Range.Builder,
+                  com.google.monitoring.v3.RangeOrBuilder>(
+                  getRange(), getParentForChildren(), isClean());
           range_ = null;
         }
         return rangeBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2025,42 +2267,43 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli.MetricRange)
     }
 
     // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli.MetricRange)
     private static final com.google.monitoring.v3.WindowsBasedSli.MetricRange DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli.MetricRange();
     }
 
-    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public MetricRange parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
-
+    public static com.google.monitoring.v3.WindowsBasedSli.MetricRange getDefaultInstance() {
+      return DEFAULT_INSTANCE;
+    }
+
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public MetricRange parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
+
     public static com.google.protobuf.Parser parser() {
       return PARSER;
     }
@@ -2074,14 +2317,16 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.monitoring.v3.WindowsBasedSli.MetricRange getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int windowCriterionCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object windowCriterion_;
+
   public enum WindowCriterionCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GOOD_BAD_METRIC_FILTER(5),
     GOOD_TOTAL_RATIO_THRESHOLD(2),
@@ -2089,6 +2334,7 @@ public enum WindowCriterionCase
     METRIC_SUM_IN_RANGE(7),
     WINDOWCRITERION_NOT_SET(0);
     private final int value;
+
     private WindowCriterionCase(int value) {
       this.value = value;
     }
@@ -2104,27 +2350,34 @@ public static WindowCriterionCase valueOf(int value) {
 
     public static WindowCriterionCase forNumber(int value) {
       switch (value) {
-        case 5: return GOOD_BAD_METRIC_FILTER;
-        case 2: return GOOD_TOTAL_RATIO_THRESHOLD;
-        case 6: return METRIC_MEAN_IN_RANGE;
-        case 7: return METRIC_SUM_IN_RANGE;
-        case 0: return WINDOWCRITERION_NOT_SET;
-        default: return null;
+        case 5:
+          return GOOD_BAD_METRIC_FILTER;
+        case 2:
+          return GOOD_TOTAL_RATIO_THRESHOLD;
+        case 6:
+          return METRIC_MEAN_IN_RANGE;
+        case 7:
+          return METRIC_SUM_IN_RANGE;
+        case 0:
+          return WINDOWCRITERION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public WindowCriterionCase
-  getWindowCriterionCase() {
-    return WindowCriterionCase.forNumber(
-        windowCriterionCase_);
+  public WindowCriterionCase getWindowCriterionCase() {
+    return WindowCriterionCase.forNumber(windowCriterionCase_);
   }
 
   public static final int GOOD_BAD_METRIC_FILTER_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2132,12 +2385,15 @@ public int getNumber() {
    * 
* * string good_bad_metric_filter = 5; + * * @return Whether the goodBadMetricFilter field is set. */ public boolean hasGoodBadMetricFilter() { return windowCriterionCase_ == 5; } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2145,6 +2401,7 @@ public boolean hasGoodBadMetricFilter() {
    * 
* * string good_bad_metric_filter = 5; + * * @return The goodBadMetricFilter. */ public java.lang.String getGoodBadMetricFilter() { @@ -2155,8 +2412,7 @@ public java.lang.String getGoodBadMetricFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (windowCriterionCase_ == 5) { windowCriterion_ = s; @@ -2165,6 +2421,8 @@ public java.lang.String getGoodBadMetricFilter() { } } /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2172,18 +2430,17 @@ public java.lang.String getGoodBadMetricFilter() {
    * 
* * string good_bad_metric_filter = 5; + * * @return The bytes for goodBadMetricFilter. */ - public com.google.protobuf.ByteString - getGoodBadMetricFilterBytes() { + public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { java.lang.Object ref = ""; if (windowCriterionCase_ == 5) { ref = windowCriterion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (windowCriterionCase_ == 5) { windowCriterion_ = b; } @@ -2195,11 +2452,16 @@ public java.lang.String getGoodBadMetricFilter() { public static final int GOOD_TOTAL_RATIO_THRESHOLD_FIELD_NUMBER = 2; /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return Whether the goodTotalRatioThreshold field is set. */ @java.lang.Override @@ -2207,43 +2469,57 @@ public boolean hasGoodTotalRatioThreshold() { return windowCriterionCase_ == 2; } /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return The goodTotalRatioThreshold. */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + getGoodTotalRatioThreshold() { if (windowCriterionCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder + getGoodTotalRatioThresholdOrBuilder() { if (windowCriterionCase_ == 2) { - return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } public static final int METRIC_MEAN_IN_RANGE_FIELD_NUMBER = 6; /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return Whether the metricMeanInRange field is set. */ @java.lang.Override @@ -2251,22 +2527,27 @@ public boolean hasMetricMeanInRange() { return windowCriterionCase_ == 6; } /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return The metricMeanInRange. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange() { if (windowCriterionCase_ == 6) { - return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance(); } /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
@@ -2275,21 +2556,25 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange
    * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder() {
+  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
+      getMetricMeanInRangeOrBuilder() {
     if (windowCriterionCase_ == 6) {
-       return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
+      return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
     }
     return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
   }
 
   public static final int METRIC_SUM_IN_RANGE_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return Whether the metricSumInRange field is set. */ @java.lang.Override @@ -2297,22 +2582,27 @@ public boolean hasMetricSumInRange() { return windowCriterionCase_ == 7; } /** + * + * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return The metricSumInRange. */ @java.lang.Override public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange() { if (windowCriterionCase_ == 7) { - return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; + return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_; } return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance(); } /** + * + * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
@@ -2321,9 +2611,10 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange(
    * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
    */
   @java.lang.Override
-  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder() {
+  public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
+      getMetricSumInRangeOrBuilder() {
     if (windowCriterionCase_ == 7) {
-       return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
+      return (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_;
     }
     return com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
   }
@@ -2331,12 +2622,15 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSu
   public static final int WINDOW_PERIOD_FIELD_NUMBER = 4;
   private com.google.protobuf.Duration windowPeriod_;
   /**
+   *
+   *
    * 
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; + * * @return Whether the windowPeriod field is set. */ @java.lang.Override @@ -2344,19 +2638,26 @@ public boolean hasWindowPeriod() { return windowPeriod_ != null; } /** + * + * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; + * * @return The windowPeriod. */ @java.lang.Override public com.google.protobuf.Duration getWindowPeriod() { - return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; + return windowPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : windowPeriod_; } /** + * + * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
@@ -2366,10 +2667,13 @@ public com.google.protobuf.Duration getWindowPeriod() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
-    return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_;
+    return windowPeriod_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : windowPeriod_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2381,10 +2685,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (windowCriterionCase_ == 2) {
-      output.writeMessage(2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
+      output.writeMessage(
+          2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
     }
     if (windowPeriod_ != null) {
       output.writeMessage(4, getWindowPeriod());
@@ -2393,10 +2697,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, windowCriterion_);
     }
     if (windowCriterionCase_ == 6) {
-      output.writeMessage(6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      output.writeMessage(
+          6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     if (windowCriterionCase_ == 7) {
-      output.writeMessage(7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      output.writeMessage(
+          7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -2408,23 +2714,25 @@ public int getSerializedSize() {
 
     size = 0;
     if (windowCriterionCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_);
     }
     if (windowPeriod_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getWindowPeriod());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWindowPeriod());
     }
     if (windowCriterionCase_ == 5) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, windowCriterion_);
     }
     if (windowCriterionCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     if (windowCriterionCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2434,7 +2742,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.monitoring.v3.WindowsBasedSli)) {
       return super.equals(obj);
@@ -2443,26 +2751,21 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasWindowPeriod() != other.hasWindowPeriod()) return false;
     if (hasWindowPeriod()) {
-      if (!getWindowPeriod()
-          .equals(other.getWindowPeriod())) return false;
+      if (!getWindowPeriod().equals(other.getWindowPeriod())) return false;
     }
     if (!getWindowCriterionCase().equals(other.getWindowCriterionCase())) return false;
     switch (windowCriterionCase_) {
       case 5:
-        if (!getGoodBadMetricFilter()
-            .equals(other.getGoodBadMetricFilter())) return false;
+        if (!getGoodBadMetricFilter().equals(other.getGoodBadMetricFilter())) return false;
         break;
       case 2:
-        if (!getGoodTotalRatioThreshold()
-            .equals(other.getGoodTotalRatioThreshold())) return false;
+        if (!getGoodTotalRatioThreshold().equals(other.getGoodTotalRatioThreshold())) return false;
         break;
       case 6:
-        if (!getMetricMeanInRange()
-            .equals(other.getMetricMeanInRange())) return false;
+        if (!getMetricMeanInRange().equals(other.getMetricMeanInRange())) return false;
         break;
       case 7:
-        if (!getMetricSumInRange()
-            .equals(other.getMetricSumInRange())) return false;
+        if (!getMetricSumInRange().equals(other.getMetricSumInRange())) return false;
         break;
       case 0:
       default:
@@ -2507,99 +2810,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.monitoring.v3.WindowsBasedSli parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.monitoring.v3.WindowsBasedSli parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.monitoring.v3.WindowsBasedSli parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.monitoring.v3.WindowsBasedSli prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A `WindowsBasedSli` defines `good_service` as the count of time windows for
    * which the provided service was of good quality. Criteria for determining
@@ -2608,33 +2916,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.monitoring.v3.WindowsBasedSli}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.monitoring.v3.WindowsBasedSli)
       com.google.monitoring.v3.WindowsBasedSliOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.monitoring.v3.WindowsBasedSli.class, com.google.monitoring.v3.WindowsBasedSli.Builder.class);
+              com.google.monitoring.v3.WindowsBasedSli.class,
+              com.google.monitoring.v3.WindowsBasedSli.Builder.class);
     }
 
     // Construct using com.google.monitoring.v3.WindowsBasedSli.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2659,9 +2966,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.monitoring.v3.ServiceMonitoringProto.internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.monitoring.v3.ServiceMonitoringProto
+          .internal_static_google_monitoring_v3_WindowsBasedSli_descriptor;
     }
 
     @java.lang.Override
@@ -2680,8 +2987,11 @@ public com.google.monitoring.v3.WindowsBasedSli build() {
 
     @java.lang.Override
     public com.google.monitoring.v3.WindowsBasedSli buildPartial() {
-      com.google.monitoring.v3.WindowsBasedSli result = new com.google.monitoring.v3.WindowsBasedSli(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.monitoring.v3.WindowsBasedSli result =
+          new com.google.monitoring.v3.WindowsBasedSli(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -2690,25 +3000,21 @@ public com.google.monitoring.v3.WindowsBasedSli buildPartial() {
     private void buildPartial0(com.google.monitoring.v3.WindowsBasedSli result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.windowPeriod_ = windowPeriodBuilder_ == null
-            ? windowPeriod_
-            : windowPeriodBuilder_.build();
+        result.windowPeriod_ =
+            windowPeriodBuilder_ == null ? windowPeriod_ : windowPeriodBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli result) {
       result.windowCriterionCase_ = windowCriterionCase_;
       result.windowCriterion_ = this.windowCriterion_;
-      if (windowCriterionCase_ == 2 &&
-          goodTotalRatioThresholdBuilder_ != null) {
+      if (windowCriterionCase_ == 2 && goodTotalRatioThresholdBuilder_ != null) {
         result.windowCriterion_ = goodTotalRatioThresholdBuilder_.build();
       }
-      if (windowCriterionCase_ == 6 &&
-          metricMeanInRangeBuilder_ != null) {
+      if (windowCriterionCase_ == 6 && metricMeanInRangeBuilder_ != null) {
         result.windowCriterion_ = metricMeanInRangeBuilder_.build();
       }
-      if (windowCriterionCase_ == 7 &&
-          metricSumInRangeBuilder_ != null) {
+      if (windowCriterionCase_ == 7 && metricSumInRangeBuilder_ != null) {
         result.windowCriterion_ = metricSumInRangeBuilder_.build();
       }
     }
@@ -2717,38 +3023,39 @@ private void buildPartialOneofs(com.google.monitoring.v3.WindowsBasedSli result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.monitoring.v3.WindowsBasedSli) {
-        return mergeFrom((com.google.monitoring.v3.WindowsBasedSli)other);
+        return mergeFrom((com.google.monitoring.v3.WindowsBasedSli) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2761,27 +3068,32 @@ public Builder mergeFrom(com.google.monitoring.v3.WindowsBasedSli other) {
         mergeWindowPeriod(other.getWindowPeriod());
       }
       switch (other.getWindowCriterionCase()) {
-        case GOOD_BAD_METRIC_FILTER: {
-          windowCriterionCase_ = 5;
-          windowCriterion_ = other.windowCriterion_;
-          onChanged();
-          break;
-        }
-        case GOOD_TOTAL_RATIO_THRESHOLD: {
-          mergeGoodTotalRatioThreshold(other.getGoodTotalRatioThreshold());
-          break;
-        }
-        case METRIC_MEAN_IN_RANGE: {
-          mergeMetricMeanInRange(other.getMetricMeanInRange());
-          break;
-        }
-        case METRIC_SUM_IN_RANGE: {
-          mergeMetricSumInRange(other.getMetricSumInRange());
-          break;
-        }
-        case WINDOWCRITERION_NOT_SET: {
-          break;
-        }
+        case GOOD_BAD_METRIC_FILTER:
+          {
+            windowCriterionCase_ = 5;
+            windowCriterion_ = other.windowCriterion_;
+            onChanged();
+            break;
+          }
+        case GOOD_TOTAL_RATIO_THRESHOLD:
+          {
+            mergeGoodTotalRatioThreshold(other.getGoodTotalRatioThreshold());
+            break;
+          }
+        case METRIC_MEAN_IN_RANGE:
+          {
+            mergeMetricMeanInRange(other.getMetricMeanInRange());
+            break;
+          }
+        case METRIC_SUM_IN_RANGE:
+          {
+            mergeMetricSumInRange(other.getMetricSumInRange());
+            break;
+          }
+        case WINDOWCRITERION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2809,46 +3121,47 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getGoodTotalRatioThresholdFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              windowCriterionCase_ = 2;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getWindowPeriodFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              windowCriterionCase_ = 5;
-              windowCriterion_ = s;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getMetricMeanInRangeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              windowCriterionCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getMetricSumInRangeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              windowCriterionCase_ = 7;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(
+                    getGoodTotalRatioThresholdFieldBuilder().getBuilder(), extensionRegistry);
+                windowCriterionCase_ = 2;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getWindowPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                windowCriterionCase_ = 5;
+                windowCriterion_ = s;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(
+                    getMetricMeanInRangeFieldBuilder().getBuilder(), extensionRegistry);
+                windowCriterionCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getMetricSumInRangeFieldBuilder().getBuilder(), extensionRegistry);
+                windowCriterionCase_ = 7;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2858,12 +3171,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int windowCriterionCase_ = 0;
     private java.lang.Object windowCriterion_;
-    public WindowCriterionCase
-        getWindowCriterionCase() {
-      return WindowCriterionCase.forNumber(
-          windowCriterionCase_);
+
+    public WindowCriterionCase getWindowCriterionCase() {
+      return WindowCriterionCase.forNumber(windowCriterionCase_);
     }
 
     public Builder clearWindowCriterion() {
@@ -2876,6 +3189,8 @@ public Builder clearWindowCriterion() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2883,6 +3198,7 @@ public Builder clearWindowCriterion() {
      * 
* * string good_bad_metric_filter = 5; + * * @return Whether the goodBadMetricFilter field is set. */ @java.lang.Override @@ -2890,6 +3206,8 @@ public boolean hasGoodBadMetricFilter() { return windowCriterionCase_ == 5; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2897,6 +3215,7 @@ public boolean hasGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; + * * @return The goodBadMetricFilter. */ @java.lang.Override @@ -2906,8 +3225,7 @@ public java.lang.String getGoodBadMetricFilter() { ref = windowCriterion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (windowCriterionCase_ == 5) { windowCriterion_ = s; @@ -2918,6 +3236,8 @@ public java.lang.String getGoodBadMetricFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2925,19 +3245,18 @@ public java.lang.String getGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; + * * @return The bytes for goodBadMetricFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getGoodBadMetricFilterBytes() { + public com.google.protobuf.ByteString getGoodBadMetricFilterBytes() { java.lang.Object ref = ""; if (windowCriterionCase_ == 5) { ref = windowCriterion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (windowCriterionCase_ == 5) { windowCriterion_ = b; } @@ -2947,6 +3266,8 @@ public java.lang.String getGoodBadMetricFilter() { } } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2954,18 +3275,22 @@ public java.lang.String getGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; + * * @param value The goodBadMetricFilter to set. * @return This builder for chaining. */ - public Builder setGoodBadMetricFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGoodBadMetricFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } windowCriterionCase_ = 5; windowCriterion_ = value; onChanged(); return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2973,6 +3298,7 @@ public Builder setGoodBadMetricFilter(
      * 
* * string good_bad_metric_filter = 5; + * * @return This builder for chaining. */ public Builder clearGoodBadMetricFilter() { @@ -2984,6 +3310,8 @@ public Builder clearGoodBadMetricFilter() { return this; } /** + * + * *
      * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
      * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -2991,12 +3319,14 @@ public Builder clearGoodBadMetricFilter() {
      * 
* * string good_bad_metric_filter = 5; + * * @param value The bytes for goodBadMetricFilter to set. * @return This builder for chaining. */ - public Builder setGoodBadMetricFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGoodBadMetricFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); windowCriterionCase_ = 5; windowCriterion_ = value; @@ -3005,13 +3335,21 @@ public Builder setGoodBadMetricFilterBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> goodTotalRatioThresholdBuilder_; + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> + goodTotalRatioThresholdBuilder_; /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return Whether the goodTotalRatioThreshold field is set. */ @java.lang.Override @@ -3019,15 +3357,21 @@ public boolean hasGoodTotalRatioThreshold() { return windowCriterionCase_ == 2; } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return The goodTotalRatioThreshold. */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + getGoodTotalRatioThreshold() { if (goodTotalRatioThresholdBuilder_ == null) { if (windowCriterionCase_ == 2) { return (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_; @@ -3041,13 +3385,18 @@ public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTota } } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ - public Builder setGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { + public Builder setGoodTotalRatioThreshold( + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { if (goodTotalRatioThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3061,11 +3410,15 @@ public Builder setGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBasedS return this; } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ public Builder setGoodTotalRatioThreshold( com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder builderForValue) { @@ -3079,18 +3432,29 @@ public Builder setGoodTotalRatioThreshold( return this; } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ - public Builder mergeGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { + public Builder mergeGoodTotalRatioThreshold( + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold value) { if (goodTotalRatioThresholdBuilder_ == null) { - if (windowCriterionCase_ == 2 && - windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance()) { - windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder((com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_) - .mergeFrom(value).buildPartial(); + if (windowCriterionCase_ == 2 + && windowCriterion_ + != com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold + .getDefaultInstance()) { + windowCriterion_ = + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.newBuilder( + (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) + windowCriterion_) + .mergeFrom(value) + .buildPartial(); } else { windowCriterion_ = value; } @@ -3106,11 +3470,15 @@ public Builder mergeGoodTotalRatioThreshold(com.google.monitoring.v3.WindowsBase return this; } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ public Builder clearGoodTotalRatioThreshold() { if (goodTotalRatioThresholdBuilder_ == null) { @@ -3129,24 +3497,34 @@ public Builder clearGoodTotalRatioThreshold() { return this; } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder getGoodTotalRatioThresholdBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder + getGoodTotalRatioThresholdBuilder() { return getGoodTotalRatioThresholdFieldBuilder().getBuilder(); } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ @java.lang.Override - public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder() { + public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder + getGoodTotalRatioThresholdOrBuilder() { if ((windowCriterionCase_ == 2) && (goodTotalRatioThresholdBuilder_ != null)) { return goodTotalRatioThresholdBuilder_.getMessageOrBuilder(); } else { @@ -3157,21 +3535,31 @@ public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder ge } } /** + * + * *
      * A window is good if its `performance` is high enough.
      * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder> getGoodTotalRatioThresholdFieldBuilder() { if (goodTotalRatioThresholdBuilder_ == null) { if (!(windowCriterionCase_ == 2)) { - windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); + windowCriterion_ = + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.getDefaultInstance(); } - goodTotalRatioThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder>( + goodTotalRatioThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold.Builder, + com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder>( (com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold) windowCriterion_, getParentForChildren(), isClean()); @@ -3183,14 +3571,20 @@ public com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder ge } private com.google.protobuf.SingleFieldBuilderV3< - com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> metricMeanInRangeBuilder_; + com.google.monitoring.v3.WindowsBasedSli.MetricRange, + com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, + com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> + metricMeanInRangeBuilder_; /** + * + * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return Whether the metricMeanInRange field is set. */ @java.lang.Override @@ -3198,12 +3592,15 @@ public boolean hasMetricMeanInRange() { return windowCriterionCase_ == 6; } /** + * + * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return The metricMeanInRange. */ @java.lang.Override @@ -3221,6 +3618,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange } } /** + * + * *
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3228,7 +3627,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public Builder setMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder setMetricMeanInRange(
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricMeanInRangeBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3242,6 +3642,8 @@ public Builder setMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.Met
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3261,6 +3663,8 @@ public Builder setMetricMeanInRange(
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3268,12 +3672,17 @@ public Builder setMetricMeanInRange(
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public Builder mergeMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder mergeMetricMeanInRange(
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricMeanInRangeBuilder_ == null) {
-        if (windowCriterionCase_ == 6 &&
-            windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
-          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder((com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
-              .mergeFrom(value).buildPartial();
+        if (windowCriterionCase_ == 6
+            && windowCriterion_
+                != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
+          windowCriterion_ =
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder(
+                      (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           windowCriterion_ = value;
         }
@@ -3289,6 +3698,8 @@ public Builder mergeMetricMeanInRange(com.google.monitoring.v3.WindowsBasedSli.M
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3313,6 +3724,8 @@ public Builder clearMetricMeanInRange() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3320,10 +3733,13 @@ public Builder clearMetricMeanInRange() {
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricMeanInRangeBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder
+        getMetricMeanInRangeBuilder() {
       return getMetricMeanInRangeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3332,7 +3748,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricMea
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
+        getMetricMeanInRangeOrBuilder() {
       if ((windowCriterionCase_ == 6) && (metricMeanInRangeBuilder_ != null)) {
         return metricMeanInRangeBuilder_.getMessageOrBuilder();
       } else {
@@ -3343,6 +3760,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMe
       }
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, averaged
      * across returned streams.
@@ -3351,14 +3770,20 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMe
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> 
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
         getMetricMeanInRangeFieldBuilder() {
       if (metricMeanInRangeBuilder_ == null) {
         if (!(windowCriterionCase_ == 6)) {
-          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
+          windowCriterion_ =
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
         }
-        metricMeanInRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
+        metricMeanInRangeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange,
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
+                com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
                 (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_,
                 getParentForChildren(),
                 isClean());
@@ -3370,14 +3795,20 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMe
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> metricSumInRangeBuilder_;
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
+        metricSumInRangeBuilder_;
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return Whether the metricSumInRange field is set. */ @java.lang.Override @@ -3385,12 +3816,15 @@ public boolean hasMetricSumInRange() { return windowCriterionCase_ == 7; } /** + * + * *
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
      * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return The metricSumInRange. */ @java.lang.Override @@ -3408,6 +3842,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange( } } /** + * + * *
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3429,6 +3865,8 @@ public Builder setMetricSumInRange(com.google.monitoring.v3.WindowsBasedSli.Metr
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3448,6 +3886,8 @@ public Builder setMetricSumInRange(
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3455,12 +3895,17 @@ public Builder setMetricSumInRange(
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
-    public Builder mergeMetricSumInRange(com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
+    public Builder mergeMetricSumInRange(
+        com.google.monitoring.v3.WindowsBasedSli.MetricRange value) {
       if (metricSumInRangeBuilder_ == null) {
-        if (windowCriterionCase_ == 7 &&
-            windowCriterion_ != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
-          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder((com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
-              .mergeFrom(value).buildPartial();
+        if (windowCriterionCase_ == 7
+            && windowCriterion_
+                != com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance()) {
+          windowCriterion_ =
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.newBuilder(
+                      (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           windowCriterion_ = value;
         }
@@ -3476,6 +3921,8 @@ public Builder mergeMetricSumInRange(com.google.monitoring.v3.WindowsBasedSli.Me
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3500,6 +3947,8 @@ public Builder clearMetricSumInRange() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3507,10 +3956,13 @@ public Builder clearMetricSumInRange() {
      *
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricSumInRangeBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder
+        getMetricSumInRangeBuilder() {
       return getMetricSumInRangeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3519,7 +3971,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder getMetricSum
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
     @java.lang.Override
-    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder() {
+    public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder
+        getMetricSumInRangeOrBuilder() {
       if ((windowCriterionCase_ == 7) && (metricSumInRangeBuilder_ != null)) {
         return metricSumInRangeBuilder_.getMessageOrBuilder();
       } else {
@@ -3530,6 +3983,8 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSu
       }
     }
     /**
+     *
+     *
      * 
      * A window is good if the metric's value is in a good range, summed across
      * returned streams.
@@ -3538,14 +3993,20 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSu
      * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder> 
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
+            com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>
         getMetricSumInRangeFieldBuilder() {
       if (metricSumInRangeBuilder_ == null) {
         if (!(windowCriterionCase_ == 7)) {
-          windowCriterion_ = com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
+          windowCriterion_ =
+              com.google.monitoring.v3.WindowsBasedSli.MetricRange.getDefaultInstance();
         }
-        metricSumInRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.monitoring.v3.WindowsBasedSli.MetricRange, com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder, com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
+        metricSumInRangeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange,
+                com.google.monitoring.v3.WindowsBasedSli.MetricRange.Builder,
+                com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder>(
                 (com.google.monitoring.v3.WindowsBasedSli.MetricRange) windowCriterion_,
                 getParentForChildren(),
                 isClean());
@@ -3558,36 +4019,49 @@ public com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSu
 
     private com.google.protobuf.Duration windowPeriod_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> windowPeriodBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        windowPeriodBuilder_;
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
      * 
* * .google.protobuf.Duration window_period = 4; + * * @return Whether the windowPeriod field is set. */ public boolean hasWindowPeriod() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
      * 
* * .google.protobuf.Duration window_period = 4; + * * @return The windowPeriod. */ public com.google.protobuf.Duration getWindowPeriod() { if (windowPeriodBuilder_ == null) { - return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; + return windowPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : windowPeriod_; } else { return windowPeriodBuilder_.getMessage(); } } /** + * + * *
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3609,6 +4083,8 @@ public Builder setWindowPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3616,8 +4092,7 @@ public Builder setWindowPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration window_period = 4;
      */
-    public Builder setWindowPeriod(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setWindowPeriod(com.google.protobuf.Duration.Builder builderForValue) {
       if (windowPeriodBuilder_ == null) {
         windowPeriod_ = builderForValue.build();
       } else {
@@ -3628,6 +4103,8 @@ public Builder setWindowPeriod(
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3637,9 +4114,9 @@ public Builder setWindowPeriod(
      */
     public Builder mergeWindowPeriod(com.google.protobuf.Duration value) {
       if (windowPeriodBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          windowPeriod_ != null &&
-          windowPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && windowPeriod_ != null
+            && windowPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getWindowPeriodBuilder().mergeFrom(value);
         } else {
           windowPeriod_ = value;
@@ -3652,6 +4129,8 @@ public Builder mergeWindowPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3670,6 +4149,8 @@ public Builder clearWindowPeriod() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3683,6 +4164,8 @@ public com.google.protobuf.Duration.Builder getWindowPeriodBuilder() {
       return getWindowPeriodFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3694,11 +4177,14 @@ public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
       if (windowPeriodBuilder_ != null) {
         return windowPeriodBuilder_.getMessageOrBuilder();
       } else {
-        return windowPeriod_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_;
+        return windowPeriod_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : windowPeriod_;
       }
     }
     /**
+     *
+     *
      * 
      * Duration over which window quality is evaluated. Must be an integer
      * fraction of a day and at least `60s`.
@@ -3707,21 +4193,24 @@ public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() {
      * .google.protobuf.Duration window_period = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getWindowPeriodFieldBuilder() {
       if (windowPeriodBuilder_ == null) {
-        windowPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getWindowPeriod(),
-                getParentForChildren(),
-                isClean());
+        windowPeriodBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getWindowPeriod(), getParentForChildren(), isClean());
         windowPeriod_ = null;
       }
       return windowPeriodBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3731,12 +4220,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.monitoring.v3.WindowsBasedSli)
   }
 
   // @@protoc_insertion_point(class_scope:google.monitoring.v3.WindowsBasedSli)
   private static final com.google.monitoring.v3.WindowsBasedSli DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.monitoring.v3.WindowsBasedSli();
   }
@@ -3745,27 +4234,27 @@ public static com.google.monitoring.v3.WindowsBasedSli getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public WindowsBasedSli parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public WindowsBasedSli parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3780,6 +4269,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.monitoring.v3.WindowsBasedSli getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
index 4cf8105fbd6a..6acc54c005ae 100644
--- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSliOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/monitoring/v3/service.proto
 
 package com.google.monitoring.v3;
 
-public interface WindowsBasedSliOrBuilder extends
+public interface WindowsBasedSliOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.monitoring.v3.WindowsBasedSli)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -15,10 +33,13 @@ public interface WindowsBasedSliOrBuilder extends
    * 
* * string good_bad_metric_filter = 5; + * * @return Whether the goodBadMetricFilter field is set. */ boolean hasGoodBadMetricFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -26,10 +47,13 @@ public interface WindowsBasedSliOrBuilder extends
    * 
* * string good_bad_metric_filter = 5; + * * @return The goodBadMetricFilter. */ java.lang.String getGoodBadMetricFilter(); /** + * + * *
    * A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
    * specifying a `TimeSeries` with `ValueType = BOOL`. The window is good if
@@ -37,59 +61,82 @@ public interface WindowsBasedSliOrBuilder extends
    * 
* * string good_bad_metric_filter = 5; + * * @return The bytes for goodBadMetricFilter. */ - com.google.protobuf.ByteString - getGoodBadMetricFilterBytes(); + com.google.protobuf.ByteString getGoodBadMetricFilterBytes(); /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return Whether the goodTotalRatioThreshold field is set. */ boolean hasGoodTotalRatioThreshold(); /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * * @return The goodTotalRatioThreshold. */ com.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold(); /** + * + * *
    * A window is good if its `performance` is high enough.
    * 
* - * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * + * .google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2; + * */ - com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder(); + com.google.monitoring.v3.WindowsBasedSli.PerformanceThresholdOrBuilder + getGoodTotalRatioThresholdOrBuilder(); /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return Whether the metricMeanInRange field is set. */ boolean hasMetricMeanInRange(); /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6; + * * @return The metricMeanInRange. */ com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricMeanInRange(); /** + * + * *
    * A window is good if the metric's value is in a good range, averaged
    * across returned streams.
@@ -100,26 +147,34 @@ public interface WindowsBasedSliOrBuilder extends
   com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder();
 
   /**
+   *
+   *
    * 
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return Whether the metricSumInRange field is set. */ boolean hasMetricSumInRange(); /** + * + * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
    * 
* * .google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7; + * * @return The metricSumInRange. */ com.google.monitoring.v3.WindowsBasedSli.MetricRange getMetricSumInRange(); /** + * + * *
    * A window is good if the metric's value is in a good range, summed across
    * returned streams.
@@ -130,26 +185,34 @@ public interface WindowsBasedSliOrBuilder extends
   com.google.monitoring.v3.WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; + * * @return Whether the windowPeriod field is set. */ boolean hasWindowPeriod(); /** + * + * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
    * 
* * .google.protobuf.Duration window_period = 4; + * * @return The windowPeriod. */ com.google.protobuf.Duration getWindowPeriod(); /** + * + * *
    * Duration over which window quality is evaluated. Must be an integer
    * fraction of a day and at least `60s`.
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/query_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/service_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto
diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
rename to java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/AsyncCreateAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyFoldernameAlertpolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyOrganizationnameAlertpolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyProjectnameAlertpolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/createalertpolicy/SyncCreateAlertPolicyStringAlertpolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/AsyncDeleteAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyAlertpolicyname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/deletealertpolicy/SyncDeleteAlertPolicyString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/AsyncGetAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyAlertpolicyname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/getalertpolicy/SyncGetAlertPolicyString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPolicies.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/AsyncListAlertPoliciesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPolicies.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/listalertpolicies/SyncListAlertPoliciesString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/AsyncUpdateAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservice/updatealertpolicy/SyncUpdateAlertPolicyFieldmaskAlertpolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/alertpolicyservicesettings/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/AsyncCreateGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupFoldernameGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupOrganizationnameGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupProjectnameGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/creategroup/SyncCreateGroupStringGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/AsyncDeleteGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupGroupname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/deletegroup/SyncDeleteGroupString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/AsyncGetGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupGroupname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/getgroup/SyncGetGroupString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembers.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/AsyncListGroupMembersPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembers.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersGroupname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroupmembers/SyncListGroupMembersString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroups.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/AsyncListGroupsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroups.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/listgroups/SyncListGroupsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/AsyncUpdateGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservice/updategroup/SyncUpdateGroupGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/groupservicesettings/getgroup/SyncGetGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/AsyncCreateMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorFoldernameMetricdescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorOrganizationnameMetricdescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorProjectnameMetricdescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createmetricdescriptor/SyncCreateMetricDescriptorStringMetricdescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/AsyncCreateServiceTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesProjectnameListtimeseries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createservicetimeseries/SyncCreateServiceTimeSeriesStringListtimeseries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/AsyncCreateTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesProjectnameListtimeseries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/createtimeseries/SyncCreateTimeSeriesStringListtimeseries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/AsyncDeleteMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorMetricdescriptorname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/deletemetricdescriptor/SyncDeleteMetricDescriptorString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/AsyncGetMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorMetricdescriptorname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmetricdescriptor/SyncGetMetricDescriptorString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/AsyncGetMonitoredResourceDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorMonitoredresourcedescriptorname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptorString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptorsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/AsyncListTimeSeriesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesFoldernameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesOrganizationnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesProjectnameStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listtimeseries/SyncListTimeSeriesStringStringTimeintervalListtimeseriesrequesttimeseriesview.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservicesettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/AsyncCreateNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelFoldernameNotificationchannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelOrganizationnameNotificationchannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelProjectnameNotificationchannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/createnotificationchannel/SyncCreateNotificationChannelStringNotificationchannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/AsyncDeleteNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelNotificationchannelnameBoolean.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/deletenotificationchannel/SyncDeleteNotificationChannelStringBoolean.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/AsyncGetNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelNotificationchannelname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannel/SyncGetNotificationChannelString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/AsyncGetNotificationChannelDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorNotificationchanneldescriptorname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptorString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/AsyncGetNotificationChannelVerificationCode.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCode.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeNotificationchannelname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/getnotificationchannelverificationcode/SyncGetNotificationChannelVerificationCodeString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/AsyncListNotificationChannelDescriptorsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptors.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchanneldescriptors/SyncListNotificationChannelDescriptorsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannels.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/AsyncListNotificationChannelsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannels.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/listnotificationchannels/SyncListNotificationChannelsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/AsyncSendNotificationChannelVerificationCode.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCode.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeNotificationchannelname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/sendnotificationchannelverificationcode/SyncSendNotificationChannelVerificationCodeString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/AsyncUpdateNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/updatenotificationchannel/SyncUpdateNotificationChannelFieldmaskNotificationchannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/AsyncVerifyNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannel.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelNotificationchannelnameString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservice/verifynotificationchannel/SyncVerifyNotificationChannelStringString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/notificationchannelservicesettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/AsyncQueryTimeSeriesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservice/querytimeseries/SyncQueryTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/queryservicesettings/querytimeseries/SyncQueryTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/AsyncCreateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceFoldernameService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceOrganizationnameService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceProjectnameService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservice/SyncCreateServiceStringService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/AsyncCreateServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveServicenameServicelevelobjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/createservicelevelobjective/SyncCreateServiceLevelObjectiveStringServicelevelobjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/AsyncDeleteService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceServicename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservice/SyncDeleteServiceString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/AsyncDeleteServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveServicelevelobjectivename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/deleteservicelevelobjective/SyncDeleteServiceLevelObjectiveString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/AsyncGetService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceServicename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservice/SyncGetServiceString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/AsyncGetServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveServicelevelobjectivename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/getservicelevelobjective/SyncGetServiceLevelObjectiveString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectives.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/AsyncListServiceLevelObjectivesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectives.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesServicename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservicelevelobjectives/SyncListServiceLevelObjectivesString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServices.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/AsyncListServicesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServices.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/listservices/SyncListServicesString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/AsyncUpdateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservice/SyncUpdateServiceService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/AsyncUpdateServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservice/updateservicelevelobjective/SyncUpdateServiceLevelObjectiveServicelevelobjective.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/servicemonitoringservicesettings/createservice/SyncCreateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/AsyncCreateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeProjectnameSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/createsnooze/SyncCreateSnoozeStringSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/AsyncGetSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeSnoozename.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/getsnooze/SyncGetSnoozeString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozes.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/AsyncListSnoozesPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozes.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/listsnoozes/SyncListSnoozesString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/AsyncUpdateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservice/updatesnooze/SyncUpdateSnoozeSnoozeFieldmask.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/snoozeservicesettings/createsnooze/SyncCreateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/alertpolicyservicestubsettings/getalertpolicy/SyncGetAlertPolicy.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/groupservicestubsettings/getgroup/SyncGetGroup.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/metricservicestubsettings/getmonitoredresourcedescriptor/SyncGetMonitoredResourceDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/notificationchannelservicestubsettings/getnotificationchanneldescriptor/SyncGetNotificationChannelDescriptor.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/queryservicestubsettings/querytimeseries/SyncQueryTimeSeries.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/servicemonitoringservicestubsettings/createservice/SyncCreateService.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/snoozeservicestubsettings/createsnooze/SyncCreateSnooze.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/stub/uptimecheckservicestubsettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/AsyncCreateUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigFoldernameUptimecheckconfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigOrganizationnameUptimecheckconfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigProjectnameUptimecheckconfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/createuptimecheckconfig/SyncCreateUptimeCheckConfigStringUptimecheckconfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/AsyncDeleteUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/deleteuptimecheckconfig/SyncDeleteUptimeCheckConfigUptimecheckconfigname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/AsyncGetUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/getuptimecheckconfig/SyncGetUptimeCheckConfigUptimecheckconfigname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigs.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/AsyncListUptimeCheckConfigsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigs.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsFoldername.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsOrganizationname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsProjectname.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckconfigs/SyncListUptimeCheckConfigsString.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIps.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/AsyncListUptimeCheckIpsPaged.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/listuptimecheckips/SyncListUptimeCheckIps.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/AsyncUpdateUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservice/updateuptimecheckconfig/SyncUpdateUptimeCheckConfigUptimecheckconfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
similarity index 100%
rename from owl-bot-staging/java-monitoring/v3/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
rename to java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/uptimecheckservicesettings/getuptimecheckconfig/SyncGetUptimeCheckConfig.java
diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
deleted file mode 100644
index 82cb474907ac..000000000000
--- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
+++ /dev/null
@@ -1,1085 +0,0 @@
-package com.google.monitoring.v3;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- * 
- * Manages metric descriptors, monitored resource descriptors, and
- * time series data.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/metric_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MetricServiceGrpc { - - private MetricServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.MetricService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", - requestType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod() { - io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; - if ((getListMonitoredResourceDescriptorsMethod = MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListMonitoredResourceDescriptorsMethod = MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod) == null) { - MetricServiceGrpc.getListMonitoredResourceDescriptorsMethod = getListMonitoredResourceDescriptorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListMonitoredResourceDescriptors")) - .build(); - } - } - } - return getListMonitoredResourceDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMonitoredResourceDescriptor", - requestType = com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.class, - responseType = com.google.api.MonitoredResourceDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod() { - io.grpc.MethodDescriptor getGetMonitoredResourceDescriptorMethod; - if ((getGetMonitoredResourceDescriptorMethod = MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getGetMonitoredResourceDescriptorMethod = MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod) == null) { - MetricServiceGrpc.getGetMonitoredResourceDescriptorMethod = getGetMonitoredResourceDescriptorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMonitoredResourceDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MonitoredResourceDescriptor.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("GetMonitoredResourceDescriptor")) - .build(); - } - } - } - return getGetMonitoredResourceDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMetricDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMetricDescriptors", - requestType = com.google.monitoring.v3.ListMetricDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListMetricDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMetricDescriptorsMethod() { - io.grpc.MethodDescriptor getListMetricDescriptorsMethod; - if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListMetricDescriptorsMethod = MetricServiceGrpc.getListMetricDescriptorsMethod) == null) { - MetricServiceGrpc.getListMetricDescriptorsMethod = getListMetricDescriptorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMetricDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMetricDescriptorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListMetricDescriptorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListMetricDescriptors")) - .build(); - } - } - } - return getListMetricDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetricDescriptor", - requestType = com.google.monitoring.v3.GetMetricDescriptorRequest.class, - responseType = com.google.api.MetricDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMetricDescriptorMethod() { - io.grpc.MethodDescriptor getGetMetricDescriptorMethod; - if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getGetMetricDescriptorMethod = MetricServiceGrpc.getGetMetricDescriptorMethod) == null) { - MetricServiceGrpc.getGetMetricDescriptorMethod = getGetMetricDescriptorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MetricDescriptor.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("GetMetricDescriptor")) - .build(); - } - } - } - return getGetMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMetricDescriptor", - requestType = com.google.monitoring.v3.CreateMetricDescriptorRequest.class, - responseType = com.google.api.MetricDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMetricDescriptorMethod() { - io.grpc.MethodDescriptor getCreateMetricDescriptorMethod; - if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateMetricDescriptorMethod = MetricServiceGrpc.getCreateMetricDescriptorMethod) == null) { - MetricServiceGrpc.getCreateMetricDescriptorMethod = getCreateMetricDescriptorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateMetricDescriptorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.MetricDescriptor.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateMetricDescriptor")) - .build(); - } - } - } - return getCreateMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMetricDescriptor", - requestType = com.google.monitoring.v3.DeleteMetricDescriptorRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod() { - io.grpc.MethodDescriptor getDeleteMetricDescriptorMethod; - if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getDeleteMetricDescriptorMethod = MetricServiceGrpc.getDeleteMetricDescriptorMethod) == null) { - MetricServiceGrpc.getDeleteMetricDescriptorMethod = getDeleteMetricDescriptorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMetricDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteMetricDescriptorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("DeleteMetricDescriptor")) - .build(); - } - } - } - return getDeleteMetricDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTimeSeries", - requestType = com.google.monitoring.v3.ListTimeSeriesRequest.class, - responseType = com.google.monitoring.v3.ListTimeSeriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTimeSeriesMethod() { - io.grpc.MethodDescriptor getListTimeSeriesMethod; - if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getListTimeSeriesMethod = MetricServiceGrpc.getListTimeSeriesMethod) == null) { - MetricServiceGrpc.getListTimeSeriesMethod = getListTimeSeriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListTimeSeriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("ListTimeSeries")) - .build(); - } - } - } - return getListTimeSeriesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTimeSeries", - requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTimeSeriesMethod() { - io.grpc.MethodDescriptor getCreateTimeSeriesMethod; - if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateTimeSeriesMethod = MetricServiceGrpc.getCreateTimeSeriesMethod) == null) { - MetricServiceGrpc.getCreateTimeSeriesMethod = getCreateTimeSeriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateTimeSeries")) - .build(); - } - } - } - return getCreateTimeSeriesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceTimeSeries", - requestType = com.google.monitoring.v3.CreateTimeSeriesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod() { - io.grpc.MethodDescriptor getCreateServiceTimeSeriesMethod; - if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) == null) { - synchronized (MetricServiceGrpc.class) { - if ((getCreateServiceTimeSeriesMethod = MetricServiceGrpc.getCreateServiceTimeSeriesMethod) == null) { - MetricServiceGrpc.getCreateServiceTimeSeriesMethod = getCreateServiceTimeSeriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceTimeSeries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateTimeSeriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MetricServiceMethodDescriptorSupplier("CreateServiceTimeSeries")) - .build(); - } - } - } - return getCreateServiceTimeSeriesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MetricServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceStub(channel, callOptions); - } - }; - return MetricServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MetricServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceBlockingStub(channel, callOptions); - } - }; - return MetricServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MetricServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceFutureStub(channel, callOptions); - } - }; - return MetricServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMonitoredResourceDescriptorsMethod(), responseObserver); - } - - /** - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - default void getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMonitoredResourceDescriptorMethod(), responseObserver); - } - - /** - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMetricDescriptorsMethod(), responseObserver); - } - - /** - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - default void getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricDescriptorMethod(), responseObserver); - } - - /** - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - default void createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMetricDescriptorMethod(), responseObserver); - } - - /** - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - default void deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMetricDescriptorMethod(), responseObserver); - } - - /** - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - default void listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTimeSeriesMethod(), responseObserver); - } - - /** - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - default void createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTimeSeriesMethod(), responseObserver); - } - - /** - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - default void createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceTimeSeriesMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service MetricService. - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static abstract class MetricServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return MetricServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service MetricService. - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private MetricServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceStub(channel, callOptions); - } - - /** - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public void getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public void getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public void createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public void deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public void listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public void createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public void createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service MetricService. - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MetricServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor(com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMonitoredResourceDescriptorMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors(com.google.monitoring.v3.ListMetricDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMetricDescriptorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.api.MetricDescriptor getMetricDescriptor(com.google.monitoring.v3.GetMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public com.google.api.MetricDescriptor createMetricDescriptor(com.google.monitoring.v3.CreateMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public com.google.protobuf.Empty deleteMetricDescriptor(com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMetricDescriptorMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries(com.google.monitoring.v3.ListTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTimeSeriesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public com.google.protobuf.Empty createTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public com.google.protobuf.Empty createServiceTimeSeries(com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricService. - *
-   * Manages metric descriptors, monitored resource descriptors, and
-   * time series data.
-   * 
- */ - public static final class MetricServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private MetricServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single monitored resource descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMonitoredResourceDescriptorMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists metric descriptors that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMetricDescriptors( - com.google.monitoring.v3.ListMetricDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMetricDescriptorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single metric descriptor. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMetricDescriptor( - com.google.monitoring.v3.GetMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new metric descriptor.
-     * The creation is executed asynchronously and callers may check the returned
-     * operation to track its progress.
-     * User-created metric descriptors define
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMetricDescriptor( - com.google.monitoring.v3.CreateMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a metric descriptor. Only user-created
-     * [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
-     * deleted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMetricDescriptor( - com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMetricDescriptorMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists time series that match a filter. This method does not require a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTimeSeries( - com.google.monitoring.v3.ListTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTimeSeriesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or adds data to one or more time series.
-     * The response is empty if all time series in the request were written.
-     * If any time series could not be written, a corresponding failure message is
-     * included in the error response.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTimeSeriesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or adds data to one or more service time series. A service time
-     * series is a time series for a metric from a Google Cloud service. The
-     * response is empty if all time series in the request were written. If any
-     * time series could not be written, a corresponding failure message is
-     * included in the error response. This endpoint rejects writes to
-     * user-defined metrics.
-     * This method is only for use by Google Cloud services. Use
-     * [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
-     * instead.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createServiceTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceTimeSeriesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 0; - private static final int METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR = 1; - private static final int METHODID_LIST_METRIC_DESCRIPTORS = 2; - private static final int METHODID_GET_METRIC_DESCRIPTOR = 3; - private static final int METHODID_CREATE_METRIC_DESCRIPTOR = 4; - private static final int METHODID_DELETE_METRIC_DESCRIPTOR = 5; - private static final int METHODID_LIST_TIME_SERIES = 6; - private static final int METHODID_CREATE_TIME_SERIES = 7; - private static final int METHODID_CREATE_SERVICE_TIME_SERIES = 8; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: - serviceImpl.listMonitoredResourceDescriptors((com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR: - serviceImpl.getMonitoredResourceDescriptor((com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_METRIC_DESCRIPTORS: - serviceImpl.listMetricDescriptors((com.google.monitoring.v3.ListMetricDescriptorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_METRIC_DESCRIPTOR: - serviceImpl.getMetricDescriptor((com.google.monitoring.v3.GetMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_METRIC_DESCRIPTOR: - serviceImpl.createMetricDescriptor((com.google.monitoring.v3.CreateMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_METRIC_DESCRIPTOR: - serviceImpl.deleteMetricDescriptor((com.google.monitoring.v3.DeleteMetricDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TIME_SERIES: - serviceImpl.listTimeSeries((com.google.monitoring.v3.ListTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TIME_SERIES: - serviceImpl.createTimeSeries((com.google.monitoring.v3.CreateTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_TIME_SERIES: - serviceImpl.createServiceTimeSeries((com.google.monitoring.v3.CreateTimeSeriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest, - com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>( - service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) - .addMethod( - getGetMonitoredResourceDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest, - com.google.api.MonitoredResourceDescriptor>( - service, METHODID_GET_MONITORED_RESOURCE_DESCRIPTOR))) - .addMethod( - getListMetricDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListMetricDescriptorsRequest, - com.google.monitoring.v3.ListMetricDescriptorsResponse>( - service, METHODID_LIST_METRIC_DESCRIPTORS))) - .addMethod( - getGetMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetMetricDescriptorRequest, - com.google.api.MetricDescriptor>( - service, METHODID_GET_METRIC_DESCRIPTOR))) - .addMethod( - getCreateMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateMetricDescriptorRequest, - com.google.api.MetricDescriptor>( - service, METHODID_CREATE_METRIC_DESCRIPTOR))) - .addMethod( - getDeleteMetricDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteMetricDescriptorRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_METRIC_DESCRIPTOR))) - .addMethod( - getListTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListTimeSeriesRequest, - com.google.monitoring.v3.ListTimeSeriesResponse>( - service, METHODID_LIST_TIME_SERIES))) - .addMethod( - getCreateTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateTimeSeriesRequest, - com.google.protobuf.Empty>( - service, METHODID_CREATE_TIME_SERIES))) - .addMethod( - getCreateServiceTimeSeriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateTimeSeriesRequest, - com.google.protobuf.Empty>( - service, METHODID_CREATE_SERVICE_TIME_SERIES))) - .build(); - } - - private static abstract class MetricServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MetricServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.MetricServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MetricService"); - } - } - - private static final class MetricServiceFileDescriptorSupplier - extends MetricServiceBaseDescriptorSupplier { - MetricServiceFileDescriptorSupplier() {} - } - - private static final class MetricServiceMethodDescriptorSupplier - extends MetricServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MetricServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (MetricServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MetricServiceFileDescriptorSupplier()) - .addMethod(getListMonitoredResourceDescriptorsMethod()) - .addMethod(getGetMonitoredResourceDescriptorMethod()) - .addMethod(getListMetricDescriptorsMethod()) - .addMethod(getGetMetricDescriptorMethod()) - .addMethod(getCreateMetricDescriptorMethod()) - .addMethod(getDeleteMetricDescriptorMethod()) - .addMethod(getListTimeSeriesMethod()) - .addMethod(getCreateTimeSeriesMethod()) - .addMethod(getCreateServiceTimeSeriesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java deleted file mode 100644 index 106cd656b1b5..000000000000 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java +++ /dev/null @@ -1,1279 +0,0 @@ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The Notification Channel API provides access to configuration that
- * controls how messages related to incidents are sent.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/notification_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NotificationChannelServiceGrpc { - - private NotificationChannelServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.NotificationChannelService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannelDescriptors", - requestType = com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.class, - responseType = com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod() { - io.grpc.MethodDescriptor getListNotificationChannelDescriptorsMethod; - if ((getListNotificationChannelDescriptorsMethod = NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getListNotificationChannelDescriptorsMethod = NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod) == null) { - NotificationChannelServiceGrpc.getListNotificationChannelDescriptorsMethod = getListNotificationChannelDescriptorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationChannelDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("ListNotificationChannelDescriptors")) - .build(); - } - } - } - return getListNotificationChannelDescriptorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelDescriptor", - requestType = com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.class, - responseType = com.google.monitoring.v3.NotificationChannelDescriptor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod() { - io.grpc.MethodDescriptor getGetNotificationChannelDescriptorMethod; - if ((getGetNotificationChannelDescriptorMethod = NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelDescriptorMethod = NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod) == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelDescriptorMethod = getGetNotificationChannelDescriptorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannelDescriptor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannelDescriptor.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannelDescriptor")) - .build(); - } - } - } - return getGetNotificationChannelDescriptorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNotificationChannelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationChannels", - requestType = com.google.monitoring.v3.ListNotificationChannelsRequest.class, - responseType = com.google.monitoring.v3.ListNotificationChannelsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNotificationChannelsMethod() { - io.grpc.MethodDescriptor getListNotificationChannelsMethod; - if ((getListNotificationChannelsMethod = NotificationChannelServiceGrpc.getListNotificationChannelsMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getListNotificationChannelsMethod = NotificationChannelServiceGrpc.getListNotificationChannelsMethod) == null) { - NotificationChannelServiceGrpc.getListNotificationChannelsMethod = getListNotificationChannelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationChannels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListNotificationChannelsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("ListNotificationChannels")) - .build(); - } - } - } - return getListNotificationChannelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannel", - requestType = com.google.monitoring.v3.GetNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationChannelMethod() { - io.grpc.MethodDescriptor getGetNotificationChannelMethod; - if ((getGetNotificationChannelMethod = NotificationChannelServiceGrpc.getGetNotificationChannelMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelMethod = NotificationChannelServiceGrpc.getGetNotificationChannelMethod) == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelMethod = getGetNotificationChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannel")) - .build(); - } - } - } - return getGetNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationChannel", - requestType = com.google.monitoring.v3.CreateNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNotificationChannelMethod() { - io.grpc.MethodDescriptor getCreateNotificationChannelMethod; - if ((getCreateNotificationChannelMethod = NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getCreateNotificationChannelMethod = NotificationChannelServiceGrpc.getCreateNotificationChannelMethod) == null) { - NotificationChannelServiceGrpc.getCreateNotificationChannelMethod = getCreateNotificationChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateNotificationChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("CreateNotificationChannel")) - .build(); - } - } - } - return getCreateNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationChannel", - requestType = com.google.monitoring.v3.UpdateNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNotificationChannelMethod() { - io.grpc.MethodDescriptor getUpdateNotificationChannelMethod; - if ((getUpdateNotificationChannelMethod = NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getUpdateNotificationChannelMethod = NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod) == null) { - NotificationChannelServiceGrpc.getUpdateNotificationChannelMethod = getUpdateNotificationChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("UpdateNotificationChannel")) - .build(); - } - } - } - return getUpdateNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationChannel", - requestType = com.google.monitoring.v3.DeleteNotificationChannelRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNotificationChannelMethod() { - io.grpc.MethodDescriptor getDeleteNotificationChannelMethod; - if ((getDeleteNotificationChannelMethod = NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getDeleteNotificationChannelMethod = NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod) == null) { - NotificationChannelServiceGrpc.getDeleteNotificationChannelMethod = getDeleteNotificationChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteNotificationChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("DeleteNotificationChannel")) - .build(); - } - } - } - return getDeleteNotificationChannelMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendNotificationChannelVerificationCode", - requestType = com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod() { - io.grpc.MethodDescriptor getSendNotificationChannelVerificationCodeMethod; - if ((getSendNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getSendNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod) == null) { - NotificationChannelServiceGrpc.getSendNotificationChannelVerificationCodeMethod = getSendNotificationChannelVerificationCodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendNotificationChannelVerificationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("SendNotificationChannelVerificationCode")) - .build(); - } - } - } - return getSendNotificationChannelVerificationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationChannelVerificationCode", - requestType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.class, - responseType = com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod() { - io.grpc.MethodDescriptor getGetNotificationChannelVerificationCodeMethod; - if ((getGetNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getGetNotificationChannelVerificationCodeMethod = NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod) == null) { - NotificationChannelServiceGrpc.getGetNotificationChannelVerificationCodeMethod = getGetNotificationChannelVerificationCodeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationChannelVerificationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("GetNotificationChannelVerificationCode")) - .build(); - } - } - } - return getGetNotificationChannelVerificationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor getVerifyNotificationChannelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyNotificationChannel", - requestType = com.google.monitoring.v3.VerifyNotificationChannelRequest.class, - responseType = com.google.monitoring.v3.NotificationChannel.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyNotificationChannelMethod() { - io.grpc.MethodDescriptor getVerifyNotificationChannelMethod; - if ((getVerifyNotificationChannelMethod = NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) == null) { - synchronized (NotificationChannelServiceGrpc.class) { - if ((getVerifyNotificationChannelMethod = NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod) == null) { - NotificationChannelServiceGrpc.getVerifyNotificationChannelMethod = getVerifyNotificationChannelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyNotificationChannel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.VerifyNotificationChannelRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) - .setSchemaDescriptor(new NotificationChannelServiceMethodDescriptorSupplier("VerifyNotificationChannel")) - .build(); - } - } - } - return getVerifyNotificationChannelMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static NotificationChannelServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceStub(channel, callOptions); - } - }; - return NotificationChannelServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NotificationChannelServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceBlockingStub(channel, callOptions); - } - }; - return NotificationChannelServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static NotificationChannelServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotificationChannelServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceFutureStub(channel, callOptions); - } - }; - return NotificationChannelServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - default void listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationChannelDescriptorsMethod(), responseObserver); - } - - /** - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - default void getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelDescriptorMethod(), responseObserver); - } - - /** - *
-     * Lists the notification channels that have been created for the project.
-     * To list the types of notification channels that are supported, use
-     * the `ListNotificationChannelDescriptors` method.
-     * 
- */ - default void listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationChannelsMethod(), responseObserver); - } - - /** - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - default void getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelMethod(), responseObserver); - } - - /** - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - default void createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationChannelMethod(), responseObserver); - } - - /** - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - default void updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationChannelMethod(), responseObserver); - } - - /** - *
-     * Deletes a notification channel.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - default void deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationChannelMethod(), responseObserver); - } - - /** - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - default void sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendNotificationChannelVerificationCodeMethod(), responseObserver); - } - - /** - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - default void getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationChannelVerificationCodeMethod(), responseObserver); - } - - /** - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - default void verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyNotificationChannelMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service NotificationChannelService. - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static abstract class NotificationChannelServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return NotificationChannelServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service NotificationChannelService. - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private NotificationChannelServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceStub(channel, callOptions); - } - - /** - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public void listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public void getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the notification channels that have been created for the project.
-     * To list the types of notification channels that are supported, use
-     * the `ListNotificationChannelDescriptors` method.
-     * 
- */ - public void listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public void getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public void createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public void updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a notification channel.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public void deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public void sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public void getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public void verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service NotificationChannelService. - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private NotificationChannelServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse listNotificationChannelDescriptors(com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationChannelDescriptorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationChannelDescriptor(com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationChannelDescriptorMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the notification channels that have been created for the project.
-     * To list the types of notification channels that are supported, use
-     * the `ListNotificationChannelDescriptors` method.
-     * 
- */ - public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificationChannels(com.google.monitoring.v3.ListNotificationChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationChannelsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel getNotificationChannel(com.google.monitoring.v3.GetNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationChannelMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel createNotificationChannel(com.google.monitoring.v3.CreateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationChannelMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel updateNotificationChannel(com.google.monitoring.v3.UpdateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationChannelMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a notification channel.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationChannel(com.google.monitoring.v3.DeleteNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationChannelMethod(), getCallOptions(), request); - } - - /** - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public com.google.protobuf.Empty sendNotificationChannelVerificationCode(com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendNotificationChannelVerificationCodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getNotificationChannelVerificationCode(com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationChannelVerificationCodeMethod(), getCallOptions(), request); - } - - /** - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public com.google.monitoring.v3.NotificationChannel verifyNotificationChannel(com.google.monitoring.v3.VerifyNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyNotificationChannelMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service NotificationChannelService. - *
-   * The Notification Channel API provides access to configuration that
-   * controls how messages related to incidents are sent.
-   * 
- */ - public static final class NotificationChannelServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private NotificationChannelServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotificationChannelServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotificationChannelServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists the descriptors for supported channel types. The use of descriptors
-     * makes it possible for new channel types to be dynamically added.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationChannelDescriptorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single channel descriptor. The descriptor indicates which fields
-     * are expected / permitted for a notification channel of the given type.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelDescriptorMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the notification channels that have been created for the project.
-     * To list the types of notification channels that are supported, use
-     * the `ListNotificationChannelDescriptors` method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNotificationChannels( - com.google.monitoring.v3.ListNotificationChannelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationChannelsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single notification channel. The channel includes the relevant
-     * configuration details with which the channel was created. However, the
-     * response may truncate or omit passwords, API keys, or other private key
-     * matter and thus the response may not be 100% identical to the information
-     * that was supplied in the call to the create method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotificationChannel( - com.google.monitoring.v3.GetNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new notification channel, representing a single notification
-     * endpoint such as an email address, SMS number, or PagerDuty service.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationChannelMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a notification channel. Fields not specified in the field mask
-     * remain unchanged.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationChannelMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a notification channel.
-     * Design your application to single-thread API calls that modify the state of
-     * notification channels in a single project. This includes calls to
-     * CreateNotificationChannel, DeleteNotificationChannel and
-     * UpdateNotificationChannel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationChannelMethod(), getCallOptions()), request); - } - - /** - *
-     * Causes a verification code to be delivered to the channel. The code
-     * can then be supplied in `VerifyNotificationChannel` to verify the channel.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendNotificationChannelVerificationCodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Requests a verification code for an already verified channel that can then
-     * be used in a call to VerifyNotificationChannel() on a different channel
-     * with an equivalent identity in the same or in a different project. This
-     * makes it possible to copy a channel between projects without requiring
-     * manual reverification of the channel. If the channel is not in the
-     * verified state, this method will fail (in other words, this may only be
-     * used if the SendNotificationChannelVerificationCode and
-     * VerifyNotificationChannel paths have already been used to put the given
-     * channel into the verified state).
-     * There is no guarantee that the verification codes returned by this method
-     * will be of a similar structure or form as the ones that are delivered
-     * to the channel via SendNotificationChannelVerificationCode; while
-     * VerifyNotificationChannel() will recognize both the codes delivered via
-     * SendNotificationChannelVerificationCode() and returned from
-     * GetNotificationChannelVerificationCode(), it is typically the case that
-     * the verification codes delivered via
-     * SendNotificationChannelVerificationCode() will be shorter and also
-     * have a shorter expiration (e.g. codes such as "G-123456") whereas
-     * GetVerificationCode() will typically return a much longer, websafe base
-     * 64 encoded string that has a longer expiration time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationChannelVerificationCodeMethod(), getCallOptions()), request); - } - - /** - *
-     * Verifies a `NotificationChannel` by proving receipt of the code
-     * delivered to the channel as a result of calling
-     * `SendNotificationChannelVerificationCode`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyNotificationChannelMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS = 0; - private static final int METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR = 1; - private static final int METHODID_LIST_NOTIFICATION_CHANNELS = 2; - private static final int METHODID_GET_NOTIFICATION_CHANNEL = 3; - private static final int METHODID_CREATE_NOTIFICATION_CHANNEL = 4; - private static final int METHODID_UPDATE_NOTIFICATION_CHANNEL = 5; - private static final int METHODID_DELETE_NOTIFICATION_CHANNEL = 6; - private static final int METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 7; - private static final int METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE = 8; - private static final int METHODID_VERIFY_NOTIFICATION_CHANNEL = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS: - serviceImpl.listNotificationChannelDescriptors((com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR: - serviceImpl.getNotificationChannelDescriptor((com.google.monitoring.v3.GetNotificationChannelDescriptorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CHANNELS: - serviceImpl.listNotificationChannels((com.google.monitoring.v3.ListNotificationChannelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL: - serviceImpl.getNotificationChannel((com.google.monitoring.v3.GetNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CHANNEL: - serviceImpl.createNotificationChannel((com.google.monitoring.v3.CreateNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CHANNEL: - serviceImpl.updateNotificationChannel((com.google.monitoring.v3.UpdateNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CHANNEL: - serviceImpl.deleteNotificationChannel((com.google.monitoring.v3.DeleteNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE: - serviceImpl.sendNotificationChannelVerificationCode((com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE: - serviceImpl.getNotificationChannelVerificationCode((com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_NOTIFICATION_CHANNEL: - serviceImpl.verifyNotificationChannel((com.google.monitoring.v3.VerifyNotificationChannelRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNotificationChannelDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest, - com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse>( - service, METHODID_LIST_NOTIFICATION_CHANNEL_DESCRIPTORS))) - .addMethod( - getGetNotificationChannelDescriptorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest, - com.google.monitoring.v3.NotificationChannelDescriptor>( - service, METHODID_GET_NOTIFICATION_CHANNEL_DESCRIPTOR))) - .addMethod( - getListNotificationChannelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListNotificationChannelsRequest, - com.google.monitoring.v3.ListNotificationChannelsResponse>( - service, METHODID_LIST_NOTIFICATION_CHANNELS))) - .addMethod( - getGetNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_GET_NOTIFICATION_CHANNEL))) - .addMethod( - getCreateNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_CREATE_NOTIFICATION_CHANNEL))) - .addMethod( - getUpdateNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_UPDATE_NOTIFICATION_CHANNEL))) - .addMethod( - getDeleteNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteNotificationChannelRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_NOTIFICATION_CHANNEL))) - .addMethod( - getSendNotificationChannelVerificationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest, - com.google.protobuf.Empty>( - service, METHODID_SEND_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) - .addMethod( - getGetNotificationChannelVerificationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest, - com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>( - service, METHODID_GET_NOTIFICATION_CHANNEL_VERIFICATION_CODE))) - .addMethod( - getVerifyNotificationChannelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.VerifyNotificationChannelRequest, - com.google.monitoring.v3.NotificationChannel>( - service, METHODID_VERIFY_NOTIFICATION_CHANNEL))) - .build(); - } - - private static abstract class NotificationChannelServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NotificationChannelServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.NotificationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NotificationChannelService"); - } - } - - private static final class NotificationChannelServiceFileDescriptorSupplier - extends NotificationChannelServiceBaseDescriptorSupplier { - NotificationChannelServiceFileDescriptorSupplier() {} - } - - private static final class NotificationChannelServiceMethodDescriptorSupplier - extends NotificationChannelServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NotificationChannelServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NotificationChannelServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NotificationChannelServiceFileDescriptorSupplier()) - .addMethod(getListNotificationChannelDescriptorsMethod()) - .addMethod(getGetNotificationChannelDescriptorMethod()) - .addMethod(getListNotificationChannelsMethod()) - .addMethod(getGetNotificationChannelMethod()) - .addMethod(getCreateNotificationChannelMethod()) - .addMethod(getUpdateNotificationChannelMethod()) - .addMethod(getDeleteNotificationChannelMethod()) - .addMethod(getSendNotificationChannelVerificationCodeMethod()) - .addMethod(getGetNotificationChannelVerificationCodeMethod()) - .addMethod(getVerifyNotificationChannelMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java deleted file mode 100644 index 6d4835015364..000000000000 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java +++ /dev/null @@ -1,1115 +0,0 @@ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
- * managing and querying aspects of a workspace's services. These include the
- * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
- * of categorized Health Metrics.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/service_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ServiceMonitoringServiceGrpc { - - private ServiceMonitoringServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.ServiceMonitoringService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateService", - requestType = com.google.monitoring.v3.CreateServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceMethod() { - io.grpc.MethodDescriptor getCreateServiceMethod; - if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getCreateServiceMethod = ServiceMonitoringServiceGrpc.getCreateServiceMethod) == null) { - ServiceMonitoringServiceGrpc.getCreateServiceMethod = getCreateServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("CreateService")) - .build(); - } - } - } - return getCreateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetService", - requestType = com.google.monitoring.v3.GetServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetServiceMethod() { - io.grpc.MethodDescriptor getGetServiceMethod; - if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getGetServiceMethod = ServiceMonitoringServiceGrpc.getGetServiceMethod) == null) { - ServiceMonitoringServiceGrpc.getGetServiceMethod = getGetServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("GetService")) - .build(); - } - } - } - return getGetServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.monitoring.v3.ListServicesRequest.class, - responseType = com.google.monitoring.v3.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListServicesMethod() { - io.grpc.MethodDescriptor getListServicesMethod; - if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getListServicesMethod = ServiceMonitoringServiceGrpc.getListServicesMethod) == null) { - ServiceMonitoringServiceGrpc.getListServicesMethod = getListServicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("ListServices")) - .build(); - } - } - } - return getListServicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateService", - requestType = com.google.monitoring.v3.UpdateServiceRequest.class, - responseType = com.google.monitoring.v3.Service.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateServiceMethod() { - io.grpc.MethodDescriptor getUpdateServiceMethod; - if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getUpdateServiceMethod = ServiceMonitoringServiceGrpc.getUpdateServiceMethod) == null) { - ServiceMonitoringServiceGrpc.getUpdateServiceMethod = getUpdateServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.Service.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateService")) - .build(); - } - } - } - return getUpdateServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteService", - requestType = com.google.monitoring.v3.DeleteServiceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteServiceMethod() { - io.grpc.MethodDescriptor getDeleteServiceMethod; - if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getDeleteServiceMethod = ServiceMonitoringServiceGrpc.getDeleteServiceMethod) == null) { - ServiceMonitoringServiceGrpc.getDeleteServiceMethod = getDeleteServiceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteServiceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteService")) - .build(); - } - } - } - return getDeleteServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceLevelObjective", - requestType = com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor getCreateServiceLevelObjectiveMethod; - if ((getCreateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getCreateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod) == null) { - ServiceMonitoringServiceGrpc.getCreateServiceLevelObjectiveMethod = getCreateServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("CreateServiceLevelObjective")) - .build(); - } - } - } - return getCreateServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServiceLevelObjective", - requestType = com.google.monitoring.v3.GetServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor getGetServiceLevelObjectiveMethod; - if ((getGetServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getGetServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod) == null) { - ServiceMonitoringServiceGrpc.getGetServiceLevelObjectiveMethod = getGetServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("GetServiceLevelObjective")) - .build(); - } - } - } - return getGetServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServiceLevelObjectives", - requestType = com.google.monitoring.v3.ListServiceLevelObjectivesRequest.class, - responseType = com.google.monitoring.v3.ListServiceLevelObjectivesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod() { - io.grpc.MethodDescriptor getListServiceLevelObjectivesMethod; - if ((getListServiceLevelObjectivesMethod = ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getListServiceLevelObjectivesMethod = ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod) == null) { - ServiceMonitoringServiceGrpc.getListServiceLevelObjectivesMethod = getListServiceLevelObjectivesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServiceLevelObjectives")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListServiceLevelObjectivesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("ListServiceLevelObjectives")) - .build(); - } - } - } - return getListServiceLevelObjectivesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateServiceLevelObjective", - requestType = com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.class, - responseType = com.google.monitoring.v3.ServiceLevelObjective.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor getUpdateServiceLevelObjectiveMethod; - if ((getUpdateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getUpdateServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod) == null) { - ServiceMonitoringServiceGrpc.getUpdateServiceLevelObjectiveMethod = getUpdateServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ServiceLevelObjective.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("UpdateServiceLevelObjective")) - .build(); - } - } - } - return getUpdateServiceLevelObjectiveMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServiceLevelObjective", - requestType = com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod() { - io.grpc.MethodDescriptor getDeleteServiceLevelObjectiveMethod; - if ((getDeleteServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - if ((getDeleteServiceLevelObjectiveMethod = ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod) == null) { - ServiceMonitoringServiceGrpc.getDeleteServiceLevelObjectiveMethod = getDeleteServiceLevelObjectiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServiceLevelObjective")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ServiceMonitoringServiceMethodDescriptorSupplier("DeleteServiceLevelObjective")) - .build(); - } - } - } - return getDeleteServiceLevelObjectiveMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ServiceMonitoringServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ServiceMonitoringServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceBlockingStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ServiceMonitoringServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ServiceMonitoringServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceFutureStub(channel, callOptions); - } - }; - return ServiceMonitoringServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Create a `Service`.
-     * 
- */ - default void createService(com.google.monitoring.v3.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); - } - - /** - *
-     * Get the named `Service`.
-     * 
- */ - default void getService(com.google.monitoring.v3.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); - } - - /** - *
-     * List `Service`s for this workspace.
-     * 
- */ - default void listServices(com.google.monitoring.v3.ListServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); - } - - /** - *
-     * Update this `Service`.
-     * 
- */ - default void updateService(com.google.monitoring.v3.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); - } - - /** - *
-     * Soft delete this `Service`.
-     * 
- */ - default void deleteService(com.google.monitoring.v3.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); - } - - /** - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - default void createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceLevelObjectiveMethod(), responseObserver); - } - - /** - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - default void getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceLevelObjectiveMethod(), responseObserver); - } - - /** - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - default void listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServiceLevelObjectivesMethod(), responseObserver); - } - - /** - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - default void updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceLevelObjectiveMethod(), responseObserver); - } - - /** - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - default void deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceLevelObjectiveMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ServiceMonitoringService. - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static abstract class ServiceMonitoringServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ServiceMonitoringServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ServiceMonitoringService. - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ServiceMonitoringServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceStub(channel, callOptions); - } - - /** - *
-     * Create a `Service`.
-     * 
- */ - public void createService(com.google.monitoring.v3.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the named `Service`.
-     * 
- */ - public void getService(com.google.monitoring.v3.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List `Service`s for this workspace.
-     * 
- */ - public void listServices(com.google.monitoring.v3.ListServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update this `Service`.
-     * 
- */ - public void updateService(com.google.monitoring.v3.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Soft delete this `Service`.
-     * 
- */ - public void deleteService(com.google.monitoring.v3.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public void createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public void getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public void listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public void updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public void deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ServiceMonitoringService. - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ServiceMonitoringServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service createService(com.google.monitoring.v3.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the named `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service getService(com.google.monitoring.v3.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * List `Service`s for this workspace.
-     * 
- */ - public com.google.monitoring.v3.ListServicesResponse listServices(com.google.monitoring.v3.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update this `Service`.
-     * 
- */ - public com.google.monitoring.v3.Service updateService(com.google.monitoring.v3.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Soft delete this `Service`.
-     * 
- */ - public com.google.protobuf.Empty deleteService(com.google.monitoring.v3.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjective(com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective(com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLevelObjectives(com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServiceLevelObjectivesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjective(com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceLevelObjectiveMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.protobuf.Empty deleteServiceLevelObjective(com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceLevelObjectiveMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceMonitoringService. - *
-   * The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
-   * managing and querying aspects of a workspace's services. These include the
-   * `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
-   * of categorized Health Metrics.
-   * 
- */ - public static final class ServiceMonitoringServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ServiceMonitoringServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ServiceMonitoringServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ServiceMonitoringServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Create a `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createService( - com.google.monitoring.v3.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the named `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getService( - com.google.monitoring.v3.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * List `Service`s for this workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listServices( - com.google.monitoring.v3.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update this `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateService( - com.google.monitoring.v3.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Soft delete this `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteService( - com.google.monitoring.v3.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a `ServiceLevelObjective` for the given `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a `ServiceLevelObjective` by name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getServiceLevelObjective( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - *
-     * List the `ServiceLevelObjective`s for the given `Service`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServiceLevelObjectivesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceLevelObjectiveMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete the given `ServiceLevelObjective`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceLevelObjectiveMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SERVICE = 0; - private static final int METHODID_GET_SERVICE = 1; - private static final int METHODID_LIST_SERVICES = 2; - private static final int METHODID_UPDATE_SERVICE = 3; - private static final int METHODID_DELETE_SERVICE = 4; - private static final int METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE = 5; - private static final int METHODID_GET_SERVICE_LEVEL_OBJECTIVE = 6; - private static final int METHODID_LIST_SERVICE_LEVEL_OBJECTIVES = 7; - private static final int METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE = 8; - private static final int METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SERVICE: - serviceImpl.createService((com.google.monitoring.v3.CreateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE: - serviceImpl.getService((com.google.monitoring.v3.GetServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICES: - serviceImpl.listServices((com.google.monitoring.v3.ListServicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVICE: - serviceImpl.updateService((com.google.monitoring.v3.UpdateServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE: - serviceImpl.deleteService((com.google.monitoring.v3.DeleteServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.createServiceLevelObjective((com.google.monitoring.v3.CreateServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.getServiceLevelObjective((com.google.monitoring.v3.GetServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICE_LEVEL_OBJECTIVES: - serviceImpl.listServiceLevelObjectives((com.google.monitoring.v3.ListServiceLevelObjectivesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.updateServiceLevelObjective((com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE: - serviceImpl.deleteServiceLevelObjective((com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateServiceRequest, - com.google.monitoring.v3.Service>( - service, METHODID_CREATE_SERVICE))) - .addMethod( - getGetServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetServiceRequest, - com.google.monitoring.v3.Service>( - service, METHODID_GET_SERVICE))) - .addMethod( - getListServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListServicesRequest, - com.google.monitoring.v3.ListServicesResponse>( - service, METHODID_LIST_SERVICES))) - .addMethod( - getUpdateServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateServiceRequest, - com.google.monitoring.v3.Service>( - service, METHODID_UPDATE_SERVICE))) - .addMethod( - getDeleteServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteServiceRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SERVICE))) - .addMethod( - getCreateServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_CREATE_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getGetServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_GET_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getListServiceLevelObjectivesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListServiceLevelObjectivesRequest, - com.google.monitoring.v3.ListServiceLevelObjectivesResponse>( - service, METHODID_LIST_SERVICE_LEVEL_OBJECTIVES))) - .addMethod( - getUpdateServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest, - com.google.monitoring.v3.ServiceLevelObjective>( - service, METHODID_UPDATE_SERVICE_LEVEL_OBJECTIVE))) - .addMethod( - getDeleteServiceLevelObjectiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SERVICE_LEVEL_OBJECTIVE))) - .build(); - } - - private static abstract class ServiceMonitoringServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ServiceMonitoringServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.ServiceMonitoringServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ServiceMonitoringService"); - } - } - - private static final class ServiceMonitoringServiceFileDescriptorSupplier - extends ServiceMonitoringServiceBaseDescriptorSupplier { - ServiceMonitoringServiceFileDescriptorSupplier() {} - } - - private static final class ServiceMonitoringServiceMethodDescriptorSupplier - extends ServiceMonitoringServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ServiceMonitoringServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ServiceMonitoringServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ServiceMonitoringServiceFileDescriptorSupplier()) - .addMethod(getCreateServiceMethod()) - .addMethod(getGetServiceMethod()) - .addMethod(getListServicesMethod()) - .addMethod(getUpdateServiceMethod()) - .addMethod(getDeleteServiceMethod()) - .addMethod(getCreateServiceLevelObjectiveMethod()) - .addMethod(getGetServiceLevelObjectiveMethod()) - .addMethod(getListServiceLevelObjectivesMethod()) - .addMethod(getUpdateServiceLevelObjectiveMethod()) - .addMethod(getDeleteServiceLevelObjectiveMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java deleted file mode 100644 index 3228e1912a0f..000000000000 --- a/owl-bot-staging/java-monitoring/v3/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java +++ /dev/null @@ -1,819 +0,0 @@ -package com.google.monitoring.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The UptimeCheckService API is used to manage (list, create, delete, edit)
- * Uptime check configurations in the Cloud Monitoring product. An Uptime
- * check is a piece of configuration that determines which resources and
- * services to monitor for availability. These configurations can also be
- * configured interactively by navigating to the [Cloud console]
- * (https://console.cloud.google.com), selecting the appropriate project,
- * clicking on "Monitoring" on the left-hand side to navigate to Cloud
- * Monitoring, and then clicking on "Uptime".
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/uptime_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UptimeCheckServiceGrpc { - - private UptimeCheckServiceGrpc() {} - - public static final String SERVICE_NAME = "google.monitoring.v3.UptimeCheckService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckConfigs", - requestType = com.google.monitoring.v3.ListUptimeCheckConfigsRequest.class, - responseType = com.google.monitoring.v3.ListUptimeCheckConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod() { - io.grpc.MethodDescriptor getListUptimeCheckConfigsMethod; - if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getListUptimeCheckConfigsMethod = UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod) == null) { - UptimeCheckServiceGrpc.getListUptimeCheckConfigsMethod = getListUptimeCheckConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckConfigs")) - .build(); - } - } - } - return getListUptimeCheckConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUptimeCheckConfig", - requestType = com.google.monitoring.v3.GetUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor getGetUptimeCheckConfigMethod; - if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getGetUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod) == null) { - UptimeCheckServiceGrpc.getGetUptimeCheckConfigMethod = getGetUptimeCheckConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("GetUptimeCheckConfig")) - .build(); - } - } - } - return getGetUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateUptimeCheckConfig", - requestType = com.google.monitoring.v3.CreateUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor getCreateUptimeCheckConfigMethod; - if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getCreateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod) == null) { - UptimeCheckServiceGrpc.getCreateUptimeCheckConfigMethod = getCreateUptimeCheckConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("CreateUptimeCheckConfig")) - .build(); - } - } - } - return getCreateUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateUptimeCheckConfig", - requestType = com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.class, - responseType = com.google.monitoring.v3.UptimeCheckConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor getUpdateUptimeCheckConfigMethod; - if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getUpdateUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod) == null) { - UptimeCheckServiceGrpc.getUpdateUptimeCheckConfigMethod = getUpdateUptimeCheckConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.UptimeCheckConfig.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("UpdateUptimeCheckConfig")) - .build(); - } - } - } - return getUpdateUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteUptimeCheckConfig", - requestType = com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod() { - io.grpc.MethodDescriptor getDeleteUptimeCheckConfigMethod; - if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getDeleteUptimeCheckConfigMethod = UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod) == null) { - UptimeCheckServiceGrpc.getDeleteUptimeCheckConfigMethod = getDeleteUptimeCheckConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUptimeCheckConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("DeleteUptimeCheckConfig")) - .build(); - } - } - } - return getDeleteUptimeCheckConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUptimeCheckIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUptimeCheckIps", - requestType = com.google.monitoring.v3.ListUptimeCheckIpsRequest.class, - responseType = com.google.monitoring.v3.ListUptimeCheckIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUptimeCheckIpsMethod() { - io.grpc.MethodDescriptor getListUptimeCheckIpsMethod; - if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) == null) { - synchronized (UptimeCheckServiceGrpc.class) { - if ((getListUptimeCheckIpsMethod = UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod) == null) { - UptimeCheckServiceGrpc.getListUptimeCheckIpsMethod = getListUptimeCheckIpsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUptimeCheckIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckIpsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.monitoring.v3.ListUptimeCheckIpsResponse.getDefaultInstance())) - .setSchemaDescriptor(new UptimeCheckServiceMethodDescriptorSupplier("ListUptimeCheckIps")) - .build(); - } - } - } - return getListUptimeCheckIpsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static UptimeCheckServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceStub(channel, callOptions); - } - }; - return UptimeCheckServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UptimeCheckServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceBlockingStub(channel, callOptions); - } - }; - return UptimeCheckServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static UptimeCheckServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UptimeCheckServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceFutureStub(channel, callOptions); - } - }; - return UptimeCheckServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - default void listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUptimeCheckConfigsMethod(), responseObserver); - } - - /** - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - default void getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUptimeCheckConfigMethod(), responseObserver); - } - - /** - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - default void createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUptimeCheckConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - default void updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUptimeCheckConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - default void deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUptimeCheckConfigMethod(), responseObserver); - } - - /** - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - default void listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUptimeCheckIpsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service UptimeCheckService. - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static abstract class UptimeCheckServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return UptimeCheckServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service UptimeCheckService. - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private UptimeCheckServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceStub(channel, callOptions); - } - - /** - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public void listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public void getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public void createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public void updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public void deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public void listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service UptimeCheckService. - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private UptimeCheckServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckConfigs(com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUptimeCheckConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig(com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig(com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public com.google.protobuf.Empty deleteUptimeCheckConfig(com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUptimeCheckConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps(com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUptimeCheckIpsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service UptimeCheckService. - *
-   * The UptimeCheckService API is used to manage (list, create, delete, edit)
-   * Uptime check configurations in the Cloud Monitoring product. An Uptime
-   * check is a piece of configuration that determines which resources and
-   * services to monitor for availability. These configurations can also be
-   * configured interactively by navigating to the [Cloud console]
-   * (https://console.cloud.google.com), selecting the appropriate project,
-   * clicking on "Monitoring" on the left-hand side to navigate to Cloud
-   * Monitoring, and then clicking on "Uptime".
-   * 
- */ - public static final class UptimeCheckServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private UptimeCheckServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UptimeCheckServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UptimeCheckServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists the existing valid Uptime check configurations for the project
-     * (leaving out any invalid configurations).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUptimeCheckConfigs( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUptimeCheckConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single Uptime check configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getUptimeCheckConfig( - com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Uptime check configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createUptimeCheckConfig( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an Uptime check configuration. You can either replace the entire
-     * configuration with a new one or replace only certain fields in the current
-     * configuration by specifying the fields to be updated via `updateMask`.
-     * Returns the updated configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateUptimeCheckConfig( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an Uptime check configuration. Note that this method will fail
-     * if the Uptime check configuration is referenced by an alert policy or
-     * other dependent configs that would be rendered invalid by the deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteUptimeCheckConfig( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUptimeCheckConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the list of IP addresses that checkers run from
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUptimeCheckIps( - com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUptimeCheckIpsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_UPTIME_CHECK_CONFIGS = 0; - private static final int METHODID_GET_UPTIME_CHECK_CONFIG = 1; - private static final int METHODID_CREATE_UPTIME_CHECK_CONFIG = 2; - private static final int METHODID_UPDATE_UPTIME_CHECK_CONFIG = 3; - private static final int METHODID_DELETE_UPTIME_CHECK_CONFIG = 4; - private static final int METHODID_LIST_UPTIME_CHECK_IPS = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_UPTIME_CHECK_CONFIGS: - serviceImpl.listUptimeCheckConfigs((com.google.monitoring.v3.ListUptimeCheckConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_UPTIME_CHECK_CONFIG: - serviceImpl.getUptimeCheckConfig((com.google.monitoring.v3.GetUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_UPTIME_CHECK_CONFIG: - serviceImpl.createUptimeCheckConfig((com.google.monitoring.v3.CreateUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_UPTIME_CHECK_CONFIG: - serviceImpl.updateUptimeCheckConfig((com.google.monitoring.v3.UpdateUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_UPTIME_CHECK_CONFIG: - serviceImpl.deleteUptimeCheckConfig((com.google.monitoring.v3.DeleteUptimeCheckConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_UPTIME_CHECK_IPS: - serviceImpl.listUptimeCheckIps((com.google.monitoring.v3.ListUptimeCheckIpsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListUptimeCheckConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListUptimeCheckConfigsRequest, - com.google.monitoring.v3.ListUptimeCheckConfigsResponse>( - service, METHODID_LIST_UPTIME_CHECK_CONFIGS))) - .addMethod( - getGetUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.GetUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_GET_UPTIME_CHECK_CONFIG))) - .addMethod( - getCreateUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.CreateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_CREATE_UPTIME_CHECK_CONFIG))) - .addMethod( - getUpdateUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest, - com.google.monitoring.v3.UptimeCheckConfig>( - service, METHODID_UPDATE_UPTIME_CHECK_CONFIG))) - .addMethod( - getDeleteUptimeCheckConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_UPTIME_CHECK_CONFIG))) - .addMethod( - getListUptimeCheckIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.monitoring.v3.ListUptimeCheckIpsRequest, - com.google.monitoring.v3.ListUptimeCheckIpsResponse>( - service, METHODID_LIST_UPTIME_CHECK_IPS))) - .build(); - } - - private static abstract class UptimeCheckServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UptimeCheckServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.monitoring.v3.UptimeServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("UptimeCheckService"); - } - } - - private static final class UptimeCheckServiceFileDescriptorSupplier - extends UptimeCheckServiceBaseDescriptorSupplier { - UptimeCheckServiceFileDescriptorSupplier() {} - } - - private static final class UptimeCheckServiceMethodDescriptorSupplier - extends UptimeCheckServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - UptimeCheckServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (UptimeCheckServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UptimeCheckServiceFileDescriptorSupplier()) - .addMethod(getListUptimeCheckConfigsMethod()) - .addMethod(getGetUptimeCheckConfigMethod()) - .addMethod(getCreateUptimeCheckConfigMethod()) - .addMethod(getUpdateUptimeCheckConfigMethod()) - .addMethod(getDeleteUptimeCheckConfigMethod()) - .addMethod(getListUptimeCheckIpsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java deleted file mode 100644 index c014ea132245..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java +++ /dev/null @@ -1,352 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert.proto - -package com.google.monitoring.v3; - -public final class AlertProto { - private AlertProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n google/monitoring/v3/alert.proto\022\024goog" + - "le.monitoring.v3\032\037google/api/field_behav" + - "ior.proto\032\031google/api/resource.proto\032!go" + - "ogle/monitoring/v3/common.proto\032*google/" + - "monitoring/v3/mutation_record.proto\032\036goo" + - "gle/protobuf/duration.proto\032\036google/prot" + - "obuf/wrappers.proto\032\027google/rpc/status.p" + - "roto\"\222\"\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + - "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" + - "/.google.monitoring.v3.AlertPolicy.Docum" + - "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" + - "onitoring.v3.AlertPolicy.UserLabelsEntry" + - "\022?\n\nconditions\030\014 \003(\0132+.google.monitoring" + - ".v3.AlertPolicy.Condition\022I\n\010combiner\030\006 " + - "\001(\01627.google.monitoring.v3.AlertPolicy.C" + - "onditionCombinerType\022+\n\007enabled\030\021 \001(\0132\032." + - "google.protobuf.BoolValue\022$\n\010validity\030\022 " + - "\001(\0132\022.google.rpc.Status\022\035\n\025notification_" + - "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132" + - "$.google.monitoring.v3.MutationRecord\022=\n" + - "\017mutation_record\030\013 \001(\0132$.google.monitori" + - "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025" + - " \001(\0132/.google.monitoring.v3.AlertPolicy." + - "AlertStrategy\032J\n\rDocumentation\022\017\n\007conten" + - "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\025\n\007subject\030\003 " + - "\001(\tB\004\342A\001\001\032\201\026\n\tCondition\022\014\n\004name\030\014 \001(\t\022\024\n" + - "\014display_name\030\006 \001(\t\022Z\n\023condition_thresho" + - "ld\030\001 \001(\0132;.google.monitoring.v3.AlertPol" + - "icy.Condition.MetricThresholdH\000\022U\n\020condi" + - "tion_absent\030\002 \001(\01329.google.monitoring.v3" + - ".AlertPolicy.Condition.MetricAbsenceH\000\022U" + - "\n\025condition_matched_log\030\024 \001(\01324.google.m" + - "onitoring.v3.AlertPolicy.Condition.LogMa" + - "tchH\000\022{\n#condition_monitoring_query_lang" + - "uage\030\023 \001(\0132L.google.monitoring.v3.AlertP" + - "olicy.Condition.MonitoringQueryLanguageC" + - "onditionH\000\022{\n#condition_prometheus_query" + - "_language\030\025 \001(\0132L.google.monitoring.v3.A" + - "lertPolicy.Condition.PrometheusQueryLang" + - "uageConditionH\000\0325\n\007Trigger\022\017\n\005count\030\001 \001(" + - "\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004type\032\240\005\n\017Metri" + - "cThreshold\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\0227\n\014aggr" + - "egations\030\010 \003(\0132!.google.monitoring.v3.Ag" + - "gregation\022\032\n\022denominator_filter\030\t \001(\t\022C\n" + - "\030denominator_aggregations\030\n \003(\0132!.google" + - ".monitoring.v3.Aggregation\022e\n\020forecast_o" + - "ptions\030\014 \001(\0132K.google.monitoring.v3.Aler" + - "tPolicy.Condition.MetricThreshold.Foreca" + - "stOptions\0228\n\ncomparison\030\004 \001(\0162$.google.m" + - "onitoring.v3.ComparisonType\022\027\n\017threshold" + - "_value\030\005 \001(\001\022+\n\010duration\030\006 \001(\0132\031.google." + - "protobuf.Duration\022D\n\007trigger\030\007 \001(\01323.goo" + - "gle.monitoring.v3.AlertPolicy.Condition." + - "Trigger\022b\n\027evaluation_missing_data\030\013 \001(\016" + - "2A.google.monitoring.v3.AlertPolicy.Cond" + - "ition.EvaluationMissingData\032L\n\017ForecastO" + - "ptions\0229\n\020forecast_horizon\030\001 \001(\0132\031.googl" + - "e.protobuf.DurationB\004\342A\001\002\032\321\001\n\rMetricAbse" + - "nce\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\0227\n\014aggregation" + - "s\030\005 \003(\0132!.google.monitoring.v3.Aggregati" + - "on\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.D" + - "uration\022D\n\007trigger\030\003 \001(\01323.google.monito" + - "ring.v3.AlertPolicy.Condition.Trigger\032\275\001" + - "\n\010LogMatch\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022c\n\020labe" + - "l_extractors\030\002 \003(\0132I.google.monitoring.v" + - "3.AlertPolicy.Condition.LogMatch.LabelEx" + - "tractorsEntry\0326\n\024LabelExtractorsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\210\002\n Monito" + - "ringQueryLanguageCondition\022\r\n\005query\030\001 \001(" + - "\t\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + - "ration\022D\n\007trigger\030\003 \001(\01323.google.monitor" + - "ing.v3.AlertPolicy.Condition.Trigger\022b\n\027" + - "evaluation_missing_data\030\004 \001(\0162A.google.m" + - "onitoring.v3.AlertPolicy.Condition.Evalu" + - "ationMissingData\032\373\002\n PrometheusQueryLang" + - "uageCondition\022\023\n\005query\030\001 \001(\tB\004\342A\001\002\0221\n\010du" + - "ration\030\002 \001(\0132\031.google.protobuf.DurationB" + - "\004\342A\001\001\022<\n\023evaluation_interval\030\003 \001(\0132\031.goo" + - "gle.protobuf.DurationB\004\342A\001\001\022n\n\006labels\030\004 " + - "\003(\0132X.google.monitoring.v3.AlertPolicy.C" + - "ondition.PrometheusQueryLanguageConditio" + - "n.LabelsEntryB\004\342A\001\001\022\030\n\nrule_group\030\005 \001(\tB" + - "\004\342A\001\001\022\030\n\nalert_rule\030\006 \001(\tB\004\342A\001\001\032-\n\013Label" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\255" + - "\001\n\025EvaluationMissingData\022\'\n#EVALUATION_M" + - "ISSING_DATA_UNSPECIFIED\020\000\022$\n EVALUATION_" + - "MISSING_DATA_INACTIVE\020\001\022\"\n\036EVALUATION_MI" + - "SSING_DATA_ACTIVE\020\002\022!\n\035EVALUATION_MISSIN" + - "G_DATA_NO_OP\020\003:\227\002\352A\223\002\n.monitoring.google" + - "apis.com/AlertPolicyCondition\022Fprojects/" + - "{project}/alertPolicies/{alert_policy}/c" + - "onditions/{condition}\022Porganizations/{or" + - "ganization}/alertPolicies/{alert_policy}" + - "/conditions/{condition}\022Dfolders/{folder" + - "}/alertPolicies/{alert_policy}/condition" + - "s/{condition}\022\001*B\013\n\tcondition\032\327\003\n\rAlertS" + - "trategy\022f\n\027notification_rate_limit\030\001 \001(\013" + - "2E.google.monitoring.v3.AlertPolicy.Aler" + - "tStrategy.NotificationRateLimit\022-\n\nauto_" + - "close\030\003 \001(\0132\031.google.protobuf.Duration\022r" + - "\n\035notification_channel_strategy\030\004 \003(\0132K." + - "google.monitoring.v3.AlertPolicy.AlertSt" + - "rategy.NotificationChannelStrategy\032B\n\025No" + - "tificationRateLimit\022)\n\006period\030\001 \001(\0132\031.go" + - "ogle.protobuf.Duration\032w\n\033NotificationCh" + - "annelStrategy\022\"\n\032notification_channel_na" + - "mes\030\001 \003(\t\0224\n\021renotify_interval\030\002 \001(\0132\031.g" + - "oogle.protobuf.Duration\0321\n\017UserLabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025Co" + - "nditionCombinerType\022\027\n\023COMBINE_UNSPECIFI" + - "ED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHI" + - "NG_RESOURCE\020\003:\311\001\352A\305\001\n%monitoring.googlea" + - "pis.com/AlertPolicy\022/projects/{project}/" + - "alertPolicies/{alert_policy}\0229organizati" + - "ons/{organization}/alertPolicies/{alert_" + - "policy}\022-folders/{folder}/alertPolicies/" + - "{alert_policy}\022\001*B\305\001\n\030com.google.monitor" + - "ing.v3B\nAlertProtoP\001ZAcloud.google.com/g" + - "o/monitoring/apiv3/v2/monitoringpb;monit" + - "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + - "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + - "d::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.MutationRecordProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_AlertPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Documentation", "UserLabels", "Conditions", "Combiner", "Enabled", "Validity", "NotificationChannels", "CreationRecord", "MutationRecord", "AlertStrategy", }); - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor, - new java.lang.String[] { "Content", "MimeType", "Subject", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_AlertPolicy_Condition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor, - new java.lang.String[] { "Name", "DisplayName", "ConditionThreshold", "ConditionAbsent", "ConditionMatchedLog", "ConditionMonitoringQueryLanguage", "ConditionPrometheusQueryLanguage", "Condition", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_Trigger_descriptor, - new java.lang.String[] { "Count", "Percent", "Type", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor, - new java.lang.String[] { "Filter", "Aggregations", "DenominatorFilter", "DenominatorAggregations", "ForecastOptions", "Comparison", "ThresholdValue", "Duration", "Trigger", "EvaluationMissingData", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricThreshold_ForecastOptions_descriptor, - new java.lang.String[] { "ForecastHorizon", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor, - new java.lang.String[] { "Filter", "Aggregations", "Duration", "Trigger", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor, - new java.lang.String[] { "Filter", "LabelExtractors", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_LogMatch_LabelExtractorsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor, - new java.lang.String[] { "Query", "Duration", "Trigger", "EvaluationMissingData", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor.getNestedTypes().get(5); - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor, - new java.lang.String[] { "Query", "Duration", "EvaluationInterval", "Labels", "RuleGroup", "AlertRule", }); - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_Condition_PrometheusQueryLanguageCondition_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor, - new java.lang.String[] { "NotificationRateLimit", "AutoClose", "NotificationChannelStrategy", }); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor, - new java.lang.String[] { "Period", }); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationChannelStrategy_descriptor, - new java.lang.String[] { "NotificationChannelNames", "RenotifyInterval", }); - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_AlertPolicy_UserLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.MutationRecordProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java deleted file mode 100644 index a7a5167a5ce3..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public final class AlertServiceProto { - private AlertServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(google/monitoring/v3/alert_service.pro" + - "to\022\024google.monitoring.v3\032\034google/api/ann" + - "otations.proto\032\027google/api/client.proto\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\032 google/monitoring/v" + - "3/alert.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\"\227\001\n" + - "\030CreateAlertPolicyRequest\022<\n\004name\030\003 \001(\tB" + - ".\342A\001\002\372A\'\022%monitoring.googleapis.com/Aler" + - "tPolicy\022=\n\014alert_policy\030\002 \001(\0132!.google.m" + - "onitoring.v3.AlertPolicyB\004\342A\001\002\"U\n\025GetAle" + - "rtPolicyRequest\022<\n\004name\030\003 \001(\tB.\342A\001\002\372A\'\n%" + - "monitoring.googleapis.com/AlertPolicy\"\241\001" + - "\n\030ListAlertPoliciesRequest\022<\n\004name\030\004 \001(\t" + - "B.\342A\001\002\372A\'\022%monitoring.googleapis.com/Ale" + - "rtPolicy\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001" + - "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"\203\001\n\031ListAlertPoliciesResponse\0229\n\016alert" + - "_policies\030\003 \003(\0132!.google.monitoring.v3.A" + - "lertPolicy\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + - "otal_size\030\004 \001(\005\"\212\001\n\030UpdateAlertPolicyReq" + - "uest\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + - "buf.FieldMask\022=\n\014alert_policy\030\003 \001(\0132!.go" + - "ogle.monitoring.v3.AlertPolicyB\004\342A\001\002\"X\n\030" + - "DeleteAlertPolicyRequest\022<\n\004name\030\003 \001(\tB." + - "\342A\001\002\372A\'\n%monitoring.googleapis.com/Alert" + - "Policy2\236\010\n\022AlertPolicyService\022\250\001\n\021ListAl" + - "ertPolicies\022..google.monitoring.v3.ListA" + - "lertPoliciesRequest\032/.google.monitoring." + - "v3.ListAlertPoliciesResponse\"2\332A\004name\202\323\344" + - "\223\002%\022#/v3/{name=projects/*}/alertPolicies" + - "\022\226\001\n\016GetAlertPolicy\022+.google.monitoring." + - "v3.GetAlertPolicyRequest\032!.google.monito" + - "ring.v3.AlertPolicy\"4\332A\004name\202\323\344\223\002\'\022%/v3/" + - "{name=projects/*/alertPolicies/*}\022\265\001\n\021Cr" + - "eateAlertPolicy\022..google.monitoring.v3.C" + - "reateAlertPolicyRequest\032!.google.monitor" + - "ing.v3.AlertPolicy\"M\332A\021name,alert_policy" + - "\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolic" + - "ies:\014alert_policy\022\221\001\n\021DeleteAlertPolicy\022" + - "..google.monitoring.v3.DeleteAlertPolicy" + - "Request\032\026.google.protobuf.Empty\"4\332A\004name" + - "\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolici" + - "es/*}\022\313\001\n\021UpdateAlertPolicy\022..google.mon" + - "itoring.v3.UpdateAlertPolicyRequest\032!.go" + - "ogle.monitoring.v3.AlertPolicy\"c\332A\030updat" + - "e_mask,alert_policy\202\323\344\223\002B22/v3/{alert_po" + - "licy.name=projects/*/alertPolicies/*}:\014a" + - "lert_policy\032\251\001\312A\031monitoring.googleapis.c" + - "om\322A\211\001https://www.googleapis.com/auth/cl" + - "oud-platform,https://www.googleapis.com/" + - "auth/monitoring,https://www.googleapis.c" + - "om/auth/monitoring.readB\314\001\n\030com.google.m" + - "onitoring.v3B\021AlertServiceProtoP\001ZAcloud" + - ".google.com/go/monitoring/apiv3/v2/monit" + - "oringpb;monitoringpb\252\002\032Google.Cloud.Moni" + - "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002" + - "\035Google::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.AlertProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateAlertPolicyRequest_descriptor, - new java.lang.String[] { "Name", "AlertPolicy", }); - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_GetAlertPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetAlertPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListAlertPoliciesRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "OrderBy", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListAlertPoliciesResponse_descriptor, - new java.lang.String[] { "AlertPolicies", "NextPageToken", "TotalSize", }); - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateAlertPolicyRequest_descriptor, - new java.lang.String[] { "UpdateMask", "AlertPolicy", }); - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteAlertPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.AlertProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java deleted file mode 100644 index 6eb26cfe5c39..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/common.proto - -package com.google.monitoring.v3; - -public final class CommonProto { - private CommonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TypedValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Aggregation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/common.proto\022\024goo" + - "gle.monitoring.v3\032\035google/api/distributi" + - "on.proto\032\036google/protobuf/duration.proto" + - "\032\037google/protobuf/timestamp.proto\"\252\001\n\nTy" + - "pedValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_" + - "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n" + - "\014string_value\030\004 \001(\tH\000\0226\n\022distribution_va" + - "lue\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n" + - "\005value\"l\n\014TimeInterval\022,\n\010end_time\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\022.\n\nstart_ti" + - "me\030\001 \001(\0132\032.google.protobuf.Timestamp\"\255\007\n" + - "\013Aggregation\0223\n\020alignment_period\030\001 \001(\0132\031" + - ".google.protobuf.Duration\022E\n\022per_series_" + - "aligner\030\002 \001(\0162).google.monitoring.v3.Agg" + - "regation.Aligner\022G\n\024cross_series_reducer" + - "\030\004 \001(\0162).google.monitoring.v3.Aggregatio" + - "n.Reducer\022\027\n\017group_by_fields\030\005 \003(\t\"\213\003\n\007A" + - "ligner\022\016\n\nALIGN_NONE\020\000\022\017\n\013ALIGN_DELTA\020\001\022" + - "\016\n\nALIGN_RATE\020\002\022\025\n\021ALIGN_INTERPOLATE\020\003\022\024" + - "\n\020ALIGN_NEXT_OLDER\020\004\022\r\n\tALIGN_MIN\020\n\022\r\n\tA" + - "LIGN_MAX\020\013\022\016\n\nALIGN_MEAN\020\014\022\017\n\013ALIGN_COUN" + - "T\020\r\022\r\n\tALIGN_SUM\020\016\022\020\n\014ALIGN_STDDEV\020\017\022\024\n\020" + - "ALIGN_COUNT_TRUE\020\020\022\025\n\021ALIGN_COUNT_FALSE\020" + - "\030\022\027\n\023ALIGN_FRACTION_TRUE\020\021\022\027\n\023ALIGN_PERC" + - "ENTILE_99\020\022\022\027\n\023ALIGN_PERCENTILE_95\020\023\022\027\n\023" + - "ALIGN_PERCENTILE_50\020\024\022\027\n\023ALIGN_PERCENTIL" + - "E_05\020\025\022\030\n\024ALIGN_PERCENT_CHANGE\020\027\"\261\002\n\007Red" + - "ucer\022\017\n\013REDUCE_NONE\020\000\022\017\n\013REDUCE_MEAN\020\001\022\016" + - "\n\nREDUCE_MIN\020\002\022\016\n\nREDUCE_MAX\020\003\022\016\n\nREDUCE" + - "_SUM\020\004\022\021\n\rREDUCE_STDDEV\020\005\022\020\n\014REDUCE_COUN" + - "T\020\006\022\025\n\021REDUCE_COUNT_TRUE\020\007\022\026\n\022REDUCE_COU" + - "NT_FALSE\020\017\022\030\n\024REDUCE_FRACTION_TRUE\020\010\022\030\n\024" + - "REDUCE_PERCENTILE_99\020\t\022\030\n\024REDUCE_PERCENT" + - "ILE_95\020\n\022\030\n\024REDUCE_PERCENTILE_50\020\013\022\030\n\024RE" + - "DUCE_PERCENTILE_05\020\014*\236\001\n\016ComparisonType\022" + - "\032\n\026COMPARISON_UNSPECIFIED\020\000\022\021\n\rCOMPARISO" + - "N_GT\020\001\022\021\n\rCOMPARISON_GE\020\002\022\021\n\rCOMPARISON_" + - "LT\020\003\022\021\n\rCOMPARISON_LE\020\004\022\021\n\rCOMPARISON_EQ" + - "\020\005\022\021\n\rCOMPARISON_NE\020\006*a\n\013ServiceTier\022\034\n\030" + - "SERVICE_TIER_UNSPECIFIED\020\000\022\026\n\022SERVICE_TI" + - "ER_BASIC\020\001\022\030\n\024SERVICE_TIER_PREMIUM\020\002\032\002\030\001" + - "B\306\001\n\030com.google.monitoring.v3B\013CommonPro" + - "toP\001ZAcloud.google.com/go/monitoring/api" + - "v3/v2/monitoringpb;monitoringpb\252\002\032Google" + - ".Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Moni" + - "toring\\V3\352\002\035Google::Cloud::Monitoring::V" + - "3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.DistributionProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_TypedValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_TypedValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TypedValue_descriptor, - new java.lang.String[] { "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", }); - internal_static_google_monitoring_v3_TimeInterval_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_TimeInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeInterval_descriptor, - new java.lang.String[] { "EndTime", "StartTime", }); - internal_static_google_monitoring_v3_Aggregation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_Aggregation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Aggregation_descriptor, - new java.lang.String[] { "AlignmentPeriod", "PerSeriesAligner", "CrossSeriesReducer", "GroupByFields", }); - com.google.api.DistributionProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index 17c2a34d0d14..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface CreateUptimeCheckConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.CreateUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The
-   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
-   * to create the Uptime check. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The
-   * [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
-   * to create the Uptime check. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the uptimeCheckConfig field is set. - */ - boolean hasUptimeCheckConfig(); - /** - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The uptimeCheckConfig. - */ - com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig(); - /** - *
-   * Required. The new Uptime check configuration.
-   * 
- * - * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigOrBuilder(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java deleted file mode 100644 index 37a34fa6c1b6..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public interface DeleteAlertPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteAlertPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The alerting policy to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   *
-   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The alerting policy to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   *
-   * For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java deleted file mode 100644 index d56447729521..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public interface DeleteMetricDescriptorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteMetricDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The metric descriptor on which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
-   *
-   * An example of `[METRIC_ID]` is:
-   * `"custom.googleapis.com/my_test_metric"`.
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The metric descriptor on which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
-   *
-   * An example of `[METRIC_ID]` is:
-   * `"custom.googleapis.com/my_test_metric"`.
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java deleted file mode 100644 index c903c26340bd..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface DeleteServiceLevelObjectiveRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceLevelObjectiveRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java deleted file mode 100644 index 74727840b640..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface DeleteServiceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the `Service` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the `Service` to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index d1e500c511b0..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface DeleteUptimeCheckConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DeleteUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The Uptime check configuration to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The Uptime check configuration to delete. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java deleted file mode 100644 index 62d24159f12e..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsProto.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/dropped_labels.proto - -package com.google.monitoring.v3; - -public final class DroppedLabelsProto { - private DroppedLabelsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DroppedLabels_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/dropped_labels.pr" + - "oto\022\024google.monitoring.v3\"|\n\rDroppedLabe" + - "ls\022=\n\005label\030\001 \003(\0132..google.monitoring.v3" + - ".DroppedLabels.LabelEntry\032,\n\nLabelEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\315\001\n\030com." + - "google.monitoring.v3B\022DroppedLabelsProto" + - "P\001ZAcloud.google.com/go/monitoring/apiv3" + - "/v2/monitoringpb;monitoringpb\252\002\032Google.C" + - "loud.Monitoring.V3\312\002\032Google\\Cloud\\Monito" + - "ring\\V3\352\002\035Google::Cloud::Monitoring::V3b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_v3_DroppedLabels_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DroppedLabels_descriptor, - new java.lang.String[] { "Label", }); - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor = - internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java deleted file mode 100644 index 02f5ce610c41..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/alert_service.proto - -package com.google.monitoring.v3; - -public interface GetAlertPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetAlertPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The alerting policy to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The alerting policy to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java deleted file mode 100644 index 11d3c9b624a5..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group_service.proto - -package com.google.monitoring.v3; - -public interface GetGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The group to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The group to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java deleted file mode 100644 index b73c5801940f..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public interface GetMonitoredResourceDescriptorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The monitored resource descriptor to get.  The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
-   *
-   * The `[RESOURCE_TYPE]` is a predefined type, such as
-   * `cloudsql_database`.
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The monitored resource descriptor to get.  The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]
-   *
-   * The `[RESOURCE_TYPE]` is a predefined type, such as
-   * `cloudsql_database`.
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java deleted file mode 100644 index 14db283e2dd5..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface GetNotificationChannelDescriptorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The channel type for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The channel type for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java deleted file mode 100644 index ad7cf831c261..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface GetNotificationChannelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetNotificationChannelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The channel for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The channel for which to execute the request. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
-   * 
- * - * string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java deleted file mode 100644 index f02935c6461c..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public interface GetServiceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the `Service`. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the `Service`. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java deleted file mode 100644 index 00dd01b57914..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetSnoozeRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze_service.proto - -package com.google.monitoring.v3; - -public interface GetSnoozeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetSnoozeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ID of the `Snooze` to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The ID of the `Snooze` to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java deleted file mode 100644 index 926d287392ca..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public interface GetUptimeCheckConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.GetUptimeCheckConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The Uptime check configuration to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The Uptime check configuration to retrieve. The format is:
-   *
-   *     projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java deleted file mode 100644 index 34a1adf14574..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupProto.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group.proto - -package com.google.monitoring.v3; - -public final class GroupProto { - private GroupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Group_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Group_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n google/monitoring/v3/group.proto\022\024goog" + - "le.monitoring.v3\032\031google/api/resource.pr" + - "oto\"\200\002\n\005Group\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + - "ame\030\002 \001(\t\022\023\n\013parent_name\030\003 \001(\t\022\016\n\006filter" + - "\030\005 \001(\t\022\022\n\nis_cluster\030\006 \001(\010:\231\001\352A\225\001\n\037monit" + - "oring.googleapis.com/Group\022!projects/{pr" + - "oject}/groups/{group}\022+organizations/{or" + - "ganization}/groups/{group}\022\037folders/{fol" + - "der}/groups/{group}\022\001*B\305\001\n\030com.google.mo" + - "nitoring.v3B\nGroupProtoP\001ZAcloud.google." + - "com/go/monitoring/apiv3/v2/monitoringpb;" + - "monitoringpb\252\002\032Google.Cloud.Monitoring.V" + - "3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google:" + - ":Cloud::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Group_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Group_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Group_descriptor, - new java.lang.String[] { "Name", "DisplayName", "ParentName", "Filter", "IsCluster", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java deleted file mode 100644 index b5ae7dff2c6c..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceProto.java +++ /dev/null @@ -1,217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/group_service.proto - -package com.google.monitoring.v3; - -public final class GroupServiceProto { - private GroupServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(google/monitoring/v3/group_service.pro" + - "to\022\024google.monitoring.v3\032\034google/api/ann" + - "otations.proto\032\027google/api/client.proto\032" + - "\037google/api/field_behavior.proto\032#google" + - "/api/monitored_resource.proto\032\031google/ap" + - "i/resource.proto\032!google/monitoring/v3/c" + - "ommon.proto\032 google/monitoring/v3/group." + - "proto\032\033google/protobuf/empty.proto\"\311\002\n\021L" + - "istGroupsRequest\0226\n\004name\030\007 \001(\tB(\342A\001\002\372A!\022" + - "\037monitoring.googleapis.com/Group\022A\n\021chil" + - "dren_of_group\030\002 \001(\tB$\372A!\n\037monitoring.goo" + - "gleapis.com/GroupH\000\022B\n\022ancestors_of_grou" + - "p\030\003 \001(\tB$\372A!\n\037monitoring.googleapis.com/" + - "GroupH\000\022D\n\024descendants_of_group\030\004 \001(\tB$\372" + - "A!\n\037monitoring.googleapis.com/GroupH\000\022\021\n" + - "\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\tB\010\n\006" + - "filter\"Y\n\022ListGroupsResponse\022*\n\005group\030\001 " + - "\003(\0132\033.google.monitoring.v3.Group\022\027\n\017next" + - "_page_token\030\002 \001(\t\"I\n\017GetGroupRequest\0226\n\004" + - "name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.googleap" + - "is.com/Group\"\225\001\n\022CreateGroupRequest\0226\n\004n" + - "ame\030\004 \001(\tB(\342A\001\002\372A!\022\037monitoring.googleapi" + - "s.com/Group\0220\n\005group\030\002 \001(\0132\033.google.moni" + - "toring.v3.GroupB\004\342A\001\002\022\025\n\rvalidate_only\030\003" + - " \001(\010\"]\n\022UpdateGroupRequest\0220\n\005group\030\002 \001(" + - "\0132\033.google.monitoring.v3.GroupB\004\342A\001\002\022\025\n\r" + - "validate_only\030\003 \001(\010\"_\n\022DeleteGroupReques" + - "t\0226\n\004name\030\003 \001(\tB(\342A\001\002\372A!\n\037monitoring.goo" + - "gleapis.com/Group\022\021\n\trecursive\030\004 \001(\010\"\276\001\n" + - "\027ListGroupMembersRequest\0226\n\004name\030\007 \001(\tB(" + - "\342A\001\002\372A!\n\037monitoring.googleapis.com/Group" + - "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" + - "\016\n\006filter\030\005 \001(\t\0224\n\010interval\030\006 \001(\0132\".goog" + - "le.monitoring.v3.TimeInterval\"w\n\030ListGro" + - "upMembersResponse\022.\n\007members\030\001 \003(\0132\035.goo" + - "gle.api.MonitoredResource\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\230\010\n\014Group" + - "Service\022\214\001\n\nListGroups\022\'.google.monitori" + - "ng.v3.ListGroupsRequest\032(.google.monitor" + - "ing.v3.ListGroupsResponse\"+\332A\004name\202\323\344\223\002\036" + - "\022\034/v3/{name=projects/*}/groups\022}\n\010GetGro" + - "up\022%.google.monitoring.v3.GetGroupReques" + - "t\032\033.google.monitoring.v3.Group\"-\332A\004name\202" + - "\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}\022\216\001" + - "\n\013CreateGroup\022(.google.monitoring.v3.Cre" + - "ateGroupRequest\032\033.google.monitoring.v3.G" + - "roup\"8\332A\nname,group\202\323\344\223\002%\"\034/v3/{name=pro" + - "jects/*}/groups:\005group\022\221\001\n\013UpdateGroup\022(" + - ".google.monitoring.v3.UpdateGroupRequest" + - "\032\033.google.monitoring.v3.Group\";\332A\005group\202" + - "\323\344\223\002-\032$/v3/{group.name=projects/*/groups" + - "/*}:\005group\022~\n\013DeleteGroup\022(.google.monit" + - "oring.v3.DeleteGroupRequest\032\026.google.pro" + - "tobuf.Empty\"-\332A\004name\202\323\344\223\002 *\036/v3/{name=pr" + - "ojects/*/groups/*}\022\250\001\n\020ListGroupMembers\022" + - "-.google.monitoring.v3.ListGroupMembersR" + - "equest\032..google.monitoring.v3.ListGroupM" + - "embersResponse\"5\332A\004name\202\323\344\223\002(\022&/v3/{name" + - "=projects/*/groups/*}/members\032\251\001\312A\031monit" + - "oring.googleapis.com\322A\211\001https://www.goog" + - "leapis.com/auth/cloud-platform,https://w" + - "ww.googleapis.com/auth/monitoring,https:" + - "//www.googleapis.com/auth/monitoring.rea" + - "dB\314\001\n\030com.google.monitoring.v3B\021GroupSer" + - "viceProtoP\001ZAcloud.google.com/go/monitor" + - "ing/apiv3/v2/monitoringpb;monitoringpb\252\002" + - "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" + - "ud\\Monitoring\\V3\352\002\035Google::Cloud::Monito" + - "ring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.GroupProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupsRequest_descriptor, - new java.lang.String[] { "Name", "ChildrenOfGroup", "AncestorsOfGroup", "DescendantsOfGroup", "PageSize", "PageToken", "Filter", }); - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupsResponse_descriptor, - new java.lang.String[] { "Group", "NextPageToken", }); - internal_static_google_monitoring_v3_GetGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetGroupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_CreateGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateGroupRequest_descriptor, - new java.lang.String[] { "Name", "Group", "ValidateOnly", }); - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateGroupRequest_descriptor, - new java.lang.String[] { "Group", "ValidateOnly", }); - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteGroupRequest_descriptor, - new java.lang.String[] { "Name", "Recursive", }); - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_ListGroupMembersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupMembersRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", "Filter", "Interval", }); - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_ListGroupMembersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListGroupMembersResponse_descriptor, - new java.lang.String[] { "Members", "NextPageToken", "TotalSize", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.GroupProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java deleted file mode 100644 index 11ea122505dc..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java +++ /dev/null @@ -1,200 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric.proto - -package com.google.monitoring.v3; - -public final class MetricProto { - private MetricProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Point_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Point_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeries_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_LabelValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TextLocator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TextLocator_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/metric.proto\022\024goo" + - "gle.monitoring.v3\032\026google/api/label.prot" + - "o\032\027google/api/metric.proto\032#google/api/m" + - "onitored_resource.proto\032!google/monitori" + - "ng/v3/common.proto\"n\n\005Point\0224\n\010interval\030" + - "\001 \001(\0132\".google.monitoring.v3.TimeInterva" + - "l\022/\n\005value\030\002 \001(\0132 .google.monitoring.v3." + - "TypedValue\"\317\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(" + - "\0132\022.google.api.Metric\022/\n\010resource\030\002 \001(\0132" + - "\035.google.api.MonitoredResource\0227\n\010metada" + - "ta\030\007 \001(\0132%.google.api.MonitoredResourceM" + - "etadata\022<\n\013metric_kind\030\003 \001(\0162\'.google.ap" + - "i.MetricDescriptor.MetricKind\022:\n\nvalue_t" + - "ype\030\004 \001(\0162&.google.api.MetricDescriptor." + - "ValueType\022+\n\006points\030\005 \003(\0132\033.google.monit" + - "oring.v3.Point\022\014\n\004unit\030\010 \001(\t\"\316\002\n\024TimeSer" + - "iesDescriptor\0226\n\021label_descriptors\030\001 \003(\013" + - "2\033.google.api.LabelDescriptor\022U\n\021point_d" + - "escriptors\030\005 \003(\0132:.google.monitoring.v3." + - "TimeSeriesDescriptor.ValueDescriptor\032\246\001\n" + - "\017ValueDescriptor\022\013\n\003key\030\001 \001(\t\022:\n\nvalue_t" + - "ype\030\002 \001(\0162&.google.api.MetricDescriptor." + - "ValueType\022<\n\013metric_kind\030\003 \001(\0162\'.google." + - "api.MetricDescriptor.MetricKind\022\014\n\004unit\030" + - "\004 \001(\t\"\206\002\n\016TimeSeriesData\0226\n\014label_values" + - "\030\001 \003(\0132 .google.monitoring.v3.LabelValue" + - "\022B\n\npoint_data\030\002 \003(\0132..google.monitoring" + - ".v3.TimeSeriesData.PointData\032x\n\tPointDat" + - "a\0220\n\006values\030\001 \003(\0132 .google.monitoring.v3" + - ".TypedValue\0229\n\rtime_interval\030\002 \001(\0132\".goo" + - "gle.monitoring.v3.TimeInterval\"Z\n\nLabelV" + - "alue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_valu" + - "e\030\002 \001(\003H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005val" + - "ue\"Q\n\nQueryError\0222\n\007locator\030\001 \001(\0132!.goog" + - "le.monitoring.v3.TextLocator\022\017\n\007message\030" + - "\002 \001(\t\"\240\002\n\013TextLocator\022\016\n\006source\030\001 \001(\t\022B\n" + - "\016start_position\030\002 \001(\0132*.google.monitorin" + - "g.v3.TextLocator.Position\022@\n\014end_positio" + - "n\030\003 \001(\0132*.google.monitoring.v3.TextLocat" + - "or.Position\0229\n\016nested_locator\030\004 \001(\0132!.go" + - "ogle.monitoring.v3.TextLocator\022\026\n\016nestin" + - "g_reason\030\005 \001(\t\032(\n\010Position\022\014\n\004line\030\001 \001(\005" + - "\022\016\n\006column\030\002 \001(\005B\306\001\n\030com.google.monitori" + - "ng.v3B\013MetricProtoP\001ZAcloud.google.com/g" + - "o/monitoring/apiv3/v2/monitoringpb;monit" + - "oringpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032G" + - "oogle\\Cloud\\Monitoring\\V3\352\002\035Google::Clou" + - "d::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.LabelProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Point_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Point_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Point_descriptor, - new java.lang.String[] { "Interval", "Value", }); - internal_static_google_monitoring_v3_TimeSeries_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeries_descriptor, - new java.lang.String[] { "Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points", "Unit", }); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor, - new java.lang.String[] { "LabelDescriptors", "PointDescriptors", }); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor = - internal_static_google_monitoring_v3_TimeSeriesDescriptor_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesDescriptor_ValueDescriptor_descriptor, - new java.lang.String[] { "Key", "ValueType", "MetricKind", "Unit", }); - internal_static_google_monitoring_v3_TimeSeriesData_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_TimeSeriesData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesData_descriptor, - new java.lang.String[] { "LabelValues", "PointData", }); - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor = - internal_static_google_monitoring_v3_TimeSeriesData_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_TimeSeriesData_PointData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesData_PointData_descriptor, - new java.lang.String[] { "Values", "TimeInterval", }); - internal_static_google_monitoring_v3_LabelValue_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_LabelValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_LabelValue_descriptor, - new java.lang.String[] { "BoolValue", "Int64Value", "StringValue", "Value", }); - internal_static_google_monitoring_v3_QueryError_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_QueryError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryError_descriptor, - new java.lang.String[] { "Locator", "Message", }); - internal_static_google_monitoring_v3_TextLocator_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_TextLocator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TextLocator_descriptor, - new java.lang.String[] { "Source", "StartPosition", "EndPosition", "NestedLocator", "NestingReason", }); - internal_static_google_monitoring_v3_TextLocator_Position_descriptor = - internal_static_google_monitoring_v3_TextLocator_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_TextLocator_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TextLocator_Position_descriptor, - new java.lang.String[] { "Line", "Column", }); - com.google.api.LabelProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java deleted file mode 100644 index 96afd1be4fe6..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java +++ /dev/null @@ -1,403 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/metric_service.proto - -package com.google.monitoring.v3; - -public final class MetricServiceProto { - private MetricServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_QueryErrorList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/metric_service.pr" + - "oto\022\024google.monitoring.v3\032\034google/api/an" + - "notations.proto\032\027google/api/client.proto" + - "\032\037google/api/field_behavior.proto\032\027googl" + - "e/api/metric.proto\032#google/api/monitored" + - "_resource.proto\032\031google/api/resource.pro" + - "to\032!google/monitoring/v3/common.proto\032!g" + - "oogle/monitoring/v3/metric.proto\032\033google" + - "/protobuf/empty.proto\032\027google/rpc/status" + - ".proto\"\256\001\n\'ListMonitoredResourceDescript" + - "orsRequest\022L\n\004name\030\005 \001(\tB>\342A\001\002\372A7\0225monit" + - "oring.googleapis.com/MonitoredResourceDe" + - "scriptor\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " + - "\001(\005\022\022\n\npage_token\030\004 \001(\t\"\212\001\n(ListMonitore" + - "dResourceDescriptorsResponse\022E\n\024resource" + - "_descriptors\030\001 \003(\0132\'.google.api.Monitore" + - "dResourceDescriptor\022\027\n\017next_page_token\030\002" + - " \001(\t\"u\n%GetMonitoredResourceDescriptorRe" + - "quest\022L\n\004name\030\003 \001(\tB>\342A\001\002\372A7\n5monitoring" + - ".googleapis.com/MonitoredResourceDescrip" + - "tor\"\230\001\n\034ListMetricDescriptorsRequest\022A\n\004" + - "name\030\005 \001(\tB3\342A\001\002\372A,\022*monitoring.googleap" + - "is.com/MetricDescriptor\022\016\n\006filter\030\002 \001(\t\022" + - "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r" + - "\n\035ListMetricDescriptorsResponse\0228\n\022metri" + - "c_descriptors\030\001 \003(\0132\034.google.api.MetricD" + - "escriptor\022\027\n\017next_page_token\030\002 \001(\t\"_\n\032Ge" + - "tMetricDescriptorRequest\022A\n\004name\030\003 \001(\tB3" + - "\342A\001\002\372A,\n*monitoring.googleapis.com/Metri" + - "cDescriptor\"\241\001\n\035CreateMetricDescriptorRe" + - "quest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\022*monitoring" + - ".googleapis.com/MetricDescriptor\022=\n\021metr" + - "ic_descriptor\030\002 \001(\0132\034.google.api.MetricD" + - "escriptorB\004\342A\001\002\"b\n\035DeleteMetricDescripto" + - "rRequest\022A\n\004name\030\003 \001(\tB3\342A\001\002\372A,\n*monitor" + - "ing.googleapis.com/MetricDescriptor\"\322\003\n\025" + - "ListTimeSeriesRequest\022;\n\004name\030\n \001(\tB-\342A\001" + - "\002\372A&\022$monitoring.googleapis.com/TimeSeri" + - "es\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022:\n\010interval\030\004 \001" + - "(\0132\".google.monitoring.v3.TimeIntervalB\004" + - "\342A\001\002\0226\n\013aggregation\030\005 \001(\0132!.google.monit" + - "oring.v3.Aggregation\022@\n\025secondary_aggreg" + - "ation\030\013 \001(\0132!.google.monitoring.v3.Aggre" + - "gation\022\020\n\010order_by\030\006 \001(\t\022N\n\004view\030\007 \001(\0162:" + - ".google.monitoring.v3.ListTimeSeriesRequ" + - "est.TimeSeriesViewB\004\342A\001\002\022\021\n\tpage_size\030\010 " + - "\001(\005\022\022\n\npage_token\030\t \001(\t\"\'\n\016TimeSeriesVie" + - "w\022\010\n\004FULL\020\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTimeSer" + - "iesResponse\0225\n\013time_series\030\001 \003(\0132 .googl" + - "e.monitoring.v3.TimeSeries\022\027\n\017next_page_" + - "token\030\002 \001(\t\022,\n\020execution_errors\030\003 \003(\0132\022." + - "google.rpc.Status\022\014\n\004unit\030\005 \001(\t\"\232\001\n\027Crea" + - "teTimeSeriesRequest\022B\n\004name\030\003 \001(\tB4\342A\001\002\372" + - "A-\n+cloudresourcemanager.googleapis.com/" + - "Project\022;\n\013time_series\030\002 \003(\0132 .google.mo" + - "nitoring.v3.TimeSeriesB\004\342A\001\002\"z\n\025CreateTi" + - "meSeriesError\0229\n\013time_series\030\001 \001(\0132 .goo" + - "gle.monitoring.v3.TimeSeriesB\002\030\001\022&\n\006stat" + - "us\030\002 \001(\0132\022.google.rpc.StatusB\002\030\001\"\330\001\n\027Cre" + - "ateTimeSeriesSummary\022\031\n\021total_point_coun" + - "t\030\001 \001(\005\022\033\n\023success_point_count\030\002 \001(\005\022C\n\006" + - "errors\030\003 \003(\01323.google.monitoring.v3.Crea" + - "teTimeSeriesSummary.Error\032@\n\005Error\022\"\n\006st" + - "atus\030\001 \001(\0132\022.google.rpc.Status\022\023\n\013point_" + - "count\030\002 \001(\005\"h\n\026QueryTimeSeriesRequest\022\022\n" + - "\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005query\030\007 \001(\tB\004\342A\001\002\022\021" + - "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\"\352\001" + - "\n\027QueryTimeSeriesResponse\022J\n\026time_series" + - "_descriptor\030\010 \001(\0132*.google.monitoring.v3" + - ".TimeSeriesDescriptor\022>\n\020time_series_dat" + - "a\030\t \003(\0132$.google.monitoring.v3.TimeSerie" + - "sData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016partia" + - "l_errors\030\013 \003(\0132\022.google.rpc.Status\"Y\n\016Qu" + - "eryErrorList\0220\n\006errors\030\001 \003(\0132 .google.mo" + - "nitoring.v3.QueryError\022\025\n\rerror_summary\030" + - "\002 \001(\t2\274\017\n\rMetricService\022\344\001\n ListMonitore" + - "dResourceDescriptors\022=.google.monitoring" + - ".v3.ListMonitoredResourceDescriptorsRequ" + - "est\032>.google.monitoring.v3.ListMonitored" + - "ResourceDescriptorsResponse\"A\332A\004name\202\323\344\223" + - "\0024\0222/v3/{name=projects/*}/monitoredResou" + - "rceDescriptors\022\314\001\n\036GetMonitoredResourceD" + - "escriptor\022;.google.monitoring.v3.GetMoni" + - "toredResourceDescriptorRequest\032\'.google." + - "api.MonitoredResourceDescriptor\"D\332A\004name" + - "\202\323\344\223\0027\0225/v3/{name=projects/*/monitoredRe" + - "sourceDescriptors/**}\022\270\001\n\025ListMetricDesc" + - "riptors\0222.google.monitoring.v3.ListMetri" + - "cDescriptorsRequest\0323.google.monitoring." + - "v3.ListMetricDescriptorsResponse\"6\332A\004nam" + - "e\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDes" + - "criptors\022\240\001\n\023GetMetricDescriptor\0220.googl" + - "e.monitoring.v3.GetMetricDescriptorReque" + - "st\032\034.google.api.MetricDescriptor\"9\332A\004nam" + - "e\202\323\344\223\002,\022*/v3/{name=projects/*/metricDesc" + - "riptors/**}\022\310\001\n\026CreateMetricDescriptor\0223" + - ".google.monitoring.v3.CreateMetricDescri" + - "ptorRequest\032\034.google.api.MetricDescripto" + - "r\"[\332A\026name,metric_descriptor\202\323\344\223\002<\"\'/v3/" + - "{name=projects/*}/metricDescriptors:\021met" + - "ric_descriptor\022\240\001\n\026DeleteMetricDescripto" + - "r\0223.google.monitoring.v3.DeleteMetricDes" + - "criptorRequest\032\026.google.protobuf.Empty\"9" + - "\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/metr" + - "icDescriptors/**}\022\376\001\n\016ListTimeSeries\022+.g" + - "oogle.monitoring.v3.ListTimeSeriesReques" + - "t\032,.google.monitoring.v3.ListTimeSeriesR" + - "esponse\"\220\001\332A\031name,filter,interval,view\202\323" + - "\344\223\002n\022 /v3/{name=projects/*}/timeSeriesZ\'" + - "\022%/v3/{name=organizations/*}/timeSeriesZ" + - "!\022\037/v3/{name=folders/*}/timeSeries\022\231\001\n\020C" + - "reateTimeSeries\022-.google.monitoring.v3.C" + - "reateTimeSeriesRequest\032\026.google.protobuf" + - ".Empty\">\332A\020name,time_series\202\323\344\223\002%\" /v3/{" + - "name=projects/*}/timeSeries:\001*\022\256\001\n\027Creat" + - "eServiceTimeSeries\022-.google.monitoring.v" + - "3.CreateTimeSeriesRequest\032\026.google.proto" + - "buf.Empty\"L\332A\020name,time_series\202\323\344\223\0023\"./v" + - "3/{name=projects/*}/timeSeries:createSer" + - "vice:\001*\032\332\001\312A\031monitoring.googleapis.com\322A" + - "\272\001https://www.googleapis.com/auth/cloud-" + - "platform,https://www.googleapis.com/auth" + - "/monitoring,https://www.googleapis.com/a" + - "uth/monitoring.read,https://www.googleap" + - "is.com/auth/monitoring.writeB\211\010\n\030com.goo" + - "gle.monitoring.v3B\022MetricServiceProtoP\001Z" + - "Acloud.google.com/go/monitoring/apiv3/v2" + - "/monitoringpb;monitoringpb\252\002\032Google.Clou" + - "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" + - "g\\V3\352\002\035Google::Cloud::Monitoring::V3\352A\360\001" + - "\n*monitoring.googleapis.com/MetricDescri" + - "ptor\022;projects/{project}/metricDescripto" + - "rs/{metric_descriptor=**}\022Eorganizations" + - "/{organization}/metricDescriptors/{metri" + - "c_descriptor=**}\0229folders/{folder}/metri" + - "cDescriptors/{metric_descriptor=**}\022\001* \001" + - "\352A\267\002\n5monitoring.googleapis.com/Monitore" + - "dResourceDescriptor\022Oprojects/{project}/" + - "monitoredResourceDescriptors/{monitored_" + - "resource_descriptor}\022Yorganizations/{org" + - "anization}/monitoredResourceDescriptors/" + - "{monitored_resource_descriptor}\022Mfolders" + - "/{folder}/monitoredResourceDescriptors/{" + - "monitored_resource_descriptor}\022\001* \001\352AQ\n#" + - "monitoring.googleapis.com/Workspace\022\022pro" + - "jects/{project}\022\026workspaces/{workspace}\352" + - "A\265\001\n$monitoring.googleapis.com/TimeSerie" + - "s\022+projects/{project}/timeSeries/{time_s" + - "eries}\0225organizations/{organization}/tim" + - "eSeries/{time_series}\022)folders/{folder}/" + - "timeSeries/{time_series}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - com.google.monitoring.v3.MetricProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMonitoredResourceDescriptorsResponse_descriptor, - new java.lang.String[] { "ResourceDescriptors", "NextPageToken", }); - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetMonitoredResourceDescriptorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor, - new java.lang.String[] { "MetricDescriptors", "NextPageToken", }); - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetMetricDescriptorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateMetricDescriptorRequest_descriptor, - new java.lang.String[] { "Name", "MetricDescriptor", }); - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteMetricDescriptorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_ListTimeSeriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListTimeSeriesRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "Interval", "Aggregation", "SecondaryAggregation", "OrderBy", "View", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor, - new java.lang.String[] { "TimeSeries", "NextPageToken", "ExecutionErrors", "Unit", }); - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor, - new java.lang.String[] { "Name", "TimeSeries", }); - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_monitoring_v3_CreateTimeSeriesError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesError_descriptor, - new java.lang.String[] { "TimeSeries", "Status", }); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor, - new java.lang.String[] { "TotalPointCount", "SuccessPointCount", "Errors", }); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor = - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateTimeSeriesSummary_Error_descriptor, - new java.lang.String[] { "Status", "PointCount", }); - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryTimeSeriesRequest_descriptor, - new java.lang.String[] { "Name", "Query", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryTimeSeriesResponse_descriptor, - new java.lang.String[] { "TimeSeriesDescriptor", "TimeSeriesData", "NextPageToken", "PartialErrors", }); - internal_static_google_monitoring_v3_QueryErrorList_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_monitoring_v3_QueryErrorList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_QueryErrorList_descriptor, - new java.lang.String[] { "Errors", "ErrorSummary", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - com.google.monitoring.v3.MetricProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java deleted file mode 100644 index 5c765d281caa..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/mutation_record.proto - -package com.google.monitoring.v3; - -public final class MutationRecordProto { - private MutationRecordProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_MutationRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/v3/mutation_record.p" + - "roto\022\024google.monitoring.v3\032\037google/proto" + - "buf/timestamp.proto\"U\n\016MutationRecord\022/\n" + - "\013mutate_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estamp\022\022\n\nmutated_by\030\002 \001(\tB\316\001\n\030com.googl" + - "e.monitoring.v3B\023MutationRecordProtoP\001ZA" + - "cloud.google.com/go/monitoring/apiv3/v2/" + - "monitoringpb;monitoringpb\252\002\032Google.Cloud" + - ".Monitoring.V3\312\002\032Google\\Cloud\\Monitoring" + - "\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_MutationRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_MutationRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_MutationRecord_descriptor, - new java.lang.String[] { "MutateTime", "MutatedBy", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java deleted file mode 100644 index b53f48502449..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification.proto - -package com.google.monitoring.v3; - -public final class NotificationProto { - private NotificationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannelDescriptor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannelDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_NotificationChannel_UserLabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/monitoring/v3/notification.prot" + - "o\022\024google.monitoring.v3\032\026google/api/labe" + - "l.proto\032\035google/api/launch_stage.proto\032\031" + - "google/api/resource.proto\032!google/monito" + - "ring/v3/common.proto\032*google/monitoring/" + - "v3/mutation_record.proto\032\036google/protobu" + - "f/wrappers.proto\"\245\004\n\035NotificationChannel" + - "Descriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type\030\001 \001(\t\022\024" + - "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" + - "\t\022+\n\006labels\030\004 \003(\0132\033.google.api.LabelDesc" + - "riptor\022>\n\017supported_tiers\030\005 \003(\0162!.google" + - ".monitoring.v3.ServiceTierB\002\030\001\022-\n\014launch" + - "_stage\030\007 \001(\0162\027.google.api.LaunchStage:\240\002" + - "\352A\234\002\n7monitoring.googleapis.com/Notifica" + - "tionChannelDescriptor\022Fprojects/{project" + - "}/notificationChannelDescriptors/{channe" + - "l_descriptor}\022Porganizations/{organizati" + - "on}/notificationChannelDescriptors/{chan" + - "nel_descriptor}\022Dfolders/{folder}/notifi" + - "cationChannelDescriptors/{channel_descri" + - "ptor}\022\001*\"\266\007\n\023NotificationChannel\022\014\n\004type" + - "\030\001 \001(\t\022\014\n\004name\030\006 \001(\t\022\024\n\014display_name\030\003 \001" + - "(\t\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\0132" + - "5.google.monitoring.v3.NotificationChann" + - "el.LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.go" + - "ogle.monitoring.v3.NotificationChannel.U" + - "serLabelsEntry\022Y\n\023verification_status\030\t " + - "\001(\0162<.google.monitoring.v3.NotificationC" + - "hannel.VerificationStatus\022+\n\007enabled\030\013 \001" + - "(\0132\032.google.protobuf.BoolValue\022=\n\017creati" + - "on_record\030\014 \001(\0132$.google.monitoring.v3.M" + - "utationRecord\022>\n\020mutation_records\030\r \003(\0132" + - "$.google.monitoring.v3.MutationRecord\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n" + - "\037VERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUN" + - "VERIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitor" + - "ing.googleapis.com/NotificationChannel\022>" + - "projects/{project}/notificationChannels/" + - "{notification_channel}\022Horganizations/{o" + - "rganization}/notificationChannels/{notif" + - "ication_channel}\022 - * Range minimum. - *
- * - * double min = 1; - * @return The min. - */ - double getMin(); - - /** - *
-   * Range maximum.
-   * 
- * - * double max = 2; - * @return The max. - */ - double getMax(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java deleted file mode 100644 index fa54c1e5c8c6..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/notification_service.proto - -package com.google.monitoring.v3; - -public interface SendNotificationChannelVerificationCodeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The notification channel to which to send a verification code.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The notification channel to which to send a verification code.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java deleted file mode 100644 index f86706124f86..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringProto.java +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service.proto - -package com.google.monitoring.v3; - -public final class ServiceMonitoringProto { - private ServiceMonitoringProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_Custom_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_AppEngine_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_Telemetry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Range_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Range_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_RequestBasedSli_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DistributionCut_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"google/monitoring/v3/service.proto\022\024go" + - "ogle.monitoring.v3\032\031google/api/resource." + - "proto\032\036google/protobuf/duration.proto\032!g" + - "oogle/type/calendar_period.proto\"\311\t\n\007Ser" + - "vice\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t" + - "\0226\n\006custom\030\006 \001(\0132$.google.monitoring.v3." + - "Service.CustomH\000\022=\n\napp_engine\030\007 \001(\0132\'.g" + - "oogle.monitoring.v3.Service.AppEngineH\000\022" + - "G\n\017cloud_endpoints\030\010 \001(\0132,.google.monito" + - "ring.v3.Service.CloudEndpointsH\000\022C\n\rclus" + - "ter_istio\030\t \001(\0132*.google.monitoring.v3.S" + - "ervice.ClusterIstioH\000\022=\n\nmesh_istio\030\n \001(" + - "\0132\'.google.monitoring.v3.Service.MeshIst" + - "ioH\000\022V\n\027istio_canonical_service\030\013 \001(\01323." + - "google.monitoring.v3.Service.IstioCanoni" + - "calServiceH\000\022:\n\ttelemetry\030\r \001(\0132\'.google" + - ".monitoring.v3.Service.Telemetry\022B\n\013user" + - "_labels\030\016 \003(\0132-.google.monitoring.v3.Ser" + - "vice.UserLabelsEntry\032\010\n\006Custom\032\036\n\tAppEng" + - "ine\022\021\n\tmodule_id\030\001 \001(\t\032!\n\016CloudEndpoints" + - "\022\017\n\007service\030\001 \001(\t\032g\n\014ClusterIstio\022\020\n\010loc" + - "ation\030\001 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\022\031\n\021ser" + - "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" + - "(\t\032N\n\tMeshIstio\022\020\n\010mesh_uid\030\001 \001(\t\022\031\n\021ser" + - "vice_namespace\030\003 \001(\t\022\024\n\014service_name\030\004 \001" + - "(\t\032i\n\025IstioCanonicalService\022\020\n\010mesh_uid\030" + - "\001 \001(\t\022#\n\033canonical_service_namespace\030\003 \001" + - "(\t\022\031\n\021canonical_service\030\004 \001(\t\032\"\n\tTelemet" + - "ry\022\025\n\rresource_name\030\001 \001(\t\0321\n\017UserLabelsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\247\001\352" + - "A\243\001\n!monitoring.googleapis.com/Service\022%" + - "projects/{project}/services/{service}\022/o" + - "rganizations/{organization}/services/{se" + - "rvice}\022#folders/{folder}/services/{servi" + - "ce}\022\001*B\014\n\nidentifier\"\226\006\n\025ServiceLevelObj" + - "ective\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001" + - "(\t\022L\n\027service_level_indicator\030\003 \001(\0132+.go" + - "ogle.monitoring.v3.ServiceLevelIndicator" + - "\022\014\n\004goal\030\004 \001(\001\0223\n\016rolling_period\030\005 \001(\0132\031" + - ".google.protobuf.DurationH\000\0226\n\017calendar_" + - "period\030\006 \001(\0162\033.google.type.CalendarPerio" + - "dH\000\022P\n\013user_labels\030\014 \003(\0132;.google.monito" + - "ring.v3.ServiceLevelObjective.UserLabels" + - "Entry\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"4\n\004View\022\024\n\020VIEW_UNSPECI" + - "FIED\020\000\022\010\n\004FULL\020\002\022\014\n\010EXPLICIT\020\001:\312\002\352A\306\002\n/m" + - "onitoring.googleapis.com/ServiceLevelObj" + - "ective\022Vprojects/{project}/services/{ser" + - "vice}/serviceLevelObjectives/{service_le" + - "vel_objective}\022`organizations/{organizat" + - "ion}/services/{service}/serviceLevelObje" + - "ctives/{service_level_objective}\022Tfolder" + - "s/{folder}/services/{service}/serviceLev" + - "elObjectives/{service_level_objective}\022\001" + - "* \001B\010\n\006period\"\324\001\n\025ServiceLevelIndicator\022" + - "3\n\tbasic_sli\030\004 \001(\0132\036.google.monitoring.v" + - "3.BasicSliH\000\022>\n\rrequest_based\030\001 \001(\0132%.go" + - "ogle.monitoring.v3.RequestBasedSliH\000\022>\n\r" + - "windows_based\030\002 \001(\0132%.google.monitoring." + - "v3.WindowsBasedSliH\000B\006\n\004type\"\266\002\n\010BasicSl" + - "i\022\016\n\006method\030\007 \003(\t\022\020\n\010location\030\010 \003(\t\022\017\n\007v" + - "ersion\030\t \003(\t\022K\n\014availability\030\002 \001(\01323.goo" + - "gle.monitoring.v3.BasicSli.AvailabilityC" + - "riteriaH\000\022A\n\007latency\030\003 \001(\0132..google.moni" + - "toring.v3.BasicSli.LatencyCriteriaH\000\032\026\n\024" + - "AvailabilityCriteria\032?\n\017LatencyCriteria\022" + - ",\n\tthreshold\030\003 \001(\0132\031.google.protobuf.Dur" + - "ationB\016\n\014sli_criteria\"!\n\005Range\022\013\n\003min\030\001 " + - "\001(\001\022\013\n\003max\030\002 \001(\001\"\241\001\n\017RequestBasedSli\022A\n\020" + - "good_total_ratio\030\001 \001(\0132%.google.monitori" + - "ng.v3.TimeSeriesRatioH\000\022A\n\020distribution_" + - "cut\030\003 \001(\0132%.google.monitoring.v3.Distrib" + - "utionCutH\000B\010\n\006method\"h\n\017TimeSeriesRatio\022" + - "\033\n\023good_service_filter\030\004 \001(\t\022\032\n\022bad_serv" + - "ice_filter\030\005 \001(\t\022\034\n\024total_service_filter" + - "\030\006 \001(\t\"Z\n\017DistributionCut\022\033\n\023distributio" + - "n_filter\030\004 \001(\t\022*\n\005range\030\005 \001(\0132\033.google.m" + - "onitoring.v3.Range\"\203\005\n\017WindowsBasedSli\022 " + - "\n\026good_bad_metric_filter\030\005 \001(\tH\000\022`\n\032good" + - "_total_ratio_threshold\030\002 \001(\0132:.google.mo" + - "nitoring.v3.WindowsBasedSli.PerformanceT" + - "hresholdH\000\022Q\n\024metric_mean_in_range\030\006 \001(\013" + - "21.google.monitoring.v3.WindowsBasedSli." + - "MetricRangeH\000\022P\n\023metric_sum_in_range\030\007 \001" + - "(\01321.google.monitoring.v3.WindowsBasedSl" + - "i.MetricRangeH\000\0220\n\rwindow_period\030\004 \001(\0132\031" + - ".google.protobuf.Duration\032\260\001\n\024Performanc" + - "eThreshold\022<\n\013performance\030\001 \001(\0132%.google" + - ".monitoring.v3.RequestBasedSliH\000\022?\n\025basi" + - "c_sli_performance\030\003 \001(\0132\036.google.monitor" + - "ing.v3.BasicSliH\000\022\021\n\tthreshold\030\002 \001(\001B\006\n\004" + - "type\032N\n\013MetricRange\022\023\n\013time_series\030\001 \001(\t" + - "\022*\n\005range\030\004 \001(\0132\033.google.monitoring.v3.R" + - "angeB\022\n\020window_criterionB\321\001\n\030com.google." + - "monitoring.v3B\026ServiceMonitoringProtoP\001Z" + - "Acloud.google.com/go/monitoring/apiv3/v2" + - "/monitoringpb;monitoringpb\252\002\032Google.Clou" + - "d.Monitoring.V3\312\002\032Google\\Cloud\\Monitorin" + - "g\\V3\352\002\035Google::Cloud::Monitoring::V3b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.type.CalendarPeriodProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Service_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Custom", "AppEngine", "CloudEndpoints", "ClusterIstio", "MeshIstio", "IstioCanonicalService", "Telemetry", "UserLabels", "Identifier", }); - internal_static_google_monitoring_v3_Service_Custom_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_Service_Custom_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_Custom_descriptor, - new java.lang.String[] { }); - internal_static_google_monitoring_v3_Service_AppEngine_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_Service_AppEngine_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_AppEngine_descriptor, - new java.lang.String[] { "ModuleId", }); - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_Service_CloudEndpoints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_CloudEndpoints_descriptor, - new java.lang.String[] { "Service", }); - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_Service_ClusterIstio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_ClusterIstio_descriptor, - new java.lang.String[] { "Location", "ClusterName", "ServiceNamespace", "ServiceName", }); - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_Service_MeshIstio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_MeshIstio_descriptor, - new java.lang.String[] { "MeshUid", "ServiceNamespace", "ServiceName", }); - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(5); - internal_static_google_monitoring_v3_Service_IstioCanonicalService_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_IstioCanonicalService_descriptor, - new java.lang.String[] { "MeshUid", "CanonicalServiceNamespace", "CanonicalService", }); - internal_static_google_monitoring_v3_Service_Telemetry_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(6); - internal_static_google_monitoring_v3_Service_Telemetry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_Telemetry_descriptor, - new java.lang.String[] { "ResourceName", }); - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_Service_descriptor.getNestedTypes().get(7); - internal_static_google_monitoring_v3_Service_UserLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Service_UserLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ServiceLevelObjective_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor, - new java.lang.String[] { "Name", "DisplayName", "ServiceLevelIndicator", "Goal", "RollingPeriod", "CalendarPeriod", "UserLabels", "Period", }); - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_ServiceLevelObjective_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelObjective_UserLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ServiceLevelIndicator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ServiceLevelIndicator_descriptor, - new java.lang.String[] { "BasicSli", "RequestBased", "WindowsBased", "Type", }); - internal_static_google_monitoring_v3_BasicSli_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_BasicSli_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_descriptor, - new java.lang.String[] { "Method", "Location", "Version", "Availability", "Latency", "SliCriteria", }); - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor = - internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_AvailabilityCriteria_descriptor, - new java.lang.String[] { }); - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor = - internal_static_google_monitoring_v3_BasicSli_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_BasicSli_LatencyCriteria_descriptor, - new java.lang.String[] { "Threshold", }); - internal_static_google_monitoring_v3_Range_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_Range_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Range_descriptor, - new java.lang.String[] { "Min", "Max", }); - internal_static_google_monitoring_v3_RequestBasedSli_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_RequestBasedSli_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_RequestBasedSli_descriptor, - new java.lang.String[] { "GoodTotalRatio", "DistributionCut", "Method", }); - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_TimeSeriesRatio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_TimeSeriesRatio_descriptor, - new java.lang.String[] { "GoodServiceFilter", "BadServiceFilter", "TotalServiceFilter", }); - internal_static_google_monitoring_v3_DistributionCut_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_DistributionCut_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DistributionCut_descriptor, - new java.lang.String[] { "DistributionFilter", "Range", }); - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_WindowsBasedSli_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor, - new java.lang.String[] { "GoodBadMetricFilter", "GoodTotalRatioThreshold", "MetricMeanInRange", "MetricSumInRange", "WindowPeriod", "WindowCriterion", }); - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor = - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_PerformanceThreshold_descriptor, - new java.lang.String[] { "Performance", "BasicSliPerformance", "Threshold", "Type", }); - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor = - internal_static_google_monitoring_v3_WindowsBasedSli_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_WindowsBasedSli_MetricRange_descriptor, - new java.lang.String[] { "TimeSeries", "Range", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.type.CalendarPeriodProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java deleted file mode 100644 index 9ab26b476c10..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceProto.java +++ /dev/null @@ -1,297 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/service_service.proto - -package com.google.monitoring.v3; - -public final class ServiceMonitoringServiceProto { - private ServiceMonitoringServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/monitoring/v3/service_service.p" + - "roto\022\024google.monitoring.v3\032\034google/api/a" + - "nnotations.proto\032\027google/api/client.prot" + - "o\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\032\"google/monitoring" + - "/v3/service.proto\032\033google/protobuf/empty" + - ".proto\032 google/protobuf/field_mask.proto" + - "\"\234\001\n\024CreateServiceRequest\022:\n\006parent\030\001 \001(" + - "\tB*\342A\001\002\372A#\022!monitoring.googleapis.com/Se" + - "rvice\022\022\n\nservice_id\030\003 \001(\t\0224\n\007service\030\002 \001" + - "(\0132\035.google.monitoring.v3.ServiceB\004\342A\001\002\"" + - "M\n\021GetServiceRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + - "\372A#\n!monitoring.googleapis.com/Service\"\210" + - "\001\n\023ListServicesRequest\022:\n\006parent\030\001 \001(\tB*" + - "\342A\001\002\372A#\022!monitoring.googleapis.com/Servi" + - "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + - "\npage_token\030\004 \001(\t\"`\n\024ListServicesRespons" + - "e\022/\n\010services\030\001 \003(\0132\035.google.monitoring." + - "v3.Service\022\027\n\017next_page_token\030\002 \001(\t\"}\n\024U" + - "pdateServiceRequest\0224\n\007service\030\001 \001(\0132\035.g" + - "oogle.monitoring.v3.ServiceB\004\342A\001\002\022/\n\013upd" + - "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + - "sk\"P\n\024DeleteServiceRequest\0228\n\004name\030\001 \001(\t" + - "B*\342A\001\002\372A#\n!monitoring.googleapis.com/Ser" + - "vice\"\330\001\n\"CreateServiceLevelObjectiveRequ" + - "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring" + - ".googleapis.com/Service\022\"\n\032service_level" + - "_objective_id\030\003 \001(\t\022R\n\027service_level_obj" + - "ective\030\002 \001(\0132+.google.monitoring.v3.Serv" + - "iceLevelObjectiveB\004\342A\001\002\"\251\001\n\037GetServiceLe" + - "velObjectiveRequest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372" + - "A1\n/monitoring.googleapis.com/ServiceLev" + - "elObjective\022>\n\004view\030\002 \001(\01620.google.monit" + - "oring.v3.ServiceLevelObjective.View\"\326\001\n!" + - "ListServiceLevelObjectivesRequest\022:\n\006par" + - "ent\030\001 \001(\tB*\342A\001\002\372A#\n!monitoring.googleapi" + - "s.com/Service\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" + - "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022>\n\004view\030\005 \001" + - "(\01620.google.monitoring.v3.ServiceLevelOb" + - "jective.View\"\214\001\n\"ListServiceLevelObjecti" + - "vesResponse\022M\n\030service_level_objectives\030" + - "\001 \003(\0132+.google.monitoring.v3.ServiceLeve" + - "lObjective\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\"" + - "UpdateServiceLevelObjectiveRequest\022R\n\027se" + - "rvice_level_objective\030\001 \001(\0132+.google.mon" + - "itoring.v3.ServiceLevelObjectiveB\004\342A\001\002\022/" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMask\"l\n\"DeleteServiceLevelObjectiveRe" + - "quest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/monitoring" + - ".googleapis.com/ServiceLevelObjective2\352\017" + - "\n\030ServiceMonitoringService\022\227\001\n\rCreateSer" + - "vice\022*.google.monitoring.v3.CreateServic" + - "eRequest\032\035.google.monitoring.v3.Service\"" + - ";\332A\016parent,service\202\323\344\223\002$\"\031/v3/{parent=*/" + - "*}/services:\007service\022~\n\nGetService\022\'.goo" + - "gle.monitoring.v3.GetServiceRequest\032\035.go" + - "ogle.monitoring.v3.Service\"(\332A\004name\202\323\344\223\002" + - "\033\022\031/v3/{name=*/*/services/*}\022\221\001\n\014ListSer" + - "vices\022).google.monitoring.v3.ListService" + - "sRequest\032*.google.monitoring.v3.ListServ" + - "icesResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v3/{pare" + - "nt=*/*}/services\022\230\001\n\rUpdateService\022*.goo" + - "gle.monitoring.v3.UpdateServiceRequest\032\035" + - ".google.monitoring.v3.Service\"<\332A\007servic" + - "e\202\323\344\223\002,2!/v3/{service.name=*/*/services/" + - "*}:\007service\022}\n\rDeleteService\022*.google.mo" + - "nitoring.v3.DeleteServiceRequest\032\026.googl" + - "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v3/{na" + - "me=*/*/services/*}\022\372\001\n\033CreateServiceLeve" + - "lObjective\0228.google.monitoring.v3.Create" + - "ServiceLevelObjectiveRequest\032+.google.mo" + - "nitoring.v3.ServiceLevelObjective\"t\332A\036pa" + - "rent,service_level_objective\202\323\344\223\002M\"2/v3/" + - "{parent=*/*/services/*}/serviceLevelObje" + - "ctives:\027service_level_objective\022\301\001\n\030GetS" + - "erviceLevelObjective\0225.google.monitoring" + - ".v3.GetServiceLevelObjectiveRequest\032+.go" + - "ogle.monitoring.v3.ServiceLevelObjective" + - "\"A\332A\004name\202\323\344\223\0024\0222/v3/{name=*/*/services/" + - "*/serviceLevelObjectives/*}\022\324\001\n\032ListServ" + - "iceLevelObjectives\0227.google.monitoring.v" + - "3.ListServiceLevelObjectivesRequest\0328.go" + - "ogle.monitoring.v3.ListServiceLevelObjec" + - "tivesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v3/{par" + - "ent=*/*/services/*}/serviceLevelObjectiv" + - "es\022\214\002\n\033UpdateServiceLevelObjective\0228.goo" + - "gle.monitoring.v3.UpdateServiceLevelObje" + - "ctiveRequest\032+.google.monitoring.v3.Serv" + - "iceLevelObjective\"\205\001\332A\027service_level_obj" + - "ective\202\323\344\223\002e2J/v3/{service_level_objecti" + - "ve.name=*/*/services/*/serviceLevelObjec" + - "tives/*}:\027service_level_objective\022\262\001\n\033De" + - "leteServiceLevelObjective\0228.google.monit" + - "oring.v3.DeleteServiceLevelObjectiveRequ" + - "est\032\026.google.protobuf.Empty\"A\332A\004name\202\323\344\223" + - "\0024*2/v3/{name=*/*/services/*/serviceLeve" + - "lObjectives/*}\032\251\001\312A\031monitoring.googleapi" + - "s.com\322A\211\001https://www.googleapis.com/auth" + - "/cloud-platform,https://www.googleapis.c" + - "om/auth/monitoring,https://www.googleapi" + - "s.com/auth/monitoring.readB\330\001\n\030com.googl" + - "e.monitoring.v3B\035ServiceMonitoringServic" + - "eProtoP\001ZAcloud.google.com/go/monitoring" + - "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + - "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + - "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + - "g::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateServiceRequest_descriptor, - new java.lang.String[] { "Parent", "ServiceId", "Service", }); - internal_static_google_monitoring_v3_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_GetServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetServiceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListServicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServicesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_ListServicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServicesResponse_descriptor, - new java.lang.String[] { "Services", "NextPageToken", }); - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateServiceRequest_descriptor, - new java.lang.String[] { "Service", "UpdateMask", }); - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteServiceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { "Parent", "ServiceLevelObjectiveId", "ServiceLevelObjective", }); - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { "Name", "View", }); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServiceLevelObjectivesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", "View", }); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListServiceLevelObjectivesResponse_descriptor, - new java.lang.String[] { "ServiceLevelObjectives", "NextPageToken", }); - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { "ServiceLevelObjective", "UpdateMask", }); - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteServiceLevelObjectiveRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.ServiceMonitoringProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java deleted file mode 100644 index 9f73f068a2c0..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze.proto - -package com.google.monitoring.v3; - -public final class SnoozeProto { - private SnoozeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Snooze_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Snooze_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/snooze.proto\022\024goo" + - "gle.monitoring.v3\032\037google/api/field_beha" + - "vior.proto\032\031google/api/resource.proto\032!g" + - "oogle/monitoring/v3/common.proto\"\311\002\n\006Sno" + - "oze\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022=\n\010criteria\030\003 \001(" + - "\0132%.google.monitoring.v3.Snooze.Criteria" + - "B\004\342A\001\002\022:\n\010interval\030\004 \001(\0132\".google.monito" + - "ring.v3.TimeIntervalB\004\342A\001\002\022\032\n\014display_na" + - "me\030\005 \001(\tB\004\342A\001\002\032H\n\010Criteria\022<\n\010policies\030\001" + - " \003(\tB*\372A\'\n%monitoring.googleapis.com/Ale" + - "rtPolicy:J\352AG\n monitoring.googleapis.com" + - "/Snooze\022#projects/{project}/snoozes/{sno" + - "oze}B\306\001\n\030com.google.monitoring.v3B\013Snooz" + - "eProtoP\001ZAcloud.google.com/go/monitoring" + - "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + - "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + - "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + - "g::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.CommonProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_Snooze_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_Snooze_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Snooze_descriptor, - new java.lang.String[] { "Name", "Criteria", "Interval", "DisplayName", }); - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor = - internal_static_google_monitoring_v3_Snooze_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_Snooze_Criteria_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_Snooze_Criteria_descriptor, - new java.lang.String[] { "Policies", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java deleted file mode 100644 index 56e9b3a77874..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceProto.java +++ /dev/null @@ -1,158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/snooze_service.proto - -package com.google.monitoring.v3; - -public final class SnoozeServiceProto { - private SnoozeServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/snooze_service.pr" + - "oto\022\024google.monitoring.v3\032\034google/api/an" + - "notations.proto\032\027google/api/client.proto" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\032!google/monitoring/" + - "v3/snooze.proto\032 google/protobuf/field_m" + - "ask.proto\"\204\001\n\023CreateSnoozeRequest\0229\n\006par" + - "ent\030\001 \001(\tB)\342A\001\002\372A\"\022 monitoring.googleapi" + - "s.com/Snooze\0222\n\006snooze\030\002 \001(\0132\034.google.mo" + - "nitoring.v3.SnoozeB\004\342A\001\002\"\230\001\n\022ListSnoozes" + - "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 monito" + - "ring.googleapis.com/Snooze\022\024\n\006filter\030\002 \001" + - "(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npag" + - "e_token\030\005 \001(\tB\004\342A\001\001\"]\n\023ListSnoozesRespon" + - "se\022-\n\007snoozes\030\001 \003(\0132\034.google.monitoring." + - "v3.Snooze\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020Ge" + - "tSnoozeRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n m" + - "onitoring.googleapis.com/Snooze\"\200\001\n\023Upda" + - "teSnoozeRequest\0222\n\006snooze\030\001 \001(\0132\034.google" + - ".monitoring.v3.SnoozeB\004\342A\001\002\0225\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + - "\001\0022\230\006\n\rSnoozeService\022\230\001\n\014CreateSnooze\022)." + - "google.monitoring.v3.CreateSnoozeRequest" + - "\032\034.google.monitoring.v3.Snooze\"?\332A\rparen" + - "t,snooze\202\323\344\223\002)\"\037/v3/{parent=projects/*}/" + - "snoozes:\006snooze\022\224\001\n\013ListSnoozes\022(.google" + - ".monitoring.v3.ListSnoozesRequest\032).goog" + - "le.monitoring.v3.ListSnoozesResponse\"0\332A" + - "\006parent\202\323\344\223\002!\022\037/v3/{parent=projects/*}/s" + - "noozes\022\201\001\n\tGetSnooze\022&.google.monitoring" + - ".v3.GetSnoozeRequest\032\034.google.monitoring" + - ".v3.Snooze\".\332A\004name\202\323\344\223\002!\022\037/v3/{name=pro" + - "jects/*/snoozes/*}\022\244\001\n\014UpdateSnooze\022).go" + - "ogle.monitoring.v3.UpdateSnoozeRequest\032\034" + - ".google.monitoring.v3.Snooze\"K\332A\022snooze," + - "update_mask\202\323\344\223\00202&/v3/{snooze.name=proj" + - "ects/*/snoozes/*}:\006snooze\032\251\001\312A\031monitorin" + - "g.googleapis.com\322A\211\001https://www.googleap" + - "is.com/auth/cloud-platform,https://www.g" + - "oogleapis.com/auth/monitoring,https://ww" + - "w.googleapis.com/auth/monitoring.readB\315\001" + - "\n\030com.google.monitoring.v3B\022SnoozeServic" + - "eProtoP\001ZAcloud.google.com/go/monitoring" + - "/apiv3/v2/monitoringpb;monitoringpb\252\002\032Go" + - "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + - "Monitoring\\V3\352\002\035Google::Cloud::Monitorin" + - "g::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.SnoozeProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_CreateSnoozeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateSnoozeRequest_descriptor, - new java.lang.String[] { "Parent", "Snooze", }); - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListSnoozesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListSnoozesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_ListSnoozesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListSnoozesResponse_descriptor, - new java.lang.String[] { "Snoozes", "NextPageToken", }); - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_GetSnoozeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetSnoozeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateSnoozeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateSnoozeRequest_descriptor, - new java.lang.String[] { "Snooze", "UpdateMask", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.SnoozeProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java deleted file mode 100644 index 8dd1702de8fc..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/span_context.proto - -package com.google.monitoring.v3; - -public final class SpanContextProto { - private SpanContextProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_SpanContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/monitoring/v3/span_context.prot" + - "o\022\024google.monitoring.v3\" \n\013SpanContext\022\021" + - "\n\tspan_name\030\001 \001(\tB\313\001\n\030com.google.monitor" + - "ing.v3B\020SpanContextProtoP\001ZAcloud.google" + - ".com/go/monitoring/apiv3/v2/monitoringpb" + - ";monitoringpb\252\002\032Google.Cloud.Monitoring." + - "V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google" + - "::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_monitoring_v3_SpanContext_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_SpanContext_descriptor, - new java.lang.String[] { "SpanName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java deleted file mode 100644 index e6214230403e..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java +++ /dev/null @@ -1,302 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime.proto - -package com.google.monitoring.v3; - -public final class UptimeProto { - private UptimeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_InternalChecker_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/monitoring/v3/uptime.proto\022\024goo" + - "gle.monitoring.v3\032\037google/api/field_beha" + - "vior.proto\032#google/api/monitored_resourc" + - "e.proto\032\031google/api/resource.proto\032\036goog" + - "le/protobuf/duration.proto\"\346\001\n\017InternalC" + - "hecker\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" + - "(\t\022\017\n\007network\030\003 \001(\t\022\020\n\010gcp_zone\030\004 \001(\t\022\027\n" + - "\017peer_project_id\030\006 \001(\t\022:\n\005state\030\007 \001(\0162+." + - "google.monitoring.v3.InternalChecker.Sta" + - "te\"3\n\005State\022\017\n\013UNSPECIFIED\020\000\022\014\n\010CREATING" + - "\020\001\022\013\n\007RUNNING\020\002:\002\030\001\"\202\033\n\021UptimeCheckConfi" + - "g\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022;\n" + - "\022monitored_resource\030\003 \001(\0132\035.google.api.M" + - "onitoredResourceH\000\022O\n\016resource_group\030\004 \001" + - "(\01325.google.monitoring.v3.UptimeCheckCon" + - "fig.ResourceGroupH\000\022G\n\nhttp_check\030\005 \001(\0132" + - "1.google.monitoring.v3.UptimeCheckConfig" + - ".HttpCheckH\001\022E\n\ttcp_check\030\006 \001(\01320.google" + - ".monitoring.v3.UptimeCheckConfig.TcpChec" + - "kH\001\022)\n\006period\030\007 \001(\0132\031.google.protobuf.Du" + - "ration\022*\n\007timeout\030\010 \001(\0132\031.google.protobu" + - "f.Duration\022P\n\020content_matchers\030\t \003(\01326.g" + - "oogle.monitoring.v3.UptimeCheckConfig.Co" + - "ntentMatcher\022I\n\014checker_type\030\021 \001(\01623.goo" + - "gle.monitoring.v3.UptimeCheckConfig.Chec" + - "kerType\022A\n\020selected_regions\030\n \003(\0162\'.goog" + - "le.monitoring.v3.UptimeCheckRegion\022\027\n\013is" + - "_internal\030\017 \001(\010B\002\030\001\022D\n\021internal_checkers" + - "\030\016 \003(\0132%.google.monitoring.v3.InternalCh" + - "eckerB\002\030\001\022L\n\013user_labels\030\024 \003(\01327.google." + - "monitoring.v3.UptimeCheckConfig.UserLabe" + - "lsEntry\032a\n\rResourceGroup\022\020\n\010group_id\030\001 \001" + - "(\t\022>\n\rresource_type\030\002 \001(\0162\'.google.monit" + - "oring.v3.GroupResourceType\032!\n\nPingConfig" + - "\022\023\n\013pings_count\030\001 \001(\005\032\356\t\n\tHttpCheck\022W\n\016r" + - "equest_method\030\010 \001(\0162?.google.monitoring." + - "v3.UptimeCheckConfig.HttpCheck.RequestMe" + - "thod\022\017\n\007use_ssl\030\001 \001(\010\022\014\n\004path\030\002 \001(\t\022\014\n\004p" + - "ort\030\003 \001(\005\022X\n\tauth_info\030\004 \001(\0132E.google.mo" + - "nitoring.v3.UptimeCheckConfig.HttpCheck." + - "BasicAuthentication\022\024\n\014mask_headers\030\005 \001(" + - "\010\022O\n\007headers\030\006 \003(\0132>.google.monitoring.v" + - "3.UptimeCheckConfig.HttpCheck.HeadersEnt" + - "ry\022S\n\014content_type\030\t \001(\0162=.google.monito" + - "ring.v3.UptimeCheckConfig.HttpCheck.Cont" + - "entType\022\033\n\023custom_content_type\030\r \001(\t\022\024\n\014" + - "validate_ssl\030\007 \001(\010\022\014\n\004body\030\n \001(\014\022l\n\036acce" + - "pted_response_status_codes\030\013 \003(\0132D.googl" + - "e.monitoring.v3.UptimeCheckConfig.HttpCh" + - "eck.ResponseStatusCode\022G\n\013ping_config\030\014 " + - "\001(\01322.google.monitoring.v3.UptimeCheckCo" + - "nfig.PingConfig\0329\n\023BasicAuthentication\022\020" + - "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\032\334\002\n\022R" + - "esponseStatusCode\022\026\n\014status_value\030\001 \001(\005H" + - "\000\022h\n\014status_class\030\002 \001(\0162P.google.monitor" + - "ing.v3.UptimeCheckConfig.HttpCheck.Respo" + - "nseStatusCode.StatusClassH\000\"\264\001\n\013StatusCl" + - "ass\022\034\n\030STATUS_CLASS_UNSPECIFIED\020\000\022\024\n\020STA" + - "TUS_CLASS_1XX\020d\022\025\n\020STATUS_CLASS_2XX\020\310\001\022\025" + - "\n\020STATUS_CLASS_3XX\020\254\002\022\025\n\020STATUS_CLASS_4X" + - "X\020\220\003\022\025\n\020STATUS_CLASS_5XX\020\364\003\022\025\n\020STATUS_CL" + - "ASS_ANY\020\350\007B\r\n\013status_code\032.\n\014HeadersEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rReq" + - "uestMethod\022\026\n\022METHOD_UNSPECIFIED\020\000\022\007\n\003GE" + - "T\020\001\022\010\n\004POST\020\002\"G\n\013ContentType\022\024\n\020TYPE_UNS" + - "PECIFIED\020\000\022\017\n\013URL_ENCODED\020\001\022\021\n\rUSER_PROV" + - "IDED\020\002\032a\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\022G\n\013ping" + - "_config\030\002 \001(\01322.google.monitoring.v3.Upt" + - "imeCheckConfig.PingConfig\032\312\005\n\016ContentMat" + - "cher\022\017\n\007content\030\001 \001(\t\022\\\n\007matcher\030\002 \001(\0162K" + - ".google.monitoring.v3.UptimeCheckConfig." + - "ContentMatcher.ContentMatcherOption\022c\n\021j" + - "son_path_matcher\030\003 \001(\0132F.google.monitori" + - "ng.v3.UptimeCheckConfig.ContentMatcher.J" + - "sonPathMatcherH\000\032\375\001\n\017JsonPathMatcher\022\021\n\t" + - "json_path\030\001 \001(\t\022r\n\014json_matcher\030\002 \001(\0162\\." + - "google.monitoring.v3.UptimeCheckConfig.C" + - "ontentMatcher.JsonPathMatcher.JsonPathMa" + - "tcherOption\"c\n\025JsonPathMatcherOption\022(\n$" + - "JSON_PATH_MATCHER_OPTION_UNSPECIFIED\020\000\022\017" + - "\n\013EXACT_MATCH\020\001\022\017\n\013REGEX_MATCH\020\002\"\310\001\n\024Con" + - "tentMatcherOption\022&\n\"CONTENT_MATCHER_OPT" + - "ION_UNSPECIFIED\020\000\022\023\n\017CONTAINS_STRING\020\001\022\027" + - "\n\023NOT_CONTAINS_STRING\020\002\022\021\n\rMATCHES_REGEX" + - "\020\003\022\025\n\021NOT_MATCHES_REGEX\020\004\022\025\n\021MATCHES_JSO" + - "N_PATH\020\005\022\031\n\025NOT_MATCHES_JSON_PATH\020\006B\031\n\027a" + - "dditional_matcher_info\0321\n\017UserLabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\013Che" + - "ckerType\022\034\n\030CHECKER_TYPE_UNSPECIFIED\020\000\022\026" + - "\n\022STATIC_IP_CHECKERS\020\001\022\020\n\014VPC_CHECKERS\020\003" + - ":\363\001\352A\357\001\n+monitoring.googleapis.com/Uptim" + - "eCheckConfig\022;projects/{project}/uptimeC" + - "heckConfigs/{uptime_check_config}\022Eorgan" + - "izations/{organization}/uptimeCheckConfi" + - "gs/{uptime_check_config}\0229folders/{folde" + - "r}/uptimeCheckConfigs/{uptime_check_conf" + - "ig}\022\001*B\n\n\010resourceB\024\n\022check_request_type" + - "\"n\n\rUptimeCheckIp\0227\n\006region\030\001 \001(\0162\'.goog" + - "le.monitoring.v3.UptimeCheckRegion\022\020\n\010lo" + - "cation\030\002 \001(\t\022\022\n\nip_address\030\003 \001(\t*\225\001\n\021Upt" + - "imeCheckRegion\022\026\n\022REGION_UNSPECIFIED\020\000\022\007" + - "\n\003USA\020\001\022\n\n\006EUROPE\020\002\022\021\n\rSOUTH_AMERICA\020\003\022\020" + - "\n\014ASIA_PACIFIC\020\004\022\016\n\nUSA_OREGON\020\005\022\014\n\010USA_" + - "IOWA\020\006\022\020\n\014USA_VIRGINIA\020\007*[\n\021GroupResourc" + - "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\014\n\010" + - "INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_BALANCER\020\002B\306\001" + - "\n\030com.google.monitoring.v3B\013UptimeProtoP" + - "\001ZAcloud.google.com/go/monitoring/apiv3/" + - "v2/monitoringpb;monitoringpb\252\002\032Google.Cl" + - "oud.Monitoring.V3\312\002\032Google\\Cloud\\Monitor" + - "ing\\V3\352\002\035Google::Cloud::Monitoring::V3b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_InternalChecker_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_InternalChecker_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Network", "GcpZone", "PeerProjectId", "State", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "MonitoredResource", "ResourceGroup", "HttpCheck", "TcpCheck", "Period", "Timeout", "ContentMatchers", "CheckerType", "SelectedRegions", "IsInternal", "InternalCheckers", "UserLabels", "Resource", "CheckRequestType", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor, - new java.lang.String[] { "GroupId", "ResourceType", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_PingConfig_descriptor, - new java.lang.String[] { "PingsCount", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor, - new java.lang.String[] { "RequestMethod", "UseSsl", "Path", "Port", "AuthInfo", "MaskHeaders", "Headers", "ContentType", "CustomContentType", "ValidateSsl", "Body", "AcceptedResponseStatusCodes", "PingConfig", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_BasicAuthentication_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(1); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_ResponseStatusCode_descriptor, - new java.lang.String[] { "StatusValue", "StatusClass", "StatusCode", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_descriptor.getNestedTypes().get(2); - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_HttpCheck_HeadersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(3); - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_TcpCheck_descriptor, - new java.lang.String[] { "Port", "PingConfig", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor, - new java.lang.String[] { "Content", "Matcher", "JsonPathMatcher", "AdditionalMatcherInfo", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor.getNestedTypes().get(0); - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_JsonPathMatcher_descriptor, - new java.lang.String[] { "JsonPath", "JsonMatcher", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(5); - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_UserLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckIp_descriptor, - new java.lang.String[] { "Region", "Location", "IpAddress", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java deleted file mode 100644 index ef2921b9e9b0..000000000000 --- a/owl-bot-staging/java-monitoring/v3/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java +++ /dev/null @@ -1,218 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/monitoring/v3/uptime_service.proto - -package com.google.monitoring.v3; - -public final class UptimeServiceProto { - private UptimeServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/monitoring/v3/uptime_service.pr" + - "oto\022\024google.monitoring.v3\032\034google/api/an" + - "notations.proto\032\027google/api/client.proto" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\032!google/monitoring/" + - "v3/uptime.proto\032\033google/protobuf/empty.p" + - "roto\032 google/protobuf/field_mask.proto\"\234" + - "\001\n\035ListUptimeCheckConfigsRequest\022D\n\006pare" + - "nt\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring.googleapis" + - ".com/UptimeCheckConfig\022\016\n\006filter\030\002 \001(\t\022\021" + - "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\224\001" + - "\n\036ListUptimeCheckConfigsResponse\022E\n\024upti" + - "me_check_configs\030\001 \003(\0132\'.google.monitori" + - "ng.v3.UptimeCheckConfig\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"a\n\033GetUptim" + - "eCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372" + - "A-\n+monitoring.googleapis.com/UptimeChec" + - "kConfig\"\262\001\n\036CreateUptimeCheckConfigReque" + - "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+monitoring." + - "googleapis.com/UptimeCheckConfig\022J\n\023upti" + - "me_check_config\030\002 \001(\0132\'.google.monitorin" + - "g.v3.UptimeCheckConfigB\004\342A\001\002\"\235\001\n\036UpdateU" + - "ptimeCheckConfigRequest\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\022J\n\023upti" + - "me_check_config\030\003 \001(\0132\'.google.monitorin" + - "g.v3.UptimeCheckConfigB\004\342A\001\002\"d\n\036DeleteUp" + - "timeCheckConfigRequest\022B\n\004name\030\001 \001(\tB4\342A" + - "\001\002\372A-\n+monitoring.googleapis.com/UptimeC" + - "heckConfig\"B\n\031ListUptimeCheckIpsRequest\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t" + - "\n\032ListUptimeCheckIpsResponse\022=\n\020uptime_c" + - "heck_ips\030\001 \003(\0132#.google.monitoring.v3.Up" + - "timeCheckIp\022\027\n\017next_page_token\030\002 \001(\t2\275\n\n" + - "\022UptimeCheckService\022\300\001\n\026ListUptimeCheckC" + - "onfigs\0223.google.monitoring.v3.ListUptime" + - "CheckConfigsRequest\0324.google.monitoring." + - "v3.ListUptimeCheckConfigsResponse\";\332A\006pa" + - "rent\202\323\344\223\002,\022*/v3/{parent=projects/*}/upti" + - "meCheckConfigs\022\255\001\n\024GetUptimeCheckConfig\022" + - "1.google.monitoring.v3.GetUptimeCheckCon" + - "figRequest\032\'.google.monitoring.v3.Uptime" + - "CheckConfig\"9\332A\004name\202\323\344\223\002,\022*/v3/{name=pr" + - "ojects/*/uptimeCheckConfigs/*}\022\336\001\n\027Creat" + - "eUptimeCheckConfig\0224.google.monitoring.v" + - "3.CreateUptimeCheckConfigRequest\032\'.googl" + - "e.monitoring.v3.UptimeCheckConfig\"d\332A\032pa" + - "rent,uptime_check_config\202\323\344\223\002A\"*/v3/{par" + - "ent=projects/*}/uptimeCheckConfigs:\023upti" + - "me_check_config\022\353\001\n\027UpdateUptimeCheckCon" + - "fig\0224.google.monitoring.v3.UpdateUptimeC" + - "heckConfigRequest\032\'.google.monitoring.v3" + - ".UptimeCheckConfig\"q\332A\023uptime_check_conf" + - "ig\202\323\344\223\002U2>/v3/{uptime_check_config.name=" + - "projects/*/uptimeCheckConfigs/*}:\023uptime" + - "_check_config\022\242\001\n\027DeleteUptimeCheckConfi" + - "g\0224.google.monitoring.v3.DeleteUptimeChe" + - "ckConfigRequest\032\026.google.protobuf.Empty\"" + - "9\332A\004name\202\323\344\223\002,**/v3/{name=projects/*/upt" + - "imeCheckConfigs/*}\022\223\001\n\022ListUptimeCheckIp" + - "s\022/.google.monitoring.v3.ListUptimeCheck" + - "IpsRequest\0320.google.monitoring.v3.ListUp" + - "timeCheckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3/uptime" + - "CheckIps\032\251\001\312A\031monitoring.googleapis.com\322" + - "A\211\001https://www.googleapis.com/auth/cloud" + - "-platform,https://www.googleapis.com/aut" + - "h/monitoring,https://www.googleapis.com/" + - "auth/monitoring.readB\315\001\n\030com.google.moni" + - "toring.v3B\022UptimeServiceProtoP\001ZAcloud.g" + - "oogle.com/go/monitoring/apiv3/v2/monitor" + - "ingpb;monitoringpb\252\002\032Google.Cloud.Monito" + - "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035G" + - "oogle::Cloud::Monitoring::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.monitoring.v3.UptimeProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor, - new java.lang.String[] { "UptimeCheckConfigs", "NextPageToken", "TotalSize", }); - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_CreateUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { "Parent", "UptimeCheckConfig", }); - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UpdateUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { "UpdateMask", "UptimeCheckConfig", }); - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_DeleteUptimeCheckConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckIpsRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_ListUptimeCheckIpsResponse_descriptor, - new java.lang.String[] { "UptimeCheckIps", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.monitoring.v3.UptimeProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}